PR tree-optimization/91567 - Spurious -Wformat-overflow warnings building glibc ...
[gcc.git] / gcc / ChangeLog
1 2019-08-27 Martin Sebor <msebor@redhat.com>
2
3 PR tree-optimization/91567
4 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5 of unknown strings.
6 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
7 to PTRDIFF_MAX - 2.
8
9 2019-08-27 Jeff Law <law@redhat.com>
10
11 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
12 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
13
14 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
15
16 PR target/91528
17 * config/i386/i386-features.c (convert_scalars_to_vector):
18 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
19 crtl->stack_realign_processed. Update crtl->drap_reg by calling
20 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
21 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
22
23 2019-08-27 Richard Biener <rguenther@suse.de>
24
25 * config/i386/i386-features.h
26 (general_scalar_chain::~general_scalar_chain): Add.
27 (general_scalar_chain::insns_conv): New bitmap.
28 (general_scalar_chain::n_sse_to_integer): New.
29 (general_scalar_chain::n_integer_to_sse): Likewise.
30 (general_scalar_chain::make_vector_copies): Adjust signature.
31 * config/i386/i386-features.c
32 (general_scalar_chain::general_scalar_chain): Outline,
33 initialize new members.
34 (general_scalar_chain::~general_scalar_chain): New.
35 (general_scalar_chain::mark_dual_mode_def): Record insns
36 we need to insert conversions at and count them.
37 (general_scalar_chain::compute_convert_gain): Account
38 for conversion instructions at chain boundary.
39 (general_scalar_chain::make_vector_copies): Generate a single
40 copy for a def by a specific insn.
41 (general_scalar_chain::convert_registers): First populate
42 defs_map, then make copies at out-of chain insns.
43
44 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
45
46 * config/arm/arm.md (stack_protect_set_insn): Add security-related
47 comment.
48 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
49
50 2019-08-27 Martin Liska <mliska@suse.cz>
51
52 * cgraph.c (cgraph_node::remove): Remove dead assignment before
53 loop.
54 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
55 Enclose in anonymous namespace.
56 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
57 hard_register initialization in braces.
58 * tree-vrp.h (value_range_base::supports_type_p): Return false
59 for function with boolean return type.
60
61 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
62
63 * config/i386/i386.c (emit_i387_cw_initialization)
64 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
65
66 2019-08-26 Martin Sebor <msebor@redhat.com>
67
68 PR c++/83431
69 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
70 (sprintf_dom_walker): Remove class.
71 (get_int_range): Make argument const.
72 (directive::fmtfunc, directive::set_precision): Same.
73 (format_none): Same.
74 (build_intmax_type_nodes): Same.
75 (adjust_range_for_overflow): Same.
76 (format_floating): Same.
77 (format_character): Same.
78 (format_string): Same.
79 (format_plain): Same.
80 (get_int_range): Cast away constness.
81 (format_integer): Same.
82 (get_string_length): Call get_range_strlen_dynamic. Handle
83 null lendata.maxbound.
84 (should_warn_p): Adjust argument scope qualifier.
85 (maybe_warn): Same.
86 (format_directive): Same.
87 (parse_directive): Same.
88 (is_call_safe): Same.
89 (try_substitute_return_value): Same.
90 (sprintf_dom_walker::handle_printf_call): Rename...
91 (handle_printf_call): ...to this. Initialize target to host charmap
92 here instead of in pass_sprintf_length::execute.
93 (struct call_info): Make global.
94 (sprintf_dom_walker::compute_format_length): Make global.
95 (sprintf_dom_walker::handle_gimple_call): Same.
96 * passes.def (pass_sprintf_length): Replace with pass_strlen.
97 * print-rtl.c (print_pattern): Reduce the number of spaces to
98 avoid -Wformat-truncation.
99 * tree-pass.h (make_pass_warn_printf): New function.
100 * tree-ssa-strlen.c (strlen_optimize): New variable.
101 (get_string_length): Add comments.
102 (get_range_strlen_dynamic): New function.
103 (check_and_optimize_call): New function.
104 (handle_integral_assign): New function.
105 (strlen_check_and_optimize_stmt): Factor code out into
106 strlen_check_and_optimize_call and handle_integral_assign.
107 (strlen_dom_walker::evrp): New member.
108 (strlen_dom_walker::before_dom_children): Use evrp member.
109 (strlen_dom_walker::after_dom_children): Use evrp member.
110 (printf_strlen_execute): New function.
111 (pass_strlen::gate): Update to handle printf calls.
112 (dump_strlen_info): New function.
113 (pass_data_warn_printf): New variable.
114 (pass_warn_printf): New class.
115 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
116 (handle_printf_call): Same.
117 * tree-vrp.c (value_range_base::type): Adjust assertion.
118 * vr-values.c (vr_values::update_value_range): Use type of the first
119 argument rather than the second.
120
121 2019-08-26 Richard Biener <rguenther@suse.de>
122
123 * config/i386/i386-features.c (general_remove_non_convertible_regs):
124 Remove.
125 (convert_scalars_to_vector): Do not call it.
126
127 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
128 Uros Bizjak <ubizjak@gmail.com>
129
130 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
131 CASE_MATHFN_FLOATN for roundeven.
132 * config/i386/i386.c (ix86_i387_mode_needed): Add case
133 I387_ROUNDEVEN.
134 (ix86_mode_needed): Likewise.
135 (ix86_mode_after): Likewise.
136 (ix86_mode_entry): Likewise.
137 (ix86_mode_exit): Likewise.
138 (ix86_emit_mode_set): Likewise.
139 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
140 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
141 (ix86_entity): Add I387_ROUNDEVEN.
142 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
143 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
144 (define_int_iterator): Likewise.
145 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
146 (define_constant): Define ROUND_ROUNDEVEN mode.
147 (define_attr): Add roundeven mode for i387_cw.
148 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
149 * internal-fn.def (ROUNDEVEN): New builtin function.
150 * optabs.def (roundeven_optab): New optab.
151
152 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
153
154 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
155 for ROUNDEVEN.
156 * builtins.def: Added function definitions for roundeven function
157 variants.
158 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
159 function call. Adjust condition for floor, ceil, trunc and round.
160 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
161 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
162 (integer_valued_real_call_p): Added case for roundeven function.
163 * real.c (is_even): New function. Returns true if real number is even,
164 otherwise returns false.
165 (is_halfway_below): New function. Returns true if real number is
166 halfway between two integers, else return false.
167 (real_roundeven): New function. Round real number to nearest integer,
168 rounding halfway cases towards even.
169 * real.h (real_value): Added descriptive comments. Added function
170 declaration for roundeven function.
171 * doc/extend.texi (Other Builtins): List roundeven variants among
172 functions which can be handled as builtins.
173
174 2019-08-26 Richard Biener <rguenther@suse.de>
175
176 PR target/91522
177 PR target/91527
178 * config/i386/i386-features.h (general_scalar_chain::defs_map):
179 New member.
180 (general_scalar_chain::replace_with_subreg): Remove.
181 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
182 (general_scalar_chain::convert_reg): Adjust signature.
183 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
184 iterate over all defs of a reg.
185 (general_scalar_chain::replace_with_subreg): Remove.
186 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
187 (general_scalar_chain::make_vector_copies): Populate defs_map,
188 place copy only after defs that are used as vectors in the chain.
189 (general_scalar_chain::convert_reg): Emit a copy for a specific
190 def in a specific instruction.
191 (general_scalar_chain::convert_op): All reg uses are converted here.
192 (general_scalar_chain::convert_insn): Emit copies for scalar
193 uses of defs here. Replace uses with the copies we created.
194 Replace and convert the def. Adjust REG_DEAD notes, remove
195 REG_EQUIV/EQUAL notes.
196 (general_scalar_chain::convert_registers): Only handle copies
197 into the chain here.
198
199 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
200
201 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
202
203 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
204
205 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
206 Add nop_convert case.
207 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
208 Fold all statements if requested.
209 * tree-ssa-propagate.h (class substitute_and_fold_engine):
210 Allow to fold all statements.
211 * tree-vrp.c (class vrp_folder):
212 Let substitute_and_fold_engine fold all statements.
213
214 2019-08-26 Richard Biener <rguenther@suse.de>
215
216 PR tree-optimization/91526
217 * passes.def: Note that after late FRE we do TODO_update_address_taken.
218 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
219 TODO_update_address_taken.
220
221 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
222
223 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
224 __STDC_HOSTED__.
225
226 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
227
228 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
229 machine mode for unspec_volatile operand.
230
231 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
232
233 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
234 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
235 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
236 (prefer_neon_for_64bits): Remove.
237 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
238 (tune_params): Remove PREF_NEON_64_FALSE uses.
239 (arm_option_override): Remove prefer_neon selection code.
240 (arm_print_tune_info): Remove prefer_neon_for_64bits.
241 * gcc/config/arm/arm-protos.h (tune_params): Remove
242 prefer_neon_for_64bits.
243 (prefer_neon_for_64bits): Remove.
244
245 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
246
247 PR pch/61250
248 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
249 and issue any diagnostics needed before collecting the pre-PCH
250 state.
251
252 2019-08-23 Jakub Jelinek <jakub@redhat.com>
253
254 PR middle-end/91283
255 * common.opt (fexcess-precision=): Add Optimization flag. Use
256 flag_excess_precision variable instead of
257 flag_excess_precision_cmdline.
258 * flags.h (class target_flag_state): Remove x_flag_excess_precision
259 member.
260 (flag_excess_precision): Don't define.
261 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
262 flag_excess_precision_cmdline. Remove comment.
263 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
264 and x_flag_excess_precision instead of
265 frontend_set_flag_excess_precision_cmdline and
266 x_flag_excess_precision_cmdline.
267 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
268 x_flag_excess_precision_cmdline.
269 * toplev.c (init_excess_precision): Remove.
270 (lang_dependent_init_target): Don't call it.
271
272 2019-08-23 Martin Liska <mliska@suse.cz>
273
274 * lto-wrapper.c (run_gcc): When setting jobserver
275 set also parallel to 1. This was done so before r273908.
276
277 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
278
279 * config/arm/arm-cpus.in (cortex-m35p): New entry.
280 (cortex-a76ae): Likewise.
281 (cortex-a77): Likewise
282 * config/arm/arm-tables.opt: Regenerate.
283 * config/arm/arm-tune.md: Likewise.
284 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
285 cortex-a77 CPU options.
286
287 2019-08-23 Martin Liska <mliska@suse.cz>
288
289 * profile.c (instrument_values): Do not set
290 0 as last argument.
291 * tree-profile.c (gimple_gen_interval_profiler): Remove
292 last argument.
293 (gimple_gen_pow2_profiler): Likewise.
294 (gimple_gen_topn_values_profiler): Likewise.
295 (gimple_gen_ic_profiler): Likewise.
296 (gimple_gen_time_profiler): Likewise.
297 (gimple_gen_average_profiler): Likewise.
298 (gimple_gen_ior_profiler): Likewise.
299 * value-prof.c (dump_histogram_value): Use default
300 in switch statement instead of HIST_TYPE_MAX.
301 (stream_in_histogram_value): Likewise.
302 (gimple_duplicate_stmt_histograms): Do not
303 use NULL for implicitly set arguments.
304 (gimple_divmod_values_to_profile): Do not use
305 reserve+quick_push.
306 (gimple_indirect_call_to_profile): Likewise.
307 (gimple_find_values_to_profile): Use implicit
308 function call arguments.
309 * value-prof.h (gimple_alloc_histogram_value):
310 Set default values.
311 (gimple_gen_interval_profiler): Remove last argument.
312 (gimple_gen_pow2_profiler): Likewise.
313 (gimple_gen_topn_values_profiler): Likewise.
314 (gimple_gen_ic_profiler): Likewise.
315 (gimple_gen_time_profiler): Likewise.
316 (gimple_gen_average_profiler): Likewise.
317 (gimple_gen_ior_profiler): Likewise.
318
319 2019-08-22 Martin Sebor <msebor@redhat.com>
320
321 PR middle-end/91490
322 * builtins.c (c_strlen): Rename argument and introduce new local.
323 Set no-warning bit on original argument.
324 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
325 Fold empty and zero constructors into empty strings.
326 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
327 for missing initializers.
328 * tree.c (build_string_literal): Handle optional argument.
329 * tree.h (build_string_literal): Add defaulted argument.
330 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
331 no-warning bit on original expression.
332
333 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
334
335 PR target/91481
336 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
337 and UNSPEC_DARN_RAW.
338 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
339 UNSPECV_DARN_RAW.
340 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
341 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
342 (darn): Use an unspec_volatile, and UNSPECV_DARN.
343
344 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
345
346 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
347 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
348 * config/rs6000/rs6000.md (unspec): ... here.
349 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
350 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
351 cmpeqb, *cmpeqb_internal): Delete, move to...
352 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
353 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
354 cmpeqb, *cmpeqb_internal): ... here.
355
356 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
357
358 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
359 intrinsics if __ARM_FP.
360 Use __ARM_FEATURE_CRC32 ifdef guard.
361
362 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
363
364 * config/arm/arm.md (neon_for_64bits): Remove.
365 (avoid_neon_for_64bits): Remove.
366 (arm_adddi3): Always split early.
367 (arm_subdi3): Always split early.
368 (negdi2): Remove Neon expansion.
369 (split zero_extend): Split before reload.
370 (split sign_extend): Split before reload.
371
372 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
373
374 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
375 (qhs_extenddi_cstr): Likewise.
376 * config/arm/arm.md (ashldi3): Always expand early.
377 (ashlsi3): Likewise.
378 (ashrsi3): Likewise.
379 (zero_extend<mode>di2): Remove Neon variants.
380 (extend<mode>di2): Likewise.
381 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
382 (signed_shift_di3_neon): Likewise.
383 (unsigned_shift_di3_neon): Likewise.
384 (ashrdi3_neon_imm_noclobber): Likewise.
385 (lshrdi3_neon_imm_noclobber): Likewise.
386 (<shift>di3_neon): Likewise.
387 (split extend): Remove DI extend split patterns.
388
389 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
390
391 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
392 (split not): Add DImode not splitter.
393 (anddi3): Remove pattern.
394 (anddi3_insn): Likewise.
395 (anddi_zesidi_di): Likewise.
396 (anddi_sesdi_di): Likewise.
397 (anddi_notdi_di): Likewise.
398 (anddi_notzesidi_di): Likewise.
399 (anddi_notsesidi_di): Likewise.
400 (iordi3): Likewise.
401 (iordi3_insn): Likewise.
402 (iordi_zesidi_di): Likewise.
403 (iordi_sesidi_di): Likewise.
404 (xordi3): Likewise.
405 (xordi3_insn): Likewise.
406 (xordi_sesidi_di): Likewise.
407 (xordi_zesidi_di): Likewise.
408 (one_cmpldi2): Likewise.
409 (one_cmpldi2_insn): Likewise.
410 * config/arm/constraints.md: Remove De, Df, Dg constraints.
411 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
412 alternative.
413 (iwmmxt_xordi3): Likewise.
414 (iwmmxt_anddi3): Likewise.
415 * config/arm/neon.md (orndi3_neon): Remove pattern.
416 (anddi_notdi_di): Likewise.
417 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
418 (arm_iordi_operand_neon): Likewise.
419 (arm_xordi_operand_neon): Likewise.
420 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
421 (iordi_notzesidi_di): Likewise.
422 (iordi_notdi_zesidi): Likewise.
423 (iordi_notsesidi_di): Likewise.
424
425 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
426
427 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
428 insn.
429 (iorsi3_compare0_scratch): Likewise.
430
431 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
432
433 * config/aarch64/aarch64-simd-builtins.def:
434 (ld1x4): New.
435 (st1x4): Likewise.
436 * config/aarch64/aarch64-simd.md:
437 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
438 (aarch64_st1x4<VALLDIF:mode>): Likewise.
439 (aarch64_ld1_x4_<mode>): Likewise.
440 (aarch64_st1_x4_<mode>): Likewise.
441 * config/aarch64/arm_neon.h:
442 (vld1_s8_x4): New function.
443 (vld1q_s8_x4): Likewise.
444 (vld1_s16_x4): Likewise.
445 (vld1q_s16_x4): Likewise.
446 (vld1_s32_x4): Likewise.
447 (vld1q_s32_x4): Likewise.
448 (vld1_u8_x4): Likewise.
449 (vld1q_u8_x4): Likewise.
450 (vld1_u16_x4): Likewise.
451 (vld1q_u16_x4): Likewise.
452 (vld1_u32_x4): Likewise.
453 (vld1q_u32_x4): Likewise.
454 (vld1_f16_x4): Likewise.
455 (vld1q_f16_x4): Likewise.
456 (vld1_f32_x4): Likewise.
457 (vld1q_f32_x4): Likewise.
458 (vld1_p8_x4): Likewise.
459 (vld1q_p8_x4): Likewise.
460 (vld1_p16_x4): Likewise.
461 (vld1q_p16_x4): Likewise.
462 (vld1_s64_x4): Likewise.
463 (vld1_u64_x4): Likewise.
464 (vld1_p64_x4): Likewise.
465 (vld1q_s64_x4): Likewise.
466 (vld1q_u64_x4): Likewise.
467 (vld1q_p64_x4): Likewise.
468 (vld1_f64_x4): Likewise.
469 (vld1q_f64_x4): Likewise.
470 (vst1_s8_x4): Likewise.
471 (vst1q_s8_x4): Likewise.
472 (vst1_s16_x4): Likewise.
473 (vst1q_s16_x4): Likewise.
474 (vst1_s32_x4): Likewise.
475 (vst1q_s32_x4): Likewise.
476 (vst1_u8_x4): Likewise.
477 (vst1q_u8_x4): Likewise.
478 (vst1_u16_x4): Likewise.
479 (vst1q_u16_x4): Likewise.
480 (vst1_u32_x4): Likewise.
481 (vst1q_u32_x4): Likewise.
482 (vst1_f16_x4): Likewise.
483 (vst1q_f16_x4): Likewise.
484 (vst1_f32_x4): Likewise.
485 (vst1q_f32_x4): Likewise.
486 (vst1_p8_x4): Likewise.
487 (vst1q_p8_x4): Likewise.
488 (vst1_p16_x4): Likewise.
489 (vst1q_p16_x4): Likewise.
490 (vst1_s64_x4): Likewise.
491 (vst1_u64_x4): Likewise.
492 (vst1_p64_x4): Likewise.
493 (vst1q_s64_x4): Likewise.
494 (vst1q_u64_x4): Likewise.
495 (vst1q_p64_x4): Likewise.
496 (vst1_f64_x4): Likewise.
497 (vst1q_f64_x4): Likewise.
498
499 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
500
501 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
502
503 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
504 Richard Sandiford <richard.sandiford@arm.com>
505
506 PR target/88839
507 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
508 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
509
510 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
511
512 PR target/90724
513 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
514 in reg if it fails aarch64_plus_operand predicate.
515
516 2019-08-21 Richard Biener <rguenther@suse.de>
517
518 PR tree-optimization/91482
519 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
520 BUILT_IN_ASSUME_ALIGNED calls.
521
522 2019-08-21 Richard Biener <rguenther@suse.de>
523
524 PR target/91498
525 PR target/91503
526 * config/i386/i386-features.c
527 (general_scalar_chain::make_vector_copies): Copy stack temporary
528 rtx when using it multiple times.
529 (general_scalar_chain::convert_reg): Likewise.
530
531 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
532
533 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
534
535 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
536
537 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
538 catch more redundant zero initialization cases.
539 (dse_dom_walker::dse_optimize_stmt): Likewise.
540
541 2019-08-20 Richard Biener <rguenther@suse.de>
542
543 PR lto/91307
544 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
545 by collect2 when targetm.have_ctors_dtors which avoids dragging
546 in temporary filenames from LTO input objects.
547
548 2019-08-20 Richard Biener <rguenther@suse.de>
549
550 PR tree-optimization/37242
551 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
552 to (T)a + (T)b if we know that a + b does not overflow.
553
554 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
555
556 PR rtl-optimization/91347
557 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
558 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
559
560 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
561
562 * calls.h (function_arg_info): Add a pass_by_reference field,
563 defaulting to false.
564 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
565 when applying pass-by-reference semantics.
566 (initialize_argument_information): Likewise.
567 (emit_library_call_value_1): Likewise.
568 * function.c (assign_parm_data_one): Remove passed_pointer field.
569 (assign_parm_find_data_types): Don't set it.
570 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
571 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
572 arg.pass_by_reference instead of passed_pointer.
573
574 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
575
576 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
577 into a single function_arg_info, updating its fields when we
578 apply pass-by-reference and promotion semantics. Use the
579 function_arg_info to track the mode rather than keeping it in
580 a separate local variable.
581 (initialize_argument_information): Likewise. Base the final
582 arg_to_skip on this new function_arg_info rather than creating
583 a new one from scratch.
584
585 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
586
587 * function.c (assign_parm_data_one): Replace passed_type,
588 promoted_mode and named_arg with a function_arg_info field.
589 (assign_parm_find_data_types): Remove local variables and
590 assign directly to "data". Make data->passed_mode shadow
591 data->arg.mode until promotion, then assign the promoted
592 mode to data->arg.mode.
593 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
594 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
595 (assign_parm_remove_parallels, assign_parm_setup_block_p)
596 (assign_parm_setup_block, assign_parm_setup_reg)
597 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
598 arg.mode instead of promoted_mode, arg.type instead of passed_type
599 and arg.named instead of named_arg. Use data->arg for
600 function_arg_info structures that had the field values passed_type,
601 promoted_mode and named_arg. Base other function_arg_infos on
602 data->arg, changing the necessary properties.
603
604 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
605
606 * calls.h (apply_pass_by_reference_rules): Declare.
607 * calls.c (apply_pass_by_reference_rules): New function.
608 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
609 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
610 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
611 * function.c (assign_parm_find_data_types): Likewise.
612 * var-tracking.c (prepare_call_arguments): Likewise.
613
614 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
615
616 * target.def (must_pass_in_stack): Take a function_arg_info instead
617 of a mode and a type.
618 * doc/tm.texi: Regenerate.
619 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
620 instead of a mode and a type.
621 (must_pass_in_stack_var_size_or_pad): Likewise.
622 * calls.c (must_pass_in_stack_var_size): Likewise.
623 (must_pass_in_stack_var_size_or_pad): Likewise.
624 (initialize_argument_information): Update call to
625 targetm.calls.must_pass_in_stack.
626 (must_pass_va_arg_on_stack): Likewise.
627 * function.c (assign_parm_find_entry_rtl): Likewise.
628 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
629 * config/alpha/alpha.c (alpha_function_arg): Likewise.
630 (alpha_function_arg_advance): Likewise.
631 * config/cr16/cr16.c (cr16_function_arg): Likewise.
632 (cr16_function_arg_advance): Likewise.
633 * config/cris/cris.c (cris_pass_by_reference): Likewise.
634 (cris_arg_partial_bytes): Likewise.
635 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
636 * config/lm32/lm32.c (lm32_function_arg): Likewise.
637 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
638 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
639 * config/mips/mips.c (mips_pass_by_reference): Likewise.
640 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
641 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
642 * config/sh/sh.c (sh_pass_by_reference): Likewise.
643 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
644 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
645 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
646 instead of a mode and a type.
647 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
648 (fr30_num_arg_regs): Likewise.
649 (fr30_setup_incoming_varargs): Update calls accordingly.
650 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
651 (fr30_function_arg_advance): Likewise.
652 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
653 instead of a mode and a type.
654 * config/gcn/gcn.c (num_arg_regs): Likewise.
655 (gcn_function_arg, gcn_function_arg_advance): Update calls to
656 num_arg_regs and targetm.calls.must_pass_in_stack.
657 (gcn_arg_partial_bytes): Likewise.
658 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
659 function_arg_info instead of a mode and a type.
660 (classify_argument): Update call accordingly.
661 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
662 function_arg_info instead of a mode and a type.
663 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
664 Likewise.
665 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
666 (rs6000_parm_needs_stack): Update call accordingly.
667 (setup_incoming_varargs): Likewise.
668
669 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
670
671 * target.def (callee_copies): Take a function_arg_info instead
672 of a mode, type and named flag.
673 * doc/tm.texi: Regenerate.
674 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
675 instead of a mode, type and named flag.
676 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
677 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
678 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
679 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
680 instead of a mode, type and named flag.
681 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
682 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
683 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
684 * calls.h (reference_callee_copied): Take a function_arg_info
685 instead of a mode, type and named flag.
686 * calls.c (reference_callee_copied): Likewise.
687 (initialize_argument_information): Update call accordingly.
688 (emit_library_call_value_1): Likewise.
689 * function.c (gimplify_parameters): Likewise.
690 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
691 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
692 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
693 * config/c6x/c6x.c (c6x_callee_copies): Delete.
694 (TARGET_CALLEE_COPIES): Define to
695 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
696 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
697 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
698 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
699 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
700 instead of a mode, type and named flag.
701 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
702 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
703 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
704 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
705 * config/msp430/msp430.c (msp430_callee_copies): Delete.
706 (TARGET_CALLEE_COPIES): Define to
707 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
708 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
709 instead of a mode, type and named flag.
710 * config/sh/sh.c (sh_callee_copies): Likewise.
711 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
712 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
713 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
714
715 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
716
717 * target.def (function_arg_advance): Take a function_arg_info instead
718 of a mode, type and named flag.
719 * doc/tm.texi: Regenerate.
720 * targhooks.h (default_function_arg_advance): Take a function_arg_info
721 instead of a mode, type and named flag.
722 * targhooks.c (default_function_arg_advance): Likewise.
723 * calls.c (initialize_argument_information): Update call to
724 targetm.calls.function_arg_advance.
725 (emit_library_call_value_1): Likewise.
726 * dse.c (get_call_args): Likewise.
727 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
728 * function.c (assign_parms, gimplify_parameters): Likewise.
729 * var-tracking.c (prepare_call_arguments): Likewise.
730 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
731 function_arg_info instead of a mode, type and named flag.
732 (aarch64_setup_incoming_varargs): Update call accordingly.
733 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
734 function_arg_info instead of a mode, type and named flag.
735 (alpha_setup_incoming_varargs): Update call accordingly.
736 * config/arc/arc.c (arc_function_arg_advance): Take a
737 function_arg_info instead of a mode, type and named flag.
738 (arc_setup_incoming_varargs): Update call accordingly.
739 * config/arm/arm.c (arm_function_arg_advance): Take a
740 function_arg_info instead of a mode, type and named flag.
741 (cmse_func_args_or_return_in_stack): Update call accordingly.
742 (arm_function_ok_for_sibcall): Likewise.
743 (cmse_nonsecure_call_clear_caller_saved): Likewise.
744 * config/avr/avr.c (avr_function_arg_advance): Take a
745 function_arg_info instead of a mode, type and named flag.
746 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
747 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
748 (c6x_call_saved_register_used): Update call accordingly.
749 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
750 function_arg_info instead of a mode, type and named flag.
751 * config/cris/cris.c (cris_function_arg_advance): Likewise.
752 * config/csky/csky.c (csky_function_arg_advance): Likewise.
753 (csky_setup_incoming_varargs): Update call accordingly.
754 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
755 function_arg_info instead of a mode, type and named flag.
756 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
757 * config/frv/frv.c (frv_function_arg_advance): Likewise.
758 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
759 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
760 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
761 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
762 (ix86_setup_incoming_varargs): Update call accordingly.
763 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
764 function_arg_info instead of a mode, type and named flag.
765 (ia64_setup_incoming_varargs): Update call accordingly.
766 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
767 function_arg_info instead of a mode, type and named flag.
768 (iq2000_expand_prologue): Update call accordingly.
769 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
770 function_arg_info instead of a mode, type and named flag.
771 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
772 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
773 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
774 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
775 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
776 Likewise.
777 (microblaze_expand_prologue): Update call accordingly.
778 * config/mips/mips.c (mips_function_arg_advance): Take a
779 function_arg_info instead of a mode, type and named flag.
780 (mips_setup_incoming_varargs): Update call accordingly.
781 (mips_output_args_xfer): Likewise.
782 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
783 function_arg_info instead of a mode, type and named flag.
784 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
785 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
786 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
787 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
788 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
789 (nios2_setup_incoming_varargs): Update call accordingly.
790 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
791 function_arg_info instead of a mode, type and named flag.
792 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
793 * config/pa/pa.c (pa_function_arg_advance): Likewise.
794 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
795 * config/pru/pru.c (pru_function_arg_advance): Likewise.
796 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
797 (riscv_setup_incoming_varargs): Update call accordingly.
798 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
799 function_arg_info instead of a mode, type and named flag.
800 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
801 Likewise.
802 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
803 (rs6000_parm_needs_stack): Update call accordingly.
804 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
805 instead of a mode, type and named flag.
806 * config/s390/s390.c (s390_function_arg_advance): Likewise.
807 (s390_call_saved_register_used): Update call accordingly.
808 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
809 instead of a mode, type and named flag.
810 (sh_output_mi_thunk): Update call accordingly.
811 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
812 function_arg_info instead of a mode, type and named flag.
813 * config/spu/spu.c (spu_function_arg_advance): Likewise.
814 (spu_setup_incoming_varargs): Update call accordingly.
815 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
816 function_arg_info instead of a mode, type and named flag.
817 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
818 (tilegx_setup_incoming_varargs): Update call accordingly.
819 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
820 function_arg_info instead of a mode, type and named flag.
821 (tilegx_setup_incoming_varargs): Update call accordingly.
822 * config/v850/v850.c (v850_function_arg_advance): Take a
823 function_arg_info instead of a mode, type and named flag.
824 * config/vax/vax.c (vax_function_arg_advance): Likewise.
825 * config/visium/visium.c (visium_function_arg_advance): Likewise.
826 (visium_setup_incoming_varargs): Update call accordingly.
827 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
828 function_arg_info instead of a mode, type and named flag.
829
830 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
831
832 * target.def (function_arg, function_incoming_arg): Take a
833 function_arg_info instead of a mode, tree and named flag.
834 * doc/tm.texi: Regenerate.
835 * targhooks.h (default_function_arg): Take a function_arg_info
836 instead of a mode, tree and named flag.
837 (default_function_incoming_arg): Likewise.
838 * targhooks.c (default_function_arg): Likewise.
839 (default_function_incoming_arg): Likewise.
840 * calls.h (function_arg_info::end_marker_p): New function.
841 (function_arg_info::end_marker): Likewise.
842 * calls.c (prepare_call_address, initialize_argument_information)
843 (expand_call, emit_library_call_value_1): Update calls to
844 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
845 * dse.c: Include calls.h.
846 (get_call_args): Update call to targetm.calls.function_arg.
847 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
848 * var-tracking.c (prepare_call_arguments): Likewise.
849 * function.c (assign_parm_find_entry_rtl): Update call to
850 targetm.calls.function_incoming_arg.
851 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
852 function_arg_info instead of a mode, tree and named flag.
853 * config/alpha/alpha.c (alpha_function_arg): Likewise.
854 * config/arc/arc.c (arc_function_arg): Likewise.
855 * config/arm/arm.c (arm_function_arg): Likewise.
856 (cmse_func_args_or_return_in_stack): Update call accordingly.
857 (arm_function_ok_for_sibcall): Likewise.
858 (cmse_nonsecure_call_clear_caller_saved): Likewise.
859 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
860 instead of a mode, tree and named flag.
861 * config/bfin/bfin.c (bfin_function_arg): Likewise.
862 * config/c6x/c6x.c (c6x_function_arg): Likewise.
863 (c6x_call_saved_register_used): Update call accordingly.
864 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
865 instead of a mode, tree and named flag.
866 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
867 (cris_function_arg_1): Likewise.
868 * config/csky/csky.c (csky_function_arg): Likewise.
869 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
870 * config/fr30/fr30.c (fr30_function_arg): Likewise.
871 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
872 (frv_function_arg_1): Likewise.
873 * config/ft32/ft32.c (ft32_function_arg): Likewise.
874 * config/gcn/gcn.c (gcn_function_arg): Likewise.
875 * config/h8300/h8300.c (h8300_function_arg): Likewise.
876 * config/i386/i386.c (ix86_function_arg): Likewise.
877 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
878 (ia64_function_arg_1): Likewise.
879 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
880 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
881 accordingly.
882 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
883 instead of a mode, tree and named flag.
884 * config/m32c/m32c.c (m32c_function_arg): Likewise.
885 * config/m32r/m32r.c (m32r_function_arg): Likewise.
886 * config/m68k/m68k.c (m68k_function_arg): Likewise.
887 * config/mcore/mcore.c (mcore_function_arg): Likewise.
888 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
889 (microblaze_expand_prologue): Update call accordingly.
890 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
891 instead of a mode, tree and named flag.
892 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
893 (mmix_function_arg_1): Likewise.
894 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
895 * config/moxie/moxie.c (moxie_function_arg): Likewise.
896 * config/msp430/msp430.c (msp430_function_arg): Likewise.
897 * config/nds32/nds32.c (nds32_function_arg): Likewise.
898 * config/nios2/nios2.c (nios2_function_arg): Likewise.
899 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
900 (nvptx_function_incoming_arg): Likewise.
901 * config/or1k/or1k.c (or1k_function_arg): Likewise.
902 * config/pa/pa.c (pa_function_arg): Likewise.
903 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
904 * config/pru/pru.c (pru_function_arg): Likewise.
905 * config/riscv/riscv.c (riscv_function_arg): Likewise.
906 * config/rl78/rl78.c (rl78_function_arg): Likewise.
907 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
908 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
909 (rs6000_parm_needs_stack): Update call accordingly.
910 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
911 instead of a mode, tree and named flag.
912 * config/s390/s390.c (s390_function_arg): Likewise.
913 (s390_call_saved_register_used): Update call accordingly.
914 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
915 instead of a mode, tree and named flag.
916 (sh_output_mi_thunk): Update call accordingly.
917 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
918 (sparc_function_incoming_arg): Take a function_arg_info instead of
919 a mode, tree and named flag.
920 * config/spu/spu.c (spu_function_arg): Likewise.
921 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
922 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
923 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
924 * config/v850/v850.c (v850_function_arg): Likewise.
925 * config/vax/vax.c (vax_function_arg): Likewise.
926 * config/visium/visium.c (visium_function_arg): Likewise.
927 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
928 (xtensa_function_incoming_arg): Likewise.
929
930 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
931
932 * target.def (setup_incoming_varargs): Take a function_arg_info
933 instead of a mode and tree.
934 * doc/tm.texi: Regenerate.
935 * targhooks.h (default_setup_incoming_varargs): Take a
936 function_arg_info instead of a mode and tree.
937 * targhooks.c (default_setup_incoming_varargs): Likewise.
938 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
939 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
940 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
941 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
942 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
943 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
944 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
945 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
946 Likewise.
947 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
948 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
949 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
950 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
951 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
952 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
953 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
954 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
955 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
956 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
957 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
958 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
959 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
960 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
961 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
962 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
963 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
964 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
965 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
966 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
967 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
968 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
969 * function.c (assign_parms_setup_varargs): Update call to
970 targetm.calls.setup_incoming_varargs.
971
972 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
973
974 * target.def (pass_by_reference): Take a function_arg_info instead
975 of a mode, type and named flag.
976 * doc/tm.texi: Regenerate.
977 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
978 accordingly.
979 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
980 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
981 function_arg_info instead of a mode, type and named flag.
982 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
983 * calls.h (pass_by_reference): Take a function_arg_info instead of a
984 mode, type and named flag.
985 * calls.c (pass_by_reference): Likewise.
986 (pass_va_arg_by_reference): Update call accordingly.
987 (initialize_argument_information): Likewise.
988 (emit_library_call_value_1): Likewise.
989 * function.c (assign_parm_find_data_types): Likewise.
990 * var-tracking.c (prepare_call_arguments): Likewise.
991 * stor-layout.c: Include calls.h.
992 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
993 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
994 function_arg_info instead of a mode, type and named flag.
995 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
996 * config/arc/arc.c (arc_pass_by_reference): Likewise.
997 * config/arm/arm.c (arm_pass_by_reference): Likewise.
998 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
999 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
1000 (c6x_call_saved_register_used): Update call to pass_by_reference.
1001 * config/cris/cris.c (cris_pass_by_reference): Take a
1002 function_arg_info instead of a mode, type and named flag.
1003 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
1004 function_arg_info instead of a mode, type and named flag.
1005 (epiphany_arg_partial_bytes): Update call accordingly.
1006 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
1007 function_arg_info instead of a mode, type and named flag.
1008 (ft32_arg_partial_bytes): Update call accordingly.
1009 * config/i386/i386.c (ix86_pass_by_reference): Take a
1010 function_arg_info instead of a mode, type and named flag.
1011 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1012 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
1013 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
1014 (m32r_return_in_memory): Update call accordingly.
1015 * config/mips/mips.c (mips_pass_by_reference): Take a
1016 function_arg_info instead of a mode, type and named flag.
1017 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
1018 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1019 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
1020 (moxie_arg_partial_bytes): Update call accordingly.
1021 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
1022 function_arg_info instead of a mode, type and named flag.
1023 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
1024 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
1025 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1026 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
1027 (riscv_return_in_memory): Update call accordingly.
1028 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
1029 function_arg_info instead of a mode, type and named flag.
1030 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
1031 (rs6000_parm_needs_stack): Update call to pass_by_reference.
1032 * config/s390/s390.c (s390_pass_by_reference): Take a
1033 function_arg_info instead of a mode, type and named flag.
1034 (s390_call_saved_register_used): Update call accordingly.
1035 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
1036 instead of a mode, type and named flag.
1037 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
1038 * config/spu/spu.c (spu_pass_by_reference): Likewise.
1039 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
1040 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
1041 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1042 * config/visium/visium.c (visium_pass_by_reference): Likewise.
1043
1044 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1045
1046 * target.def (arg_partial_bytes): Take a function_arg_info instead
1047 of a mode, type and named flag.
1048 * doc/tm.texi: Regenerate.
1049 * target.h (function_arg_info): Declare.
1050 * calls.h (function_arg_info): New class.
1051 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1052 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
1053 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1054 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
1055 * calls.c (initialize_argument_information): Update call to
1056 targetm.calls.partial_bytes.
1057 (emit_library_call_value_1): Likewise.
1058 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1059 * function.c (assign_parm_find_entry_rtl): Likewise.
1060 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
1061 function_arg_info instead of a mode, type and named flag.
1062 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
1063 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
1064 (cmse_func_args_or_return_in_stack): Update accordingly.
1065 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
1066 function_arg_info instead of a mode, type and named flag.
1067 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
1068 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
1069 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
1070 * config/fr30/fr30.c: Include calls.h.
1071 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
1072 type and named flag.
1073 * config/frv/frv.c: Include calls.h.
1074 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
1075 type and named flag.
1076 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
1077 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
1078 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
1079 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
1080 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
1081 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
1082 * config/microblaze/microblaze.c (function_arg_partial_bytes):
1083 Likewise.
1084 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
1085 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
1086 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
1087 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
1088 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
1089 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
1090 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
1091 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
1092 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
1093 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
1094 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
1095 (rs6000_parm_needs_stack): Update call accordingly.
1096 * config/sh/sh.c (sh_arg_partial_bytes): Take a
1097 function_arg_info instead of a mode, type and named flag.
1098 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
1099 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
1100
1101 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1102
1103 * calls.h (must_pass_va_arg_in_stack): Declare.
1104 * calls.c (must_pass_va_arg_in_stack): New function.
1105 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
1106 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1107 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
1108 Likewise.
1109 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1110
1111 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1112
1113 * calls.h (pass_va_arg_by_reference): Declare.
1114 * calls.c (pass_va_arg_by_reference): New function.
1115 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
1116 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
1117 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
1118 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1119 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1120 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
1121 (mips_gimplify_va_arg_expr): Likewise.
1122 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
1123 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1124 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
1125 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1126 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1127 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1128 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
1129 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
1130 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
1131 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1132 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
1133
1134 2019-08-20 Richard Biener <rguenther@suse.de>
1135
1136 PR target/91498
1137 * config/i386/i386-features.c (general_scalar_chain::convert_op):
1138 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
1139 (convert_scalars_to_vector): Add timode_p parameter and use it
1140 to guard TImode-only operation.
1141 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
1142 (pass_stv::execute): Pass down timode_p.
1143
1144 2019-08-20 Lili Cui <lili.cui@intel.com>
1145
1146 * common/config/i386/i386-common.c
1147 (processor_names): Add tigerlake and cooperlake.
1148 (processor_alias_table): Add tigerlake and cooperlake.
1149 * config.gcc: Add -march=tigerlake and cooperlake.
1150 * config/i386/driver-i386.c
1151 (host_detect_local_cpu): Detect tigerlake and cooperlake.
1152 Add "has_avx" to classify processor.
1153 * config/i386/i386-builtins.c (processor_model) :
1154 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
1155 (arch_names_table): Add tigerlake and cooperlake.
1156 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
1157 and PROCESSOR_COOPERLAKE.
1158 * config/i386/i386-c.c
1159 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
1160 * config/i386/i386-options.c
1161 (m_TIGERLAKE) : Define.
1162 (m_COOPERLAKE) : Ditto.
1163 (m_CORE_AVX512): Ditto.
1164 (processor_cost_table): Add cascadelake.
1165 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
1166 * config/i386/i386.h
1167 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
1168 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1169 (PTA_MOVDIRI): Ditto.
1170 (PTA_MOVDIR64B): Ditto.
1171 (PTA_COOPERLAKE) : Ditto.
1172 (PTA_TIGERLAKE) : Ditto.
1173 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1174 * doc/extend.texi: Add tigerlake and cooperlake.
1175 * doc/invoke.texi: Add tigerlake and cooperlake.
1176
1177 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
1178
1179 * doc/install.texi (Specific, alpha): Remove note to use
1180 binutils 2.11.2 or later.
1181
1182 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1183
1184 PR middle-end/89544
1185 * function.c (assign_parm_find_stack_rtl): Use larger alignment
1186 when possible.
1187
1188 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
1189
1190 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
1191 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
1192 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
1193 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
1194 * config/aarch64/constraints.md (Dt): New constraint
1195 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
1196
1197 2019-08-19 Richard Biener <rguenther@suse.de>
1198
1199 PR tree-optimization/91403
1200 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
1201 cases we can handle with tail-recursion...
1202 (follow_ssa_edge_expr): ... here. Do so.
1203
1204 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
1205
1206 PR target/91441
1207 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
1208 implemented for -fsanitize=kernel-address, and merge check logic
1209 with -fsanitize=address.
1210
1211 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
1212
1213 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
1214 for cpu and machine. Factor 64/32b builtins.
1215
1216 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
1217
1218 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
1219 gone, point to sourceforge.net.
1220
1221 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1222
1223 * doc/ux.texi (User Experience Guidelines): Update reference.
1224
1225 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1226
1227 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
1228 not LGPL".
1229
1230 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
1231
1232 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
1233 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
1234
1235 2019-08-16 Martin Sebor <msebor@redhat.com>
1236
1237 * tree.def (TYPE_SIZE): Clarify.
1238 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
1239
1240 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1241
1242 PR tree-optimization/91109
1243 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
1244 * lra.c (lra): Use lra_need_for_scratch_reg_p.
1245 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
1246
1247 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
1248
1249 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
1250 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
1251 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
1252 (uavg<mode>3_ceil): New expander.
1253 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
1254 mode iterator when creating CONST1_RTX.
1255 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
1256 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
1257 mode iterator for const1_operand predicate.
1258
1259 2019-08-16 Richard Biener <rguenther@suse.de>
1260
1261 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
1262 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
1263 follow_ssa_edge.
1264 (follow_ssa_edge_in_condition_phi_branch): Likewise.
1265 (analyze_evolution_in_loop): Likewise.
1266 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
1267 (follow_ssa_edge_expr): ... here. Refactor code.
1268
1269 2019-08-16 Richard Biener <rguenther@suse.de>
1270
1271 PR target/91469
1272 * config/i386/i386-features.c
1273 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
1274
1275 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1276
1277 PR other/91255
1278 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
1279 only if subst_name matches curr_attr string.
1280
1281 2019-08-16 Richard Biener <rguenther@suse.de>
1282
1283 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
1284 stmt at gsi_p, instead replace it with a NOP removed later.
1285 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
1286 that became dead because of that.
1287
1288 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
1289
1290 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
1291 for which we can't represent a range.
1292 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
1293 set_varying.
1294 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
1295 Set VR_UNDEFINED if type is not supported.
1296 * tree-ssanames.c (get_range_info): Pass type to set_varying.
1297 * tree-vrp.c (value_range_base::check): Assert that a varying has
1298 min/max set.
1299 (value_range_base::equal_p): Early bail for undefines.
1300 (value_range_base::set_varying): Accept a type.
1301 (value_range::set_varying): Same.
1302 (value_range_base::type): VARYING can have a type, while UNDEFINE
1303 is typeless.
1304 (value_range_base::dump): Print type for VARYING nodes.
1305 (value_range_base::set): Add type to VARYING.
1306 (extract_range_from_multiplicative_op): Pass type to set_varying.
1307 (extract_range_from_binary_expr): Same.
1308 (value_range_base::intersect_helper): Same.
1309 (value_range_base::union_helper): Same.
1310 (value_range_base::normalize_symbolics): Same.
1311 (determine_value_range_1): Same.
1312 * tree-vrp.h (class value_range_base): Add type to set_varying.
1313 Add prototype for dump(void).
1314 Add prototype for supports_type_p.
1315 (class value_range): Add type to set_varying.
1316 Add prototype for dump(void).
1317 * vr-values.c (set_value_range_to_truthvalue): Pass type to
1318 set_varying.
1319 (vr_values::get_lattice_entry): Set varying even if propagation
1320 finished.
1321 Pass type to set_varying.
1322 (vr_values::get_value_range): Remove vr_const_varying.
1323 Reallocate the lattice if needed.
1324 (vr_values::update_value_range): Pass type to set_varying.
1325 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1326 (vr_values::extract_range_from_binary_expr): Same.
1327 (vr_values::extract_range_from_unary_expr): Same.
1328 (vr_values::extract_range_from_cond_expr): Same.
1329 (vr_values::check_for_binary_op_overflow): Same.
1330 (vr_values::extract_range_basic): Same.
1331 (vr_values::extract_range_from_assignment): Same.
1332 (vr_values::vr_values): Increase size of num_vr_values.
1333 (vr_values::extract_range_from_phi_node): Pass type to
1334 set_varying.
1335
1336 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
1337
1338 PR target/90878
1339 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
1340 for costs of hard register moves.
1341 (ix86_register_move_cost): Likewise.
1342 * config/i386/i386.h (processor_costs): Move costs of hard
1343 register moves to hard_register. Add int_load, int_store,
1344 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1345 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
1346 for costs of RTL expressions.
1347 * config/i386/x86-tune-costs.h: Move costs of hard register
1348 moves to hard_register. Duplicate int_load, int_store,
1349 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1350 sse_load, sse_store for costs of RTL expressions.
1351
1352 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1353
1354 * target.def (setup_incoming_vararg_bounds): Remove.
1355 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
1356 * doc/tm.texi: Regenerate.
1357 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
1358 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
1359 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
1360 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
1361
1362 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1363
1364 MSP430: Fix lines over 80 characters long in
1365 config/msp430/*.{c,h} files
1366
1367 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
1368 specifier in string.
1369 (msp430_select_hwmult_lib): Split line more than 80 characters long.
1370 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
1371 redundant old comment.
1372 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
1373 Split line more than 80 characters long.
1374 * config/msp430/msp430.c (msp430_option_override): Likewise.
1375 (msp430_return_in_memory): Likewise.
1376 (msp430_gimplify_va_arg_expr): Likewise.
1377 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1378 (msp430_legitimate_constant): Likewise.
1379 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
1380 (msp430_attr): Likewise.
1381 (msp430_data_attr): Likewise.
1382 (msp430_start_function): Likewise.
1383 (gen_prefix): Likewise.
1384 (msp430_init_sections): Likewise.
1385 (msp430_select_section): Likewise.
1386 (msp430_function_section): Likewise.
1387 (msp430_unique_section): Likewise.
1388 (msp430_output_aligned_decl_common): Likewise.
1389 (msp430_do_not_relax_short_jumps): Likewise.
1390 (msp430_init_builtins): Likewise.
1391 (msp430_expand_delay_cycles): Likewise.
1392 (msp430_expand_prologue): Likewise.
1393 (msp430_expand_epilogue): Likewise.
1394 (msp430_expand_helper): Likewise.
1395 (msp430_split_movsi): Likewise.
1396 (msp430_print_operand): Likewise.
1397 (msp430_return_addr_rtx): Likewise.
1398 (msp430x_extendhisi): Likewise.
1399 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
1400 (ASM_SPEC): Likewise.
1401 Remove very obvious comments.
1402 (LIB_SPEC): Split line more than 80 characters long.
1403 (EH_RETURN_HANDLER_RTX): Likewise.
1404 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1405
1406 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1407
1408 MSP430: Fix whitespace errors and incorrect indentation in
1409 config/msp430/*.{c,h} files
1410
1411 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
1412 (msp430_select_hwmult_lib): Likewise.
1413 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
1414 (msp430_extract_mcu_data): Likewise.
1415 (struct t_msp430_mcu_data): Likewise.
1416 * config/msp430/msp430.c (struct machine_function): Remove whitespace
1417 before left square bracket.
1418 (msp430_option_override): Fix indentation.
1419 (msp430_hard_regno_nregs_with_padding): Likewise.
1420 (msp430_initial_elimination_offset): Likewise.
1421 (msp430_special_register_convention_p): Remove whitespace before left
1422 square bracket and after exclamation mark.
1423 (msp430_evaluate_arg): Likewise.
1424 (msp430_callee_copies): Fix indentation.
1425 (msp430_gimplify_va_arg_expr): Likewise.
1426 (msp430_function_arg_advance): Remove whitespace before left square
1427 bracket.
1428 (reg_ok_for_addr): Likewise.
1429 (msp430_preserve_reg_p): Likewise.
1430 (msp430_compute_frame_info): Likewise.
1431 (msp430_asm_output_addr_const_extra): Add space between function name
1432 and open parenthesis.
1433 (has_section_name): Fix indentation.
1434 (msp430_attr): Remove trailing whitespace.
1435 (msp430_section_attr): Likewise.
1436 (msp430_data_attr): Likewise.
1437 (struct msp430_attribute_table): Fix comment and whitespace.
1438 (msp430_start_function): Remove whitespace before left square bracket.
1439 Add space between function name and open parenthesis.
1440 (msp430_select_section): Remove trailing whitespace.
1441 (msp430_section_type_flags): Remove trailing whitespace.
1442 (msp430_unique_section): Remove space before closing parenthesis.
1443 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
1444 (msp430_builtins): Remove whitespace before left square bracket.
1445 (msp430_init_builtins): Fix indentation.
1446 (msp430_expand_prologue): Remove whitespace before left square bracket.
1447 Remove space before closing parenthesis.
1448 (msp430_expand_epilogue): Remove whitespace before left square bracket.
1449 (msp430_split_movsi): Remove space before closing parenthesis.
1450 (helper_function_name_mappings): Fix indentation.
1451 (msp430_use_f5_series_hwmult): Fix whitespace.
1452 (use_32bit_hwmult): Likewise.
1453 (msp430_no_hwmult): Likewise.
1454 (msp430_output_labelref): Remove whitespace before left square bracket.
1455 (msp430_print_operand_raw): Likewise.
1456 (msp430_print_operand_addr): Likewise.
1457 (msp430_print_operand): Add two spaces after '.' in comment.
1458 Fix trailing whitespace.
1459 (msp430x_extendhisi): Fix indentation.
1460 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
1461 tab.
1462 (PC_REGNUM): Likewise.
1463 (STACK_POINTER_REGNUM): Likewise.
1464 (CC_REGNUM): Likewise.
1465
1466 2019-08-15 Richard Biener <rguenther@suse.de>
1467
1468 PR target/91454
1469 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
1470 helper.
1471 (general_scalar_chain::make_vector_copies): Use it.
1472
1473 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1474
1475 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
1476
1477 2019-08-15 Martin Liska <mliska@suse.cz>
1478
1479 * tree-ssa-dce.c (propagate_necessity): We can't reach now
1480 operators with no arguments.
1481 (eliminate_unnecessary_stmts): Likewise here.
1482
1483 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
1484
1485 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
1486 <case COMPARE>: Revert 2019-08-14 change.
1487 (convertible_comparison_p): Revert 2019-08-14 change. Return false
1488 for (TARGET_64BIT || mode != DImode).
1489
1490 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
1491
1492 * tree-vrp.c (value_range_base::set): Merge in code from
1493 value_range_base::set_and_canonicalize.
1494 Enforce canonicalization at set time.
1495 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
1496 (value_range_base::set_undefined): Inline call to set().
1497 (value_range_base::set_varying): Same.
1498 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
1499 (vrp_val_max): New argument handle_pointers.
1500 (vrp_val_min): Same.
1501 (ranges_from_anti_range): Same.
1502 (extract_range_into_wide_ints): Use tree argument instead of sign
1503 and precision.
1504 (extract_range_from_multiplicative_op): Take in tree type instead
1505 of precision and sign. Adapt function for canonicalized ranges.
1506 (extract_range_from_binary_expr): Pass type to
1507 extract_range_from_multiplicative_op.
1508 Adapt for canonicalized ranges.
1509 (extract_range_from_unary_expr): Same.
1510 (value_range_base::intersect_helper): Adjust for canonicalized
1511 ranges.
1512 (value_range_base::union_helper): Same.
1513 (value_range_base::normalize_symbolics): New.
1514 * tree-vrp.h (class value_range_base): Remove
1515 set_and_canonicalize.
1516 New prototype for normalize_symbolics.
1517 (class value_range): Remove set_and_canonicalize.
1518 (vrp_val_min): Adjust prototype.
1519 (vrp_val_max): Same.
1520 * vr-values.c
1521 (vr_values::extract_range_for_var_from_comparison_expr): Call set
1522 instead of set_and_canonicalize.
1523
1524 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1525
1526 PR middle-end/91444
1527 * tree-vect-stmts.c (vectorizable_call): Check that the function
1528 is a BUILT_IN_MD function before passing it to
1529 targetm.vectorize.builtin_md_vectorized_function.
1530
1531 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1532
1533 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
1534 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
1535 (aarch64_select_early_remat_modes): Use it.
1536
1537 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1538
1539 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
1540 16 for SVE predicates even if they are fixed-length.
1541
1542 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1543
1544 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
1545 operand order match the MOV /Z alias.
1546
1547 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1548
1549 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
1550 the vector pattern as an aarch64_svpattern argument. Update the
1551 overloaded caller accordingly.
1552 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1553 (aarch64_output_sve_vector_inc_dec): Likewise.
1554
1555 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1556
1557 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1558 multiplication case, try to compute VG * (lowest set bit) directly
1559 rather than always basing the multiplication on VG. Use
1560 expand_mult for the multiplication if we can.
1561
1562 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1563
1564 * config/aarch64/aarch64-protos.h
1565 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1566 (aarch64_sve_inc_dec_immediate_p): Rename to...
1567 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1568 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1569 (aarch64_output_sve_scalar_inc_dec): Declare.
1570 (aarch64_output_sve_inc_dec_immediate): Rename to...
1571 (aarch64_output_sve_vector_inc_dec): ...this.
1572 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1573 (aarch64_output_sve_scalar_inc_dec): New functions.
1574 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1575 arguments. Only handle true ADDVL and ADDPL instructions;
1576 don't emit an INC or DEC.
1577 (aarch64_sve_inc_dec_immediate_p): Rename to...
1578 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1579 (aarch64_output_sve_inc_dec_immediate): Rename to...
1580 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1581 aarch64_sve_vector_inc_dec_immediate_p.
1582 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1583 (aarch64_sve_plus_immediate): New predicates.
1584 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1585 rather than aarch64_sve_addvl_addpl_immediate.
1586 (aarch64_sve_inc_dec_immediate): Rename to...
1587 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1588 aarch64_sve_vector_inc_dec_immediate_p.
1589 (aarch64_sve_add_operand): Update accordingly.
1590 * config/aarch64/constraints.md (Uai): New constraint.
1591 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1592 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1593 operand into a register if it satisfies aarch64_sve_plus_immediate.
1594 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1595 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1596 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1597 aarch64_output_sve_vector_inc_dec instead of
1598 aarch64_output_sve_inc_dec_immediate.
1599
1600 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1601
1602 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1603 (UNSPEC_REVW): New constants.
1604 (elem_bits): New mode attribute.
1605 (SVE_INT_UNARY): New int iterator.
1606 (optab): Handle UNSPEC_REV[BHW].
1607 (sve_int_op): New int attribute.
1608 (min_elem_bits): Handle VNx16QI and the predicate modes.
1609 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1610 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1611 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1612 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1613 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1614 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1615 unspecs based on the total width of the reversed data.
1616 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1617 reinterpret followed by a subreg on big-endian targets.
1618
1619 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1620 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1621
1622 * config/aarch64/aarch64-sve.md
1623 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1624 alternatives in which one of the inputs is in the same register
1625 as the output.
1626
1627 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1628
1629 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1630 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1631
1632 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1633
1634 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1635 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1636
1637 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1638 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1639
1640 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1641 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1642 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1643
1644 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1645 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1646
1647 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1648 Add an alternative that uses reversed shifts.
1649
1650 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1651
1652 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1653 struct.
1654
1655 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1656
1657 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1658 a commutativity marker.
1659
1660 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1661 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1662
1663 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1664 (aarch64_prepare_sve_cond_int_fma): Declare.
1665 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1666 (aarch64_prepare_sve_int_fma): New functions.
1667 (aarch64_prepare_sve_cond_int_fma): Likewise.
1668 * config/aarch64/aarch64-sve.md
1669 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1670 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1671 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1672 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1673 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1674 (*madd<mode>): Rename to...
1675 (*fma<mode>4): ...this.
1676 (*msub<mode>): Rename to...
1677 (*fnma<mode>4): ...this.
1678
1679 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1680 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1681
1682 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1683 Print 2.0 naturally.
1684 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1685 * config/aarch64/predicates.md
1686 (aarch64_sve_float_negated_arith_immediate): New predicate,
1687 renamed from aarch64_sve_float_arith_with_sub_immediate.
1688 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1689 positive and negative constants.
1690 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1691 or an aarch64_sve_float_arith_with_sub_immediate.
1692 * config/aarch64/constraints.md (vsN): Use
1693 aarch64_sve_float_negated_arith_immediate.
1694 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1695 iterator.
1696 (sve_pred_fp_rhs2_immediate): New int attribute.
1697 * config/aarch64/aarch64-sve.md
1698 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1699 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1700 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1701 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1702 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1703 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1704
1705 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1706 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1707
1708 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1709 (*aarch64_cond_abd<SVE_F:mode>_3)
1710 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1711
1712 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1713 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1714
1715 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1716 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1717
1718 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1719 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1720
1721 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1722 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1723 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1724 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1725 optabs.
1726 * optabs.h (create_convert_operand_from): Expand comment.
1727 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1728 when mapping scalar rtxes to vector operands.
1729 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1730 ashiftrt and lshiftrt.
1731 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1732 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1733 (*cond_<optab><mode>_any_const): New patterns.
1734
1735 2019-08-15 Martin Liska <mliska@suse.cz>
1736
1737 PR ipa/91438
1738 * cgraph.c (cgraph_node::remove): When setting
1739 n->origin = NULL for all nested functions, reset
1740 also next_nested.
1741
1742 2019-08-15 Martin Liska <mliska@suse.cz>
1743
1744 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1745 and next_nested.
1746
1747 2019-08-15 Martin Liska <mliska@suse.cz>
1748
1749 PR ipa/91404
1750 * passes.c (order): Remove.
1751 (uid_hash_t): Likewise).
1752 (remove_cgraph_node_from_order): Remove from set
1753 of pointers (cgraph_node *).
1754 (insert_cgraph_node_to_order): New.
1755 (duplicate_cgraph_node_to_order): New.
1756 (do_per_function_toporder): Register all 3 cgraph hooks.
1757 Skip removed_nodes now as we know about all of them.
1758
1759 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1760
1761 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1762 <case E_V8QImode>: Use vector_set path for
1763 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1764 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1765 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1766
1767 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1768
1769 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1770
1771 2019-08-14 Martin Sebor <msebor@redhat.com>
1772
1773 PR tree-optimization/91294
1774 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1775 source length as exact.
1776
1777 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1778
1779 * doc/extend.texi: Add "noinit" attribute documentation.
1780 * doc/sourcebuild.texi: Add noinit effective target documentation.
1781 * varasm.c (default_section_type_flags): Add support for "noinit"
1782 section.
1783 (default_elf_select_section): Add support for "noinit" attribute.
1784 * config/msp430/msp430.c (msp430_attribute_table): Remove
1785 "noinit" entry.
1786
1787 2019-08-14 Richard Biener <rguenther@suse.de>
1788 Uroš Bizjak <ubizjak@gmail.com>
1789
1790 PR target/91154
1791 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1792 mode arguments.
1793 (scalar_chain::smode): New member.
1794 (scalar_chain::vmode): Likewise.
1795 (dimode_scalar_chain): Rename to...
1796 (general_scalar_chain): ... this.
1797 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1798 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1799 base with TImode and V1TImode.
1800 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1801 (general_scalar_chain::vector_const_cost): Adjust for SImode
1802 chains.
1803 (general_scalar_chain::compute_convert_gain): Likewise. Add
1804 {S,U}{MIN,MAX} support.
1805 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1806 (general_scalar_chain::make_vector_copies): Likewise. Handle
1807 non-DImode chains appropriately.
1808 (general_scalar_chain::convert_reg): Likewise.
1809 (general_scalar_chain::convert_op): Likewise.
1810 (general_scalar_chain::convert_insn): Likewise. Add
1811 fatal_insn_not_found if the result is not recognized.
1812 (convertible_comparison_p): Pass in the scalar mode and use that.
1813 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1814 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1815 (scalar_to_vector_candidate_p): Remove by inlining into single
1816 caller.
1817 (general_remove_non_convertible_regs): Rename from
1818 dimode_remove_non_convertible_regs.
1819 (remove_non_convertible_regs): Remove by inlining into single caller.
1820 (convert_scalars_to_vector): Handle SImode and DImode chains
1821 in addition to TImode chains.
1822 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1823 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1824 (*<maxmin>di3_doubleword): Likewise.
1825
1826 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1827 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1828
1829 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1830 (*cond_bic<mode>_any): New patterns.
1831
1832 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1833
1834 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1835 take the equivalent mask, as well as a bit count.
1836 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1837 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1838 (aarch64_sve_pred_and_operand): New predicates.
1839 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1840 code attribute.
1841 * config/aarch64/aarch64-sve.md
1842 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1843 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1844
1845 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1846
1847 * config/aarch64/aarch64-sve.md
1848 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1849 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1850 New patterns.
1851
1852 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1853 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1854
1855 * config/aarch64/aarch64-sve.md
1856 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1857 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1858
1859 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1860 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1861
1862 * config/aarch64/aarch64-sve.md
1863 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1864 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1865
1866 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1867
1868 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1869 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1870 New pattern.
1871
1872 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1873 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1874
1875 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1876
1877 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1878 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1879
1880 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
1881 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
1882 (aarch64_print_operand): Add support for %I.
1883 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
1884 Bitcast floating-point constants to the corresponding integer constant.
1885 (aarch64_float_const_representable_p): Handle vectors as well
1886 as scalars.
1887 (aarch64_expand_sve_vcond): Make sure that the operands are valid
1888 for the new vcond_mask_<mode><vpred> expander.
1889 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
1890 test aarch64_float_const_representable_p.
1891 (aarch64_sve_reg_or_dup_imm): New predicate.
1892 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
1893 gen_vcond_mask_<mode><vpred> instead of
1894 gen_aarch64_sve_dup<mode>_const.
1895 (vcond_mask_<mode><vpred>): Turn into a define_expand that
1896 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
1897 for operands 1 and 2 respectively. Force operand 2 into a
1898 register if operand 1 is a register. Fold old define_insn...
1899 (aarch64_sve_dup<mode>_const): ...and this define_insn...
1900 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
1901 floating-point constants that can be moved as integers. Add
1902 alternatives for MOV /M and FMOV /M.
1903 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
1904 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
1905 1 and 2 respectively.
1906 * config/aarch64/constraints.md (Ufc): Handle vectors as well
1907 as scalars.
1908 (vss): New constraint.
1909
1910 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1911
1912 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
1913 (aarch64_sve_float_maxmin_operand): New predicates.
1914 * config/aarch64/constraints.md (vsB): New constraint.
1915 (vsM): Fix typo.
1916 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
1917 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
1918 UNSPEC_COND_FMINNM.
1919 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
1920 Use aarch64_sve_float_maxmin_operand for operand 2.
1921 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
1922 Add alternatives for the constant forms.
1923
1924 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1925
1926 * config/aarch64/constraints.md (vsb): New constraint.
1927 (vsm): Generalize description.
1928 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
1929 iterator.
1930 (sve_imm_con): Handle smax, smin, umax and umin.
1931 (sve_imm_prefix): New code attribute.
1932 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
1933 (aarch64_sve_vsb_operand): New predicates.
1934 (aarch64_sve_mul_immediate): Rename to...
1935 (aarch64_sve_vsm_immediate): ...this.
1936 (aarch64_sve_mul_operand): Rename to...
1937 (aarch64_sve_vsm_operand): ...this.
1938 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
1939 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
1940 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
1941 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
1942 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
1943 add movprfx support for the immediate alternatives.
1944 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
1945 of the above.
1946 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
1947 for operand 3.
1948
1949 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1950
1951 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
1952 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
1953 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
1954
1955 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1956
1957 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
1958 (optab, sve_int_op): Handle them.
1959 * config/aarch64/aarch64-sve.md: Expand comment.
1960
1961 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1962
1963 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
1964 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
1965 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
1966
1967 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1968
1969 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
1970 (aarch64_expand_sve_const_pred_trn): New functions.
1971 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
1972 use the above functions when the parameter is true.
1973 (aarch64_expand_sve_const_pred): Update call accordingly.
1974 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
1975 Rename to...
1976 (@aarch64_sve_<perm_insn><mode>): ...this.
1977
1978 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1979
1980 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
1981 Declare.
1982 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
1983 (aarch64_sve_emit_int_cmp): New functions.
1984 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
1985 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
1986 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
1987 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
1988 (UNSPEC_PRED_Z): New unspec.
1989 (set_clobber_cc_nzc): Delete.
1990 * config/aarch64/aarch64-sve.md: Add a block comment about
1991 UNSPEC_PRED_Z.
1992 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
1993 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
1994 the old pattern with that name. Use UNSPEC_PRED_Z instead of
1995 UNSPEC_MERGE_PTRUE.
1996 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
1997 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
1998 check for compatible predicates.
1999 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
2000 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
2001 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
2002 comparisons above.
2003
2004 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2005
2006 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
2007 * config/aarch64/aarch64-sve.md: Add a section describing it.
2008 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
2009 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
2010 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
2011 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
2012 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
2013 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
2014 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
2015 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
2016 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
2017 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
2018 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
2019 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
2020 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
2021 (aarch64_evpc_rev_local): Update accordingly.
2022
2023 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2024
2025 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
2026 iterators.
2027 (SVE_BHSI, SVE_SDI): Tweak comment.
2028 (SVE_HSDI): Likewise. Fix definition.
2029 (SVE_SDF): New mode iterator.
2030 (elem_bits): New mode attribute.
2031 (SVE_COND_FCVT): New int iterator.
2032 * config/aarch64/aarch64-sve.md
2033 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
2034 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
2035 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
2036 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2037 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2038 ...these new patterns.
2039 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
2040 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
2041 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
2042 Merge into...
2043 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
2044 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
2045 ...these new patterns.
2046 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
2047 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
2048 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
2049 ...this new pattern.
2050 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
2051 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
2052 ...this new pattern.
2053 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
2054
2055 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2056
2057 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
2058 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
2059 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
2060 unspecs.
2061 (optab, su): Handle them.
2062 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
2063 * config/aarch64/aarch64-sve.md
2064 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
2065 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
2066 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
2067 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
2068 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
2069 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
2070 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
2071 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
2072 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
2073 FIXUORS.
2074 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
2075 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
2076 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
2077 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
2078 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
2079 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
2080 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
2081 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
2082 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
2083 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
2084 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
2085 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
2086 of UNSPEC_FLOAT_CONVERT.
2087 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
2088 aarch64_sve_extend<mode><Vwide>2.
2089
2090 2019-08-14 Richard Biener <rguenther@suse.de>
2091
2092 PR target/91154
2093 * config/i386/i386-features.c
2094 (dimode_scalar_chain::compute_convert_gain): Compute and dump
2095 individual instruction gain. Fix reg-reg copy GRP cost. Use
2096 ix86_cost->sse_op for vector instruction costs.
2097
2098 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2099
2100 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
2101 (cmp_op): Handle it.
2102 (SVE_COND_FP_CMP): Rename to...
2103 (SVE_COND_FP_CMP_I0): ...this.
2104 (SVE_FP_CMP): Remove.
2105 * config/aarch64/aarch64-sve.md
2106 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
2107 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
2108 using unspecs to represent the comparison.
2109 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
2110 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
2111 accordingly.
2112 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
2113 (aarch64_unspec_cond_code): Move after integer code. Handle
2114 UNORDERED.
2115 (aarch64_emit_sve_predicated_cond): Replace with...
2116 (aarch64_emit_sve_fp_cond): ...this new function.
2117 (aarch64_emit_sve_or_conds): Replace with...
2118 (aarch64_emit_sve_or_fp_conds): ...this new function.
2119 (aarch64_emit_sve_inverted_cond): Replace with...
2120 (aarch64_emit_sve_invert_fp_cond): ...this new function.
2121 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
2122
2123 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2124
2125 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
2126 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
2127 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
2128 SVE_HSD instead of SVE_SD.
2129
2130 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2131 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2132
2133 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
2134 iterator.
2135 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
2136 attributes.
2137 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
2138 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
2139 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
2140 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
2141 (*div<SVE_F:mode>3): Generalize to...
2142 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
2143
2144 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2145 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2146
2147 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
2148 constants.
2149 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
2150 predicate.
2151 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
2152 Declare.
2153 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
2154 function.
2155 * config/aarch64/aarch64-sve.md: Add a block comment about the
2156 handling of predicated FP operations.
2157 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
2158 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
2159 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2160 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
2161 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
2162 operand.
2163 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
2164 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
2165 operand.
2166 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
2167 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
2168 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
2169 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
2170 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
2171 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2172 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2173 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
2174 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
2175 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
2176 strictness operands. Use aarch64_sve_pred_dominates_p to check
2177 whether the predicate on the conditional operation is suitable
2178 for merging. Split patterns into the canonical equal-predicate form.
2179 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
2180 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
2181
2182 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2183 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2184
2185 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
2186 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
2187 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
2188 rtx codes.
2189 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
2190 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
2191 unspecs.
2192
2193 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2194 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2195
2196 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
2197 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
2198 actually has, rather than relying on REG_EQUAL notes.
2199 Make the insn operand order match the SVE operand order.
2200 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
2201 the SVE operand order.
2202
2203 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2204
2205 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
2206 (aarch64_emit_set_immediate): Likewise.
2207 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
2208 (aarch64_pfalse_reg): Likewise.
2209 (aarch64_convert_sve_data_to_pred): New function.
2210 (aarch64_sve_move_pred_via_while): Take an optional target register
2211 and the required register mode.
2212 (aarch64_expand_sve_const_pred_1): New function.
2213 (aarch64_expand_sve_const_pred): Likewise.
2214 (aarch64_expand_mov_immediate): Build an all-true predicate
2215 if the significant bits of the immediate are all true. Use
2216 aarch64_expand_sve_const_pred for all compile-time predicate constants.
2217 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
2218 before register allocation.
2219 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
2220 a VNx16BI PTRUE when splitting the memory alternative.
2221 (vec_duplicate<mode>): Update accordingly.
2222 (*pred_cmp<cmp_op><mode>): Rename to...
2223 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
2224
2225 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2226
2227 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
2228 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
2229 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
2230 (UNSPEC_PTEST): New unspec.
2231 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
2232 * config/aarch64/iterators.md (data_bytes): New mode attribute.
2233 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
2234 * config/aarch64/aarch64-sve.md: Add a new section describing the
2235 handling of UNSPEC_PTEST.
2236 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
2237 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
2238 (ptest_ptrue<mode>): Replace with...
2239 (aarch64_ptest<mode>): ...this new pattern.
2240 (cbranch<mode>4): Update after above changes.
2241 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
2242 UNSPEC_PTEST_PTRUE.
2243 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
2244 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
2245 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
2246
2247 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
2248
2249 PR lto/91287
2250 * builtins.c (builtin_with_linkage_p): New function.
2251 * builtins.h (builtin_with_linkage_p): New function.
2252 * symtab.c (write_symbol): Remove redundant assert.
2253 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
2254 Remove FIXME and use builtin_with_linkage_p.
2255
2256 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2257
2258 PR middle-end/91421
2259 * tree-core.h (function_decl::function_code): Change type to
2260 unsigned int.
2261 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
2262 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
2263 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
2264 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
2265 is BUILT_IN_NORMAL.
2266 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
2267 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
2268 (fndecl_built_in_p): Change the type of the "name" argument to
2269 unsigned int.
2270 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
2271 after check for DECL_BUILT_IN_CLASS.
2272 * cgraphclones.c (build_function_decl_skip_args): Use
2273 set_decl_built_in_function.
2274 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
2275 * ipa-split.c (split_function): Likewise.
2276 * langhooks.c (add_builtin_function_common): Likewise.
2277 * omp-simd-clone.c (simd_clone_create): Likewise.
2278 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2279 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
2280 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
2281 DECL_FUNCTION_CODE.
2282 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
2283 instead of DECL_FUNCTION_CODE.
2284 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
2285 instead of DECL_FUNCTION_CODE.
2286 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2287 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
2288 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
2289 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
2290 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
2291 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
2292 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2293 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
2294 (alpha_gimple_fold_builtin): Likewise.
2295 * config/arc/arc.c (arc_expand_builtin): Likewise.
2296 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
2297 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
2298 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
2299 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
2300 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
2301 * config/frv/frv.c (frv_expand_builtin): Likewise.
2302 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
2303 (gcn_expand_builtin): Likewise.
2304 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
2305 (fold_builtin_cpu): Likewise.
2306 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
2307 * config/i386/i386.c (ix86_fold_builtin): Likewise.
2308 (ix86_gimple_fold_builtin): Likewise.
2309 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
2310 (ia64_expand_builtin): Likewise.
2311 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
2312 * config/mips/mips.c (mips_expand_builtin): Likewise.
2313 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
2314 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
2315 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
2316 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
2317 * config/pa/pa.c (pa_expand_builtin): Likewise.
2318 * config/pru/pru.c (pru_expand_builtin): Likewise.
2319 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
2320 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2321 Likewise.
2322 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
2323 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
2324 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
2325 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
2326 (rs6000_builtin_reciprocal): Likewise.
2327 * config/rx/rx.c (rx_expand_builtin): Likewise.
2328 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2329 * config/s390/s390.c (s390_expand_builtin): Likewise.
2330 * config/sh/sh.c (sh_expand_builtin): Likewise.
2331 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
2332 (sparc_fold_builtin): Likewise.
2333 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2334 * config/spu/spu.c (spu_expand_builtin): Likewise.
2335 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
2336 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
2337 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
2338 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2339 (xtensa_expand_builtin): Likewise.
2340
2341 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2342
2343 PR middle-end/91421
2344 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
2345 before the DECL_FUNCTION_CODE.
2346 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
2347 to check for a BUILT_IN_ALLOCA call.
2348 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
2349 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
2350 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
2351 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2352 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
2353 for BUILT_IN_NORMAL functions.
2354 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
2355 test for BUILT_IN_TM_ABORT.
2356 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
2357 to check for a BUILT_IN_STACK_RESTORE call.
2358 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
2359 * tree-ssa-threadedge.c
2360 (record_temporary_equivalences_from_stmts_at_dest): Check for a
2361 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
2362 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
2363 test for a BUILT_IN_NORMAL call instead of a negative test for
2364 an internal function call.
2365
2366 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2367
2368 * tree.h (build_vector_a_then_b): Declare.
2369 * tree.c (build_vector_a_then_b): New function.
2370 * fold-const-call.c (fold_while_ult): Likewise.
2371 (fold_const_call): Use it to handle IFN_WHILE_ULT.
2372 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
2373 (aarch64_svpattern): New enum.
2374 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
2375 constants through aarch64_expand_mov_immediate.
2376 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
2377 than general_operand as the predicate for operand 1.
2378 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
2379 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
2380 insn_type.
2381 (simd_immediate_info::simd_immediate_info): New overload that
2382 takes a scalar_int_mode and an svpattern.
2383 (simd_immediate_info::u): Add a "pattern" field.
2384 (svpattern_token): New function.
2385 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
2386 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
2387 (aarch64_sve_move_pred_via_while): New functions.
2388 (aarch64_expand_mov_immediate): Try using
2389 aarch64_sve_move_pred_via_while for predicates that contain N ones
2390 followed by M zeros but that do not correspond to a VLnnn pattern.
2391 (aarch64_sve_pred_valid_immediate): New function.
2392 (aarch64_simd_valid_immediate): Use it instead of dealing directly
2393 with PTRUE and PFALSE.
2394 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
2395 forms.
2396
2397 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
2398
2399 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
2400 flag.
2401 (darwin_override_options): Likewise.
2402 * config/darwin.h: Likewise.
2403 * config/darwin.opt: Likewise.
2404 * config/i386/i386.c (output_pic_addr_const): Likewise.
2405 * config/rs6000/darwin.h: Likewise.
2406 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
2407 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
2408 ... this TARGET_MACHO_SYMBOL_STUBS.
2409 (FUNCTION_PROFILER):Likewise.
2410 * config/i386/i386.h: Likewise.
2411
2412 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2413
2414 * config/i386/i386-expand.c (ix86_expand_vector_extract)
2415 <case E_V2SImode>: Use vec_extr path for
2416 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2417 <case E_V8QImode>: Ditto.
2418 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
2419 Use SWI48 mode iterator. Use %k to output operand 0.
2420 (*mmx_pextrw): New insn pattern.
2421 (*mmx_pextrb): Ditto.
2422 (*mmx_pextrb_zext): Ditto.
2423
2424 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
2425
2426 * target.def (libc_has_function, libc_has_fast_function): Improve
2427 documentation strings.
2428 * doc/tm.texi: Regenerate.
2429
2430 2019-08-13 Caroline Tice <cmtice@google.com>
2431
2432 PR other/91396
2433 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
2434 vtv_end.o or vtv_end_preinit.o files if !static.
2435
2436 2019-08-13 Olivier Hainque <hainque@adacore.com>
2437
2438 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
2439
2440 2019-08-13 Olivier Hainque <hainque@adacore.com>
2441
2442 * rtlanal.c (tablejump_casesi_pattern): New function, to
2443 determine if a tablejump insn is a casesi dispatcher. Extracted
2444 from patch_jump_insn.
2445 * rtl.h (tablejump_casesi_pattern): Declare.
2446 * cfgrtl.c (patch_jump_insn): Use it.
2447 * dwarf2cfi.c (create_trace_edges): Use it.
2448
2449 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2450
2451 PR target/81800
2452 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
2453 operand is larger than a long int.
2454
2455 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2456
2457 * machmode.h (opt_mode::else_mode): New function.
2458 (opt_mode::else_blk): Use it.
2459 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
2460 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
2461 (aarch64_gen_stepped_int_parallel): Likewise.
2462 (aarch64_stepped_int_parallel_p): Likewise.
2463 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2464 argument.
2465 * config/aarch64/aarch64.c
2466 (aarch64_expand_sve_widened_duplicate): Delete.
2467 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
2468 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
2469 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2470 argument. Use early returns in the !CONST_INT_P handling.
2471 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
2472 than handling some inline.
2473 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
2474 from...
2475 (aarch64_simd_container_mode): ...here.
2476 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
2477 (aarch64_sve_ld1rq_operand_p): New functions.
2478 * config/aarch64/predicates.md (descending_int_parallel)
2479 (aarch64_sve_ld1rq_operand): New predicates.
2480 * config/aarch64/constraints.md (UtQ): New constraint.
2481 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
2482 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
2483 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
2484 (@aarch64_sve_reinterpret<mode>): New expander.
2485 (*aarch64_sve_reinterpret<mode>): New pattern.
2486 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
2487 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
2488 (*sve_ld1rq<Vesize>): Replace with...
2489 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
2490
2491 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2492
2493 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
2494 16:12.
2495
2496 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2497
2498 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
2499 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
2500 (msp430_check_path_for_devices): New.
2501 (parse_devices_csv_1): New.
2502 (parse_devices_csv): New.
2503 (msp430_extract_mcu_data): Try to find devices.csv and search for the
2504 MCU data in devices.csv before using the hard-coded data.
2505 Warn if devices.csv isn't found and the MCU wasn't found in the
2506 hard-coded data either.
2507 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
2508 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
2509 Search for devices.csv on -I and -L paths.
2510 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
2511 msp430_set_driver_var.
2512 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
2513 -mdevices-csv-loc=.
2514 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
2515 searched for devices.csv.
2516 (mwarn-devices-csv): Document option.
2517
2518 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2519
2520 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
2521 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
2522 Use a single Dn alternative instead of separate Dz and Dm
2523 alternatives. Use aarch64_output_sve_move_immediate.
2524 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
2525 function.
2526 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
2527 for predicates too.
2528 (aarch64_output_sve_mov_immediate): Handle predicate modes.
2529 (aarch64_output_ptrue): Delete.
2530
2531 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2532
2533 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
2534 INDEX.
2535 (simd_immediate_info::value, simd_immediate_info::step)
2536 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
2537 with...
2538 (simd_immediate_info::u): ...this new union.
2539 (simd_immediate_info::simd_immediate_info): Update accordingly.
2540 (aarch64_output_simd_mov_immediate): Likewise.
2541 (aarch64_output_sve_mov_immediate): Likewise.
2542
2543 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2544
2545 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
2546 extra_gcc_objs.
2547 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
2548 (msp430_select_cpu): New spec function.
2549 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
2550 MCU data.
2551 * config/msp430/msp430-devices.c: New file.
2552 * config/msp430/msp430-devices.h: New file.
2553 * config/msp430/msp430.c: Remove msp430_mcu_data.
2554 (msp430_option_override): Use msp430_extract_mcu_data to extract
2555 MCU data.
2556 (msp430_use_f5_series_hwmult): Likewise.
2557 (use_32bit_hwmult): Likewise.
2558 (msp430_no_hwmult): Likewise.
2559 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2560 assembler.
2561 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2562 and -mcpu option.
2563 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2564 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2565 Remove hard-coded MCU multilib data.
2566
2567 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2568
2569 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2570 based on the mode instead of testing properties of it.
2571
2572 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2573
2574 * doc/md.texi: Document the x and y constraints for AArch64.
2575 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2576 (FP_LO8_REGS): New reg_class.
2577 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2578 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2579 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2580 * config/aarch64/predicates.md (aarch64_simd_register): Use
2581 FP_REGNUM_P instead of checking the classes manually.
2582 * config/aarch64/constraints.md (y): New constraint.
2583
2584 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2585
2586 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2587 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2588 * config/aarch64/aarch64-simd.md
2589 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2590 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2591 from the asm template.
2592 * config/aarch64/aarch64-sve.md
2593 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2594 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2595 from the asm template.
2596 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2597 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2598 from the asm template.
2599 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2600
2601 2019-08-13 Martin Liska <mliska@suse.cz>
2602
2603 * value-prof.c (gimple_ic_transform): Add new line.
2604 Print details with MSG_NOTE.
2605
2606 2019-08-13 Martin Liska <mliska@suse.cz>
2607
2608 * doc/invoke.texi: Document automatic detection of jobserver.
2609 * lto-wrapper.c (run_gcc): Detect jobserver always.
2610
2611 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2612
2613 * config/i386/i386-expand.c (ix86_expand_vector_set)
2614 <case E_V2SImode>: Use vec_merge path for
2615 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2616 <case E_V8QImode>: Ditto.
2617 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2618 (*mmx_pinsrb): Ditto.
2619
2620 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2621
2622 PR target/83250
2623 PR target/91340
2624 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2625 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2626 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2627 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2628 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2629
2630 2019-08-12 Richard Biener <rguenther@suse.de>
2631
2632 PR lto/91375
2633 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2634 flag_devirtualize.
2635
2636 2019-08-12 Richard Biener <rguenther@suse.de>
2637
2638 PR driver/91130
2639 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2640 lang_mask option, always use CL_DRIVER.
2641 (get_options_from_collect_gcc_options): Adjust.
2642 (find_and_merge_options): Likewise.
2643 (run_gcc): Likewise.
2644
2645 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2646
2647 * ipa-predicate.c (add_condition): Restore inverted test.
2648
2649 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2650
2651 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2652 (enum omp_clause_device_type_kind): New enum.
2653 (struct tree_omp_clause): Add subcode.device_type_kind.
2654 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2655 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2656 for device_type clause.
2657 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2658 * tree-pretty-print.c (dump_omp_clause): Likewise.
2659
2660 PR target/91408
2661 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2662 vector_operand.
2663
2664 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2665
2666 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2667 handling spilled pseudos.
2668
2669 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2670
2671 PR target/91386
2672 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2673 to preserve the contents of the original insns.
2674
2675 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2676
2677 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2678 (addsi3_compare_op2): Likewise.
2679
2680 2019-08-09 Martin Liska <mliska@suse.cz>
2681
2682 * alias.c (alias_ptr_types_compatible_p): Strengten
2683 type comparison in LTO mode.
2684
2685 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2686
2687 PR middle-end/90313
2688 * tree-tailcall.c (find_tail_calls): Reject calls that might
2689 read from an escaped RESULT_DECL.
2690
2691 2019-08-09 Martin Liska <mliska@suse.cz>
2692
2693 * doc/invoke.texi: Document the option value.
2694 * lto-wrapper.c (run_gcc): Set auto_parallel
2695 only with -flto=auto.
2696
2697 2019-08-09 Martin Liska <mliska@suse.cz>
2698
2699 * opts.c (common_handle_option): Error for an invalid argument
2700 to -flto=.
2701
2702 2019-08-09 Martin Liska <mliska@suse.cz>
2703
2704 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2705 use dump_printf to report optimization.
2706 (sem_variable::merge): Likwise.
2707 (sem_item_optimizer::merge_classes): Use dump_printf to report
2708 ICF hits.
2709
2710 2019-08-09 Martin Liska <mliska@suse.cz>
2711
2712 * value-prof.c (gimple_divmod_fixed_value_transform):
2713 Use dump_printf_loc.
2714 (gimple_mod_pow2_value_transform): Likewise.
2715 (gimple_mod_subtract_transform): Likewise.
2716 (init_node_map): Likewise.
2717 (gimple_ic_transform): Likewise.
2718 (gimple_stringops_transform): Likewise.
2719
2720 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2721
2722 * doc/extend.texi: Add const qualifier to ld intrinsics.
2723
2724 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2725
2726 * config/rs6000/dfp.md (D64_D128): Rename to ...
2727 (DDTD): ... this, throughout.
2728 (dfp_suffix): Rename to ...
2729 (q): ... this, throughout.
2730
2731 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2732
2733 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2734 (dfp_suffix): Ditto.
2735 (adddd3, addtd3): Merge to ...
2736 (add<mode>3 for D64_D128): ... this.
2737 (subdd3, subtd3): Merge to ...
2738 (sub<mode>3 for D64_D128): ... this.
2739 (muldd3, multd3): Merge to ...
2740 (mul<mode>3 for D64_D128): ... this.
2741 (divdd3, divtd3): Merge to ...
2742 (div<mode>3 for D64_D128): ... this.
2743 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2744 (*cmp<mode>_internal1 for D64_D128): ... this.
2745 (ftruncdd2, ftrunctd2): Merge to ...
2746 (ftrunc<mode>2 for D64_D128): ... this.
2747 (fixdddi2, fixtddi2): Merge to ...
2748 (fix<mode>di2 for D64_D128): ... this.
2749
2750 2019-08-08 Jim Wilson <jimw@sifive.com>
2751
2752 PR target/91229
2753 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2754 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2755 Pass into recursive call.
2756 (riscv_flatten_aggregate_argument): New arg. Pass to
2757 riscv_flatten_aggregate_field.
2758 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2759 riscv_flatten_aggregate_argument twice, with false and true as last
2760 arg. Process result twice. Compare results and warn if different.
2761 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2762
2763 2019-08-08 Martin Liska <mliska@suse.cz>
2764
2765 PR bootstrap/91352
2766 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2767 * lto-wrapper.c (jobserver_active_p): Likewise.
2768
2769 2019-08-08 Martin Liska <mliska@suse.cz>
2770
2771 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2772 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2773 (create_version_clone_with_body): Likewise.
2774
2775 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2776
2777 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2778 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2779 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2780 GOVD_EXPLICIT flags.
2781 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2782 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2783 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2784 call install_var_field with mask 11 instead of 3.
2785 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2786 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2787
2788 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2789
2790 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2791 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2792
2793 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2794
2795 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2796 MOVPRFX alternatives. Make the GPR alternatives more expensive
2797 than the FPR ones.
2798
2799 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2800
2801 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2802 Disparage the GPR alternative relative to the FPR one.
2803 Fix handling of 8-bit and 16-bit FPR values.
2804
2805 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2806
2807 * config/aarch64/iterators.md (BITWISEV): Delete.
2808 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2809 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2810 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2811 UNSPEC_FMINNMV, UNSPEC_FMINV.
2812 (bit_reduc_op): Delete.
2813 (sve_int_op): New int attribute.
2814 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2815 UNSPEC_FMINNMV, UNSPEC_FMINV.
2816 * config/aarch64/aarch64-sve.md
2817 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2818 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2819 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2820 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2821 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2822 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2823 new patterns.
2824 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2825 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2826 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2827 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2828 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2829 new patterns.
2830
2831 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2832
2833 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2834 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2835 (fms<mode>4, *fms<mode>4): Replace with...
2836 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2837 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2838 Use unspecs instead of rtx codes.
2839 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2840 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2841
2842 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2843
2844 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2845 int iterator.
2846 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2847 * config/aarch64/aarch64-sve.md
2848 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2849 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2850 use a single unspec for the rhs.
2851 (*<su><maxmin><mode>3): Delete.
2852 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2853
2854 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2855
2856 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2857 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2858 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2859 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2860 (optab, sve_fp_op): Handle them.
2861 (SVE_FP_UNARY): Delete.
2862 (optab): Remove sqrt entry.
2863 (sve_fp_op): Remove neg, abs and sqrt entries.
2864 (SVE_COND_FP_UNARY): New int iterator.
2865 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2866 (*<frint_pattern><mode>2): Delete.
2867 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2868 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2869 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2870 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2871
2872 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2873
2874 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2875
2876 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2877
2878 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
2879 (UNSPEC_COND_FADD): ...this.
2880 (UNSPEC_COND_SUB): Rename to...
2881 (UNSPEC_COND_FSUB): ...this.
2882 (UNSPEC_COND_MUL): Rename to...
2883 (UNSPEC_COND_FMUL): ...this.
2884 (UNSPEC_COND_DIV): Rename to...
2885 (UNSPEC_COND_FDIV): ...this.
2886 (UNSPEC_COND_MAX): Rename to...
2887 (UNSPEC_COND_FMAXNM): ...this.
2888 (UNSPEC_COND_MIN): Rename to...
2889 (UNSPEC_COND_FMINNM): ...this.
2890 (UNSPEC_COND_LT): Rename to...
2891 (UNSPEC_COND_FCMLT): ...this.
2892 (UNSPEC_COND_LE): Rename to...
2893 (UNSPEC_COND_FCMLE): ...this.
2894 (UNSPEC_COND_EQ): Rename to...
2895 (UNSPEC_COND_FCMEQ): ...this.
2896 (UNSPEC_COND_NE): Rename to...
2897 (UNSPEC_COND_FCMNE): ...this.
2898 (UNSPEC_COND_GE): Rename to...
2899 (UNSPEC_COND_FCMGE): ...this.
2900 (UNSPEC_COND_GT): Rename to...
2901 (UNSPEC_COND_FCMGT): ...this.
2902 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
2903 (sve_fp_op_rev): Update accordingly.
2904 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
2905
2906 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2907
2908 * config/aarch64/aarch64-sve.md: Reorganize contents and add
2909 banner comments.
2910 * config/aarch64/check-sve-md.awk: New file.
2911 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
2912 (insn-conditions.md): Depend on it.
2913
2914 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
2915
2916 PR target/91385
2917 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
2918 (*negsi2_cmpz_zext): Ditto.
2919
2920 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2921
2922 * config/aarch64/iterators.md (commutative): Remove.
2923
2924 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
2925
2926 PR driver/91130
2927 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
2928 processing COLLECT_GCC_OPTIONS.
2929 (run_gcc): Likewise.
2930
2931 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2932
2933 PR tree-optimization/91109
2934 * lra-remat.c (update_scratch_ops): Remove assignment of the
2935 hard register.
2936
2937 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2938
2939 * data-streamer.h (streamer_write_poly_uint64): Declare.
2940 (streamer_read_poly_uint64): Likewise.
2941 * data-streamer-in.c (streamer_read_poly_uint64): New function.
2942 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
2943 * ipa-predicate.h (condition::size): Turn into a poly_int64.
2944 (add_condition): Take a poly_int64 size.
2945 * ipa-predicate.c (add_condition): Likewise.
2946 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
2947 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
2948 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
2949 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
2950 condition::size as a poly_int64.
2951 (unmodified_parm_1): Take a poly_int64 size pointer.
2952 (unmodified_parm): Likewise.
2953 (unmodified_parm_or_parm_agg_item): Likewise.
2954 (set_cond_stmt_execution_predicate): Update accordingly.
2955 (set_switch_stmt_execution_predicate): Likewise.
2956 (will_be_nonconstant_expr_predicate): Likewise.
2957 (will_be_nonconstant_predicate): Likewise.
2958 (inline_read_section): Stream condition::size as a poly_int.
2959 (ipa_fn_summary_write): Likewise.
2960
2961 2019-08-07 Martin Liska <mliska@suse.cz>
2962
2963 * fold-const.c (twoval_comparison_p): Replace int
2964 with bool as a return type.
2965 (simple_operand_p): Likewise.
2966 (operand_equal_p): Replace int with bool as a return type.
2967 * fold-const.h (operand_equal_p): Likewise.
2968
2969 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2970
2971 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
2972 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
2973 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2974 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
2975 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
2976 * tree-pretty-print.c (dump_omp_clause): Likewise.
2977 * tree-nested.c (convert_nonlocal_omp_clauses,
2978 convert_local_omp_clauses): Likewise.
2979 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
2980 Likewise.
2981 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
2982 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
2983 clause with array or reference to array types, no matter what type
2984 except for reference it has.
2985
2986 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
2987
2988 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
2989
2990 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
2991
2992 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
2993 (arch_canonicalize): Support rv32g and rv64g and fix error
2994 handling.
2995
2996 2019-08-06 Martin Liska <mliska@suse.cz>
2997
2998 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
2999 and DECL_IS_OPERATOR_DELETE_P.
3000
3001 2019-08-06 Jakub Jelinek <jakub@redhat.com>
3002
3003 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
3004 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
3005 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
3006 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
3007 (gimplify_omp_for): Don't do C++ random access iterator clause
3008 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
3009 don't predetermine the artificial iterator in case of C++ random
3010 access iterators as lastprivate, but private. For OMP_LOOP, force
3011 bind expr around simd body and force for_pre_body before the
3012 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
3013 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
3014 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
3015 diff var of C++ random access iterators. Handle
3016 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
3017 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
3018 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
3019 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
3020 * omp-low.c (lower_rec_input_clauses): For
3021 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
3022 variables instead of default constructing them.
3023 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
3024 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
3025 is_taskloop_ctx check from the assert to the guarding condition.
3026
3027 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
3028
3029 * config/riscv/multilib-generator: (canonical_order): New.
3030 (arch_canonicalize): Dito.
3031 Apply arch_canonicalize for alts.
3032
3033 2019-08-05 Martin Sebor <msebor@redhat.com>
3034
3035 * doc/extend.texi (Common Variable Attributes): Document alias
3036 attribute.
3037
3038 2019-08-05 Marek Polacek <polacek@redhat.com>
3039
3040 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
3041 * doc/invoke.texi: Document -Wcomma-subscript.
3042
3043 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3044
3045 * tree-core.h (tree_function_decl): Make function_code an
3046 independent field. Group the remaining bitfields into bytes
3047 and move decl_type so that it contines to be at a byte boundary.
3048 Leave 12 bits for future expansion.
3049
3050 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3051
3052 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
3053 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
3054 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
3055 IFN_MASK_STORE.
3056
3057 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3058
3059 * gimple.h (gimple_move_vops): Declare.
3060 * gimple.c (gimple_move_vops): New function
3061 * gimple-fold.c (replace_call_with_call_and_fold)
3062 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
3063 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
3064 (gimple_fold_call): Use it.
3065 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
3066 * tree-call-cdce.c (use_internal_fn): Likewise.
3067 * tree-if-conv.c (predicate_load_or_store): Likewise.
3068 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3069 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3070 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
3071 (update_call_from_tree): Likewise.
3072 * tree-vect-stmts.c (vectorizable_load): Likewise.
3073 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
3074
3075 2019-08-05 Martin Liska <mliska@suse.cz>
3076
3077 PR c++/91334
3078 * tree-ssa-dce.c (propagate_necessity): Handle new operators
3079 with not arguments.
3080 (eliminate_unnecessary_stmts): Likewise.
3081
3082 2019-08-05 Richard Biener <rguenther@suse.de>
3083
3084 PR middle-end/91169
3085 * fold-const.c (get_array_ctor_element_at_index): Create
3086 offset_ints according to the sign of the index type and treat
3087 that as signed if it is obviously so.
3088
3089 2019-08-05 Jakub Jelinek <jakub@redhat.com>
3090
3091 PR target/91341
3092 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
3093 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
3094 _mm256_storeu2_m128i): New function.
3095
3096 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
3097
3098 * config/riscv/riscv.c (riscv_promote_function_mode): New.
3099 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
3100
3101 2019-08-05 Alan Modra <amodra@gmail.com>
3102
3103 PR target/91349
3104 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
3105 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3106
3107 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
3108
3109 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
3110 bug that was fixed in Tcl 8.6.1.
3111
3112 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
3113
3114 * config/rs6000/future.md: New file.
3115 * config/rs6000/rs6000.md: Include future.md.
3116 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
3117
3118 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3119
3120 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
3121 check to use targetm.slow_unaligned_access instead.
3122
3123 * function.c (assign_param_data_one): Remove unused data members.
3124
3125 2019-08-02 Steve Ellcey <sellcey@marvell.com>
3126
3127 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
3128 build_distinct_type_copy.
3129 (simd_clone_adjust_argument_types): Ditto.
3130 (simd_clone_adjust): Call build_distinct_type_copy here.
3131 (expand_simd_clones): Ditto.
3132
3133 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3134
3135 PR target/91201
3136 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
3137
3138 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
3139
3140 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
3141 from 'const void *'.
3142 (sort_locs_in_loop_postorder_cmp): Likewise.
3143
3144 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
3145
3146 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
3147 (hot-bb-count-ws-permille): Likewise.
3148 (hot-bb-frequency-fraction): Likewise.
3149 (unlikely-bb-count-fraction): Likewise.
3150 * params.def (hot-bb-count-fraction): Rework description.
3151 (hot-bb-count-ws-permille): Likewise.
3152 (hot-bb-frequency-fraction): Likewise.
3153 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
3154 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
3155
3156 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3157
3158 PR target/91323
3159 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
3160 Return false.
3161
3162 2019-08-02 Richard Biener <rguenther@suse.de>
3163
3164 * vec.h (vec::sort): Add gcc_qsort_r support.
3165 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
3166 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
3167 to gcc_qsort_r style callback.
3168 (sort_locs_in_loop_postorder_cmp): Likewise.
3169 (analyze_memory_references): Use gcc_sort_r interfaces.
3170 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
3171
3172 2019-08-02 Martin Liska <mliska@suse.cz>
3173
3174 PR lto/91313
3175 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
3176 to detect working job server.
3177 (driver::detect_jobserver): Test whether jobserver
3178 is active from GCC driver. That will prevent situation where
3179 GCC is invoked from a LD plugin and the linker already uses
3180 file descriptors suggested by make. That leads to a wrong
3181 detection.
3182 * gcc.h (driver): Add detect_jobserver.
3183 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
3184 not scanning for --jobserver-auth prefix.
3185
3186 2019-08-02 Jakub Jelinek <jakub@redhat.com>
3187
3188 PR tree-optimization/91201
3189 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
3190 V16QImode extraction without sse4.1 try to use V4SImode lowpart
3191 extraction.
3192
3193 2019-08-01 Martin Sebor <msebor@redhat.com>
3194
3195 PR c++/90947
3196 * tree.c (type_initializer_zero_p): Define.
3197 * tree.h (type_initializer_zero_p): New function.
3198
3199 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3200
3201 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
3202
3203 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3204
3205 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
3206 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
3207 * predict.c (maybe_hot_count_p): Likewise.
3208 (maybe_hot_bb_p): Tweak comment.
3209 (maybe_hot_edge_p): Likewise.
3210 (probably_never_executed): Likewise. Minor tweak.
3211 (probably_never_executed_bb_p): Likewise.
3212 (unlikely_executed_edge_p): Likewise.
3213 (probably_never_executed_edge_p): Likewise.
3214 (optimize_function_for_size_p): Likewise.
3215 (optimize_function_for_speed_p): Likewise.
3216 (function_optimization_type): Likewise.
3217 (optimize_bb_for_size_p): Likewise.
3218 (optimize_bb_for_speed_p): Likewise.
3219 (bb_optimization_type): Likewise.
3220 (optimize_edge_for_size_p): Likewise.
3221 (optimize_edge_for_speed_p): Likewise.
3222 (optimize_insn_for_size_p): Likewise.
3223 (optimize_insn_for_speed_p): Likewise.
3224 (optimize_loop_for_size_p): Likewise.
3225 (optimize_loop_for_speed_p): Likewise.
3226 (optimize_loop_nest_for_speed_p): Likewise.
3227 (optimize_loop_nest_for_size_p): Likewise.
3228 (predictable_edge_p): Likewise.
3229 (handle_missing_profiles): Minor tweak.
3230
3231 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
3232
3233 * config/rs6000/predicates.md (pcrel_external_address): Update
3234 comment.
3235
3236 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3237
3238 PR target/85693
3239 * config/i386/mmx.md (usadv8qi): New expander.
3240
3241 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
3242
3243 PR c++/90590
3244 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
3245 with reserved names that are in a system header.
3246
3247 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3248
3249 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
3250 (*vec_extractv2si_0_zext_sse4): New insn pattern.
3251 (*vec_extractv2si_0_zext): Ditto.
3252 (*vec_extractv2si_1): Add (rm,x) alternative.
3253 (*vec_extractv2si_1_zext): New insn pattern.
3254 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
3255 insn constraint.
3256
3257 2019-08-01 Richard Biener <rguenther@suse.de>
3258
3259 * domwalk.c (bb_postorder): Remove static variable.
3260 (cmp_bb_postorder): Adjust.
3261 (sort_bbs_postorder): Adjust and use gcc_sort_r.
3262 (dom_walker::walk): Adjust.
3263
3264 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
3265
3266 * sort.cc (sort_r_ctx): New struct.
3267 (reorder23): Make templated on context type.
3268 (reorder45): Ditto.
3269 (cmp1): Ditto. Adjust signature.
3270 (netsort): Ditto.
3271 (mergesort): Ditto.
3272 [CHECKING_P] (cmp2to3): New static function. Use it...
3273 (gcc_qsort) [CHECKING_P]: ...here.
3274 (gcc_sort_r): New function.
3275 * system.h (sort_r_cmp_fn): New function typedef.
3276 (qsort_chk): Adjust signature.
3277 (gcc_sort_r): Declare.
3278 * vec.c (qsort_chk_error): Adjust.
3279 (qsort_chk): Adjust.
3280
3281 2019-08-01 Richard Biener <rguenther@suse.de>
3282
3283 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
3284 (compute_antic): Localize it here.
3285
3286 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
3287
3288 * common/config/riscv/riscv-common.c: Check -march string ends
3289 with null.
3290
3291 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
3292
3293 * ipa-devirt.c (type_warning_cmp): Make static.
3294 (decl_warning_cmp): Ditto.
3295
3296 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
3297
3298 PR target/91050
3299 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
3300 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3301 use of deleted rs6000_dejagnu_cpu_index variable.
3302 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
3303 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3304 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
3305 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
3306 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
3307 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3308
3309 2019-07-31 Richard Biener <rguenther@suse.de>
3310
3311 PR tree-optimization/91280
3312 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3313 Decompose MEM_REF manually for offset handling.
3314
3315 2019-07-31 Richard Biener <rguenther@suse.de>
3316
3317 PR tree-optimization/91293
3318 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
3319 of reduction stmts.
3320
3321 2019-07-31 Matt Thomas <matt@3am-software.com>
3322 Nick Hudson <nick@nthcliff.demon.co.uk>
3323 Matthew Green <mrg@eterna.com.au>
3324 Maya Rashish <coypu@sdf.org>
3325
3326 * config.gcc (hppa*-*-netbsd*): New target.
3327 * config/pa/pa-netbsd.h: New file.
3328 * config/pa/pa32-netbsd.h: New file.
3329
3330 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3331
3332 PR tree-optimization/91201
3333 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
3334
3335 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
3336
3337 * config/gcn/gcn-valu.md
3338 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
3339 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
3340 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
3341 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
3342 struct ilist. Add nops for delayeduse insns.
3343 * config/gcn/gcn.md (delayeduse): New attribute.
3344 (*movbi): Remove s_waitcnt from stores.
3345 (*mov<mode>_insn): Likewise.
3346 (*movti_insn): Likewise. Add delayeduse attribute.
3347 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
3348 (atomic_store<mode>): Remove or adjust s_waitcnt.
3349
3350 2019-07-31 Richard Biener <rguenther@suse.de>
3351
3352 * vr-values.h (vr_values::swap_vr_value): New.
3353 (vr_values::free_value_range): likewise.
3354 * vr-values.c (vr_values::swap_vr_value): Implement.
3355 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
3356 Do not return a range or take a var.
3357 (evrp_range_analyzer::stack): Change back to recording a non-const
3358 value_range *.
3359 * gimple-ssa-evrp-analyze.c
3360 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
3361 value-range.
3362 (evrp_range_analyzer::pop_to_marker): Adjust.
3363 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
3364 (evrp_range_analyzer::pop_value_range): Likewise. Free the
3365 no longer needed value-range.
3366
3367 2019-07-31 Martin Liska <mliska@suse.cz>
3368
3369 * tree-ssa-dce.c (propagate_necessity): Delete operator can
3370 have size and (or) alignment as 2nd and later arguments.
3371 Mark all of them as necessary.
3372
3373 2019-07-31 Richard Biener <rguenther@suse.de>
3374
3375 PR tree-optimization/91178
3376 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3377 Use tail-recursion.
3378
3379 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3380
3381 PR tree-optimization/91201
3382 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
3383 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
3384 TARGET_AVX512F.
3385 (reduc_plus_scal_<mode>): Improve formatting by introducing
3386 a temporary.
3387
3388 2019-07-31 Sudakshina Das <sudi.das@arm.com>
3389
3390 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3391 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
3392 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
3393 (aarch64_init_tme_builtins): New.
3394 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
3395 (aarch64_expand_builtin_tme): New.
3396 (aarch64_expand_builtin): Handle TME builtins.
3397 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3398 __ARM_FEATURE_TME when enabled.
3399 * config/aarch64/aarch64-option-extensions.def: Add "tme".
3400 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
3401 (TARGET_TME): New.
3402 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
3403 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
3404 UNSPECV_TCANCEL.
3405 (tstart, ttest, tcommit, tcancel): New instructions.
3406 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
3407 (__tcancel, __ttest): New.
3408 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
3409 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
3410 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
3411 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
3412 * config/arm/types.md: Add new tme type attr.
3413 * doc/invoke.texi: Document "tme".
3414
3415 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
3416
3417 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
3418 warn_unused_result attribute.
3419 (cmse_check_address_range): Add warn_unused_result attribute.
3420
3421 2019-07-31 Richard Biener <rguenther@suse.de>
3422
3423 PR tree-optimization/91257
3424 * tree-vrp.c (union_ranges): Unify equality and less tests
3425 by using compare_values. Re-order cheap tests first.
3426
3427 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3428
3429 PR middle-end/91301
3430 * gimplify.c (gimplify_omp_for): If for class iterator on
3431 distribute parallel for there is no data sharing clause
3432 on inner_for_stmt, look for private clause on combined
3433 parallel too and if found, move it to inner_for_stmt.
3434
3435 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
3436
3437 * lra-int.h (lra_operand_data): Remove early_clobber field.
3438 (lra_insn_reg): Likewise.
3439 * lra.c (debug_operand_data): Update accordingly.
3440 (setup_operand_alternative): Likewise.
3441 (new_insn_reg): Likewise. Remove early_clobber parameter.
3442 (collect_non_operand_hard_regs): Update call accordingly.
3443 Don't assign to lra_insn_reg::early_clobber.
3444 (add_regs_to_insn_regno_info): Remove early_clobber parameter
3445 and update calls to new_insn_reg.
3446 (lra_update_insn_regno_info): Update calls accordingly.
3447 * lra-constraints.c (update_and_check_small_class_inputs): Take the
3448 alternative number as a parameter and test whether the operand
3449 is earlyclobbered in that particular alternative.
3450 (process_alt_operands): Update call accordingly. Use per-alternative
3451 checks for earyclobber here too.
3452 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
3453 against zero for IRA_UNKNOWN_ALT.
3454
3455 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3456
3457 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
3458
3459 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
3460
3461 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
3462 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3463
3464 2019-07-30 Martin Liska <mliska@suse.cz>
3465
3466 PR ipa/89330
3467 * cgraph.c (cgraph_edge::make_direct): Use
3468 edge->indirect_unknown_callee as edge->resolve_speculation can
3469 deallocate edge which is this pointer.
3470
3471 2019-07-30 Richard Biener <rguenther@suse.de>
3472
3473 PR tree-optimization/91257
3474 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
3475
3476 2019-07-30 Martin Liska <mliska@suse.cz>
3477
3478 * doc/invoke.texi: Document new behavior.
3479 * lto-wrapper.c (cpuset_popcount): New function
3480 is a copy of libgomp/config/linux/proc.c.
3481 (init_num_threads): Likewise.
3482 (run_gcc): Automatically detect core count for -flto.
3483 (jobserver_active_p): New function.
3484
3485 2019-07-30 Richard Biener <rguenther@suse.de>
3486
3487 PR tree-optimization/91257
3488 * bitmap.h (bitmap_ior_into_and_free): Declare.
3489 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
3490 whether to add the unliked element to the freelist.
3491 (bitmap_list_insert_element_after): Add defaulted param for
3492 an already allocated element.
3493 (bitmap_ior_into_and_free): New function.
3494 * tree-ssa-structalias.c (condense_visit): Reduce the
3495 ponts-to and edge bitmaps of the SCC members in a
3496 logarithmic fashion rather than all to one.
3497
3498 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
3499
3500 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
3501 parameter. When nonnull, make sure that the addition or subtraction
3502 has the same condition.
3503 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
3504 for CFN_COND_MUL too.
3505
3506 2019-07-30 Richard Biener <rguenther@suse.de>
3507
3508 PR tree-optimization/91291
3509 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
3510 constant values.
3511
3512 2019-07-30 Jakub Jelinek <jakub@redhat.com>
3513
3514 PR middle-end/91216
3515 * omp-low.c (global_nonaddressable_vars): New variable.
3516 (use_pointer_for_field): For global decls, if they are non-addressable,
3517 remember it in the global_nonaddressable_vars bitmap, if they are
3518 addressable and in the global_nonaddressable_vars bitmap, ignore their
3519 TREE_ADDRESSABLE bit.
3520 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
3521 vars in global_nonaddressable_vars bitmap.
3522 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
3523
3524 PR target/91150
3525 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
3526 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
3527 comparison to unsigned HOST_WIDE_INT before shifting it left.
3528
3529 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3530
3531 * config/i386/i386.md (movstrict<mode>): Use register_operand
3532 predicate for operand 0. Add expander condition. Assert that
3533 operand 0 is a SUBREG RTX.
3534 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
3535 Update operand constraints and insn condition.
3536 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
3537 (zero_extendqihi2_and): Do not call gen_movstrictqi.
3538 (*setcc_qi_slp): Use register_operand predicate for operand 0.
3539 Update operand 0 constraints.
3540 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
3541
3542 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3543
3544 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
3545 when -m{code,data}-region are used without -mlarge.
3546 * config/msp430/msp430.c (msp430_option_override): Error when a
3547 non-default code or data region is used without -mlarge.
3548 (msp430_section_attr): Emit a warning and do not add upper/lower/either
3549 attributes when they are used without -mlarge.
3550
3551 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3552
3553 PR target/70320
3554 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3555
3556 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3557
3558 PR middle-end/91242
3559 * wide-int.h (generic_wide_int::sext_elt): New function.
3560 * inchash.h (hash::add_wide_int): Use it instead of elt.
3561
3562 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3563
3564 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3565 CODE_FOR_arm_##.
3566 * config/arm/arm.md (<crc_variant>): Rename to...
3567 (arm_<crc_variant>): ... This.
3568 (<cdp>): Rename to...
3569 (arm_<cdp>): ... This.
3570 (<ldc>): Rename to...
3571 (arm_<ldc>): ... This.
3572 (<stc>): Rename to...
3573 (arm_<stc>): ... This.
3574 (<mcr>): Rename to...
3575 (arm_<mcr>): ... This.
3576 (<mrc>): Rename to...
3577 (arm_<mrc>): ... This.
3578 (<mcrr>): Rename to...
3579 (arm_<mcrr>): ... This.
3580 (<mrrc>): Rename to...
3581 (arm_<mrrc>): ... This.
3582
3583 2019-07-29 Richard Biener <rguenther@suse.de>
3584
3585 PR tree-optimization/91257
3586 * tree-ssa-sccvn.h (struct vn_avail): New.
3587 (struct vn_ssa_aux): Add avail member.
3588 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3589 member, add m_avail_freelist one.
3590 (rpo_elim::~rpo_elim): Remove.
3591 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3592 data structure.
3593 (rpo_elim::eliminate_push_avail): Likewise.
3594 (do_unwind): Likewise.
3595 (do_rpo_vn): Likewise.
3596
3597 2019-07-29 Richard Biener <rguenther@suse.de>
3598
3599 PR tree-optimization/91257
3600 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3601 most cases, instead call compare_values which handles the
3602 symbolic ranges we handle specially.
3603 (compare_values_warnv): Do not call operand_less_p but open-code
3604 the effective fold calls. Avoid converting so much.
3605
3606 2019-07-29 Martin Liska <mliska@suse.cz>
3607
3608 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3609 remove LHS of operator new call. It's handled latter.
3610
3611 2019-07-29 Richard Biener <rguenther@suse.de>
3612
3613 PR tree-optimization/91267
3614 * vr-values.c (vr_values::update_value_range): Add early return
3615 for effectively VARYING lattice entry.
3616
3617 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3618
3619 PR debug/86638
3620 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3621 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3622 necessary if keep_all_vdefs_p is true.
3623 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3624 that keep_all_vdefs_p is false.
3625 (mark_all_reaching_defs_necessary): Likewise.
3626 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3627
3628 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3629
3630 * common.opt (Og): Change the initial value of flag_dse to 0.
3631 * opts.c (default_options_table): Move OPT_ftree_dse from
3632 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3633 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3634 entry before the OPT_ftree_sra entry.
3635 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3636 of flags disabled by Og.
3637
3638 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3639
3640 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3641 variables for -Og.
3642
3643 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3644
3645 * doc/sourcebuild.texi (check-function-bodies): Document.
3646
3647 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3648
3649 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3650 VEC_DUPLICATE of a fixed-length vector even if the result
3651 is variable-length. Likewise fold a duplicate of a
3652 variable-length vector if the variable-length vector is
3653 itself a duplicate of a fixed-length sequence.
3654 (test_vector_ops_duplicate): Test more cases.
3655
3656 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3657
3658 * vector-builder.h (vector_builder): Add a shape template parameter.
3659 (vector_builder::new_unary_operation): New function, generalizing
3660 the old tree_vector_builder function.
3661 (vector_builder::new_binary_operation): Likewise.
3662 (vector_builder::binary_encoded_nelts): Likewise.
3663 * int-vector-builder.h (int_vector_builder): Update template
3664 parameters to vector_builder.
3665 (int_vector_builder::shape_nelts): New function.
3666 * rtx-vector-builder.h (rtx_vector_builder): Update template
3667 parameters to vector_builder.
3668 (rtx_vector_builder::shape_nelts): New function.
3669 (rtx_vector_builder::nelts_of): Likewise.
3670 (rtx_vector_builder::npatterns_of): Likewise.
3671 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3672 * tree-vector-builder.h (tree_vector_builder): Update template
3673 parameters to vector_builder.
3674 (tree_vector_builder::shape_nelts): New function.
3675 (tree_vector_builder::nelts_of): Likewise.
3676 (tree_vector_builder::npatterns_of): Likewise.
3677 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3678 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3679 (tree_vector_builder::new_binary_operation): Delete.
3680 (tree_vector_builder::binary_encoded_nelts): Likewise.
3681 * simplify-rtx.c: Include rtx-vector-builder.h.
3682 (distributes_over_addition_p): New function.
3683 (simplify_const_unary_operation)
3684 (simplify_const_binary_operation): Generalize handling of vector
3685 constants to include variable-length vectors.
3686 (test_vector_ops_series): Add more tests.
3687
3688 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3689
3690 PR lto/91222
3691 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3692 than INDENTIFIER_POINTER.
3693
3694 2019-07-28 Martin Liska <mliska@suse.cz>
3695
3696 PR ipa/89330
3697 * cgraph.c (symbol_table::create_edge): Always allocate
3698 a cgraph_edge.
3699 (symbol_table::free_edge): Store summary_id to
3700 edge_released_summary_ids if != -1;
3701 * cgraph.h (NEXT_FREE_NODE): Remove.
3702 (SET_NEXT_FREE_NODE): Likewise.
3703 (NEXT_FREE_EDGE): Likewise.
3704 (symbol_table::release_symbol): Store summary_id to
3705 cgraph_released_summary_ids if != -1;
3706 (symbol_table::allocate_cgraph_symbol): Always allocate
3707 a cgraph_node.
3708
3709 2019-07-28 Alan Modra <amodra@gmail.com>
3710
3711 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3712 gen_sibcall.
3713
3714 2019-07-28 Alan Modra <amodra@gmail.com>
3715
3716 PR target/91135
3717 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3718 define.
3719 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3720 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3721 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3722
3723 2019-07-28 Alan Modra <amodra@gmail.com>
3724
3725 PR target/91050
3726 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3727 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3728 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3729 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3730 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3731 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3732 in asm_default spec.
3733 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3734 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3735
3736 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3737
3738 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3739
3740 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3741
3742 PR target/89517
3743 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3744 * config/aarch64/aarch64-option-extensions.def: Add new comments
3745 and restore easier to read options.
3746
3747 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3748
3749 * convert.c (convert_to_real_1): Move part of conversion code...
3750 * match.pd: ...To here.
3751
3752 2019-07-26 Martin Jambor <mjambor@suse.cz>
3753
3754 PR ipa/89330
3755 * ipa-inline-transform.c (check_speculations_1): New function.
3756 (push_all_edges_in_set_to_vec): Likewise.
3757 (check_speculations): Use check_speculations_1, new parameter
3758 new_edges.
3759 (inline_call): Pass new_edges to check_speculations.
3760 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3761 NULL.
3762 (speculation_useful_p): Early return true if edge is inlined, remove
3763 later checks for inline_failed.
3764
3765 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3766
3767 PR rtl-optimization/91223
3768 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3769 matching with INOUT operand.
3770
3771 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3772
3773 * stmt.c (expand_case): Try to narrow the index type if it's larger
3774 than a word. Tidy up.
3775
3776 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3777
3778 * cif-code.def (NEVER_CALL): New code.
3779 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3780 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3781
3782 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3783
3784 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3785 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3786
3787 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3788
3789 * ipa-devirt.c (add_type_duplicate): Fix return value.
3790
3791 2019-07-25 Richard Biener <rguenther@suse.de>
3792
3793 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3794 type parameter and use it instead of guessing expression
3795 type from the first operand.
3796 (extract_range_from_binary_expr): Pass expr_type down.
3797
3798 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3799
3800 * config/arm/arm.md (SATrev): Change to code attribute.
3801 (*satsi_<SAT:code>): Adjust for the above.
3802 (*satsi_<SAT:code>_shift): Likewise.
3803
3804 2019-07-25 Richard Biener <rguenther@suse.de>
3805
3806 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3807 Make value_range * temporary const.
3808 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3809 Likewise.
3810 (evrp_range_analyzer::record_ranges_from_): Likewise.
3811 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3812 deal with having recorded a const one.
3813 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3814 Return a const value_range *.
3815 (evrp_range_analyzer::pop_value_range): Likewise.
3816 (evrp_range_analyzer::stack): Record const value_range *s.
3817 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3818 Adjust.
3819 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3820 (format_integer): Likewise.
3821 (sprintf_dom_walker::handle_gimple_call): Likewise.
3822 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3823 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3824 (vrp_prop::get_value_range): Adjust.
3825 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3826 modifying the lattice in-place.
3827 (vrp_prop::visit_stmt): Likewise.
3828 * vr-values.c (vr_values::get_lattice_entry): New private method.
3829 (vr_values::get_value_range): Wrap it and return a const
3830 value_range *.
3831 (vr_values::set_def_to_varying): New.
3832 (vr_values::set_defs_to_varying): Use it.
3833 (vr_values::update_value_range): Likewise.
3834 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3835 (values::op_with_constant_singleton_va): Likewise.
3836 (vr_values::extract_range_for_var_from_co): Likewise.
3837 (vr_values::extract_range_from_ssa_name): Likewise.
3838 (vr_values::extract_range_from_cond_expr): Likewise.
3839 (vr_values::extract_range_basic): Likewise.
3840 (compare_ranges): Take const value_range *, adjust.
3841 (compare_range_with_value): Likewise.
3842 (vrp_valueize): Adjust.
3843 (vrp_valueize_1): Likewise.
3844 (vr_values::get_vr_for_comparison): Return a const value_range *.
3845 (vr_values::compare_name_with_value): Adjust.
3846 (vr_values::compare_names): Likewise.
3847 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3848 Likewise.
3849 (vr_values::vrp_evaluate_conditional): Likewise.
3850 (find_case_label_ranges): Take a const value_range *.
3851 (vr_values::vrp_visit_switch_stmt): Adjust.
3852 (vr_values::extract_range_from_phi_node): Likewise.
3853 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3854 (vr_values::simplify_abs_using_ranges): Likewise.
3855 (test_for_singularity): Take a const value_range *.
3856 (range_fits_type_p): Likewise.
3857 (vr_values::simplify_cond_using_ranges_1): Adjust.
3858 (vr_values::simplify_cond_using_ranges_2): Likewise.
3859 (vr_values::simplify_switch_using_ranges): Likewise.
3860 (vr_values::simplify_float_conversion_usi): Likewise.
3861 (vr_values::two_valued_val_range_p): Likewise.
3862 * vr-values.h (vr_values::get_value_range): Return a const
3863 value_range *.
3864 (vr_values::set_def_to_varying): New.
3865 (vr_values::get_lattice_entry): New private method.
3866 (vr_values::get_vr_for_comparison): Return a const value_range *.
3867
3868 2019-07-25 Martin Liska <mliska@suse.cz>
3869 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3870
3871 PR c++/23383
3872 * common.opt: Add -fallocation-dce
3873 * gimple.c (gimple_call_operator_delete_p): New.
3874 * gimple.h (gimple_call_operator_delete_p): Likewise.
3875 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3876 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
3877 DECL_IS_OPERATOR_DELETE_P.
3878 (mark_all_reaching_defs_necessary_1): Likewise.
3879 (propagate_necessity): Likewise.
3880 (eliminate_unnecessary_stmts): Handle
3881 gimple_call_operator_delete_p.
3882 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
3883 Add packing of OPERATOR_DELETE.
3884 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
3885 Similarly here.
3886 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
3887 (DECL_SET_IS_OPERATOR_DELETE): New.
3888 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
3889
3890 2019-07-25 Martin Liska <mliska@suse.cz>
3891
3892 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
3893 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
3894 * coverage.c (coverage_begin_function): Likewise.
3895 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
3896 * gimple.c (gimple_call_nonnull_result_p): Likewise.
3897 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
3898 (sem_item::hash_referenced_symbol_properties): Likewise.
3899 * lto-streamer-out.c (hash_tree): Likewise.
3900 * predict.c (expr_expected_value_1): Likewise.
3901 * tree-inline.c (expand_call_inline): Likewise.
3902 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3903 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3904 * tree-core.h (enum function_decl_type): New enum.
3905 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
3906 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
3907 (set_function_decl_type): Likewise.
3908 (DECL_IS_OPERATOR_NEW_P): New.
3909 (DECL_SET_IS_OPERATOR_NEW): Likewise.
3910 (DECL_LAMBDA_FUNCTION): Likewise.
3911 (DECL_LAMBDA_FUNCTION_P): Likewise.
3912 (DECL_IS_OPERATOR_NEW): Remove.
3913 (DECL_SET_LAMBDA_FUNCTION): Likewise.
3914
3915 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
3916
3917 * ipa-profile.c (get_most_common_single_value): Use
3918 get_nth_most_common_value.
3919 * profile.c (sort_hist_value): New function.
3920 (compute_value_histograms): Call sort_hist_value to sort the
3921 values after loading from disk.
3922 * value-prof.c (get_most_common_single_value): Rename to ...
3923 get_nth_most_common_value. Add input params n, return
3924 the n_th value and count.
3925 (gimple_divmod_fixed_value_transform): Use
3926 get_nth_most_common_value.
3927 (gimple_ic_transform): Likewise.
3928 (gimple_stringops_transform): Likewise.
3929 * value-prof.h (get_most_common_single_value): Add input params
3930 n, default to 0.
3931
3932 2019-07-25 Richard Biener <rguenther@suse.de>
3933
3934 PR tree-optimization/91236
3935 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3936 size of CONSTRUCTOR write. Fix buffer size we pass to
3937 native_encode_expr.
3938
3939 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3940
3941 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
3942 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
3943 r273773.
3944
3945 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3946
3947 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
3948 explicitly disabled with --disable-initfini-array.
3949
3950 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3951
3952 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
3953 if-exists.
3954
3955 2019-07-24 Martin Sebor <msebor@redhat.com>
3956
3957 PR tree-optimization/91183
3958 PR tree-optimization/86688
3959 * builtins.c (compute_objsize): Handle MEM_REF.
3960 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
3961 (get_min_string_length): Remove.
3962 (count_nonzero_bytes): New function.
3963 (handle_char_store): Rename...
3964 (handle_store): to this. Handle multibyte stores via integer types.
3965 (strlen_check_and_optimize_stmt): Adjust conditional and the called
3966 function name.
3967
3968 2019-07-24 Martin Sebor <msebor@redhat.com>
3969
3970 PR driver/80545
3971 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
3972 (diagnostic_report_diagnostic): Same.
3973 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
3974 (diagnostic_context::lang_mask): New data member.
3975 * ipa-pure-const.c (suggest_attribute): Use
3976 lang_hooks.option_lang_mask ().
3977 * opts-common.c (option_enabled): Handle new argument.
3978 (get_option_state): Pass an additional argument.
3979 * opts.c (print_filtered_help): Print supported languages for
3980 unsupported options. Adjust printing of current state.
3981 * opts.h (option_enabled): Add argument.
3982 * toplev.c (print_switch_values): Use lang_mask.
3983 (general_init): Set global_dc->lang_mask.
3984
3985 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3986
3987 PR bootstrap/87030
3988 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
3989
3990 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
3991
3992 * cgraphunit.c (symbol_table::compile): Start and stop
3993 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
3994 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
3995
3996 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
3997
3998 * gimplify.c (flag_instrument_functions_exclude_p): Include
3999 namespace/class information in the printable name.
4000 * opts.c (add_comma_separated_to_vector): Add NUL terminator
4001 to tokens entered into the vector.
4002
4003 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
4004
4005 * tree-nested.c (build_simple_mem_ref_notrap): New function.
4006 (get_static_chain): Call it instead of build_simple_mem_ref.
4007 (get_frame_field): Likewise.
4008 (get_nonlocal_debug_decl): Likewise.
4009 (convert_nonlocal_reference_op): Likewise.
4010
4011 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
4012
4013 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
4014 declaration.
4015 (arc_compute_frame_size): Millicode is disabled when compiling
4016 ISR.
4017 (arc_return_address_register): Likewise.
4018 (arc_compute_function_type): Likewise.
4019 (arc_compute_frame_size): Likewise.
4020 (secondary_reload_info): Likewise.
4021 (arc_get_unalign): Likewise.
4022 (arc_can_use_return_insn): Declare.
4023 * config/arc/arc.c (AUX_LP_START): Define
4024 (AUX_LP_END): Likewise.
4025 (arc_frame_info): Update gmask member to 64-bit datum.
4026 (GMASK_LEN): Update.
4027 (arc_compute_function_type): Make it static, move it forward.
4028 (arc_must_save_register): Update, consider the extra regs.
4029 (arc_compute_millicode_save_restore_regs): Update to use the 64
4030 bit gmask.
4031 (arc_compute_frame_size): Likewise.
4032 (arc_enter_leave_p): Likewise.
4033 (arc_save_callee_saves): Likewise.
4034 (arc_restore_callee_saves): Likewise.
4035 (arc_save_callee_enter): Likewise.
4036 (arc_restore_callee_leave): Likewise.
4037 (arc_save_callee_milli): Likewise.
4038 (arc_restore_callee_milli): Likewise.
4039 (arc_expand_prologue): Add new interrupt handling.
4040 (arc_return_address_register): Make it static, move it forward.
4041 (arc_expand_epilogue): Add new interrupt handling.
4042 (arc_get_unalign): Delete.
4043 (arc_epilogue_uses): Make sure we do not remove the extra
4044 saved/restored registers when interrupt.
4045 (arc_can_use_return_insn): New function.
4046 (push_reg): Likewise.
4047 (pop_reg): Likewise.
4048 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
4049 procedures.
4050 (arc_restore_callee_saves): Likewise, but restoring.
4051 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
4052 (R33_REG): Likewise.
4053 (R34_REG): Likewise.
4054 (R35_REG): Likewise.
4055 (R36_REG): Likewise.
4056 (R37_REG): Likewise.
4057 (R38_REG): Likewise.
4058 (R39_REG): Likewise.
4059 (R45_REG): Likewise.
4060 (R46_REG): Likewise.
4061 (R47_REG): Likewise.
4062 (R48_REG): Likewise.
4063 (R49_REG): Likewise.
4064 (R50_REG): Likewise.
4065 (R51_REG): Likewise.
4066 (R52_REG): Likewise.
4067 (R53_REG): Likewise.
4068 (R54_REG): Likewise.
4069 (R55_REG): Likewise.
4070 (R56_REG): Likewise.
4071 (R58_REG): Likewise.
4072 (type): Add rtie attribute.
4073 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
4074 (movsi_insn): Accept moves to lp_count.
4075 (rtie): Update pattern.
4076 (simple_return): Simplify it, don't use this pattern as a return
4077 from an interrupt.
4078 (arc600_rtie): New pattern.
4079 (p_return_i): Clean up.
4080 (return): Likewise.
4081 * config/arc/builtins.def (rtie): Only available for non ARC6xx
4082 family CPUs.
4083 * config/arc/predicates.md (move_src_operand): Consider lp_count
4084 as a register.
4085
4086 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
4087
4088 * config/s390/predicates.md (addv_const_operand): New predicate.
4089 * config/s390/s390-modes.def (CCO): New condition code mode.
4090 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
4091 (s390_branch_condition_mask): Likewise.
4092 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
4093 ("mulv<mode>4"): New expanders.
4094 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
4095 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
4096 pattern definitions.
4097
4098 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4099
4100 PR middle-end/91166
4101 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
4102 (define_predicates): Add entry for uniform_vector_p.
4103 (vec_same_elem_p): New match pattern.
4104
4105 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4106
4107 PR bootstrap/87030
4108 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
4109 * config/i386/darwin32-biarch.h .. to here.
4110 * config/i386/darwin64-biarch.h: Adjust comments.
4111 * config/rs6000/darwin32-biarch.h: Likewise.
4112 * config/rs6000/darwin64-biarch.h: Likewise.
4113 * config.gcc: Missed commit from r273746
4114 (*-*-darwin*): Don't include CPU t-darwin here.
4115 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4116 an error message if i686-darwin configuration is attempted for
4117 Darwin >= 18.
4118
4119 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
4120
4121 PR bootstrap/87030
4122 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
4123 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4124 an error message if i686-darwin configuration is attempted for
4125 Darwin >= 18.
4126 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
4127 (powerpc-*-darwin*): Use biarch files where needed.
4128 (powerpc64-*-darwin*): Likewise.
4129 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
4130 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4131 arch case.
4132 * config/i386/darwin32-biarch.h: New.
4133 * config/i386/darwin64.h: Rename.
4134 * config/i386/darwin64-biarch.h: To this.
4135 * config/i386/t-darwin: Rename.
4136 * config/i386/t-darwin32-biarch: To this.
4137 * config/i386/t-darwin64: Rename.
4138 * config/i386/t-darwin64-biarch: To this.
4139 * config/rs6000/darwin32-biarch.h: New.
4140 * config/rs6000/darwin64.h: Rename.
4141 * config/rs6000/darwin64-biarch.h: To this.
4142 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4143 arch case.
4144 * config/rs6000/t-darwin8: Rename.
4145 * config/rs6000/t-darwin32-biarch: To this.
4146 * config/rs6000/t-darwin64 Rename.
4147 * config/rs6000/t-darwin64-biarch: To this.
4148
4149 2019-07-23 Martin Sebor <msebor@redhat.com>
4150
4151 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
4152
4153 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4154
4155 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
4156 (rh): New alias for it.
4157
4158 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4159
4160 * gdbhooks.py: Pass replace=True to
4161 gdb.printing.register_pretty_printer.
4162
4163 2019-07-23 Richard Biener <rguenther@suse.de>
4164
4165 PR debug/91231
4166 * lto-streamer-in.c (input_function): Drop inline-entry markers
4167 that ended up with an unknown location block.
4168
4169 2019-07-23 Richard Biener <rguenther@suse.de>
4170
4171 PR tree-optimization/83518
4172 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
4173 init from a constant even when partial defs are already recorded.
4174
4175 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4176
4177 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
4178 * config/i386/znver1.md: Enable patterns for znver2 and add store
4179 variants which use extra AGU unit.
4180
4181 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4182
4183 * config/i386/i386-options.c (ix86_option_override_internal): Default
4184 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
4185 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
4186 for ZNVER2.
4187
4188 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4189
4190 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
4191 (znver2_costs): Update 256 bit SSE costs and multiplication.
4192
4193 2019-07-23 Jan Beulich <jbeulich@suse.com>
4194
4195 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
4196 Require only AVX512F.
4197 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
4198 alternative expanding to vpternlog.
4199
4200 2019-07-23 Martin Liska <mliska@suse.cz>
4201
4202 * dwarf2out.c (gen_producer_string): Canonize -flto=N
4203 to -flto in dwarf producer string.
4204
4205 2019-07-23 Richard Biener <rguenther@suse.de>
4206
4207 * tree-cfg.c (label_for_bb): Remove global var.
4208 (main_block_label): Take label_for_bb as argument.
4209 (cleanup_dead_labels_eh): Likewise, adjust.
4210 (cleanup_dead_labels): Adjust.
4211
4212 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4213
4214 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
4215 Configurations): Add documentation for __builtin_mtfsf.
4216
4217 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
4218
4219 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
4220 * config/riscv/riscv.c (riscv_constant_alignment): Use
4221 riscv_align_data_type.
4222 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
4223 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4224 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4225 * config/riscv/riscv.opt (malign-data): New.
4226 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
4227
4228 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
4229
4230 * cgraph.c (dump_graphviz): New function.
4231 * cgraph.h (dump_graphviz): New function.
4232 * symtab.c (dump_graphviz): New function.
4233
4234 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
4235
4236 * config/aarch64/aarch64-simd.md
4237 (*aarch64_simd_sra<mode>): New.
4238 * config/aarch64/iterators.md
4239 (SHIFTRT): New iterator.
4240 (sra_op): New attribute.
4241
4242 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4243
4244 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
4245 callee-saved regs R4->R10 in an interrupt function that calls another
4246 function.
4247
4248 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4249
4250 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
4251 (_mm_blendv_epi8): New.
4252
4253 2019-07-22 Richard Biener <rguenther@suse.de>
4254
4255 PR tree-optimization/91221
4256 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
4257 restrict partial-def handling of empty constructors and
4258 memset to refs with known offset.
4259
4260 2019-07-22 Jan Beulich <jbeulich@suse.com>
4261
4262 * config/i386/sse.md (ternlogsuffix): New.
4263 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
4264 AVX512F is in use.
4265 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
4266
4267 2019-07-22 Martin Liska <mliska@suse.cz>
4268
4269 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
4270 comment.
4271 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
4272
4273 2019-07-22 Martin Liska <mliska@suse.cz>
4274
4275 * lto-section-in.c (lto_get_section_data):
4276 Use new function get_compression.
4277 * lto-streamer-out.c (produce_lto_section): Use
4278 set_compression to encode compression algorithm.
4279 * lto-streamer.h (struct lto_section): Do not
4280 use bitfields in the format.
4281
4282 2019-07-22 Martin Liska <mliska@suse.cz>
4283
4284 PR driver/91172
4285 * opts-common.c (decode_cmdline_option): Decode
4286 argument of -Werror and check it for a wrong language.
4287 * opts-global.c (complain_wrong_lang): Remove such case.
4288
4289 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
4290
4291 * config/arc/arc.c (prepare_move_operands): Always use an
4292 intermediate register when storing a TLS symbols.
4293
4294 2019-07-22 Stafford Horne <shorne@gmail.com>
4295
4296 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
4297 force_reg.
4298
4299 2019-07-22 Stafford Horne <shorne@gmail.com>
4300
4301 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
4302 and munordered-float validations.
4303 * config/or1k/constraints.md (d): New register constraint.
4304 * config/or1k/predicates.md (fp_comparison_operator): New.
4305 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
4306 operands.
4307 (or1k_expand_compare): Normalize unordered comparisons.
4308 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
4309 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
4310 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
4311 * config/or1k/or1k.md (type): Add fpu.
4312 (fpu): New instruction reservation.
4313 (F, f, fr, fi, FI, FOP, fop): New.
4314 (<fop><F:mode>3): New ALU instruction definition.
4315 (float<fi><F:mode>2): New conversion instruction definition.
4316 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
4317 (fpcmpcc): New code iterator.
4318 (*sf_fp_insn): New instruction definition.
4319 (cstore<F:mode>4): New expand definition.
4320 (cbranch<F:mode>4): New expand definition.
4321 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
4322 munordered-float): New options.
4323 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
4324 munordered-float.
4325
4326 2019-07-22 Stafford Horne <shorne@gmail.com>
4327
4328 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
4329 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
4330 documenation to be more clear.
4331 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
4332 more clear.
4333 * config/or1k/or1k.opt (mrori): New option.
4334 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
4335 msfimm, mshftimm): Rewrite documentation to be more clear.
4336 * config/or1k/or1k.md (insn_support): Add ror and rori.
4337 (enabled): Add conditions for ror and rori.
4338 (rotrsi3): Replace condition for shftimm with ror and rori.
4339
4340 2019-07-22 Stafford Horne <shorne@gmail.com>
4341
4342 PR target/90363
4343 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
4344 (extend<mode>si2): Update predicate.
4345 * config/or1k/predicates.md (volatile_mem_operand): New.
4346 (reg_or_mem_operand): New.
4347
4348 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
4349
4350 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
4351 * config/rs6000/rs6000-call.c: ... to here.
4352
4353 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4354
4355 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
4356 memory.
4357
4358 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4359
4360 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
4361
4362 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4363
4364 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
4365
4366 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4367
4368 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
4369 (any_memory_operand): New predicate.
4370 (reg_or_mem_operand): Use it.
4371
4372 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4373
4374 PR target/91204
4375 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
4376
4377 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
4378
4379 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
4380 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
4381
4382 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4383
4384 * tree.def (OMP_LOOP): New tree code.
4385 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
4386 (enum omp_clause_bind_kind): New enum.
4387 (struct tree_omp_clause): Add subcode.bind_kind.
4388 * tree.h (OMP_LOOP_CHECK): Rename to ...
4389 (OMP_LOOPING_CHECK): ... this.
4390 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
4391 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
4392 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
4393 (OMP_CLAUSE_BIND_KIND): Define.
4394 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4395 bind clause entries.
4396 (walk_tree_1): Handle OMP_CLAUSE_BIND.
4397 * tree-pretty-print.c (dump_omp_clause): Likewise.
4398 (dump_generic_node): Handle OMP_LOOP.
4399 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
4400 (in_omp_construct): New variable.
4401 (is_gimple_stmt): Handle OMP_LOOP.
4402 (gimplify_scan_omp_clauses): For lastprivate don't set
4403 check_non_private if code == OMP_LOOP. For reduction clause
4404 on OMP_LOOP combined with parallel or teams propagate as shared
4405 on the combined construct. Handle OMP_CLAUSE_BIND.
4406 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
4407 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
4408 for constructs from a loop construct to gimplify_scan_omp_clauses.
4409 Don't predetermine iterator linear on OMP_SIMD from loop construct.
4410 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
4411 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
4412 to match the implicit ORT_TARGET construct around whole body.
4413 Temporarily clear in_omp_construct when processing body.
4414 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
4415 etc. temporarily set in_omp_construct when processing body.
4416 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
4417 * omp-low.c (struct omp_context): Add loop_p.
4418 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
4419 in that the original var might be private.
4420 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
4421 (check_omp_nesting_restrictions): Adjust nesting restrictions for
4422 addition of loop construct.
4423 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
4424
4425 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
4426 lastprivate non-addressable iterator of a collapse(1) simd.
4427
4428 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
4429
4430 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
4431 as in rs6000.c.
4432
4433 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
4434
4435 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
4436 refer to default conditions. Warn for the 'y' spec which is ignored
4437 by current linkers.
4438
4439 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
4440
4441 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
4442 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4443 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4444 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4445 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4446 init_cumulative_args, rs6000_promote_function_mode,
4447 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4448 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4449 rs6000_function_arg_boundary, rs6000_parm_offset,
4450 rs6000_parm_start, rs6000_arg_size,
4451 rs6000_darwin64_record_arg_advance_flush,
4452 rs6000_darwin64_record_arg_advance_recurse,
4453 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4454 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4455 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4456 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4457 rs6000_finish_function_arg, rs6000_function_arg,
4458 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4459 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4460 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4461 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4462 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4463 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4464 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4465 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4466 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4467 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4468 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4469 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4470 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4471 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4472 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4473 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4474 get_element_number, altivec_expand_vec_set_builtin,
4475 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4476 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4477 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4478 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4479 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4480 rs6000_expand_builtin, rs6000_vector_type,
4481 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4482 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4483 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
4484 to rs6000-call.c.
4485 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
4486 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4487 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4488 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4489 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4490 init_cumulative_args, rs6000_promote_function_mode,
4491 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4492 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4493 rs6000_function_arg_boundary, rs6000_parm_offset,
4494 rs6000_parm_start, rs6000_arg_size,
4495 rs6000_darwin64_record_arg_advance_flush,
4496 rs6000_darwin64_record_arg_advance_recurse,
4497 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4498 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4499 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4500 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4501 rs6000_finish_function_arg, rs6000_function_arg,
4502 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4503 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4504 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4505 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4506 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4507 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4508 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4509 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4510 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4511 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4512 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4513 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4514 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4515 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4516 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4517 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4518 get_element_number, altivec_expand_vec_set_builtin,
4519 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4520 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4521 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4522 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4523 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4524 rs6000_expand_builtin, rs6000_vector_type,
4525 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4526 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4527 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
4528 to here from rs6000.c.
4529 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
4530 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
4531 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
4532 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
4533 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
4534 rs6000_return_in_memory, rs6000_return_in_msb,
4535 rs6000_pass_by_reference, setup_incoming_varargs,
4536 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
4537 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
4538 rs6000_function_arg_padding, rs6000_function_arg,
4539 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
4540 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
4541 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
4542 rs6000_passes_long_double, rs6000_passes_vector,
4543 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
4544 altivec_builtin_mask_for_load) Add declarations.
4545 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
4546 * config/config.gcc: Add new source file rs6000-call.c to garbage
4547 collector and extra_objs.
4548
4549 2019-07-19 Jeff Law <law@redhat.com>
4550
4551 PR tree-optimization/86061
4552 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4553 strncpy. Drop some trivial dead code.
4554 (maybe_trim_memstar_call): Handle strncpy.
4555
4556 2019-07-19 Richard Biener <rguenther@suse.de>
4557
4558 PR tree-optimization/91211
4559 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4560 memset encoding size.
4561
4562 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4563
4564 PR target/91204
4565 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4566
4567 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4568
4569 PR ipa/91194
4570 * ipa-inline.c (recursive_inlining): Fix limits check.
4571
4572 2019-07-19 Richard Biener <rguenther@suse.de>
4573
4574 PR tree-optimization/91200
4575 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4576 no PHI nodes in middle-bb.
4577
4578 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4579
4580 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4581 to +sve-bitperm.
4582 * config/aarch64/aarch64-option-extensions.def: Likewise.
4583
4584 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4585
4586 PR middle-end/91190
4587 * function.c (insert_temp_slot_address): Store into the hash table
4588 a copy of address to avoid RTL sharing issues.
4589
4590 2019-07-19 Richard Biener <rguenther@suse.de>
4591
4592 PR tree-optimization/91207
4593 Revert
4594 2019-07-17 Richard Biener <rguenther@suse.de>
4595
4596 PR tree-optimization/91178
4597 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4598 loads with a gap larger than the vector size always use
4599 VMAT_STRIDED_SLP.
4600 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4601 avoid loading vectors that are only contained in the gap
4602 and thus are not needed.
4603
4604 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4605
4606 * config/i386/i386.md (*addqi_2_slp): Remove.
4607 (*<code>qi_2_slp): Ditto.
4608
4609 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4610
4611 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4612 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4613 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4614 Rename function from rs6000_prefixed_address.
4615 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4616 TARGET_HAS_TOC.
4617 (TARGET_TOC): Likewise.
4618 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4619 rs6000.h.
4620 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4621 TARGET_HAS_TOC.
4622 (TARGET_TOC): Likewise.
4623 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4624 rs6000.h.
4625 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4626 TARGET_HAS_TOC.
4627 (TARGET_TOC): Likewise.
4628 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4629 check to require -mcmodel=medium for pc-relative addressing.
4630 (create_TOC_reference): Add assertion for TARGET_TOC.
4631 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4632 TARGET_NO_TOC.
4633 (rs6000_emit_move): Likewise.
4634 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4635 to 'TOC_alias_set'.
4636 (get_TOC_alias_set): Likewise.
4637 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4638 TARGET_NO_TOC.
4639 (rs6000_can_eliminate): Likewise.
4640 (rs6000_prefixed_address_mode_p): Rename function from
4641 rs6000_prefixed_address.
4642 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4643 TARGET_HAS_TOC and not pc-relative.
4644 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4645 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4646 TARGET_HAS_TOC.
4647 (TARGET_TOC): Likewise.
4648 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4649 rs6000.h.
4650
4651 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4652
4653 PR target/91188
4654 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4655 for operand 0. Do not use (match_dup) to match operand 1 with
4656 operand 0. Add check in insn constraint that either input operand
4657 matches operand 0. Use SWI12 mode iterator to also handle
4658 HImode operands.
4659 (*and<mode>_1_slp): Ditto.
4660 (*<code>qi_1_slp): Ditto.
4661 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4662 Do not use (match_dup) to match operand 1 with operand 0. Add
4663 check in insn constraint that operand 1 matches operand 0.
4664 Use SWI12 mode iterator to also handle HImode operands.
4665 (*ashl<mode>3_1_slp): Ditto.
4666 (*<shift_insn><mode>3_1_slp): Ditto.
4667 (*<rotate_insn><mode>3_1_slp): Ditto.
4668
4669 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4670
4671 * config/arm/arm-builtins.c
4672 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4673 (arm_expand_unop_builtin): Likewise.
4674 * config/arm/crypto.md
4675 (crypto_sha1h): Convert from define_insn to define_expand.
4676 (crypto_<crypto_pattern>): Likewise.
4677 (crypto_sha1h_lb): New define_insn.
4678 (crypto_<crypto_pattern>_lb): Likewise.
4679
4680 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4681
4682 PR target/90317
4683 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4684 (vsha1cq_u32): Likewise.
4685 (vsha1pq_u32): Likewise.
4686 (vsha1mq_u32): Likewise.
4687 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4688 vec select.
4689 (crypto_sha1c): Correct vec select.
4690 (crypto_sha1m): Likewise.
4691 (crypto_sha1p): Likewise.
4692
4693 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4694
4695 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4696 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4697 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4698 (subdi_zesidi_zesidi): Likewise.
4699 (negdi2_compare, negdi2_insn): Likewise.
4700 (negdi_extensidi): Likewise.
4701 (negdi_zero_extendsidi): Likewise.
4702 (arm_cmpdi_insn): Likewise.
4703 (subsi3_carryin): Use arm_borrow_operation.
4704 (subsi3_carryin_const): Likewise.
4705 (subsi3_carryin_const0): Likewise.
4706 (subsi3_carryin_compare): Likewise.
4707 (subsi3_carryin_compare_const): Likewise.
4708 (subsi3_carryin_compare_const0): Likewise.
4709 (subsi3_carryin_shift): Likewise.
4710 (rsbsi3_carryin_shift): Likewise.
4711 (negsi2_carryin_compare): Likewise.
4712
4713 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4714
4715 PR tree-optimization/91137
4716 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4717 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4718 Init, use and fini the above new field.
4719 (determine_base_object_1): New function.
4720 (determine_base_object): Reimplement using walk_tree.
4721
4722 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4723
4724 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4725 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4726 CLEANUP_FORCE_FAST_DCE is set.
4727 * ifcvt.c (rest_of_handle_if_conversion): Pass
4728 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4729 if-conversion succeeded.
4730
4731 2019-07-18 Richard Biener <rguenther@suse.de>
4732
4733 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4734 branches to make code less indented.
4735
4736 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4737
4738 PR middle-end/81824
4739 * attribs.c (decls_mismatched_attributes): Simplify the logic
4740 that avoids duplicates and false positives.
4741
4742 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4743
4744 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4745 data into data section when generating PIC code.
4746 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4747 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4748 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4749 return 2 for SOM and 0 for other targets.
4750
4751 2019-07-17 Jeff Law <law@redhat.com>
4752
4753 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4754 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4755 avoid unexpected switch statement fallthru.
4756
4757 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4758
4759 * config/i386/i386.md (*add<dwi>3_doubleword):
4760 Remove redundant constraints.
4761 (*add<mode>_1): Ditto.
4762 (*addhi_1): Ditto.
4763 (*addqi_1): Ditto.
4764 (*addqi_1_slp): Ditto.
4765 (*add<mode>_2): Ditto.
4766 (*addv<mode>4): Ditto.
4767 (*sub<dwi>3_doubleword): Ditto.
4768 (*sub<mode>_1): Ditto.
4769 (*subqi_1_slp): Ditto.
4770 (*sub<mode>_2): Ditto.
4771 (*subv<mode>4): Ditto.
4772 (*sub<mode>_3): Ditto.
4773 (@add<mode>3_carry): Ditto.
4774 (@sub<mode>3_carry): Ditto.
4775 (*add<mode>3_cc_overflow_1): Ditto.
4776 (*add<mode>3_zext_cc_overflow_2): Ditto.
4777 (*anddi_1): Ditto.
4778 (*and<mode>_1): Ditto.
4779 (*andqi_1): Ditto.
4780 (*andqi_1_slp): Ditto.
4781 (*anddi_2): Ditto.
4782 (*andqi_2_maybe_si): Ditto.
4783 (*and<mode>_2): Ditto.
4784 (*andqi_2_slp): Ditto.
4785 (*<code><mode>_1): Ditto.
4786 (*<code>qi_1): Ditto.
4787 (*<code>qi_1_slp): Ditto.
4788 (*<code><mode>_2): Ditto.
4789 (*<code>qi_2_slp): Ditto.
4790
4791 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4792
4793 * alias.c (record_component_aliases): Do not simplify pointed-to
4794 types of ODR types.
4795
4796 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4797
4798 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4799 partial reg stall on alternative 2.
4800
4801 2019-07-17 Richard Biener <rguenther@suse.de>
4802
4803 PR tree-optimization/91178
4804 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4805 lower SSA names to avoid quadratic behavior in the common case.
4806 * tree-data-ref.c (split_constant_offset): Add limit argument
4807 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4808 (split_constant_offset_1): Add limit argument and use it to
4809 limit SSA def walking. Optimize the common plus/minus case.
4810
4811 2019-07-17 Richard Biener <rguenther@suse.de>
4812
4813 PR tree-optimization/91178
4814 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4815 loads with a gap larger than the vector size always use
4816 VMAT_STRIDED_SLP.
4817 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4818 avoid loading vectors that are only contained in the gap
4819 and thus are not needed.
4820
4821 2019-07-17 Richard Biener <rguenther@suse.de>
4822
4823 PR tree-optimization/91180
4824 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4825 computation for memset partial defs.
4826
4827 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4828
4829 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4830 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4831 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4832 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4833 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4834 * omp-grid.c (grid_process_grid_body,
4835 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4836 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4837 == GF_OMP_FOR_KIND_SIMD.
4838 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4839 check_omp_nesting_restrictions, scan_omp_1_stmt,
4840 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4841 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4842 omp_find_scan): Likewise.
4843 * omp-expand.c (expand_omp_for): Likewise.
4844 * omp-general.c (omp_extract_for_data): Likewise.
4845
4846 PR tree-optimization/91157
4847 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4848 a vector boolean with scalar mode.
4849 (expand_vector_condition): Handle first operand being a vector boolean
4850 with scalar mode.
4851 (expand_vector_operations_1): For comparisons, don't bail out early
4852 if the return type is vector boolean with scalar mode, but comparison
4853 operand type is not.
4854
4855 2019-07-17 Richard Biener <rguenther@suse.de>
4856
4857 PR tree-optimization/91181
4858 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4859 IFN_LOADs as calls.
4860
4861 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4862
4863 * config/i386/i386.md (*testdi_1): Match CCZmode for
4864 constants that might have the SImode sign bit set.
4865 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4866 Use correct constraints for pentium pairing.
4867 (*test<mode>_1): Ditto.
4868
4869 2019-07-16 Jeff Law <law@redhat.com>
4870
4871 PR rtl-optimization/91173
4872 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4873 SSA_NAME with a constant value, fold its value into the offset
4874 and clear the base before calling gen_addr_rtx.
4875
4876 2019-07-16 Jakub Jelinek <jakub@redhat.com>
4877
4878 PR rtl-optimization/91164
4879 * dse.c (rest_of_handle_dse): If dead edges have been purged,
4880 invalidate dominance info.
4881
4882 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4883
4884 * read-md.h (md_reader::record_potential_iterator_use): Add a
4885 file_location parameter.
4886 * read-rtl.c (attribute_use::loc): New field.
4887 (map_attr_string): Take a file_location parameter. Report cases
4888 in which attributes map to multiple distinct values.
4889 (apply_attribute_uses): Update call accordingly.
4890 (md_reader::handle_overloaded_name): Likewise.
4891 (md_reader::apply_iterator_to_string): Likewise. Skip empty
4892 nonnull strings.
4893 (record_attribute_use): Take a file_location parameter.
4894 Initialize attribute_use::loc.
4895 (md_reader::record_potential_iterator_use): Take a file_location
4896 parameter. Update call to record_attribute_use.
4897 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
4898 (rtx_reader::read_rtx_code): Likewise.
4899 (rtx_reader::read_rtx_operand): Likewise. Record a location
4900 for implicitly-expanded empty strings.
4901
4902 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4903
4904 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
4905 Use file_location instead of separate fields.
4906 (md_reader::set_md_ptr_loc): Take a file_location instead of a
4907 separate filename and line number.
4908 * read-md.c (ptr_loc): As above.
4909 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
4910 (md_reader::fprint_md_ptr_loc): Likewise.
4911 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
4912 instead of a separate filename and line number.
4913 (md_reader::read_string): Update call accordingly.
4914
4915 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4916
4917 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4918 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
4919 leaving the choice between SFDF and P implicit.
4920 (*mov<mode>_update2): Likewise.
4921 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
4922 rather than leaving the choice betweem IBM128 and GPR implicit.
4923 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
4924 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
4925 QHSI implicit.
4926 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
4927 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
4928 * config/rs6000/vsx.md
4929 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
4930 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
4931 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
4932 and VSX_EXTRACT_I implicit.
4933
4934 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4935
4936 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
4937 Explicitly use <MOVEP1:MODE> for the mode attribute.
4938
4939 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
4940
4941 PR bootstrap/91176
4942 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
4943
4944 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
4945
4946 PR target/91050
4947 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
4948 .machine directive.
4949
4950 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
4951
4952 * config/i386/i386.md (@test<mode>_ccno_1):
4953 Rename from test<mode>_ccno_1.
4954 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
4955 (*testqi_1_maybe_si): Remove modrm attribute.
4956 (*test<mode>_1): Ditto.
4957 * config/i386/i386-expand.c (ix86_split_idivmod): Use
4958 gen_test_ccno_1 and gen_extend_insn.
4959
4960 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
4961
4962 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
4963 to 0.
4964
4965 2019-07-15 Richard Biener <rguenther@suse.de>
4966
4967 PR middle-end/91162
4968 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
4969 node make sure to replace all uses with something valid.
4970
4971 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
4972
4973 PR tree-optimization/88497
4974 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
4975 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
4976 function undistribute_bitref_for_vector.
4977 (undistribute_bitref_for_vector): New function.
4978 (cleanup_vinfo_map): Likewise.
4979 (sort_by_mach_mode): Likewise.
4980
4981 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
4982
4983 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
4984 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
4985 and testdi_ccno_1 using SWI48 mode attribute.
4986 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
4987 x86_64_szext_general_operand.
4988 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
4989 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
4990 instead of genera_operand mode attribute.
4991
4992 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
4993
4994 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
4995 fopen and fclose to their respective types.
4996 (DotFn.invoke): Ditto.
4997
4998 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
4999
5000 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
5001 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
5002 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
5003 (array_index_predicate): Remove.
5004 (analyze_function_body): Account cost for variable ofsetted array
5005 indexing.
5006 (estimate_node_size_and_time): Do not compute array index hint.
5007 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
5008 (inline_read_section): Do not read array index hint.
5009 (ipa_fn_summary_write): Do not write array index hint.
5010 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
5011 * ipa-cp.c (hint_time_bonus): Remove.
5012 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
5013 (ipa_fnsummary): Remove array_index.
5014 * ipa-inline.c (want_inline_small_function_p): Do not use
5015 array_index.
5016 (edge_badness): Likewise.
5017 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
5018
5019 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
5020
5021 PR target/91148
5022 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
5023 superfluous "builtin function" phrasing.
5024
5025 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
5026
5027 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
5028 Break out from ...
5029 (aliasing_component_refs_walk): Break out from ...
5030 (aliasing_component_refs_p): ... here.
5031
5032 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
5033
5034 PR target/91148
5035 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
5036 "builtin function" phrasing.
5037
5038 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5039
5040 PR target/90723
5041 * recog.h (temporary_volatile_ok): New class.
5042 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
5043 volatile_ok temporarily to true using temporary_volatile_ok.
5044 * expr.c (emit_block_move_via_cpymem): Likewise.
5045 * optabs.c (maybe_legitimize_operand): Likewise.
5046
5047 2019-07-13 Jakub Jelinek <jakub@redhat.com>
5048
5049 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
5050 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
5051 uses inside of order(concurrent) constructs.
5052 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
5053 OMP_CLAUSE_ORDER is seen.
5054 * omp-low.c (struct omp_context): Add order_concurrent member.
5055 (scan_sharing_clauses): Set ctx->order_concurrent if
5056 OMP_CLAUSE_ORDER is seen.
5057 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
5058 of simd order(concurrent). Diagnose constructs not allowed inside of
5059 for order(concurrent).
5060 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
5061 complaining about static double setjmp (double); or class static
5062 methods or non-global namespace setjmps.
5063 (omp_runtime_api_call): New function.
5064 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
5065 order(concurrent) loops.
5066
5067 2019-07-12 Martin Sebor <msebor@redhat.com>
5068
5069 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
5070 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
5071 * tree-vrp.c (vrp_prop::check_mem_ref): Use
5072 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5073
5074 2019-07-12 Jan Hubicka <jh@suse.cz>
5075
5076 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
5077 (indirect_refs_may_alias_p): ... here.
5078 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
5079 mem refs in the access paths.
5080
5081 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
5082
5083 PR tree-optimization/89430
5084 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
5085 store elimination for local variable without address escape.
5086
5087 2019-07-12 Jeff Law <law@redhat.com>
5088
5089 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
5090 for the ".far" section.
5091
5092 2019-07-12 Richard Biener <rguenther@suse.de>
5093
5094 PR tree-optimization/91145
5095 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
5096 chain check.
5097
5098 2019-07-12 Alexandre Oliva <oliva@adacore.com>
5099
5100 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
5101 rather than this_state as the lowering context for the ELSE
5102 seq in a GIMPLE_EH_ELSE.
5103
5104 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5105
5106 * vector-builder.h (vector_builder::elt): Allow already-supplied
5107 elements to be read back before building is complete.
5108
5109 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5110
5111 PR rtl-optimization/91136
5112 * df-core.c (ACCESSING REFS): Fix typos in comment.
5113 * resource.c (mark_target_live_reg): Add artificial defs that occur at
5114 the beginning of the block to the initial set of live registers.
5115
5116 2019-07-12 Richard Biener <rguenther@suse.de>
5117
5118 * fold-const.h (get_array_ctor_element_at_index): Adjust.
5119 * fold-const.c (get_array_ctor_element_at_index): Add
5120 ctor_idx output parameter informing the caller where in
5121 the constructor the element was (not) found. Add early exit
5122 for when the ctor is sorted.
5123 * gimple-fold.c (fold_array_ctor_reference): Support constant
5124 folding across multiple array elements.
5125
5126 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5127
5128 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
5129 doesn't have location, set the current location to the function's end.
5130
5131 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5132
5133 * config/aarch64/aarch64.md (*compare_condjump<mode>)
5134 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
5135 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
5136 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
5137 * config/aarch64/aarch64-simd.md
5138 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
5139 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
5140 * config/aarch64/aarch64-sve.md
5141 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
5142 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
5143
5144 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5145
5146 * doc/md.texi: Document that @ patterns can have different
5147 numbers of operands.
5148 * genemit.c (handle_overloaded_gen): Handle this case.
5149 * genopinit.c (handle_overloaded_gen): Likewise.
5150 * gensupport.c (replace_operands_with_dups): Iterate over
5151 the new rtx's format rather than the old one's.
5152
5153 2019-07-12 Jakub Jelinek <jakub@redhat.com>
5154
5155 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
5156 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5157 order clause entries.
5158 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
5159 * tree-pretty-print.c (dump_omp_clause): Likewise.
5160 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
5161 Likewise.
5162 * omp-low.c (scan_sharing_clauses): Likewise.
5163 * tree-nested.c (convert_nonlocal_omp_clauses,
5164 convert_local_omp_clauses): Likewise.
5165
5166 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
5167
5168 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
5169 fallthrough target of current basic block isn't the placed
5170 right next.
5171
5172 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
5173
5174 PR target/90980
5175 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
5176 (_mm512_storeu_epi64): Likewise.
5177 (_mm512_loadu_epi32): Likewise.
5178 (_mm512_storeu_epi32): Likewise.
5179 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
5180 (_mm_storeu_epi64): Likewise.
5181 (_mm256_storeu_epi32): Likewise.
5182 (_mm_storeu_epi32): Likewise.
5183
5184 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5185
5186 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
5187
5188 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5189
5190 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
5191 Handle Modula-2.
5192
5193 2019-07-11 Jakub Jelinek <jakub@redhat.com>
5194
5195 PR target/91124
5196 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
5197 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5198 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
5199 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
5200 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
5201 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
5202 define_insns.
5203 (ufix_truncv2dfv2si2<mask_name>): Change into ...
5204 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
5205 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
5206 define_insns.
5207 (sse2_cvttpd2dq<mask_name>): Change into ...
5208 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
5209 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
5210 (*sse2_cvtpd2dq<mask_name>): Change into ...
5211 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5212 Add "C" constraint to const0_operand.
5213 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
5214 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
5215 changes.
5216
5217 PR target/91124
5218 * config/i386/i386-builtin-types.def
5219 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
5220 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
5221 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
5222 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
5223 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
5224 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
5225 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
5226 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
5227 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
5228 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
5229 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
5230 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
5231 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
5232 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
5233 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
5234 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
5235 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
5236 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
5237 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
5238 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
5239 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
5240 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
5241 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
5242 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
5243 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
5244 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
5245 __builtin_ia32_vpdpbusd_v4si_maskz,
5246 __builtin_ia32_vpdpbusds_v16si_mask,
5247 __builtin_ia32_vpdpbusds_v16si_maskz,
5248 __builtin_ia32_vpdpbusds_v8si_mask,
5249 __builtin_ia32_vpdpbusds_v8si_maskz,
5250 __builtin_ia32_vpdpbusds_v4si_mask,
5251 __builtin_ia32_vpdpbusds_v4si_maskz,
5252 __builtin_ia32_vpdpwssd_v16si_mask,
5253 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
5254 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
5255 __builtin_ia32_vpdpwssd_v4si_maskz,
5256 __builtin_ia32_vpdpwssds_v16si_mask,
5257 __builtin_ia32_vpdpwssds_v16si_maskz,
5258 __builtin_ia32_vpdpwssds_v8si_mask,
5259 __builtin_ia32_vpdpwssds_v8si_maskz,
5260 __builtin_ia32_vpdpwssds_v4si_mask,
5261 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
5262 suffixed types rather than *_INT.
5263 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
5264 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
5265 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
5266 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
5267 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
5268 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
5269
5270 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
5271
5272 * tree-vrp.c (intersect_ranges): If we know the intersection is
5273 empty, there is no need to conservatively add anything else to
5274 the set.
5275
5276 2019-07-11 Richard Biener <rguenther@suse.de>
5277
5278 PR middle-end/91131
5279 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
5280 when the object is volatile and we have not cleared it even though
5281 there are no nonzero elements.
5282
5283 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
5284
5285 * config/rs6000/predicates.md (cint34_operand): Update
5286 SIGNED_34BIT_OFFSET_P call.
5287 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
5288 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
5289 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
5290 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
5291 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
5292 argument.
5293 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
5294 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
5295 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
5296 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
5297 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
5298
5299 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
5300
5301 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
5302 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
5303 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
5304 (DEF_MIN_OSX_VERSION): New.
5305
5306 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5307
5308 * fold-const.c (fold_relational_const): Fix folding of
5309 vector-to-scalar NE_EXPRs.
5310 (test_vector_folding): Add more tests.
5311
5312 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5313
5314 PR target/91060
5315 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
5316 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
5317 (vec_setv2di_internal): Reexpress as...
5318 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
5319 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
5320 rather than gen_neon_vset_lane<mode>.
5321
5322 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
5323
5324 PR target/91102
5325 * lra-constraints.c (process_alt_operands): Don't match user
5326 defined regs only if they are early clobbers.
5327
5328 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
5329
5330 * wide-int.h (wi::lshift): Reject negative values for the fast path.
5331
5332 2019-07-10 Richard Biener <rguenther@suse.de>
5333
5334 PR tree-optimization/91126
5335 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
5336 native encoding offset for BYTES_BIG_ENDIAN.
5337 (vn_reference_lookup_3): Likewise.
5338
5339 2019-07-10 Richard Biener <rguenther@suse.de>
5340
5341 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
5342 LHS whenever possible.
5343
5344 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
5345
5346 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
5347 from ...; work also on duplicated types.
5348 (nonoverlapping_component_refs_since_match): ... here
5349 (ncr_type_uid): Break out from ...
5350 (ncr_compar): ... here; look for TYPE_UID of canonical type if
5351 available.
5352 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
5353 the types and nonoverlapping_component_refs_p_1 to disambiguate.
5354
5355 2019-07-09 Martin Sebor <msebor@redhat.com>
5356
5357 PR tree-optimization/90989
5358 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
5359 optimization to just single character stores.
5360
5361 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
5362
5363 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
5364 Swap operands only once.
5365
5366 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
5367
5368 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
5369 for both call instructions.
5370
5371 2019-07-09 John Darrington <john@darrington.wattle.id.au>
5372
5373 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
5374 rather than GET_MODE_BITSIZE to better handle partial integer modes.
5375
5376 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
5377
5378 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
5379 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
5380 function from rs6000-logue.c back to rs6000.c.
5381 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
5382
5383 2019-07-09 Martin Sebor <msebor@redhat.com>
5384
5385 PR c++/61339
5386 * auto-profile.c: Change class-key of PODs to struct and others
5387 to class.
5388 * basic-block.h: Same.
5389 * bitmap.c (bitmap_alloc): Same.
5390 * bitmap.h: Same.
5391 * builtins.c (expand_builtin_prefetch): Same.
5392 (expand_builtin_interclass_mathfn): Same.
5393 (expand_builtin_strlen): Same.
5394 (expand_builtin_mempcpy_args): Same.
5395 (expand_cmpstr): Same.
5396 (expand_builtin___clear_cache): Same.
5397 (expand_ifn_atomic_bit_test_and): Same.
5398 (expand_builtin_thread_pointer): Same.
5399 (expand_builtin_set_thread_pointer): Same.
5400 * caller-save.c (setup_save_areas): Same.
5401 (replace_reg_with_saved_mem): Same.
5402 (insert_restore): Same.
5403 (insert_save): Same.
5404 (add_used_regs): Same.
5405 * cfg.c (get_bb_copy): Same.
5406 (set_loop_copy): Same.
5407 * cfg.h: Same.
5408 * cfganal.h: Same.
5409 * cfgexpand.c (alloc_stack_frame_space): Same.
5410 (add_stack_var): Same.
5411 (add_stack_var_conflict): Same.
5412 (add_scope_conflicts_1): Same.
5413 (update_alias_info_with_stack_vars): Same.
5414 (expand_used_vars): Same.
5415 * cfghooks.c (redirect_edge_and_branch_force): Same.
5416 (delete_basic_block): Same.
5417 (split_edge): Same.
5418 (make_forwarder_block): Same.
5419 (force_nonfallthru): Same.
5420 (duplicate_block): Same.
5421 (lv_flush_pending_stmts): Same.
5422 * cfghooks.h: Same.
5423 * cfgloop.c (flow_loops_cfg_dump): Same.
5424 (flow_loop_nested_p): Same.
5425 (superloop_at_depth): Same.
5426 (get_loop_latch_edges): Same.
5427 (flow_loop_dump): Same.
5428 (flow_loops_dump): Same.
5429 (flow_loops_free): Same.
5430 (flow_loop_nodes_find): Same.
5431 (establish_preds): Same.
5432 (flow_loop_tree_node_add): Same.
5433 (flow_loop_tree_node_remove): Same.
5434 (flow_loops_find): Same.
5435 (find_subloop_latch_edge_by_profile): Same.
5436 (find_subloop_latch_edge_by_ivs): Same.
5437 (mfb_redirect_edges_in_set): Same.
5438 (form_subloop): Same.
5439 (merge_latch_edges): Same.
5440 (disambiguate_multiple_latches): Same.
5441 (disambiguate_loops_with_multiple_latches): Same.
5442 (flow_bb_inside_loop_p): Same.
5443 (glb_enum_p): Same.
5444 (get_loop_body_with_size): Same.
5445 (get_loop_body): Same.
5446 (fill_sons_in_loop): Same.
5447 (get_loop_body_in_dom_order): Same.
5448 (get_loop_body_in_custom_order): Same.
5449 (release_recorded_exits): Same.
5450 (get_loop_exit_edges): Same.
5451 (num_loop_branches): Same.
5452 (remove_bb_from_loops): Same.
5453 (find_common_loop): Same.
5454 (delete_loop): Same.
5455 (cancel_loop): Same.
5456 (verify_loop_structure): Same.
5457 (loop_preheader_edge): Same.
5458 (loop_exit_edge_p): Same.
5459 (single_exit): Same.
5460 (loop_exits_to_bb_p): Same.
5461 (loop_exits_from_bb_p): Same.
5462 (get_loop_location): Same.
5463 (record_niter_bound): Same.
5464 (get_estimated_loop_iterations_int): Same.
5465 (max_stmt_executions_int): Same.
5466 (likely_max_stmt_executions_int): Same.
5467 (get_estimated_loop_iterations): Same.
5468 (get_max_loop_iterations): Same.
5469 (get_max_loop_iterations_int): Same.
5470 (get_likely_max_loop_iterations): Same.
5471 * cfgloop.h (simple_loop_desc): Same.
5472 (get_loop): Same.
5473 (loop_depth): Same.
5474 (loop_outer): Same.
5475 (loop_iterator::next): Same.
5476 (loop_outermost): Same.
5477 * cfgloopanal.c (mark_irreducible_loops): Same.
5478 (num_loop_insns): Same.
5479 (average_num_loop_insns): Same.
5480 (expected_loop_iterations_unbounded): Same.
5481 (expected_loop_iterations): Same.
5482 (mark_loop_exit_edges): Same.
5483 (single_likely_exit): Same.
5484 * cfgloopmanip.c (fix_bb_placement): Same.
5485 (fix_bb_placements): Same.
5486 (remove_path): Same.
5487 (place_new_loop): Same.
5488 (add_loop): Same.
5489 (scale_loop_frequencies): Same.
5490 (scale_loop_profile): Same.
5491 (create_empty_if_region_on_edge): Same.
5492 (create_empty_loop_on_edge): Same.
5493 (loopify): Same.
5494 (unloop): Same.
5495 (fix_loop_placements): Same.
5496 (copy_loop_info): Same.
5497 (duplicate_loop): Same.
5498 (duplicate_subloops): Same.
5499 (loop_redirect_edge): Same.
5500 (can_duplicate_loop_p): Same.
5501 (duplicate_loop_to_header_edge): Same.
5502 (mfb_keep_just): Same.
5503 (has_preds_from_loop): Same.
5504 (create_preheader): Same.
5505 (create_preheaders): Same.
5506 (lv_adjust_loop_entry_edge): Same.
5507 (loop_version): Same.
5508 * cfgloopmanip.h: Same.
5509 * cgraph.h: Same.
5510 * cgraphbuild.c: Same.
5511 * combine.c (make_extraction): Same.
5512 * config/i386/i386-features.c: Same.
5513 * config/i386/i386-features.h: Same.
5514 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
5515 (ix86_emit_outlined_ms2sysv_restore): Same.
5516 (ix86_noce_conversion_profitable_p): Same.
5517 (ix86_init_cost): Same.
5518 (ix86_simd_clone_usable): Same.
5519 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
5520 Wstruct-not-pod.
5521 * coretypes.h: Same.
5522 * data-streamer-in.c (string_for_index): Change class-key of PODs
5523 to struct and others to class.
5524 (streamer_read_indexed_string): Same.
5525 (streamer_read_string): Same.
5526 (bp_unpack_indexed_string): Same.
5527 (bp_unpack_string): Same.
5528 (streamer_read_uhwi): Same.
5529 (streamer_read_hwi): Same.
5530 (streamer_read_gcov_count): Same.
5531 (streamer_read_wide_int): Same.
5532 * data-streamer.h (streamer_write_bitpack): Same.
5533 (bp_unpack_value): Same.
5534 (streamer_write_char_stream): Same.
5535 (streamer_write_hwi_in_range): Same.
5536 (streamer_write_record_start): Same.
5537 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
5538 (add_cross_iteration_register_deps): Same.
5539 (build_intra_loop_deps): Same.
5540 * df-core.c (df_analyze): Same.
5541 (loop_post_order_compute): Same.
5542 (loop_inverted_post_order_compute): Same.
5543 * df-problems.c (df_rd_alloc): Same.
5544 (df_rd_simulate_one_insn): Same.
5545 (df_rd_local_compute): Same.
5546 (df_rd_init_solution): Same.
5547 (df_rd_confluence_n): Same.
5548 (df_rd_transfer_function): Same.
5549 (df_rd_free): Same.
5550 (df_rd_dump_defs_set): Same.
5551 (df_rd_top_dump): Same.
5552 (df_lr_alloc): Same.
5553 (df_lr_reset): Same.
5554 (df_lr_local_compute): Same.
5555 (df_lr_init): Same.
5556 (df_lr_confluence_n): Same.
5557 (df_lr_free): Same.
5558 (df_lr_top_dump): Same.
5559 (df_lr_verify_transfer_functions): Same.
5560 (df_live_alloc): Same.
5561 (df_live_reset): Same.
5562 (df_live_init): Same.
5563 (df_live_confluence_n): Same.
5564 (df_live_finalize): Same.
5565 (df_live_free): Same.
5566 (df_live_top_dump): Same.
5567 (df_live_verify_transfer_functions): Same.
5568 (df_mir_alloc): Same.
5569 (df_mir_reset): Same.
5570 (df_mir_init): Same.
5571 (df_mir_confluence_n): Same.
5572 (df_mir_free): Same.
5573 (df_mir_top_dump): Same.
5574 (df_word_lr_alloc): Same.
5575 (df_word_lr_reset): Same.
5576 (df_word_lr_init): Same.
5577 (df_word_lr_confluence_n): Same.
5578 (df_word_lr_free): Same.
5579 (df_word_lr_top_dump): Same.
5580 (df_md_alloc): Same.
5581 (df_md_simulate_one_insn): Same.
5582 (df_md_reset): Same.
5583 (df_md_init): Same.
5584 (df_md_free): Same.
5585 (df_md_top_dump): Same.
5586 * df-scan.c (df_insn_delete): Same.
5587 (df_insn_rescan): Same.
5588 (df_notes_rescan): Same.
5589 (df_sort_and_compress_mws): Same.
5590 (df_install_mws): Same.
5591 (df_refs_add_to_chains): Same.
5592 (df_ref_create_structure): Same.
5593 (df_ref_record): Same.
5594 (df_def_record_1): Same.
5595 (df_find_hard_reg_defs): Same.
5596 (df_uses_record): Same.
5597 (df_get_conditional_uses): Same.
5598 (df_get_call_refs): Same.
5599 (df_recompute_luids): Same.
5600 (df_get_entry_block_def_set): Same.
5601 (df_entry_block_defs_collect): Same.
5602 (df_get_exit_block_use_set): Same.
5603 (df_exit_block_uses_collect): Same.
5604 (df_mws_verify): Same.
5605 (df_bb_verify): Same.
5606 * df.h (df_scan_get_bb_info): Same.
5607 * doc/tm.texi: Same.
5608 * dse.c (record_store): Same.
5609 * dumpfile.h: Same.
5610 * emit-rtl.c (const_fixed_hasher::equal): Same.
5611 (set_mem_attributes_minus_bitpos): Same.
5612 (change_address): Same.
5613 (adjust_address_1): Same.
5614 (offset_address): Same.
5615 * emit-rtl.h: Same.
5616 * except.c (dw2_build_landing_pads): Same.
5617 (sjlj_emit_dispatch_table): Same.
5618 * explow.c (allocate_dynamic_stack_space): Same.
5619 (emit_stack_probe): Same.
5620 (probe_stack_range): Same.
5621 * expmed.c (store_bit_field_using_insv): Same.
5622 (store_bit_field_1): Same.
5623 (store_integral_bit_field): Same.
5624 (extract_bit_field_using_extv): Same.
5625 (extract_bit_field_1): Same.
5626 (emit_cstore): Same.
5627 * expr.c (emit_block_move_via_cpymem): Same.
5628 (expand_cmpstrn_or_cmpmem): Same.
5629 (set_storage_via_setmem): Same.
5630 (emit_single_push_insn_1): Same.
5631 (expand_assignment): Same.
5632 (store_constructor): Same.
5633 (expand_expr_real_2): Same.
5634 (expand_expr_real_1): Same.
5635 (try_casesi): Same.
5636 * flags.h: Same.
5637 * function.c (try_fit_stack_local): Same.
5638 (assign_stack_local_1): Same.
5639 (assign_stack_local): Same.
5640 (cut_slot_from_list): Same.
5641 (insert_slot_to_list): Same.
5642 (max_slot_level): Same.
5643 (move_slot_to_level): Same.
5644 (temp_address_hasher::equal): Same.
5645 (remove_unused_temp_slot_addresses): Same.
5646 (assign_temp): Same.
5647 (combine_temp_slots): Same.
5648 (update_temp_slot_address): Same.
5649 (preserve_temp_slots): Same.
5650 * function.h: Same.
5651 * fwprop.c: Same.
5652 * gcc-rich-location.h: Same.
5653 * gcov.c: Same.
5654 * genattrtab.c (check_attr_test): Same.
5655 (check_attr_value): Same.
5656 (convert_set_attr_alternative): Same.
5657 (convert_set_attr): Same.
5658 (check_defs): Same.
5659 (copy_boolean): Same.
5660 (get_attr_value): Same.
5661 (expand_delays): Same.
5662 (make_length_attrs): Same.
5663 (min_fn): Same.
5664 (make_alternative_compare): Same.
5665 (simplify_test_exp): Same.
5666 (tests_attr_p): Same.
5667 (get_attr_order): Same.
5668 (clear_struct_flag): Same.
5669 (gen_attr): Same.
5670 (compares_alternatives_p): Same.
5671 (gen_insn): Same.
5672 (gen_delay): Same.
5673 (find_attrs_to_cache): Same.
5674 (write_test_expr): Same.
5675 (walk_attr_value): Same.
5676 (write_attr_get): Same.
5677 (eliminate_known_true): Same.
5678 (write_insn_cases): Same.
5679 (write_attr_case): Same.
5680 (write_attr_valueq): Same.
5681 (write_attr_value): Same.
5682 (write_dummy_eligible_delay): Same.
5683 (next_comma_elt): Same.
5684 (find_attr): Same.
5685 (make_internal_attr): Same.
5686 (copy_rtx_unchanging): Same.
5687 (gen_insn_reserv): Same.
5688 (check_tune_attr): Same.
5689 (make_automaton_attrs): Same.
5690 (handle_arg): Same.
5691 * genextract.c (gen_insn): Same.
5692 (VEC_char_to_string): Same.
5693 * genmatch.c (print_operand): Same.
5694 (lower): Same.
5695 (parser::parse_operation): Same.
5696 (parser::parse_capture): Same.
5697 (parser::parse_c_expr): Same.
5698 (parser::parse_simplify): Same.
5699 (main): Same.
5700 * genoutput.c (output_operand_data): Same.
5701 (output_get_insn_name): Same.
5702 (compare_operands): Same.
5703 (place_operands): Same.
5704 (process_template): Same.
5705 (validate_insn_alternatives): Same.
5706 (validate_insn_operands): Same.
5707 (gen_expand): Same.
5708 (note_constraint): Same.
5709 * genpreds.c (write_one_predicate_function): Same.
5710 (add_constraint): Same.
5711 (process_define_register_constraint): Same.
5712 (write_lookup_constraint_1): Same.
5713 (write_lookup_constraint_array): Same.
5714 (write_insn_constraint_len): Same.
5715 (write_reg_class_for_constraint_1): Same.
5716 (write_constraint_satisfied_p_array): Same.
5717 * genrecog.c (optimize_subroutine_group): Same.
5718 * gensupport.c (process_define_predicate): Same.
5719 (queue_pattern): Same.
5720 (remove_from_queue): Same.
5721 (process_rtx): Same.
5722 (is_predicable): Same.
5723 (change_subst_attribute): Same.
5724 (subst_pattern_match): Same.
5725 (alter_constraints): Same.
5726 (alter_attrs_for_insn): Same.
5727 (shift_output_template): Same.
5728 (alter_output_for_subst_insn): Same.
5729 (process_one_cond_exec): Same.
5730 (subst_dup): Same.
5731 (process_define_cond_exec): Same.
5732 (mnemonic_htab_callback): Same.
5733 (gen_mnemonic_attr): Same.
5734 (read_md_rtx): Same.
5735 * ggc-page.c: Same.
5736 * gimple-loop-interchange.cc (dump_reduction): Same.
5737 (dump_induction): Same.
5738 (loop_cand::~loop_cand): Same.
5739 (free_data_refs_with_aux): Same.
5740 (tree_loop_interchange::interchange_loops): Same.
5741 (tree_loop_interchange::map_inductions_to_loop): Same.
5742 (tree_loop_interchange::move_code_to_inner_loop): Same.
5743 (compute_access_stride): Same.
5744 (compute_access_strides): Same.
5745 (proper_loop_form_for_interchange): Same.
5746 (tree_loop_interchange_compute_ddrs): Same.
5747 (prune_datarefs_not_in_loop): Same.
5748 (prepare_data_references): Same.
5749 (pass_linterchange::execute): Same.
5750 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5751 (unroll_jam_possible_p): Same.
5752 (fuse_loops): Same.
5753 (adjust_unroll_factor): Same.
5754 (tree_loop_unroll_and_jam): Same.
5755 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5756 (loop_versioning::expensive_stmt_p): Same.
5757 (loop_versioning::version_for_unity): Same.
5758 (loop_versioning::dump_inner_likelihood): Same.
5759 (loop_versioning::find_per_loop_multiplication): Same.
5760 (loop_versioning::analyze_term_using_scevs): Same.
5761 (loop_versioning::record_address_fragment): Same.
5762 (loop_versioning::analyze_expr): Same.
5763 (loop_versioning::analyze_blocks): Same.
5764 (loop_versioning::prune_conditions): Same.
5765 (loop_versioning::merge_loop_info): Same.
5766 (loop_versioning::add_loop_to_queue): Same.
5767 (loop_versioning::decide_whether_loop_is_versionable): Same.
5768 (loop_versioning::make_versioning_decisions): Same.
5769 (loop_versioning::implement_versioning_decisions): Same.
5770 * gimple-ssa-evrp-analyze.c
5771 (evrp_range_analyzer::record_ranges_from_phis): Same.
5772 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5773 (count_multiple_uses): Same.
5774 (split_group): Same.
5775 (imm_store_chain_info::output_merged_store): Same.
5776 (pass_store_merging::process_store): Same.
5777 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5778 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5779 (is_max): Same.
5780 (alloca_call_type): Same.
5781 (pass_walloca::execute): Same.
5782 * gimple-streamer-in.c (input_phi): Same.
5783 (input_gimple_stmt): Same.
5784 * gimple-streamer.h: Same.
5785 * godump.c (go_force_record_alignment): Same.
5786 (go_format_type): Same.
5787 (go_output_type): Same.
5788 (go_output_fndecl): Same.
5789 (go_output_typedef): Same.
5790 (keyword_hash_init): Same.
5791 (find_dummy_types): Same.
5792 * graph.c (draw_cfg_nodes_no_loops): Same.
5793 (draw_cfg_nodes_for_loop): Same.
5794 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5795 * hsa-brig.c: Same.
5796 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5797 * hsa-dump.c (dump_hsa_cfun): Same.
5798 * hsa-gen.c (gen_function_def_parameters): Same.
5799 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5800 * input.c (dump_line_table_statistics): Same.
5801 (test_lexer): Same.
5802 * input.h: Same.
5803 * internal-fn.c (get_multi_vector_move): Same.
5804 (expand_load_lanes_optab_fn): Same.
5805 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5806 (expand_GOMP_SIMT_EXIT): Same.
5807 (expand_GOMP_SIMT_LAST_LANE): Same.
5808 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5809 (expand_GOMP_SIMT_VOTE_ANY): Same.
5810 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5811 (expand_GOMP_SIMT_XCHG_IDX): Same.
5812 (expand_addsub_overflow): Same.
5813 (expand_neg_overflow): Same.
5814 (expand_mul_overflow): Same.
5815 (expand_call_mem_ref): Same.
5816 (expand_mask_load_optab_fn): Same.
5817 (expand_scatter_store_optab_fn): Same.
5818 (expand_gather_load_optab_fn): Same.
5819 * ipa-cp.c (ipa_get_parm_lattices): Same.
5820 (print_all_lattices): Same.
5821 (ignore_edge_p): Same.
5822 (build_toporder_info): Same.
5823 (free_toporder_info): Same.
5824 (push_node_to_stack): Same.
5825 (ipcp_lattice<valtype>::set_contains_variable): Same.
5826 (set_agg_lats_to_bottom): Same.
5827 (ipcp_bits_lattice::meet_with): Same.
5828 (set_single_call_flag): Same.
5829 (initialize_node_lattices): Same.
5830 (ipa_get_jf_ancestor_result): Same.
5831 (ipcp_verify_propagated_values): Same.
5832 (propagate_scalar_across_jump_function): Same.
5833 (propagate_context_across_jump_function): Same.
5834 (propagate_bits_across_jump_function): Same.
5835 (ipa_vr_operation_and_type_effects): Same.
5836 (propagate_vr_across_jump_function): Same.
5837 (set_check_aggs_by_ref): Same.
5838 (set_chain_of_aglats_contains_variable): Same.
5839 (merge_aggregate_lattices): Same.
5840 (agg_pass_through_permissible_p): Same.
5841 (propagate_aggs_across_jump_function): Same.
5842 (call_passes_through_thunk_p): Same.
5843 (propagate_constants_across_call): Same.
5844 (devirtualization_time_bonus): Same.
5845 (good_cloning_opportunity_p): Same.
5846 (context_independent_aggregate_values): Same.
5847 (gather_context_independent_values): Same.
5848 (perform_estimation_of_a_value): Same.
5849 (estimate_local_effects): Same.
5850 (value_topo_info<valtype>::add_val): Same.
5851 (add_all_node_vals_to_toposort): Same.
5852 (value_topo_info<valtype>::propagate_effects): Same.
5853 (ipcp_propagate_stage): Same.
5854 (ipcp_discover_new_direct_edges): Same.
5855 (same_node_or_its_all_contexts_clone_p): Same.
5856 (cgraph_edge_brings_value_p): Same.
5857 (gather_edges_for_value): Same.
5858 (create_specialized_node): Same.
5859 (find_more_scalar_values_for_callers_subset): Same.
5860 (find_more_contexts_for_caller_subset): Same.
5861 (copy_plats_to_inter): Same.
5862 (intersect_aggregates_with_edge): Same.
5863 (find_aggregate_values_for_callers_subset): Same.
5864 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5865 (decide_about_value): Same.
5866 (decide_whether_version_node): Same.
5867 (spread_undeadness): Same.
5868 (identify_dead_nodes): Same.
5869 (ipcp_store_vr_results): Same.
5870 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5871 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5872 (redirect_to_unreachable): Same.
5873 (edge_set_predicate): Same.
5874 (evaluate_conditions_for_known_args): Same.
5875 (evaluate_properties_for_edge): Same.
5876 (ipa_fn_summary_t::duplicate): Same.
5877 (ipa_call_summary_t::duplicate): Same.
5878 (dump_ipa_call_summary): Same.
5879 (ipa_dump_fn_summary): Same.
5880 (eliminated_by_inlining_prob): Same.
5881 (set_cond_stmt_execution_predicate): Same.
5882 (set_switch_stmt_execution_predicate): Same.
5883 (compute_bb_predicates): Same.
5884 (will_be_nonconstant_expr_predicate): Same.
5885 (phi_result_unknown_predicate): Same.
5886 (analyze_function_body): Same.
5887 (compute_fn_summary): Same.
5888 (estimate_edge_devirt_benefit): Same.
5889 (estimate_edge_size_and_time): Same.
5890 (estimate_calls_size_and_time): Same.
5891 (estimate_node_size_and_time): Same.
5892 (remap_edge_change_prob): Same.
5893 (remap_edge_summaries): Same.
5894 (ipa_merge_fn_summary_after_inlining): Same.
5895 (ipa_fn_summary_generate): Same.
5896 (inline_read_section): Same.
5897 (ipa_fn_summary_read): Same.
5898 (ipa_fn_summary_write): Same.
5899 * ipa-fnsummary.h: Same.
5900 * ipa-hsa.c (ipa_hsa_read_section): Same.
5901 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
5902 * ipa-icf.c (sem_function::param_used_p): Same.
5903 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
5904 * ipa-inline.c (edge_badness): Same.
5905 (inline_small_functions): Same.
5906 * ipa-polymorphic-call.c
5907 (ipa_polymorphic_call_context::stream_out): Same.
5908 * ipa-predicate.c (predicate::remap_after_duplication): Same.
5909 (predicate::remap_after_inlining): Same.
5910 (predicate::stream_out): Same.
5911 * ipa-predicate.h: Same.
5912 * ipa-profile.c (ipa_profile_read_summary): Same.
5913 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
5914 (count_formal_params): Same.
5915 (ipa_dump_param): Same.
5916 (ipa_alloc_node_params): Same.
5917 (ipa_print_node_jump_functions_for_edge): Same.
5918 (ipa_print_node_jump_functions): Same.
5919 (ipa_load_from_parm_agg): Same.
5920 (get_ancestor_addr_info): Same.
5921 (ipa_compute_jump_functions_for_edge): Same.
5922 (ipa_analyze_virtual_call_uses): Same.
5923 (ipa_analyze_stmt_uses): Same.
5924 (ipa_analyze_params_uses_in_bb): Same.
5925 (update_jump_functions_after_inlining): Same.
5926 (try_decrement_rdesc_refcount): Same.
5927 (ipa_impossible_devirt_target): Same.
5928 (update_indirect_edges_after_inlining): Same.
5929 (combine_controlled_uses_counters): Same.
5930 (ipa_edge_args_sum_t::duplicate): Same.
5931 (ipa_write_jump_function): Same.
5932 (ipa_write_indirect_edge_info): Same.
5933 (ipa_write_node_info): Same.
5934 (ipa_read_edge_info): Same.
5935 (ipa_prop_read_section): Same.
5936 (read_replacements_section): Same.
5937 * ipa-prop.h (ipa_get_param_count): Same.
5938 (ipa_get_param): Same.
5939 (ipa_get_type): Same.
5940 (ipa_get_param_move_cost): Same.
5941 (ipa_set_param_used): Same.
5942 (ipa_get_controlled_uses): Same.
5943 (ipa_set_controlled_uses): Same.
5944 (ipa_get_cs_argument_count): Same.
5945 * ipa-pure-const.c (analyze_function): Same.
5946 (pure_const_read_summary): Same.
5947 * ipa-ref.h: Same.
5948 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
5949 * ipa-split.c (test_nonssa_use): Same.
5950 (dump_split_point): Same.
5951 (dominated_by_forbidden): Same.
5952 (split_part_set_ssa_name_p): Same.
5953 (find_split_points): Same.
5954 * ira-build.c (finish_loop_tree_nodes): Same.
5955 (low_pressure_loop_node_p): Same.
5956 * ira-color.c (ira_reuse_stack_slot): Same.
5957 * ira-int.h: Same.
5958 * ira.c (setup_reg_equiv): Same.
5959 (print_insn_chain): Same.
5960 (ira): Same.
5961 * loop-doloop.c (doloop_condition_get): Same.
5962 (add_test): Same.
5963 (record_reg_sets): Same.
5964 (doloop_optimize): Same.
5965 * loop-init.c (loop_optimizer_init): Same.
5966 (fix_loop_structure): Same.
5967 * loop-invariant.c (merge_identical_invariants): Same.
5968 (compute_always_reached): Same.
5969 (find_exits): Same.
5970 (may_assign_reg_p): Same.
5971 (find_invariants_bb): Same.
5972 (find_invariants_body): Same.
5973 (replace_uses): Same.
5974 (can_move_invariant_reg): Same.
5975 (free_inv_motion_data): Same.
5976 (move_single_loop_invariants): Same.
5977 (change_pressure): Same.
5978 (mark_ref_regs): Same.
5979 (calculate_loop_reg_pressure): Same.
5980 * loop-iv.c (biv_entry_hasher::equal): Same.
5981 (iv_extend_to_rtx_code): Same.
5982 (check_iv_ref_table_size): Same.
5983 (clear_iv_info): Same.
5984 (latch_dominating_def): Same.
5985 (iv_get_reaching_def): Same.
5986 (iv_constant): Same.
5987 (iv_subreg): Same.
5988 (iv_extend): Same.
5989 (iv_neg): Same.
5990 (iv_add): Same.
5991 (iv_mult): Same.
5992 (get_biv_step): Same.
5993 (record_iv): Same.
5994 (analyzed_for_bivness_p): Same.
5995 (record_biv): Same.
5996 (iv_analyze_biv): Same.
5997 (iv_analyze_expr): Same.
5998 (iv_analyze_def): Same.
5999 (iv_analyze_op): Same.
6000 (iv_analyze): Same.
6001 (iv_analyze_result): Same.
6002 (biv_p): Same.
6003 (eliminate_implied_conditions): Same.
6004 (simplify_using_initial_values): Same.
6005 (shorten_into_mode): Same.
6006 (canonicalize_iv_subregs): Same.
6007 (determine_max_iter): Same.
6008 (check_simple_exit): Same.
6009 (find_simple_exit): Same.
6010 (get_simple_loop_desc): Same.
6011 * loop-unroll.c (report_unroll): Same.
6012 (decide_unrolling): Same.
6013 (unroll_loops): Same.
6014 (loop_exit_at_end_p): Same.
6015 (decide_unroll_constant_iterations): Same.
6016 (unroll_loop_constant_iterations): Same.
6017 (compare_and_jump_seq): Same.
6018 (unroll_loop_runtime_iterations): Same.
6019 (decide_unroll_stupid): Same.
6020 (unroll_loop_stupid): Same.
6021 (referenced_in_one_insn_in_loop_p): Same.
6022 (reset_debug_uses_in_loop): Same.
6023 (analyze_iv_to_split_insn): Same.
6024 * lra-eliminations.c (lra_debug_elim_table): Same.
6025 (setup_can_eliminate): Same.
6026 (form_sum): Same.
6027 (lra_get_elimination_hard_regno): Same.
6028 (lra_eliminate_regs_1): Same.
6029 (eliminate_regs_in_insn): Same.
6030 (update_reg_eliminate): Same.
6031 (init_elimination): Same.
6032 (lra_eliminate): Same.
6033 * lra-int.h: Same.
6034 * lra-lives.c (initiate_live_solver): Same.
6035 * lra-remat.c (create_remat_bb_data): Same.
6036 * lra-spills.c (lra_spill): Same.
6037 * lra.c (lra_set_insn_recog_data): Same.
6038 (lra_set_used_insn_alternative_by_uid): Same.
6039 (init_reg_info): Same.
6040 (expand_reg_info): Same.
6041 * lto-cgraph.c (output_symtab): Same.
6042 (read_identifier): Same.
6043 (get_alias_symbol): Same.
6044 (input_node): Same.
6045 (input_varpool_node): Same.
6046 (input_ref): Same.
6047 (input_edge): Same.
6048 (input_cgraph_1): Same.
6049 (input_refs): Same.
6050 (input_symtab): Same.
6051 (input_offload_tables): Same.
6052 (output_cgraph_opt_summary): Same.
6053 (input_edge_opt_summary): Same.
6054 (input_cgraph_opt_section): Same.
6055 * lto-section-in.c (lto_free_raw_section_data): Same.
6056 (lto_create_simple_input_block): Same.
6057 (lto_free_function_in_decl_state_for_node): Same.
6058 * lto-streamer-in.c (lto_tag_check_set): Same.
6059 (lto_location_cache::revert_location_cache): Same.
6060 (lto_location_cache::input_location): Same.
6061 (lto_input_location): Same.
6062 (stream_input_location_now): Same.
6063 (lto_input_tree_ref): Same.
6064 (lto_input_eh_catch_list): Same.
6065 (input_eh_region): Same.
6066 (lto_init_eh): Same.
6067 (make_new_block): Same.
6068 (input_cfg): Same.
6069 (fixup_call_stmt_edges): Same.
6070 (input_struct_function_base): Same.
6071 (input_function): Same.
6072 (lto_read_body_or_constructor): Same.
6073 (lto_read_tree_1): Same.
6074 (lto_read_tree): Same.
6075 (lto_input_scc): Same.
6076 (lto_input_tree_1): Same.
6077 (lto_input_toplevel_asms): Same.
6078 (lto_input_mode_table): Same.
6079 (lto_reader_init): Same.
6080 (lto_data_in_create): Same.
6081 * lto-streamer-out.c (output_cfg): Same.
6082 * lto-streamer.h: Same.
6083 * modulo-sched.c (duplicate_insns_of_cycles): Same.
6084 (generate_prolog_epilog): Same.
6085 (mark_loop_unsched): Same.
6086 (dump_insn_location): Same.
6087 (loop_canon_p): Same.
6088 (sms_schedule): Same.
6089 * omp-expand.c (expand_omp_for_ordered_loops): Same.
6090 (expand_omp_for_generic): Same.
6091 (expand_omp_for_static_nochunk): Same.
6092 (expand_omp_for_static_chunk): Same.
6093 (expand_omp_simd): Same.
6094 (expand_omp_taskloop_for_inner): Same.
6095 (expand_oacc_for): Same.
6096 (expand_omp_atomic_pipeline): Same.
6097 (mark_loops_in_oacc_kernels_region): Same.
6098 * omp-offload.c (oacc_xform_loop): Same.
6099 * omp-simd-clone.c (simd_clone_adjust): Same.
6100 * optabs-query.c (get_traditional_extraction_insn): Same.
6101 * optabs.c (expand_vector_broadcast): Same.
6102 (expand_binop_directly): Same.
6103 (expand_twoval_unop): Same.
6104 (expand_twoval_binop): Same.
6105 (expand_unop_direct): Same.
6106 (emit_indirect_jump): Same.
6107 (emit_conditional_move): Same.
6108 (emit_conditional_neg_or_complement): Same.
6109 (emit_conditional_add): Same.
6110 (vector_compare_rtx): Same.
6111 (expand_vec_perm_1): Same.
6112 (expand_vec_perm_const): Same.
6113 (expand_vec_cond_expr): Same.
6114 (expand_vec_series_expr): Same.
6115 (maybe_emit_atomic_exchange): Same.
6116 (maybe_emit_sync_lock_test_and_set): Same.
6117 (expand_atomic_compare_and_swap): Same.
6118 (expand_atomic_load): Same.
6119 (expand_atomic_store): Same.
6120 (maybe_emit_op): Same.
6121 (valid_multiword_target_p): Same.
6122 (create_integer_operand): Same.
6123 (maybe_legitimize_operand_same_code): Same.
6124 (maybe_legitimize_operand): Same.
6125 (create_convert_operand_from_type): Same.
6126 (can_reuse_operands_p): Same.
6127 (maybe_legitimize_operands): Same.
6128 (maybe_gen_insn): Same.
6129 (maybe_expand_insn): Same.
6130 (maybe_expand_jump_insn): Same.
6131 (expand_insn): Same.
6132 * optabs.h (create_expand_operand): Same.
6133 (create_fixed_operand): Same.
6134 (create_output_operand): Same.
6135 (create_input_operand): Same.
6136 (create_convert_operand_to): Same.
6137 (create_convert_operand_from): Same.
6138 * optinfo.h: Same.
6139 * poly-int.h: Same.
6140 * predict.c (optimize_insn_for_speed_p): Same.
6141 (optimize_loop_for_size_p): Same.
6142 (optimize_loop_for_speed_p): Same.
6143 (optimize_loop_nest_for_speed_p): Same.
6144 (get_base_value): Same.
6145 (predicted_by_loop_heuristics_p): Same.
6146 (predict_extra_loop_exits): Same.
6147 (predict_loops): Same.
6148 (predict_paths_for_bb): Same.
6149 (predict_paths_leading_to): Same.
6150 (propagate_freq): Same.
6151 (pass_profile::execute): Same.
6152 * predict.h: Same.
6153 * profile-count.c (profile_count::differs_from_p): Same.
6154 (profile_probability::differs_lot_from_p): Same.
6155 * profile-count.h: Same.
6156 * profile.c (branch_prob): Same.
6157 * regrename.c (free_chain_data): Same.
6158 (mark_conflict): Same.
6159 (create_new_chain): Same.
6160 (merge_overlapping_regs): Same.
6161 (init_rename_info): Same.
6162 (merge_chains): Same.
6163 (regrename_analyze): Same.
6164 (regrename_do_replace): Same.
6165 (scan_rtx_reg): Same.
6166 (record_out_operands): Same.
6167 (build_def_use): Same.
6168 * regrename.h: Same.
6169 * reload.h: Same.
6170 * reload1.c (init_reload): Same.
6171 (maybe_fix_stack_asms): Same.
6172 (copy_reloads): Same.
6173 (count_pseudo): Same.
6174 (count_spilled_pseudo): Same.
6175 (find_reg): Same.
6176 (find_reload_regs): Same.
6177 (select_reload_regs): Same.
6178 (spill_hard_reg): Same.
6179 (fixup_eh_region_note): Same.
6180 (set_reload_reg): Same.
6181 (allocate_reload_reg): Same.
6182 (compute_reload_subreg_offset): Same.
6183 (reload_adjust_reg_for_icode): Same.
6184 (emit_input_reload_insns): Same.
6185 (emit_output_reload_insns): Same.
6186 (do_input_reload): Same.
6187 (inherit_piecemeal_p): Same.
6188 * rtl.h: Same.
6189 * sanopt.c (maybe_get_dominating_check): Same.
6190 (maybe_optimize_ubsan_ptr_ifn): Same.
6191 (can_remove_asan_check): Same.
6192 (maybe_optimize_asan_check_ifn): Same.
6193 (sanopt_optimize_walker): Same.
6194 * sched-deps.c (add_dependence_list): Same.
6195 (chain_to_prev_insn): Same.
6196 (add_insn_mem_dependence): Same.
6197 (create_insn_reg_set): Same.
6198 (maybe_extend_reg_info_p): Same.
6199 (sched_analyze_reg): Same.
6200 (sched_analyze_1): Same.
6201 (get_implicit_reg_pending_clobbers): Same.
6202 (chain_to_prev_insn_p): Same.
6203 (deps_analyze_insn): Same.
6204 (deps_start_bb): Same.
6205 (sched_free_deps): Same.
6206 (init_deps): Same.
6207 (init_deps_reg_last): Same.
6208 (free_deps): Same.
6209 * sched-ebb.c: Same.
6210 * sched-int.h: Same.
6211 * sched-rgn.c (add_branch_dependences): Same.
6212 (concat_insn_mem_list): Same.
6213 (deps_join): Same.
6214 (sched_rgn_compute_dependencies): Same.
6215 * sel-sched-ir.c (reset_target_context): Same.
6216 (copy_deps_context): Same.
6217 (init_id_from_df): Same.
6218 (has_dependence_p): Same.
6219 (change_loops_latches): Same.
6220 (bb_top_order_comparator): Same.
6221 (make_region_from_loop_preheader): Same.
6222 (sel_init_pipelining): Same.
6223 (get_loop_nest_for_rgn): Same.
6224 (make_regions_from_the_rest): Same.
6225 (sel_is_loop_preheader_p): Same.
6226 * sel-sched-ir.h (inner_loop_header_p): Same.
6227 (get_all_loop_exits): Same.
6228 * selftest.h: Same.
6229 * sese.c (sese_build_liveouts): Same.
6230 (sese_insert_phis_for_liveouts): Same.
6231 * sese.h (defined_in_sese_p): Same.
6232 * sreal.c (sreal::stream_out): Same.
6233 * sreal.h: Same.
6234 * streamer-hooks.h: Same.
6235 * target-globals.c (save_target_globals): Same.
6236 * target-globals.h: Same.
6237 * target.def: Same.
6238 * target.h: Same.
6239 * targhooks.c (default_has_ifunc_p): Same.
6240 (default_empty_mask_is_expensive): Same.
6241 (default_init_cost): Same.
6242 * targhooks.h: Same.
6243 * toplev.c: Same.
6244 * tree-affine.c (aff_combination_mult): Same.
6245 (aff_combination_expand): Same.
6246 (aff_combination_constant_multiple_p): Same.
6247 * tree-affine.h: Same.
6248 * tree-cfg.c (build_gimple_cfg): Same.
6249 (replace_loop_annotate_in_block): Same.
6250 (replace_uses_by): Same.
6251 (remove_bb): Same.
6252 (dump_cfg_stats): Same.
6253 (gimple_duplicate_sese_region): Same.
6254 (gimple_duplicate_sese_tail): Same.
6255 (move_block_to_fn): Same.
6256 (replace_block_vars_by_duplicates): Same.
6257 (move_sese_region_to_fn): Same.
6258 (print_loops_bb): Same.
6259 (print_loop): Same.
6260 (print_loops): Same.
6261 (debug): Same.
6262 (debug_loops): Same.
6263 * tree-cfg.h: Same.
6264 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
6265 (chrec_fold_multiply_poly_poly): Same.
6266 (chrec_evaluate): Same.
6267 (chrec_component_in_loop_num): Same.
6268 (reset_evolution_in_loop): Same.
6269 (is_multivariate_chrec): Same.
6270 (chrec_contains_symbols): Same.
6271 (nb_vars_in_chrec): Same.
6272 (chrec_convert_1): Same.
6273 (chrec_convert_aggressive): Same.
6274 * tree-chrec.h: Same.
6275 * tree-core.h: Same.
6276 * tree-data-ref.c (dump_data_dependence_relation): Same.
6277 (canonicalize_base_object_address): Same.
6278 (data_ref_compare_tree): Same.
6279 (prune_runtime_alias_test_list): Same.
6280 (get_segment_min_max): Same.
6281 (create_intersect_range_checks): Same.
6282 (conflict_fn_no_dependence): Same.
6283 (object_address_invariant_in_loop_p): Same.
6284 (analyze_ziv_subscript): Same.
6285 (analyze_siv_subscript_cst_affine): Same.
6286 (analyze_miv_subscript): Same.
6287 (analyze_overlapping_iterations): Same.
6288 (build_classic_dist_vector_1): Same.
6289 (add_other_self_distances): Same.
6290 (same_access_functions): Same.
6291 (build_classic_dir_vector): Same.
6292 (subscript_dependence_tester_1): Same.
6293 (subscript_dependence_tester): Same.
6294 (access_functions_are_affine_or_constant_p): Same.
6295 (get_references_in_stmt): Same.
6296 (loop_nest_has_data_refs): Same.
6297 (graphite_find_data_references_in_stmt): Same.
6298 (find_data_references_in_bb): Same.
6299 (get_base_for_alignment): Same.
6300 (find_loop_nest_1): Same.
6301 (find_loop_nest): Same.
6302 * tree-data-ref.h (dr_alignment): Same.
6303 (ddr_dependence_level): Same.
6304 * tree-if-conv.c (fold_build_cond_expr): Same.
6305 (add_to_predicate_list): Same.
6306 (add_to_dst_predicate_list): Same.
6307 (phi_convertible_by_degenerating_args): Same.
6308 (idx_within_array_bound): Same.
6309 (all_preds_critical_p): Same.
6310 (pred_blocks_visited_p): Same.
6311 (predicate_bbs): Same.
6312 (build_region): Same.
6313 (if_convertible_loop_p_1): Same.
6314 (is_cond_scalar_reduction): Same.
6315 (predicate_scalar_phi): Same.
6316 (remove_conditions_and_labels): Same.
6317 (combine_blocks): Same.
6318 (version_loop_for_if_conversion): Same.
6319 (versionable_outer_loop_p): Same.
6320 (ifcvt_local_dce): Same.
6321 (tree_if_conversion): Same.
6322 (pass_if_conversion::gate): Same.
6323 * tree-if-conv.h: Same.
6324 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
6325 * tree-loop-distribution.c (bb_top_order_cmp): Same.
6326 (free_rdg): Same.
6327 (stmt_has_scalar_dependences_outside_loop): Same.
6328 (copy_loop_before): Same.
6329 (create_bb_after_loop): Same.
6330 (const_with_all_bytes_same): Same.
6331 (generate_memset_builtin): Same.
6332 (generate_memcpy_builtin): Same.
6333 (destroy_loop): Same.
6334 (build_rdg_partition_for_vertex): Same.
6335 (compute_access_range): Same.
6336 (data_ref_segment_size): Same.
6337 (latch_dominated_by_data_ref): Same.
6338 (compute_alias_check_pairs): Same.
6339 (fuse_memset_builtins): Same.
6340 (finalize_partitions): Same.
6341 (find_seed_stmts_for_distribution): Same.
6342 (prepare_perfect_loop_nest): Same.
6343 * tree-parloops.c (lambda_transform_legal_p): Same.
6344 (loop_parallel_p): Same.
6345 (reduc_stmt_res): Same.
6346 (add_field_for_name): Same.
6347 (create_call_for_reduction_1): Same.
6348 (replace_uses_in_bb_by): Same.
6349 (transform_to_exit_first_loop_alt): Same.
6350 (try_transform_to_exit_first_loop_alt): Same.
6351 (transform_to_exit_first_loop): Same.
6352 (num_phis): Same.
6353 (gen_parallel_loop): Same.
6354 (gather_scalar_reductions): Same.
6355 (get_omp_data_i_param): Same.
6356 (try_create_reduction_list): Same.
6357 (oacc_entry_exit_single_gang): Same.
6358 (parallelize_loops): Same.
6359 * tree-pass.h: Same.
6360 * tree-predcom.c (determine_offset): Same.
6361 (last_always_executed_block): Same.
6362 (split_data_refs_to_components): Same.
6363 (suitable_component_p): Same.
6364 (valid_initializer_p): Same.
6365 (find_looparound_phi): Same.
6366 (insert_looparound_copy): Same.
6367 (add_looparound_copies): Same.
6368 (determine_roots_comp): Same.
6369 (predcom_tmp_var): Same.
6370 (initialize_root_vars): Same.
6371 (initialize_root_vars_store_elim_1): Same.
6372 (initialize_root_vars_store_elim_2): Same.
6373 (finalize_eliminated_stores): Same.
6374 (initialize_root_vars_lm): Same.
6375 (remove_stmt): Same.
6376 (determine_unroll_factor): Same.
6377 (execute_pred_commoning_cbck): Same.
6378 (base_names_in_chain_on): Same.
6379 (combine_chains): Same.
6380 (pcom_stmt_dominates_stmt_p): Same.
6381 (try_combine_chains): Same.
6382 (prepare_initializers_chain_store_elim): Same.
6383 (prepare_initializers_chain): Same.
6384 (prepare_initializers): Same.
6385 (prepare_finalizers_chain): Same.
6386 (prepare_finalizers): Same.
6387 (insert_init_seqs): Same.
6388 * tree-scalar-evolution.c (loop_phi_node_p): Same.
6389 (compute_overall_effect_of_inner_loop): Same.
6390 (add_to_evolution_1): Same.
6391 (add_to_evolution): Same.
6392 (follow_ssa_edge_binary): Same.
6393 (follow_ssa_edge_expr): Same.
6394 (backedge_phi_arg_p): Same.
6395 (follow_ssa_edge_in_condition_phi_branch): Same.
6396 (follow_ssa_edge_in_condition_phi): Same.
6397 (follow_ssa_edge_inner_loop_phi): Same.
6398 (follow_ssa_edge): Same.
6399 (analyze_evolution_in_loop): Same.
6400 (analyze_initial_condition): Same.
6401 (interpret_loop_phi): Same.
6402 (interpret_condition_phi): Same.
6403 (interpret_rhs_expr): Same.
6404 (interpret_expr): Same.
6405 (interpret_gimple_assign): Same.
6406 (analyze_scalar_evolution_1): Same.
6407 (analyze_scalar_evolution): Same.
6408 (analyze_scalar_evolution_for_address_of): Same.
6409 (get_instantiated_value_entry): Same.
6410 (loop_closed_phi_def): Same.
6411 (instantiate_scev_name): Same.
6412 (instantiate_scev_poly): Same.
6413 (instantiate_scev_binary): Same.
6414 (instantiate_scev_convert): Same.
6415 (instantiate_scev_not): Same.
6416 (instantiate_scev_r): Same.
6417 (instantiate_scev): Same.
6418 (resolve_mixers): Same.
6419 (initialize_scalar_evolutions_analyzer): Same.
6420 (scev_reset_htab): Same.
6421 (scev_reset): Same.
6422 (derive_simple_iv_with_niters): Same.
6423 (simple_iv_with_niters): Same.
6424 (expression_expensive_p): Same.
6425 (final_value_replacement_loop): Same.
6426 * tree-scalar-evolution.h (block_before_loop): Same.
6427 * tree-ssa-address.h: Same.
6428 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
6429 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
6430 (record_edge_info): Same.
6431 * tree-ssa-live.c (var_map_base_fini): Same.
6432 (remove_unused_locals): Same.
6433 * tree-ssa-live.h: Same.
6434 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
6435 (pass_ch_vect::execute): Same.
6436 (pass_ch::process_loop_p): Same.
6437 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
6438 (movement_possibility): Same.
6439 (outermost_invariant_loop): Same.
6440 (stmt_cost): Same.
6441 (determine_max_movement): Same.
6442 (invariantness_dom_walker::before_dom_children): Same.
6443 (move_computations): Same.
6444 (may_move_till): Same.
6445 (force_move_till_op): Same.
6446 (force_move_till): Same.
6447 (memref_free): Same.
6448 (record_mem_ref_loc): Same.
6449 (set_ref_stored_in_loop): Same.
6450 (mark_ref_stored): Same.
6451 (sort_bbs_in_loop_postorder_cmp): Same.
6452 (sort_locs_in_loop_postorder_cmp): Same.
6453 (analyze_memory_references): Same.
6454 (mem_refs_may_alias_p): Same.
6455 (find_ref_loc_in_loop_cmp): Same.
6456 (rewrite_mem_ref_loc::operator): Same.
6457 (first_mem_ref_loc_1::operator): Same.
6458 (sm_set_flag_if_changed::operator): Same.
6459 (execute_sm_if_changed_flag_set): Same.
6460 (execute_sm): Same.
6461 (hoist_memory_references): Same.
6462 (ref_always_accessed::operator): Same.
6463 (refs_independent_p): Same.
6464 (record_dep_loop): Same.
6465 (ref_indep_loop_p_1): Same.
6466 (ref_indep_loop_p): Same.
6467 (can_sm_ref_p): Same.
6468 (find_refs_for_sm): Same.
6469 (loop_suitable_for_sm): Same.
6470 (store_motion_loop): Same.
6471 (store_motion): Same.
6472 (fill_always_executed_in): Same.
6473 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
6474 (estimated_unrolled_size): Same.
6475 (loop_edge_to_cancel): Same.
6476 (remove_exits_and_undefined_stmts): Same.
6477 (remove_redundant_iv_tests): Same.
6478 (unloop_loops): Same.
6479 (estimated_peeled_sequence_size): Same.
6480 (try_peel_loop): Same.
6481 (canonicalize_loop_induction_variables): Same.
6482 (canonicalize_induction_variables): Same.
6483 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
6484 (name_info): Same.
6485 (stmt_after_inc_pos): Same.
6486 (contains_abnormal_ssa_name_p): Same.
6487 (niter_for_exit): Same.
6488 (find_bivs): Same.
6489 (mark_bivs): Same.
6490 (find_givs_in_bb): Same.
6491 (find_induction_variables): Same.
6492 (find_interesting_uses_cond): Same.
6493 (outermost_invariant_loop_for_expr): Same.
6494 (idx_find_step): Same.
6495 (add_candidate_1): Same.
6496 (add_iv_candidate_derived_from_uses): Same.
6497 (alloc_use_cost_map): Same.
6498 (prepare_decl_rtl): Same.
6499 (generic_predict_doloop_p): Same.
6500 (computation_cost): Same.
6501 (determine_common_wider_type): Same.
6502 (get_computation_aff_1): Same.
6503 (get_use_type): Same.
6504 (determine_group_iv_cost_address): Same.
6505 (iv_period): Same.
6506 (difference_cannot_overflow_p): Same.
6507 (may_eliminate_iv): Same.
6508 (determine_set_costs): Same.
6509 (cheaper_cost_pair): Same.
6510 (compare_cost_pair): Same.
6511 (iv_ca_cand_for_group): Same.
6512 (iv_ca_recount_cost): Same.
6513 (iv_ca_set_remove_invs): Same.
6514 (iv_ca_set_no_cp): Same.
6515 (iv_ca_set_add_invs): Same.
6516 (iv_ca_set_cp): Same.
6517 (iv_ca_add_group): Same.
6518 (iv_ca_cost): Same.
6519 (iv_ca_compare_deps): Same.
6520 (iv_ca_delta_reverse): Same.
6521 (iv_ca_delta_commit): Same.
6522 (iv_ca_cand_used_p): Same.
6523 (iv_ca_delta_free): Same.
6524 (iv_ca_new): Same.
6525 (iv_ca_free): Same.
6526 (iv_ca_dump): Same.
6527 (iv_ca_extend): Same.
6528 (iv_ca_narrow): Same.
6529 (iv_ca_prune): Same.
6530 (cheaper_cost_with_cand): Same.
6531 (iv_ca_replace): Same.
6532 (try_add_cand_for): Same.
6533 (get_initial_solution): Same.
6534 (try_improve_iv_set): Same.
6535 (find_optimal_iv_set_1): Same.
6536 (create_new_iv): Same.
6537 (rewrite_use_compare): Same.
6538 (remove_unused_ivs): Same.
6539 (determine_scaling_factor): Same.
6540 * tree-ssa-loop-ivopts.h: Same.
6541 * tree-ssa-loop-manip.c (create_iv): Same.
6542 (compute_live_loop_exits): Same.
6543 (add_exit_phi): Same.
6544 (add_exit_phis): Same.
6545 (find_uses_to_rename_use): Same.
6546 (find_uses_to_rename_def): Same.
6547 (find_uses_to_rename_in_loop): Same.
6548 (rewrite_into_loop_closed_ssa): Same.
6549 (check_loop_closed_ssa_bb): Same.
6550 (split_loop_exit_edge): Same.
6551 (ip_end_pos): Same.
6552 (ip_normal_pos): Same.
6553 (copy_phi_node_args): Same.
6554 (gimple_duplicate_loop_to_header_edge): Same.
6555 (can_unroll_loop_p): Same.
6556 (determine_exit_conditions): Same.
6557 (scale_dominated_blocks_in_loop): Same.
6558 (niter_for_unrolled_loop): Same.
6559 (tree_transform_and_unroll_loop): Same.
6560 (rewrite_all_phi_nodes_with_iv): Same.
6561 * tree-ssa-loop-manip.h: Same.
6562 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6563 (number_of_iterations_ne): Same.
6564 (assert_no_overflow_lt): Same.
6565 (assert_loop_rolls_lt): Same.
6566 (number_of_iterations_lt): Same.
6567 (adjust_cond_for_loop_until_wrap): Same.
6568 (tree_simplify_using_condition): Same.
6569 (simplify_using_initial_conditions): Same.
6570 (simplify_using_outer_evolutions): Same.
6571 (loop_only_exit_p): Same.
6572 (ssa_defined_by_minus_one_stmt_p): Same.
6573 (number_of_iterations_popcount): Same.
6574 (number_of_iterations_exit): Same.
6575 (find_loop_niter): Same.
6576 (finite_loop_p): Same.
6577 (chain_of_csts_start): Same.
6578 (get_val_for): Same.
6579 (loop_niter_by_eval): Same.
6580 (derive_constant_upper_bound_ops): Same.
6581 (do_warn_aggressive_loop_optimizations): Same.
6582 (record_estimate): Same.
6583 (get_cst_init_from_scev): Same.
6584 (record_nonwrapping_iv): Same.
6585 (idx_infer_loop_bounds): Same.
6586 (infer_loop_bounds_from_ref): Same.
6587 (infer_loop_bounds_from_array): Same.
6588 (infer_loop_bounds_from_pointer_arith): Same.
6589 (infer_loop_bounds_from_signedness): Same.
6590 (bound_index): Same.
6591 (discover_iteration_bound_by_body_walk): Same.
6592 (maybe_lower_iteration_bound): Same.
6593 (estimate_numbers_of_iterations): Same.
6594 (estimated_loop_iterations): Same.
6595 (estimated_loop_iterations_int): Same.
6596 (max_loop_iterations): Same.
6597 (max_loop_iterations_int): Same.
6598 (likely_max_loop_iterations): Same.
6599 (likely_max_loop_iterations_int): Same.
6600 (estimated_stmt_executions_int): Same.
6601 (max_stmt_executions): Same.
6602 (likely_max_stmt_executions): Same.
6603 (estimated_stmt_executions): Same.
6604 (stmt_dominates_stmt_p): Same.
6605 (nowrap_type_p): Same.
6606 (loop_exits_before_overflow): Same.
6607 (scev_var_range_cant_overflow): Same.
6608 (scev_probably_wraps_p): Same.
6609 (free_numbers_of_iterations_estimates): Same.
6610 * tree-ssa-loop-niter.h: Same.
6611 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6612 (idx_analyze_ref): Same.
6613 (analyze_ref): Same.
6614 (gather_memory_references_ref): Same.
6615 (mark_nontemporal_store): Same.
6616 (emit_mfence_after_loop): Same.
6617 (may_use_storent_in_loop_p): Same.
6618 (mark_nontemporal_stores): Same.
6619 (should_unroll_loop_p): Same.
6620 (volume_of_dist_vector): Same.
6621 (add_subscript_strides): Same.
6622 (self_reuse_distance): Same.
6623 (insn_to_prefetch_ratio_too_small_p): Same.
6624 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6625 (patch_loop_exit): Same.
6626 (find_or_create_guard_phi): Same.
6627 (easy_exit_values): Same.
6628 (connect_loop_phis): Same.
6629 (connect_loops): Same.
6630 (compute_new_first_bound): Same.
6631 (split_loop): Same.
6632 (tree_ssa_split_loops): Same.
6633 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6634 (is_maybe_undefined): Same.
6635 (tree_may_unswitch_on): Same.
6636 (simplify_using_entry_checks): Same.
6637 (tree_unswitch_single_loop): Same.
6638 (tree_unswitch_loop): Same.
6639 (tree_unswitch_outer_loop): Same.
6640 (empty_bb_without_guard_p): Same.
6641 (used_outside_loop_p): Same.
6642 (get_vop_from_header): Same.
6643 (hoist_guard): Same.
6644 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6645 (get_lsm_tmp_name): Same.
6646 * tree-ssa-loop.h: Same.
6647 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6648 (build_and_add_sum): Same.
6649 (no_side_effect_bb): Same.
6650 (get_ops): Same.
6651 (linearize_expr): Same.
6652 (should_break_up_subtract): Same.
6653 (linearize_expr_tree): Same.
6654 * tree-ssa-scopedtables.c: Same.
6655 * tree-ssa-scopedtables.h: Same.
6656 * tree-ssa-structalias.c (condense_visit): Same.
6657 (label_visit): Same.
6658 (dump_pred_graph): Same.
6659 (perform_var_substitution): Same.
6660 (move_complex_constraints): Same.
6661 (remove_preds_and_fake_succs): Same.
6662 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6663 (determine_bb_domination_status): Same.
6664 (duplicate_thread_path): Same.
6665 (thread_through_all_blocks): Same.
6666 * tree-ssa-threadupdate.h: Same.
6667 * tree-streamer-in.c (streamer_read_string_cst): Same.
6668 (input_identifier): Same.
6669 (unpack_ts_type_common_value_fields): Same.
6670 (unpack_ts_block_value_fields): Same.
6671 (unpack_ts_translation_unit_decl_value_fields): Same.
6672 (unpack_ts_omp_clause_value_fields): Same.
6673 (streamer_read_tree_bitfields): Same.
6674 (streamer_alloc_tree): Same.
6675 (lto_input_ts_common_tree_pointers): Same.
6676 (lto_input_ts_vector_tree_pointers): Same.
6677 (lto_input_ts_poly_tree_pointers): Same.
6678 (lto_input_ts_complex_tree_pointers): Same.
6679 (lto_input_ts_decl_minimal_tree_pointers): Same.
6680 (lto_input_ts_decl_common_tree_pointers): Same.
6681 (lto_input_ts_decl_non_common_tree_pointers): Same.
6682 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6683 (lto_input_ts_field_decl_tree_pointers): Same.
6684 (lto_input_ts_function_decl_tree_pointers): Same.
6685 (lto_input_ts_type_common_tree_pointers): Same.
6686 (lto_input_ts_type_non_common_tree_pointers): Same.
6687 (lto_input_ts_list_tree_pointers): Same.
6688 (lto_input_ts_vec_tree_pointers): Same.
6689 (lto_input_ts_exp_tree_pointers): Same.
6690 (lto_input_ts_block_tree_pointers): Same.
6691 (lto_input_ts_binfo_tree_pointers): Same.
6692 (lto_input_ts_constructor_tree_pointers): Same.
6693 (lto_input_ts_omp_clause_tree_pointers): Same.
6694 (streamer_read_tree_body): Same.
6695 * tree-streamer.h: Same.
6696 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6697 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6698 (vect_analyze_possibly_independent_ddr): Same.
6699 (vect_analyze_data_ref_dependence): Same.
6700 (vect_compute_data_ref_alignment): Same.
6701 (vect_enhance_data_refs_alignment): Same.
6702 (vect_analyze_data_ref_access): Same.
6703 (vect_check_gather_scatter): Same.
6704 (vect_find_stmt_data_reference): Same.
6705 (vect_create_addr_base_for_vector_ref): Same.
6706 (vect_setup_realignment): Same.
6707 (vect_supportable_dr_alignment): Same.
6708 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6709 (adjust_phi_and_debug_stmts): Same.
6710 (vect_set_loop_mask): Same.
6711 (add_preheader_seq): Same.
6712 (vect_maybe_permute_loop_masks): Same.
6713 (vect_set_loop_masks_directly): Same.
6714 (vect_set_loop_condition_masked): Same.
6715 (vect_set_loop_condition_unmasked): Same.
6716 (slpeel_duplicate_current_defs_from_edges): Same.
6717 (slpeel_add_loop_guard): Same.
6718 (slpeel_can_duplicate_loop_p): Same.
6719 (create_lcssa_for_virtual_phi): Same.
6720 (iv_phi_p): Same.
6721 (vect_update_ivs_after_vectorizer): Same.
6722 (vect_gen_vector_loop_niters_mult_vf): Same.
6723 (slpeel_update_phi_nodes_for_loops): Same.
6724 (slpeel_update_phi_nodes_for_guard1): Same.
6725 (find_guard_arg): Same.
6726 (slpeel_update_phi_nodes_for_guard2): Same.
6727 (slpeel_update_phi_nodes_for_lcssa): Same.
6728 (vect_do_peeling): Same.
6729 (vect_create_cond_for_alias_checks): Same.
6730 (vect_loop_versioning): Same.
6731 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6732 (vect_inner_phi_in_double_reduction_p): Same.
6733 (vect_analyze_scalar_cycles_1): Same.
6734 (vect_fixup_scalar_cycles_with_patterns): Same.
6735 (vect_get_loop_niters): Same.
6736 (bb_in_loop_p): Same.
6737 (vect_get_max_nscalars_per_iter): Same.
6738 (vect_verify_full_masking): Same.
6739 (vect_compute_single_scalar_iteration_cost): Same.
6740 (vect_analyze_loop_form_1): Same.
6741 (vect_analyze_loop_form): Same.
6742 (vect_active_double_reduction_p): Same.
6743 (vect_analyze_loop_operations): Same.
6744 (neutral_op_for_slp_reduction): Same.
6745 (vect_is_simple_reduction): Same.
6746 (vect_model_reduction_cost): Same.
6747 (get_initial_def_for_reduction): Same.
6748 (get_initial_defs_for_reduction): Same.
6749 (vect_create_epilog_for_reduction): Same.
6750 (vectorize_fold_left_reduction): Same.
6751 (vectorizable_reduction): Same.
6752 (vectorizable_induction): Same.
6753 (vectorizable_live_operation): Same.
6754 (loop_niters_no_overflow): Same.
6755 (vect_get_loop_mask): Same.
6756 (vect_transform_loop_stmt): Same.
6757 (vect_transform_loop): Same.
6758 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6759 (vect_determine_precisions): Same.
6760 (vect_pattern_recog_1): Same.
6761 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6762 * tree-vect-stmts.c (stmt_vectype): Same.
6763 (process_use): Same.
6764 (vect_init_vector_1): Same.
6765 (vect_truncate_gather_scatter_offset): Same.
6766 (get_group_load_store_type): Same.
6767 (vect_build_gather_load_calls): Same.
6768 (vect_get_strided_load_store_ops): Same.
6769 (vectorizable_simd_clone_call): Same.
6770 (vectorizable_store): Same.
6771 (permute_vec_elements): Same.
6772 (vectorizable_load): Same.
6773 (vect_transform_stmt): Same.
6774 (supportable_widening_operation): Same.
6775 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6776 (vec_info::free_stmt_vec_info): Same.
6777 (vect_free_loop_info_assumptions): Same.
6778 (vect_loop_vectorized_call): Same.
6779 (set_uid_loop_bbs): Same.
6780 (vectorize_loops): Same.
6781 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6782 * tree.c (add_tree_to_fld_list): Same.
6783 (fld_type_variant_equal_p): Same.
6784 (fld_decl_context): Same.
6785 (fld_incomplete_type_of): Same.
6786 (free_lang_data_in_binfo): Same.
6787 (need_assembler_name_p): Same.
6788 (find_decls_types_r): Same.
6789 (get_eh_types_for_runtime): Same.
6790 (find_decls_types_in_eh_region): Same.
6791 (find_decls_types_in_node): Same.
6792 (assign_assembler_name_if_needed): Same.
6793 * value-prof.c (stream_out_histogram_value): Same.
6794 * value-prof.h: Same.
6795 * var-tracking.c (use_narrower_mode): Same.
6796 (prepare_call_arguments): Same.
6797 (vt_expand_loc_callback): Same.
6798 (resolve_expansions_pending_recursion): Same.
6799 (vt_expand_loc): Same.
6800 * varasm.c (const_hash_1): Same.
6801 (compare_constant): Same.
6802 (tree_output_constant_def): Same.
6803 (simplify_subtraction): Same.
6804 (get_pool_constant): Same.
6805 (output_constant_pool_2): Same.
6806 (output_constant_pool_1): Same.
6807 (mark_constants_in_pattern): Same.
6808 (mark_constant_pool): Same.
6809 (get_section_anchor): Same.
6810 * vr-values.c (compare_range_with_value): Same.
6811 (vr_values::extract_range_from_phi_node): Same.
6812 * vr-values.h: Same.
6813 * web.c (unionfind_union): Same.
6814 * wide-int.h: Same.
6815
6816 2019-07-09 Martin Sebor <msebor@redhat.com>
6817
6818 PR c++/61339
6819 * align.h: Change class-key from class to struct and vice versa
6820 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6821 * alloc-pool.h: Same.
6822 * asan.c (shadow_mem_size): Same.
6823 * auto-profile.c: Same.
6824 * basic-block.h: Same.
6825 * bitmap.h: Same.
6826 * cfgexpand.c (set_rtl): Same.
6827 (expand_one_stack_var_at): Same.
6828 * cfghooks.h: Same.
6829 * cfgloop.h: Same.
6830 * cgraph.h: Same.
6831 * config/i386/i386.h: Same.
6832 * df-problems.c (df_print_bb_index): Same.
6833 * df-scan.c: Same.
6834 * df.h (df_single_use): Same.
6835 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6836 (layout::annotation_line_showed_range_p): Same.
6837 (get_printed_columns): Same.
6838 (correction::ensure_terminated): Same.
6839 (line_corrections::~line_corrections): Same.
6840 * dojump.h: Same.
6841 * dse.c: Same.
6842 * dump-context.h: Same.
6843 * dumpfile.h: Same.
6844 * dwarf2out.c: Same.
6845 * edit-context.c: Same.
6846 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6847 * flags.h: Same.
6848 * function.c (assign_stack_local): Same.
6849 * function.h: Same.
6850 * gcc.c: Same.
6851 * gcov.c (block_info::block_info): Same.
6852 * genattrtab.c: Same.
6853 * genextract.c: Same.
6854 * genmatch.c (comparison_code_p): Same.
6855 (id_base::id_base): Same.
6856 (decision_tree::print): Same.
6857 * genoutput.c: Same.
6858 * genpreds.c (write_one_predicate_function): Same.
6859 * genrecog.c (validate_pattern): Same.
6860 (find_operand_positions): Same.
6861 (optimize_subroutine_group): Same.
6862 (merge_pattern_transition::merge_pattern_transition): Same.
6863 (merge_pattern_info::merge_pattern_info): Same.
6864 (merge_state_result::merge_state_result): Same.
6865 (merge_into_state): Same.
6866 * gensupport.c: Same.
6867 * gensupport.h: Same.
6868 * ggc-common.c (init_ggc_heuristics): Same.
6869 * ggc-tests.c (test_union): Same.
6870 * gimple-loop-interchange.cc (dump_induction): Same.
6871 * gimple-loop-versioning.cc: Same.
6872 * gimple-match.h (gimple_match_cond::any_else): Same.
6873 * gimple-ssa-backprop.c: Same.
6874 * gimple-ssa-sprintf.c: Same.
6875 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6876 Same.
6877 (store_immediate_info::store_immediate_info): Same.
6878 (merged_store_group::apply_stores): Same.
6879 (get_location_for_stmts): Same.
6880 * gimple-ssa-strength-reduction.c: Same.
6881 * gimple-ssa-warn-alloca.c: Same.
6882 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
6883 * godump.c (go_type_decl): Same.
6884 * hash-map-tests.c (test_map_of_strings_to_int): Same.
6885 * hash-map.h: Same.
6886 * hash-set-tests.c (test_set_of_strings): Same.
6887 * hsa-brig.c: Same.
6888 * hsa-common.h: Same.
6889 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
6890 * input.c (assert_loceq): Same.
6891 * input.h: Same.
6892 * ipa-cp.c: Same.
6893 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
6894 * ipa-fnsummary.h: Same.
6895 * ipa-inline.h: Same.
6896 * ipa-prop.h: Same.
6897 * ipa-split.c (visit_bb): Same.
6898 * ira-int.h (minmax_set_iter_next): Same.
6899 * loop-invariant.c: Same.
6900 * loop-iv.c: Same.
6901 * lra-eliminations.c: Same.
6902 * lra-int.h: Same.
6903 * lra-lives.c (mark_regno_dead): Same.
6904 * lra-remat.c: Same.
6905 * lra-spills.c: Same.
6906 * lto-streamer.h: Same.
6907 * mem-stats.h: Same.
6908 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
6909 * omp-low.c (omp_clause_aligned_alignment): Same.
6910 * optabs-query.h (get_vcond_eq_icode): Same.
6911 * optabs.h: Same.
6912 * opts.c (wrap_help): Same.
6913 * poly-int.h: Same.
6914 * predict.c (predict_paths_leading_to_edge): Same.
6915 * pretty-print.h: Same.
6916 * profile-count.h: Same.
6917 * read-md.h: Same.
6918 * read-rtl-function.c: Same.
6919 * ree.c: Same.
6920 * reginfo.c: Same.
6921 * regrename.c: Same.
6922 * regrename.h: Same.
6923 * reload.h: Same.
6924 * rtl-iter.h: Same.
6925 * rtl.h (costs_add_n_insns): Same.
6926 * sanopt.c: Same.
6927 * sched-int.h: Same.
6928 * sel-sched-ir.h: Same.
6929 * selftest.h: Same.
6930 * sese.h (vec_find): Same.
6931 * stmt.c: Same.
6932 * target-globals.h: Same.
6933 * tree-affine.c (aff_combination_find_elt): Same.
6934 * tree-affine.h: Same.
6935 * tree-data-ref.h: Same.
6936 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
6937 * tree-predcom.c: Same.
6938 * tree-scalar-evolution.c (find_var_scev_info): Same.
6939 * tree-ssa-alias.h: Same.
6940 * tree-ssa-ccp.c: Same.
6941 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
6942 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
6943 (rewrite_mem_refs): Same.
6944 (execute_sm_if_changed): Same.
6945 (hoist_memory_references): Same.
6946 * tree-ssa-loop-ivopts.c (operator<=): Same.
6947 * tree-ssa-loop.h: Same.
6948 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
6949 * tree-ssa-structalias.c: Same.
6950 * tree-switch-conversion.h (cluster::cluster): Same.
6951 (simple_cluster::simple_cluster): Same.
6952 * tree-vect-patterns.c (type_conversion_p): Same.
6953 * tree-vectorizer.c (dump_stmt_cost): Same.
6954 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
6955 * tree.c (protected_set_expr_location): Same.
6956 * tree.h (desired_pro_or_demotion_p): Same.
6957 (fndecl_built_in_p): Same.
6958 * unique-ptr-tests.cc: Same.
6959 * var-tracking.c (delete_variable_part): Same.
6960 * varasm.c (assemble_real): Same.
6961 (tree_output_constant_def): Same.
6962 * vec.c: Same.
6963 * wide-int-bitmask.h: Same.
6964 * wide-int.h (decompose): Same.
6965
6966 2019-07-09 Richard Biener <rguenther@suse.de>
6967
6968 PR tree-optimization/91114
6969 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
6970 find a vector type isn't fatal.
6971
6972 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6973
6974 * config/aarch64/aarch64-simd.md
6975 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
6976 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
6977 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
6978 (*aarch64_crypto_aese_fused,
6979 *aarch64_crypto_aesd_fused): Update to new definition.
6980 * config/aarch64/aarch64.c
6981 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
6982
6983 2019-07-09 Richard Biener <rguenther@suse.de>
6984
6985 * gimple-match.h (gimple_match_op::resimplify): New.
6986 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
6987 gimple_resimplify4, gimple_resimplify5): Remove.
6988 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
6989 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
6990 Make static.
6991 (gimple_match_op::resimplify): New.
6992 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
6993 according to availability. Use gimple_match_op::resimplify.
6994
6995 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
6996
6997 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
6998
6999 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7000
7001 * config/arm/crypto.md:
7002 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
7003 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
7004 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
7005 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
7006 * config/arm/arm.c
7007 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
7008 * config/arm/aarch-common-protos.h
7009 (aarch_crypto_can_dual_issue): Remove.
7010 * config/arm/aarch-common.c
7011 (aarch_crypto_can_dual_issue): Likewise.
7012 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
7013 * config/arm/cortex-a53.md: Likewise.
7014 * config/arm/cortex-a57.md: Likewise.
7015 * config/arm/iterators.md:
7016 (CRYPTO_BINARY): Redefine.
7017 (CRYPTO_UNARY): Removed.
7018 (CRYPTO_AES, CRYPTO_AESMC): New.
7019
7020 2019-07-09 Richard Biener <rguenther@suse.de>
7021
7022 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
7023 (vn_reference_lookup_3): If the main ref has no access path recorded
7024 but orig_ref has use it to do access-path based disambiguation.
7025 (vn_reference_lookup_pieces): Adjust.
7026 (vn_reference_lookup): Pass down original ref if we valueized.
7027
7028 2019-07-09 Martin Liska <mliska@suse.cz>
7029
7030 * doc/extend.texi: Document influence on loop
7031 optimizers.
7032
7033 2019-07-09 Martin Liska <mliska@suse.cz>
7034
7035 * lto-compress.c (lto_normalized_zstd_level): Do not use
7036 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
7037 of libzstd. One can use 0 as a default compression level.
7038
7039 2019-07-09 Martin Liska <mliska@suse.cz>
7040
7041 * doc/invoke.texi: Add link from -fprofile-dir option.
7042 Use better wording for 'gcno filename'.
7043
7044 2019-07-08 Martin Sebor <msebor@redhat.com>
7045
7046 PR middle-end/71924
7047 PR middle-end/90549
7048 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
7049 comment.
7050 (args_loc_t): New type.
7051 (args_loc_t, locmap_t): same.
7052 (diag_returned_locals): New function.
7053 (is_addr_local): Same.
7054 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
7055 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
7056 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
7057
7058 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7059
7060 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
7061 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
7062 and casts in offset when different, both through gimple stmts
7063 and through trees. Rewritten using loops to minimize code duplication
7064 for each operand.
7065
7066 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
7067
7068 * emit-rtl.c (set_insn_locations): New function moved from...
7069 * function.c (set_insn_locations): ...here.
7070 * ira-emit.c (emit_moves): Propagate location of the first instruction
7071 to the inserted move instructions.
7072 * reg-stack.c (compensate_edge): Set the location if the sequence is
7073 inserted on the edge.
7074 * rtl.h (set_insn_locations): Declare.
7075
7076 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7077
7078 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
7079 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
7080 .machine string.
7081
7082 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7083
7084 PR rtl-optimization/88233
7085 * common.opt (fsplit-wide-types-early): New option.
7086 * common/config/rs6000/rs6000-common.c
7087 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
7088 OPT_LEVELS_ALL.
7089 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
7090 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
7091 flag_split_wide_types_early.
7092 (pass_data_lower_subreg3): New.
7093 (pass_lower_subreg3): New.
7094 (make_pass_lower_subreg3): New.
7095 * passes.def (pass_lower_subreg2): Move after the loop passes.
7096 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
7097 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
7098 the pass pipeline; its previous place is taken by ...
7099 (make_pass_lower_subreg3): ... this.
7100
7101 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7102
7103 * config/s390/s390.c (s390_shift_truncation_mask): Define.
7104 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7105
7106 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7107
7108 * config/s390/constraints.md: Add new jsc constraint.
7109 * config/s390/predicates.md: New predicates.
7110 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
7111 * config/s390/s390.c (s390_valid_shift_count): New function.
7112 (print_shift_count_operand): Use s390_valid_shift_count.
7113 (print_operand): Likewise.
7114 * config/s390/s390.md: Use new predicate.
7115 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
7116 * config/s390/vector.md: Use new predicate.
7117
7118 2019-07-08 Andrew Waterman <andrew@sifive.com>
7119 Jim Wilson <jimw@sifive.com>
7120
7121 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
7122 bitsize instead of BITS_PER_WORD.
7123
7124 2019-07-08 Martin Liska <mliska@suse.cz>
7125
7126 * collect2.c (defined): Revert to before r254460.
7127 (scan_prog_file): Revert to before r254460.
7128
7129 2019-07-08 Richard Biener <rguenther@suse.de>
7130
7131 PR tree-optimization/83518
7132 * tree-ssa-sccvn.c: Include splay-tree.h.
7133 (struct pd_range, struct pd_data): New.
7134 (struct vn_walk_cb_data): Add data to track partial definitions.
7135 (vn_walk_cb_data::~vn_walk_cb_data): New.
7136 (vn_walk_cb_data::push_partial_def): New.
7137 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
7138 (vn_reference_lookup_2): When partial defs are registered give up.
7139 (vn_reference_lookup_3): Track partial defs for memset and
7140 constructor zeroing and for defs from constants.
7141
7142 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7143
7144 * doc/install.texi (bootstrap-Og): Document.
7145
7146 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7147
7148 * config/riscv/pic.md (*local_pic_load_s<mode>)
7149 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
7150 referenced by <mode>, giving...
7151 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
7152 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
7153 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
7154 use <X:MODE> for the mode attribute.
7155
7156 2019-07-07 Jeff Law <law@redhat.com>
7157
7158 PR tree-optimization/91090
7159 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
7160 in handling of ranges to simplify switch statements.
7161
7162 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7163
7164 * config/darwin.c (darwin_override_options): Make a final check on PIC
7165 options.
7166
7167 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7168
7169 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
7170 on for kernel code.
7171
7172 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7173
7174 PR target/91068
7175 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
7176 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
7177 instead of matching them to "l" output operands.
7178
7179 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7180
7181 * config/mips/mips.c (mips_split_move): Zero-initialize addr
7182 and check whether addr.reg is nonnull before using it.
7183
7184 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7185
7186 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
7187 ctx->for_simd_scan_phase simd copy the outer var to the privatized
7188 variable(s). For conditional lastprivate look through outer
7189 GIMPLE_OMP_SCAN context.
7190 (lower_omp_1): For conditional lastprivate look through outer
7191 GIMPLE_OMP_SCAN context.
7192
7193 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
7194 member to combined_into_simd_safelen1.
7195 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
7196 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
7197 clauses if ctx->combined_into_simd_safelen1 put statements after the
7198 predicate conditionalized block rather than into it.
7199
7200 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7201
7202 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
7203 operand 1.
7204 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
7205 Make the choice of <mode> explicit, giving...
7206 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
7207
7208 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7209
7210 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
7211 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
7212 of .md attributes.
7213 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
7214 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
7215 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
7216 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
7217 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
7218 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
7219 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
7220 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
7221 (*avx512f_scatterdi<mode>): Likewise.
7222 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
7223
7224 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7225
7226 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
7227 specify the mode iterator referenced by <mode>, giving...
7228 (*push1_h8300hs_<QHI:mode>): ...this.
7229
7230 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7231
7232 * config/gcn/gcn-valu.md
7233 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
7234 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
7235 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
7236 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
7237 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
7238 but using the _exec comparison patterns.
7239 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
7240 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
7241 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
7242 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
7243 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
7244 but using the _exec comparison patterns.
7245
7246 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7247
7248 * config/arm/sync.md
7249 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
7250 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
7251 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
7252 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
7253 <SIDI:cas_cmp_str>.
7254
7255 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7256
7257 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
7258 (maybe_lookup_ctx): Add forward declaration.
7259 (omp_find_scan): Likewise. Walk into body of simd if composited
7260 with worksharing loop.
7261 (scan_omp_simd_scan): New function.
7262 (scan_omp_1_stmt): Call it.
7263 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
7264 ctx->for_simd_scan_phase.
7265 (lower_rec_input_clauses): Do much less work for inscan reductions
7266 in ctx->for_simd_scan_phase is_simd regions.
7267 (lower_omp_scan): Set is_simd also on simd constructs composited
7268 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
7269 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
7270 emit their body after in simd constructs composited with worksharing
7271 loop.
7272 (lower_omp_for_scan): Handle worksharing loop composited with simd.
7273
7274 * omp-low.c (omp_find_scan): Make static.
7275 (lower_omp_for_scan): Fix order of merge arguments in input phase of
7276 the second loop, var2 represents the first partial sum and so needs
7277 to go before rprivb[ivar].
7278
7279 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
7280
7281 * config/rs6000/rs6000-logue.c: Remove unused code.
7282
7283 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7284
7285 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
7286
7287 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
7288
7289 PR target/90712
7290 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
7291 check with a frame laid out check.
7292
7293 2019-07-05 Richard Biener <rguenther@suse.de>
7294
7295 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
7296 when comparing against a store with possibly the same value.
7297
7298 2019-07-05 Richard Biener <rguenther@suse.de>
7299
7300 PR tree-optimization/91091
7301 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
7302 (walk_non_aliased_vuses): Likewise.
7303 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
7304 (get_continuation_for_phi): New tbaa_p parameter and pass
7305 it down.
7306 (walk_non_aliased_vuses): Likewise.
7307 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
7308 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
7309 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7310 Likewise.
7311 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
7312 (adjust_offsets_for_equal_base_address): New function.
7313 (vn_reference_lookup_3): Use it to catch more base equivalences.
7314 Handle and pass down tbaa_p flag.
7315 (vn_reference_lookup_pieces): Adjust.
7316 (vn_reference_lookup): Remove alias-set altering, instead pass
7317 down false as tbaa_p.
7318
7319 2019-07-05 Richard Biener <rguenther@suse.de>
7320
7321 PR tree-optimization/91091
7322 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
7323 accesses can happen with -fno-strict-aliasing.
7324
7325 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
7326
7327 * tree-ssa-alias.c (alias_stats): Add
7328 nonoverlapping_component_refs_since_match_p_must_overlap.
7329 (dump_alias_stats): Print it.
7330 (nonoverlapping_component_refs_since_match_p): Add early exit.
7331 (nonoverlapping_component_refs_p): Do not account early exit.
7332
7333 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7334
7335 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
7336 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
7337 (emit_eh_dispatch): Delete.
7338 (lower_catch): Emit the eh_dispatch manually and set the location of
7339 the first catch statement onto it.
7340 (lower_eh_filter): Emit the eh_dispatch manually and set location.
7341 (lower_eh_dispatch): Propagate location.
7342 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
7343 (eliminate_build): Likewise.
7344
7345 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7346
7347 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
7348 phi nodes if possible.
7349 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
7350 location info on the newly created statement.
7351 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
7352 newly created increment if needed.
7353
7354 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7355
7356 PR middle-end/78884
7357 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
7358 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
7359 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
7360 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
7361 ctx->add_safelen1 is set.
7362
7363 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
7364 GOMP_loop_start at the start of second worksharing loop in a scan.
7365 For nowait, don't emit GOMP_loop_end_nowait at the end of first
7366 worksharing loop in a scan even if there are conditional lastprivates,
7367 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
7368
7369 2019-07-04 Jan Hubicka <jh@suse.cz>
7370
7371 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7372 Fix check for match in the ref walk.
7373
7374 2019-07-04 Martin Liska <mliska@suse.cz>
7375
7376 * tree-ssa-loop-niter.c
7377 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
7378 (estimate_numbers_of_iterations):
7379 Support __builtin_expect_with_probability for analysis
7380 of # of loop iterations.
7381
7382 2019-07-04 Alexandre Oliva <oliva@adacore.com>
7383
7384 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
7385 * except.c: Likewise.
7386 * expr.c (expand_expr_real_1): Reject it.
7387 * gimplify.c (gimplify_expr): Gimplify it, within
7388 TRY_FINALLY_EXPR.
7389 * tree-dump.c (dequeue_and_dump): Dump it.
7390 * tree-pretty-print.c (dump_generic_node): Likewise.
7391 * tree.c (block_may_fallthru): Handle it.
7392 * tree.def (EH_ELSE_EXPR): Introduce it.
7393 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
7394 with GIMPLE_EH_ELSE as try/finally/else.
7395
7396 2019-07-04 Richard Biener <rguenther@suse.de>
7397
7398 PR ipa/91062
7399 * tree-pass.h (execute_all_ipa_transforms): Add a flag
7400 parameter whether to disable GC collection.
7401 * passes.c (execute_one_ipa_transform_pass): Likewise, and
7402 honor it.
7403 (execute_all_ipa_transforms): Likewise and pass it down.
7404 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
7405 collection from applying IPA transforms.
7406 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
7407 from applying IPA transforms.
7408
7409 2019-07-04 Richard Biener <rguenther@suse.de>
7410
7411 PR tree-optimization/90911
7412 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
7413 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
7414 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7415 scalar_loop_scaling.
7416 (vect_transform_loop): Scale scalar loop profile if needed.
7417 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
7418 the loop copy from if-conversion adjust edge probabilities
7419 and scale the vectorized loop body profile, queue the scalar
7420 profile for updating after peeling.
7421
7422 2019-07-04 Jan Hubicka <jh@suse.cz>
7423
7424 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
7425 parameters; return early for must-alias.
7426 (indirect_ref_may_alias_decl_p): Likewise; when establishing
7427 outer types match, try nonoverlapping_component_refs
7428 if must-alias is not obvious.
7429 (indirect_refs_may_alias_p): Likewise.
7430 (refs_may_alias_p_2): Likewise.
7431
7432 2019-07-04 Richard Biener <rguenther@suse.de>
7433
7434 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
7435 argument.
7436 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
7437 globals into...
7438 (struct vn_walk_cb_data): New callback data struct.
7439 (vn_reference_lookup_2): Adjust.
7440 (vn_reference_lookup_3): Likewise.
7441 (vn_reference_lookup_pieces): Likewise.
7442 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
7443 (visit_reference_op_load): Adjust.
7444
7445 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7446
7447 PR tree-optimization/91063
7448 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
7449 stmt from stmts sequence before calling vect_init_vector_1.
7450 Formatting fix.
7451
7452 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7453
7454 PR target/88833
7455 * fwprop.c (reg_single_def_p): New function.
7456 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
7457 (forward_propagate_into): New parameter reg_prop_only
7458 with default value false.
7459 Propagate def's src into loop only if SET_SRC and SET_DEST
7460 of def_set have single definitions.
7461 Likewise if reg_prop_only is set to true.
7462 (fwprop): New param fwprop_addr_p.
7463 Integrate fwprop_addr into fwprop.
7464 (fwprop_addr): Remove.
7465 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
7466 to true.
7467 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
7468 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
7469 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
7470
7471 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7472
7473 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
7474 in worksharing loop scans.
7475
7476 PR tree-optimization/91074
7477 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
7478 temporary.
7479
7480 PR rtl-optimization/90756
7481 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
7482 for VECTOR_TYPE_P.
7483
7484 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
7485
7486 * config/aarch64/aarch64.md: Remove redundant constraints from
7487 define_expand but keep some patterns untouched if they are
7488 specially selected by TARGET_SECONDARY_RELOAD hook.
7489 * config/aarch64/aarch64-sve.md: Likewise.
7490 * config/aarch64/atomics.md: Remove redundant constraints from
7491 define_expand.
7492 * config/aarch64/aarch64-simd.md: Likewise.
7493
7494 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7495
7496 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
7497 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
7498 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
7499 clauses.
7500 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
7501 DARWIN_NOPIE_SPEC.
7502
7503 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7504
7505 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
7506 (STARTFILE_SPEC): Split crt3 into a separate spec.
7507 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
7508 (DARWIN_CRT2_SPEC): New.
7509 (DARWIN_CRT3_SPEC): New.
7510 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
7511 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
7512 (DARWIN_CRT3_SPEC): New.
7513
7514 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
7515
7516 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
7517 Change the RTL attribute "length" from "4" to "*" to allow the
7518 length attribute to be adjusted automatically for prefixed load,
7519 store, and add immediate instructions.
7520 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
7521 Likewise.
7522 (extendsi<mode>2, EXTSI iterator): Likewise.
7523 (movsi_internal1): Likewise.
7524 (movsi_from_sf): Likewise.
7525 (movdi_from_sf_zero_ext): Likewise.
7526 (mov<mode>_internal): Likewise.
7527 (movcc_internal1, QHI iterator): Likewise.
7528 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
7529 (movsf_from_si): Likewise.
7530 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
7531 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
7532 (mov<mode>, FMOVE128 iterator): Likewise.
7533 (movdi_internal64): Likewise.
7534 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
7535 Likewise.
7536 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
7537 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
7538 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
7539 (vsx_splat_v4sf): Likewise.
7540
7541 2019-07-03 Mark Wielaard <mark@klomp.org>
7542
7543 PR debug/90981
7544 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
7545 DW_AT_addr_base if there is actually a .debug_addr section with
7546 addresses.
7547 (output_addr_table): Add DWARF5 table header generation here after
7548 checking there are actually any addresses from...
7549 (dwarf2out_finish): ...here.
7550
7551 2019-07-03 Richard Biener <rguenther@suse.de>
7552
7553 PR middle-end/91069
7554 * match.pd (vec_perm -> bit_insert): Fix element read from
7555 first vector.
7556
7557 2019-07-03 Martin Liska <mliska@suse.cz>
7558
7559 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7560 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7561 condition.
7562 * generic-match-head.c: Include dbgcnt.h.
7563 * gimple-match-head.c: Likewise.
7564
7565 2019-07-03 Martin Liska <mliska@suse.cz>
7566
7567 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7568 (GCOV_COUNTER_V_TOPN): New.
7569 (GCOV_COUNTER_V_INDIR): Use _topn.
7570 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7571 (GCOV_TOPN_VALUES): New.
7572 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7573 (GCOV_TOPN_VALUES_COUNTERS): New.
7574 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7575 * tree-profile.c:
7576 (gimple_init_gcov_profiler): Rename variables from one_value
7577 to topn_values.
7578 (gimple_gen_one_value_profiler): Remove.
7579 (gimple_gen_topn_values_profiler): New function.
7580 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7581 names instead of SINGLE_VALUE.
7582 (stream_out_histogram_value): Likewise.
7583 (stream_in_histogram_value): Likewise.
7584 (get_most_common_single_value): Likewise.
7585 (gimple_divmod_fixed_value_transform): Likewise.
7586 (gimple_stringops_transform): Likewise.
7587 (gimple_divmod_values_to_profile): Likewise.
7588 (gimple_stringops_values_to_profile): Likewise.
7589 (gimple_find_values_to_profile): Likewise.
7590 * value-prof.h (enum hist_type): Rename to TOPN.
7591 (gimple_gen_one_value_profiler): Remove.
7592 (gimple_gen_topn_values_profiler): New.
7593
7594 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7595
7596 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7597 if it has the DW_AT_data_member_location attribute.
7598
7599 2019-07-03 Richard Biener <rguenther@suse.de>
7600
7601 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7602 dumping.
7603
7604 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7605
7606 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7607 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7608 (tlsdesc_small_sve_<mode>): Likewise.
7609
7610 2019-07-03 Martin Liska <mliska@suse.cz>
7611
7612 * Makefile.in: Define ZSTD_LIB.
7613 * common.opt: Adjust compression level
7614 to support also zstd levels.
7615 * config.in: Regenerate.
7616 * configure: Likewise.
7617 * configure.ac: Add --with-zstd and --with-zstd-include options
7618 and detect ZSTD.
7619 * doc/install.texi: Mention zstd dependency.
7620 * gcc.c: Print supported LTO compression algorithms.
7621 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7622 (lto_compression_zstd): Likewise.
7623 (lto_uncompression_zstd): Likewise.
7624 (lto_end_compression): Dispatch in between zlib and zstd.
7625 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7626 (lto_uncompression_zlib): Make it static.
7627 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7628 * lto-section-in.c (lto_get_section_data): Pass info
7629 about used compression.
7630 * lto-streamer-out.c: By default use zstd when possible.
7631 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7632 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7633
7634 2019-07-03 Martin Liska <mliska@suse.cz>
7635
7636 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7637 * lto-section-out.c (lto_destroy_simple_output_block): Never
7638 compress LTO_section_lto section.
7639 * lto-streamer-out.c (produce_asm): Do not set major_version
7640 and minor_version.
7641 (lto_output_toplevel_asms): Likewise.
7642 (produce_lto_section): New function.
7643 (lto_output): Call produce_lto_section.
7644 (lto_write_mode_table): Do not set major_version and
7645 minor_version.
7646 (produce_asm_for_decls): Likewise.
7647 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7648 type.
7649 (struct lto_header): Remove.
7650 (struct lto_section): New struct.
7651 (struct lto_simple_header): Do not inherit from lto_header.
7652 (struct lto_file_decl_data): Add lto_section_header field.
7653
7654 2019-07-03 Martin Liska <mliska@suse.cz>
7655
7656 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7657 dead assignemts.
7658 * reg-stack.c (check_asm_stack_operands): Likewise.
7659 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7660 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7661 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7662 force_expand_binop.
7663
7664 2019-07-03 Martin Liska <mliska@suse.cz>
7665
7666 PR tree-optimization/90892
7667 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7668 in string constants.
7669
7670 2019-07-03 Martin Liska <mliska@suse.cz>
7671
7672 PR middle-end/90899
7673 * multiple_target.c (create_dispatcher_calls): Add to comdat
7674 group only if set for ifunc.
7675
7676 2019-07-03 Martin Liska <mliska@suse.cz>
7677
7678 PR target/88056
7679 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7680 Define local_object_name in outer scope in order to handle
7681 use-after-scope issue.
7682
7683 2019-07-03 Martin Liska <mliska@suse.cz>
7684
7685 * common.opt: Add fprofile-note.
7686 * coverage.c (coverage_init): Append the option
7687 to bbg_file_name.
7688 * doc/invoke.texi: Document -fprofile-note.
7689
7690 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7691
7692 PR tree-optimization/91033
7693 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7694 vect_analyze_data_refs): Add bool * arguments.
7695 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7696 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7697 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7698 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7699 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7700 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7701 vect_analyze_data_refs caller.
7702
7703 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7704 clause.
7705 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7706 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7707 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7708 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7709 OMP_CLAUSE__SCANTEMP_ entry.
7710 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7711 * tree-pretty-print.c (dump_omp_clause): Likewise.
7712 * tree-nested.c (convert_nonlocal_omp_clauses,
7713 convert_local_omp_clauses): Likewise.
7714 * omp-general.h (struct omp_for_data): Add have_scantemp and
7715 have_nonctrl_scantemp members.
7716 * omp-general.c (omp_extract_for_data): Initialize them.
7717 * omp-low.c (struct omp_context): Add scan_exclusive member.
7718 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7719 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7720 ctx->scan_exclusive.
7721 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7722 of !ctx->scan_inclusive.
7723 (lower_rec_input_clauses): Simplify gimplification of dtors using
7724 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7725 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7726 loops. Don't add barrier for reduction_omp_orig_ref if
7727 ctx->scan_??xclusive.
7728 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7729 (lower_omp_scan): Use ctx->scan_exclusive instead
7730 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7731 reductions. Use new_vard != new_var instead of repeated
7732 omp_is_reference calls.
7733 (omp_find_scan, lower_omp_for_scan): New functions.
7734 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7735 inscan reductions.
7736 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7737 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7738 and fd->have_scantemp.
7739
7740 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7741 on worksharing loop propagate it as shared clause to containing
7742 combined parallel.
7743
7744 * omp-expand.c (expand_omp_for_static_nochunk,
7745 expand_omp_for_static_chunk): For nowait worksharing loop with
7746 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7747 at the end.
7748
7749 2019-07-02 qing zhao <qing.zhao@oracle.com>
7750
7751 PR preprocessor/90581
7752 * doc/cppopts.texi: Add document for -fmax-include-depth.
7753 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7754
7755 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7756
7757 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7758 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7759 (mmx_packssdw): Ditto.
7760 (mmx_punpckhbw): Ditto.
7761 (mmx_punpcklbw): Ditto.
7762 (mmx_punpckhwd): Ditto.
7763 (mmx_punpcklwd): Ditto.
7764 (mmx_punpckhdq): Ditto.
7765 (mmx_punpckldq): Ditto.
7766 (*vec_dupv4hi): Ditto.
7767 (*vec_dupv2si): Ditto.
7768 (mmx_pmovmskb): Ditto.
7769 * config/i386/sse.md (sse_cvtpi2ps): Use
7770 TARGET_SSE2 && SSE_REG_P in split condition.
7771 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7772 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7773 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7774 (ssse3_pshufbv8qi3): Ditto.
7775 (ssse3_palignrdi): Ditto.
7776
7777 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7778
7779 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7780 with inlined save and restore.
7781
7782 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7783
7784 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7785 to be inserted on single successor edge of the entry block. Then call
7786 commit_edge_insertions instead of inserting the instructions manually.
7787 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7788 RTL expansion and rebuild jump labels chain.
7789
7790 2019-07-02 Richard Biener <rguenther@suse.de>
7791
7792 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7793 TI_CHREC_KNOWN.
7794 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7795 Define here.
7796 * tree.c (build_common_tree_nodes): Initialize them.
7797 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7798 Make declarations comments.
7799 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7800 chrec_known): Remove definitions.
7801 (initialize_scalar_evolutions_analyzer): Remove.
7802 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7803 * tree-streamer.c (preload_common_nodes): Do not preload
7804 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7805
7806 2019-07-02 Jan Hubicka <jh@suse.cz>
7807
7808 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7809 sanity check.
7810
7811 2019-07-02 Jan Hubicka <jh@suse.cz>
7812
7813 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7814 to ..
7815 (nonoverlapping_component_refs_since_match_p): ... this one;
7816 handle also non-decl bases; return -1 if search gave up.
7817 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7818 nonoverlapping_component_refs_of_decl_p_no_alias to
7819 nonoverlapping_component_refs_since_match_p_may_alias,
7820 nonoverlapping_component_refs_since_match_p_no_alias.
7821 (dump_alias_stats): Update dumping.
7822 (aliasing_matching_component_refs_p): Break out from ...;
7823 dispatch to nonoverlapping_component_refs_for_decl_p
7824 and nonoverlapping_component_refs_since_match_p.
7825 (aliasing_component_refs_p): ... here; call
7826 nonoverlapping_component_refs_p in scenarios where we can not
7827 precisely determine base match.
7828 (decl_refs_may_alias_p): Use
7829 nonoverlapping_component_refs_since_match_p.
7830 (indirect_ref_may_alias_decl_p): Do not call
7831 nonoverlapping_component_refs_p.
7832 (indirect_refs_may_alias_p): Likewise.
7833
7834 2019-07-02 Jan Hubicka <jh@suse.cz>
7835
7836 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7837 to clobber of return value.
7838
7839 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7840
7841 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7842 for is_neon_type instructions that have not already been categorized.
7843
7844 2019-07-02 Richard Biener <rguenther@suse.de>
7845
7846 PR tree-optimization/58483
7847 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7848 for MEM_REF base hashing.
7849 (equal_mem_array_ref_p): Likewise for base comparison.
7850
7851 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7852
7853 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7854 parameterized name.
7855 (signbit<mode>2): Use that name. Simplify.
7856
7857 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7858
7859 PR middle-end/66726
7860 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7861 Tune heuristic from PR71016 to allow MIN / MAX.
7862
7863 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7864
7865 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7866 parameterized name.
7867 (abs<mode>2): Use that name. Simplify.
7868
7869 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7870
7871 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7872 parameterized name.
7873 (neg<mode>2): Use that name. Simplify.
7874
7875 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7876
7877 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
7878 name.
7879 (abs<mode>2): Use that name. Simplify.
7880
7881 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7882
7883 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
7884 name.
7885 (neg<mode>2): Use that name. Simplify.
7886
7887 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
7888
7889 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
7890 ("enabled" attribute): Handle sse_noavx isa attribute.
7891 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
7892 Use TARGET_SSE && SSE_REGNO_P in split condition.
7893 (*vec_dupv2sf): Ditto.
7894
7895 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7896
7897 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
7898 name.
7899 (floatsi<mode>2): Use that name. Simplify.
7900
7901 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7902
7903 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
7904 parameterized name.
7905 (extenddf<mode>2_vsx): Make this a parameterized name.
7906 (extenddf<mode>2): Use those names. Simplify.
7907
7908 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7909
7910 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
7911 name.
7912 (eh_return): Use that name. Simplify.
7913
7914 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7915
7916 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
7917 (doloop_end): Use that name. Simplify.
7918
7919 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7920
7921 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
7922 parameterized name.
7923 (indirect_jump): Use that name. Simplify.
7924
7925 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7926
7927 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
7928 parameterized name.
7929 (abs<mode>2): Use that name. Simplify.
7930
7931 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7932
7933 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
7934 parameterized name.
7935 (fix_trunc<mode>si2): Use that name. Simplify.
7936
7937 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7938
7939 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
7940 (allocate_stack): Use that name. Simplify.
7941
7942 2019-07-01 Martin Sebor <msebor@redhat.com>
7943
7944 PR middle-end/90923
7945 * hash-map.h (hash_map::put): On insertion invoke element ctor.
7946 (hash_map::get_or_insert): Same. Reformat comment.
7947 * hash-set.h (hash_set::add): On insertion invoke element ctor.
7948 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7949 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7950 * hash-table.h (hash_table::operator=): Prevent copy assignment.
7951 (hash_table::hash_table (const hash_table&)): Use copy ctor
7952 instead of assignment to copy elements.
7953
7954 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
7955 John David Anglin <danglin@gcc.gnu.org>
7956
7957 PR target/90963
7958 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
7959 using saved frame pointer.
7960
7961 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
7962
7963 PR middle-end/64242
7964 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
7965 Add frame clobber and schedule blockage.
7966
7967 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
7968
7969 * doc/invoke.texi (Link Options): Further editorial changes to
7970 -flinker-output docs.
7971
7972 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7973
7974 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
7975 Load both operands of a PLUS into registers separately.
7976
7977 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
7978
7979 * config/s390/vector.md: Fix shift count operand printing.
7980
7981 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7982
7983 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
7984
7985 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7986
7987 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
7988 Use recog_data to test for an output operand.
7989
7990 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7991
7992 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
7993 exclude any others that are disparaged or that are bound to need
7994 a reload or spill.
7995 (ira_get_dup_out_num): Expand comment.
7996
7997 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7998
7999 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
8000 constraint string for each operand/alternative combo. Only handle
8001 '%' at the start of constraint strings, and look for it outside
8002 the main loop.
8003
8004 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8005
8006 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
8007 alternative_mask instead of HARD_REG_SET to represent a
8008 bitmask of alternatives.
8009 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8010 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
8011
8012 2019-07-01 Martin Liska <mliska@suse.cz>
8013
8014 * edit-context.c (test_applying_fixits_unreadable_file): Do not
8015 use () for a constructor call.
8016 (test_applying_fixits_line_out_of_range): Likewise.
8017 * ggc-page.c (alloc_page): Use (void *) for %p printf format
8018 argument.
8019 (free_page): Likewise.
8020
8021 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
8022
8023 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
8024 parameter names to match usage (no functional change).
8025 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
8026
8027 2019-07-01 Richard Biener <rguenther@suse.de>
8028
8029 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
8030 pass parameter.
8031 (pass_fre::execute): Honor it.
8032 * passes.def: Adjust pass_fre invocations to allow iterating,
8033 add non-iterating pass_fre before late threading/dom.
8034
8035 2019-07-01 Richard Biener <rguenther@suse.de>
8036
8037 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
8038 TARGET_MEM_REF handling to also handle address-taken ones.
8039
8040 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
8041
8042 * doc/sourcebuild.texi (Effective-Target Keywords, Other
8043 hardware attributes): Document avx512vp2intersect.
8044
8045 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8046
8047 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
8048 (abs<mode>2): New expander.
8049 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
8050 Use CODE_FOR_ssse3_absv8qi2.
8051 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
8052 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
8053
8054 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8055
8056 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
8057 to sse, sse_noavx and avx. Update all uses.
8058
8059 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8060
8061 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
8062 (*mmx_<plusminus_insn><mode>3): Ditto.
8063 (*mmx_mulv4hi3"): Ditto.
8064 (*mmx_smulv4hi3_highpart): Ditto.
8065 (*mmx_umulv4hi3_highpart): Ditto.
8066 (*mmx_pmaddwd): Ditto.
8067 (*sse2_umulv1siv1di3): Ditto.
8068 (*mmx_<code>v4hi3): Ditto.
8069 (*mmx_<code>v8qi3): Ditto.
8070 (mmx_ashr<mode>3): Ditto.
8071 ("mmx_<shift_insn><mode>3): Ditto.
8072 (*mmx_eq<mode>3): Ditto.
8073 (mmx_gt<mode>3): Ditto.
8074 (mmx_andnot<mode>3): Ditto.
8075 (*mmx_<code><mode>3): Ditto.
8076 (*mmx_pinsrw): Ditto.
8077 (*mmx_pextrw): Ditto.
8078 (mmx_pshufw_1): Ditto.
8079 (*mmx_uavgv8qi3): Ditto.
8080 (*mmx_uavgv4hi3): Ditto.
8081 ("mmx_psadbw): Ditto.
8082 * config/i386/sse.md (sse_cvtps2pi): Ditto.
8083 (sse_cvttps2pi): Ditto.
8084 (ssse3_pmaddubsw): Ditto.
8085 (*ssse3_pmulhrswv4hi3): Ditto.
8086 (ssse3_psign<mode>3): Ditto.
8087
8088 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
8089
8090 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
8091 adjustment for bit-fields to all aggregate types.
8092
8093 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
8094
8095 * config/rs6000/predicates.md (pcrel_address): Use
8096 SYMBOL_REF_LOCAL_P to determine if a label is local.
8097 (pcrel_external_address): New predicate.
8098 (non_prefixed_mem_operand): Delete, predicate not used.
8099 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
8100 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
8101 addressing.
8102 (SYMBOL_REF_PCREL_P): Likewise.
8103
8104 PR target/91009
8105 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
8106 alternative.
8107 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
8108 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
8109 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
8110
8111 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8112
8113 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
8114 override on extra_headers.
8115
8116 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8117
8118 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
8119 * config/darwin-driver.c (darwin_default_min_version): Remove newline
8120 from warning.
8121 (darwin_driver_init): Likewise.
8122
8123 2019-06-28 Jan Beulich <jbeulich@suse.com>
8124
8125 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8126 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
8127 Eliminate redundant alternative.
8128
8129 2019-06-28 Jan Beulich <jbeulich@suse.com>
8130
8131 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8132 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
8133 Use vector_operand.
8134
8135 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
8136
8137 * config/arc/arc.c (arc_rtx_costs): All short instructions are
8138 having a lower cost regardless of the speed option.
8139
8140 2019-06-28 Jan Beulich <jbeulich@suse.com>
8141
8142 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
8143 vector_operand plus, on both alternatives, "Bm" constraint.
8144
8145 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
8146
8147 * config/arm/arm.md: Remove redundant constraints from
8148 define_expand but leave reload_inm and reload_outm patterns
8149 untouched since they need special constraints to work.
8150 * config/arm/arm-fixed.md: Remove redundant constraints from
8151 define_expand.
8152 * config/arm/iwmmxt.md: Likewise.
8153 * config/arm/neon.md: Likewise.
8154 * config/arm/sync.md: Likewise.
8155 * config/arm/thumb1.md: Likewise.
8156 * config/arm/vec-common.md: Likewise.
8157
8158 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
8159
8160 * doc/install.texi: Document --disable-tm-clone-registry.
8161
8162 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8163
8164 PR c++/91024
8165 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
8166 statements.
8167
8168 PR tree-optimization/91010
8169 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
8170 return true. Otherwise, don't call operand_equal_p if offset1 or
8171 offset2 is NULL and just return false.
8172
8173 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8174
8175 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
8176 user-specified float mode choice for kernel mode code.
8177
8178 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8179
8180 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
8181 spec.
8182
8183 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8184
8185 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
8186 use longcall for 64b code.
8187
8188 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
8189
8190 * builtins.c (get_memory_rtx): Fix comment.
8191 * optabs.def (movmem_optab): Change to cpymem_optab.
8192 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
8193 (emit_block_move_hints): Change movmem to cpymem.
8194 * defaults.h: Change movmem to cpymem.
8195 * targhooks.c (get_move_ratio): Change movmem to cpymem.
8196 (default_use_by_pieces_infrastructure_p): Ditto.
8197 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
8198 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
8199 to cpymem.
8200 * config/aarch64/aarch64.h: Change movmem to cpymem.
8201 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
8202 * config/alpha/alpha.h: Change movmem to cpymem in comment.
8203 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
8204 movmem to cpymem.
8205 * config/arc/arc-protos.h: Change movmem to cpymem.
8206 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
8207 * config/arc/arc.h: Change movmem to cpymem in comment.
8208 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
8209 * config/arm/arm-protos.h: Change movmem to cpymem in names.
8210 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
8211 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
8212 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
8213 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
8214 * config/avr/avr-protos.h: Change movmem to cpymem.
8215 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
8216 avr_out_movmem): Change movmem to cpymem.
8217 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
8218 Change movmem to cpymem.
8219 * config/bfin/bfin-protos.h: Change movmem to cpymem.
8220 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
8221 Change movmem to cpymem.
8222 * config/bfin/bfin.h: Change movmem to cpymem in comment.
8223 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
8224 * config/c6x/c6x-protos.h: Change movmem to cpymem.
8225 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
8226 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
8227 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
8228 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
8229 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
8230 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
8231 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
8232 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
8233 expand_small_cpymem_or_setmem,
8234 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
8235 expand_set_or_cpymem_constant_prologue,
8236 ix86_expand_set_or_cpymem): Change movmem to cpymem.
8237 * config/i386/i386-protos.h: Change movmem to cpymem.
8238 * config/i386/i386.h: Change movmem to cpymem in comment.
8239 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
8240 (setmem<mode>): Change expansion function name.
8241 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
8242 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
8243 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
8244 * config/m32c/m32c-protos.h: Change movmem to cpymem.
8245 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
8246 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
8247 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
8248 to cpymem.
8249 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
8250 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
8251 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
8252 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
8253 Change movmem to cpymem.
8254 * config/mips/mips.h: Change movmem to cpymem.
8255 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
8256 * config/nds32/nds32-memory-manipulation.c
8257 (nds32_expand_movmemsi_loop_unknown_size,
8258 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
8259 nds32_expand_movmemsi_unroll,
8260 nds32_expand_movmemsi): Change movmem to cpymem.
8261 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
8262 * config/nds32/nds32-protos.h: Change movmem to cpymem.
8263 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
8264 (pa_adjust_insn_length): Change call to compute_movmem_length.
8265 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
8266 movmemdi, movmemdi_prereload,
8267 movmemdi_postreload): Change movmem to cpymem.
8268 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
8269 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
8270 * config/riscv/riscv.c: Change movmem to cpymem in comment.
8271 * config/riscv/riscv.h: Change movmem to cpymem.
8272 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
8273 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
8274 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
8275 movmem to cpymem.
8276 * config/s390/s390-protos.h: Change movmem to cpymem.
8277 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
8278 s390_expand_insv): Change movmem to cpymem.
8279 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
8280 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
8281 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
8282 * config/sparc/sparc.h: Change movmem to cpymem in comment.
8283 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
8284 for nonexistent function.
8285 * config/vax/vax.h: Change movmem to cpymem in comment.
8286 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
8287 * config/visium/visium.h: Change movmem to cpymem in comment.
8288 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
8289 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
8290 * doc/md.texi: Change movmem to cpymem and update description to match.
8291 * doc/rtl.texi: Change movmem to cpymem.
8292 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
8293 * doc/tm.texi: Regenerate.
8294
8295 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
8296
8297 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
8298 -fvariable-expansion-in-unroller by default.
8299 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
8300 default for Power.
8301
8302 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
8303
8304 Revert
8305 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8306 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8307
8308 * config.gcc(rs6000-*-*): Define target_gtfiles.
8309
8310 2019-06-27 Jan Hubicka <jh@suse.cz>
8311
8312 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
8313 (add_type_duplicate): When odr hash is not allocated, to nothing.
8314 (odr_based_tbaa_p): New function.
8315 (set_type_canonical_for_odr_type): New function.
8316 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
8317 set_type_canonical_for_odr_type): New.
8318 * tree.c (gimple_canonical_types_compatible_p): ODR types with
8319 ODR based TBAA are not equivalent to non-ODR types.
8320
8321 2019-06-27 Martin Liska <mliska@suse.cz>
8322
8323 PR tree-optimization/90974
8324 PR rtl-optimization/90975
8325 PR rtl-optimization/90976
8326 PR target/91016
8327 PR tree-optimization/91017
8328 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
8329 unused tmp.
8330 * lra.c (lra_set_insn_recog_data): Remove a leftover from
8331 initial commit of IRA.
8332 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
8333 of op0 and op1.
8334 * tree-vect-loop.c (vect_create_epilog_for_reduction):
8335 Remove unused mode1.
8336 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
8337 to new_stmt_info.
8338
8339 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8340
8341 PR target/90991
8342 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
8343 instead of register_operand for operands[1], add m to its constraints
8344 if operands[2] uses "C" constraint. Ensure in condition that if
8345 operands[2] is not 0, then operands[1] is not a MEM. For last two
8346 alternatives, use unaligned loads instead of aligned if operands[1] is
8347 misaligned_operand.
8348
8349 2019-06-27 Martin Liska <mliska@suse.cz>
8350
8351 * asan.c (asan_emit_allocas_unpoison): Remove obviously
8352 dead assignments.
8353 * bt-load.c (move_btr_def): Likewise.
8354 * builtins.c (expand_builtin_apply_args_1): Likewise.
8355 (expand_builtin_apply): Likewise.
8356 * cfgexpand.c (expand_asm_stmt): Likewise.
8357 (construct_init_block): Likewise.
8358 * cfghooks.c (verify_flow_info): Likewise.
8359 * cfgloopmanip.c (remove_path): Likewise.
8360 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
8361 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
8362 * combine.c (simplify_if_then_else): Likewise.
8363 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8364 (choose_basereg): Likewise.
8365 (ix86_expand_prologue): Likewise.
8366 (ix86_preferred_output_reload_class): Likewise.
8367 * cselib.c (cselib_record_sets): Likewise.
8368 * df-scan.c (df_scan_alloc): Likewise.
8369 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
8370 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
8371 * emit-rtl.c (try_split): Likewise.
8372 * graphite-scop-detection.c (assign_parameter_index_in_region):
8373 Likewise.
8374 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
8375 * ira-color.c (setup_profitable_hard_regs): Likewise.
8376 * ira.c (rtx_moveable_p): Likewise.
8377 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8378 * read-rtl.c (read_subst_mapping): Likewise.
8379 * regrename.c (scan_rtx): Likewise.
8380 * reorg.c (fill_slots_from_thread): Likewise.
8381 * tree-inline.c (tree_function_versioning): Likewise.
8382 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
8383 * tree-ssa-sink.c (statement_sink_location): Likewise.
8384 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8385 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
8386 (vect_create_epilog_for_reduction): Likewise.
8387 * tree.c (build_nonstandard_integer_type): Likewise.
8388
8389 2019-06-27 Richard Biener <rguenther@suse.de>
8390
8391 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
8392
8393 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
8394
8395 PR tree-optimization/89772
8396 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
8397 out-of-bound accesses checking.
8398
8399 2019-06-27 Martin Liska <mliska@suse.cz>
8400
8401 PR tree-optimization/91014
8402 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
8403 when LHS is NULL_TREE.
8404
8405 2019-06-27 Martin Liska <mliska@suse.cz>
8406
8407 * symbol-summary.h (traverse): Pass
8408 argument a to the call of callback.
8409 (gt_ggc_mx): Mark arguments as unused.
8410 (gt_pch_nx): Likewise.
8411
8412 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
8413
8414 PR target/62147
8415 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
8416 finiteness.
8417
8418 2019-06-26 Jeff Law <law@redhat.com>
8419
8420 PR tree-optimization/90883
8421 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
8422 (delete_dead_or_redundant_assignment): Likewise.
8423
8424 PR tree-optimization/90883
8425 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
8426 * tree-ssa-dse.c: Update various comments to distinguish between
8427 dead and redundant stores.
8428 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
8429 (dse_optimize_redundant_stores): New function.
8430 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
8431 Distinguish between dead and redundant calls in dump output. All
8432 callers updated.
8433 (delete_dead_or_redundant_assignment): Similarly for assignments.
8434 (dse_optimize_stmt): Handle _CHK variants. For statements which
8435 store 0 into multiple memory locations, try to prove a subsequent
8436 store is redundant.
8437
8438 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
8439
8440 PR target/89021
8441 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
8442 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
8443
8444 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8445
8446 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
8447 (branch_islands): New extern.
8448 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
8449 * config/rs6000/rs6000.c: .. here.
8450
8451 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8452
8453 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
8454 (powerpc*-*-*) ... to here.
8455
8456 2019-06-26 Jeff Law <law@redhat.com>
8457
8458 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
8459 memcpy, memmove and memset builtins.
8460 (maybe_trim_memstar_call): Likewise.
8461
8462 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8463
8464 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
8465
8466 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8467
8468 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8469
8470 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8471
8472 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
8473 declaration.
8474 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
8475 "static".
8476 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
8477 declaration.
8478
8479 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8480
8481 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
8482
8483 2019-06-26 Richard Biener <rguenther@suse.de>
8484
8485 PR ipa/90982
8486 * tree-inline.c (remap_ssa_name): Copy SSA range info.
8487
8488 2019-06-26 Richard Biener <rguenther@suse.de>
8489
8490 * lto-streamer.h (lto_bitmap_alloc): Remove.
8491 (lto_bitmap_free): Likewise.
8492 * lto-streamer.c (lto_bitmap_alloc): Remove.
8493 (lto_bitmap_free): Likewise.
8494 (lto_obstack): Likewise.
8495 (lto_obstack_initialized): Likewise.
8496 * lto-streamer-out.c (lto_output): Use own obstack for local
8497 bitmap, free it consistently.
8498
8499 2019-06-26 Jakub Jelinek <jakub@redhat.com>
8500
8501 PR target/90991
8502 * config/i386/sse.md
8503 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
8504 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
8505 insns if operands[2] is misaligned_operand.
8506
8507 2019-06-26 Li Jia He <helijia@linux.ibm.com>
8508
8509 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
8510 TARGET_POWERPC64.
8511 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
8512 to GPR.
8513
8514 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8515
8516 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
8517
8518 2019-06-26 Martin Liska <mliska@suse.cz>
8519
8520 PR tree-optimization/90973
8521 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
8522 epilogue_cost_vec instead of prologue_cost_vec for
8523 a epilogue cost.
8524
8525 2019-06-26 Martin Liska <mliska@suse.cz>
8526
8527 * bb-reorder.c (connect_better_edge_p): Add missing else
8528 statement in the middle of if-else statements.
8529
8530 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
8531 H.J. Lu <hongjiu.lu@intel.com>
8532 Olga Makhotina <olga.makhotina@intel.com>
8533
8534 * common/config/i386/i386-common.c
8535 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
8536 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
8537 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
8538 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
8539 (ix86_handle_option): Handle -mavx512vp2intersect.
8540 * config/i386/avx512vp2intersectintrin.h: New.
8541 * config/i386/avx512vp2intersectvlintrin.h: New.
8542 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
8543 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8544 AVX512VP2INTERSECT.
8545 * config/i386/i386-builtin-types.def: Add new types.
8546 * config/i386/i386-builtin.def: Add new builtins.
8547 * config/i386/i386-builtins.c: (enum processor_features): Add
8548 F_AVX512VP2INTERSECT.
8549 (static const _isa_names_table isa_names_table): Ditto.
8550 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8551 __AVX512VP2INTERSECT__.
8552 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8553 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8554 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8555 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8556 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8557 * config/i386/i386-options.c (ix86_target_string): Add
8558 -mavx512vp2intersect.
8559 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8560 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8561 P2HImode and P2QImode.
8562 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8563 number for P2QImode and P2HImode.
8564 (ix86_regmode_natural_size): New function.
8565 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8566 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8567 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8568 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8569 * config/i386/i386.opt: Add -mavx512vp2intersect.
8570 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8571 avx512vp2intersectvlintrin.h.
8572 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8573 (define_mode_iterator VI48_AVX512VP2VL): New.
8574 (avx512vp2intersect_2intersect<mode>,
8575 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8576 * config.gcc: Add avx512vp2intersectvlintrin.h and
8577 avx512vp2intersectintrin.h to extra_headers.
8578 * doc/invoke.texi: Document -mavx512vp2intersect.
8579
8580 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8581
8582 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8583
8584 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8585
8586 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8587 savres_routine_syms, savres_routine_name, morestack_ref,
8588 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8589 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8590 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8591 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8592 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8593 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8594 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8595 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8596 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8597 get_stack_clash_protection_probe_interval,
8598 get_stack_clash_protection_guard_size,
8599 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8600 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8601 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8602 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8603 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8604 gen_frame_mem_offset, rs6000_savres_routine_name,
8605 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8606 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8607 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8608 rs6000_global_entry_point_prologue_needed_p,
8609 rs6000_get_separate_components, rs6000_components_for_bb,
8610 rs6000_disqualify_components, rs6000_emit_prologue_components,
8611 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8612 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8613 rs6000_output_savres_externs, rs6000_output_function_prologue,
8614 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8615 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8616 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8617 rs6000_output_function_epilogue, gen_add3_const,
8618 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8619 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8620 to rs6000-logue.c.
8621 (machine_function): Moved to rs6000.h.
8622 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8623 rs6000-internal.h.
8624 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
8625 savres_routine_syms, savres_routine_name, morestack_ref,
8626 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8627 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8628 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8629 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8630 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8631 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8632 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8633 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8634 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8635 get_stack_clash_protection_probe_interval,
8636 get_stack_clash_protection_guard_size,
8637 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8638 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8639 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8640 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8641 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8642 gen_frame_mem_offset, rs6000_savres_routine_name,
8643 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8644 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8645 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8646 rs6000_global_entry_point_prologue_needed_p,
8647 rs6000_get_separate_components, rs6000_components_for_bb,
8648 rs6000_disqualify_components, rs6000_emit_prologue_components,
8649 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8650 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8651 rs6000_output_savres_externs, rs6000_output_function_prologue,
8652 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8653 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8654 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8655 rs6000_output_function_epilogue, gen_add3_const,
8656 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8657 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8658 to here from rs6000.c.
8659 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8660 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8661 quad_address_offset_p) Moved to here from rs6000.c.
8662 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8663 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8664 collector.
8665
8666 2019-06-25 Martin Liska <mliska@suse.cz>
8667
8668 * hash-table.c (hashtab_chk_error): Move here from ...
8669 * hash-table.h (hashtab_chk_error): ... here.
8670
8671 2019-06-25 Martin Liska <mliska@suse.cz>
8672
8673 PR tree-optimization/90978
8674 * df-scan.c (df_update_entry_block_defs): Remove dead else
8675 branch.
8676 (df_update_exit_block_uses): Likewise.
8677
8678 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8679 Andrew Stubbs <ams@codesourcery.com>
8680
8681 * config.gcc (thread_file): Set to gcn for AMD GCN.
8682 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8683 (TARGET_EMUTLS_VAR_INIT): New hook.
8684
8685 2019-06-25 Martin Jambor <mjambor@suse.cz>
8686
8687 PR ipa/90939
8688 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8689
8690 2019-06-25 Richard Biener <rguenther@suse.de>
8691
8692 PR tree-optimization/90930
8693 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8694 into parallel form in the last pass instance.
8695
8696 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8697
8698 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8699 (arc_legitimize_pic_address): Simplify and cleanup the function.
8700 (SYMBOLIC_CONST): Remove.
8701 (prepare_pic_move): Likewise.
8702 (prepare_move_operands): Handle complex mov cases here.
8703 (arc_legitimize_address_0): Remove call to
8704 arc_legitimize_pic_address.
8705 (arc_legitimize_address): Remove call to
8706 arc_legitimize_tls_address.
8707 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8708 (movhi_insn): Likewise.
8709
8710 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8711
8712 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8713 PTRDIFF_TYPE.
8714 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8715 format of "__intN" types for UINTMAX_TYPE.
8716 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8717 format of "__intN" types for SIZETYPE.
8718 * tree.c (build_common_tree_nodes): Accept "__intN__"
8719 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8720 * doc/invoke.texi: Document that __intN__ disables pedantic
8721 warnings.
8722
8723 2019-06-25 Jan Hubicka <jh@suse.cz>
8724
8725 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8726 base2_alias_set is non-zero before doing TBAA based disambiguation.
8727
8728 2019-06-25 Martin Liska <mliska@suse.cz>
8729
8730 PR tree-optimization/90973
8731 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8732 of prologue and epilogue.
8733
8734 2019-06-24 Jan Hubicka <jh@suse.cz>
8735
8736 * ipa-utils.h (type_with_linkage_p): Verify that type is
8737 CXX_ODR_P.
8738 (odr_type_p): Remove extra return.
8739 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8740 hash STRING_FLAG only for arrays and integers.
8741 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8742 Update analogously.
8743 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8744 Likewise.
8745 * print-tree.c (print_node): Print cxx-odr-p
8746 and string-flag.
8747 * tree.c (need_assembler_name_p): Also check that type
8748 is CXX_ODR_TYPE_P
8749 (verify_type_variant): Update verification of SRING_FLAG;
8750 also check CXX_ODR_P.
8751 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8752 (TYPE_STRING_FLAG): Use it.
8753 (TYPE_CXX_ODR_P): New macro.
8754 * dwarf2out.c (gen_array_type_die): First check that type
8755 is an array and then test string flag.
8756
8757 2019-06-24 Richard Biener <rguenther@suse.de>
8758
8759 PR tree-optimization/90972
8760 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8761 in common code, dealing with STRING_CST properly.
8762
8763 2019-06-24 Richard Biener <rguenther@suse.de>
8764
8765 PR tree-optimization/90930
8766 PR tree-optimization/90316
8767 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8768 decrement of limit.
8769
8770 2019-06-24 Martin Sebor <msebor@redhat.com>
8771
8772 * tree-pretty-print.h: Remove unnecessary punctuation characters
8773 from a diagnostic.
8774 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8775
8776 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8777
8778 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8779 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8780 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8781
8782 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8783
8784 * config/rs6000/darwin.h: Handle GCC target pragma.
8785
8786 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8787
8788 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8789
8790 2019-06-22 Jeff Law <law@redhat.com>
8791
8792 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8793
8794 2019-06-22 Jan Hubicka <jh@suse.cz>
8795
8796 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8797 give up on bitfields; continue searching for different refs
8798 appearing later.
8799
8800 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8801
8802 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8803 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8804 containing the offset as possible simd lane access. Look through
8805 widening conversion. Move the
8806 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8807
8808 2019-06-21 Richard Biener <rguenther@suse.de>
8809
8810 PR tree-optimization/90930
8811 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8812 flag on new stmts to avoid re-processing them.
8813
8814 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8815
8816 PR c++/90875 - added -Wswitch-outside-range option
8817 * doc/invoke.texi (Wswitch-outside-range): Document.
8818
8819 2019-06-21 Jeff Law <law@redhat.com>
8820
8821 PR tree-optimization/90949
8822 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8823 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8824
8825 2019-06-21 Richard Biener <rguenther@suse.de>
8826
8827 PR debug/90914
8828 * dwarf2out.c (prune_unused_types_walk): Always consider
8829 function-local extern declarations as used.
8830
8831 2019-06-21 Richard Biener <rguenther@suse.de>
8832
8833 PR tree-optimization/90913
8834 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8835 the scalar variant of if-conversion versioning.
8836
8837 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8838
8839 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8840 create another "omp scan inscan exclusive" array if
8841 !ctx->scan_inclusive.
8842 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8843 (lower_omp_scan): Likewise.
8844 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8845 2-bit bitfield for simd_lane_access_p member.
8846 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8847 aux == (void *)-4 as simd lane access.
8848 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8849 comment with permutations to show the canonical permutation order.
8850 (vectorizable_scan_store): Handle exclusive scan.
8851 (vectorizable_store): Call vectorizable_scan_store even for
8852 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8853
8854 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8855 "omp simd array" arrays with one byte elements.
8856
8857 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8858
8859 * config/alpha/alpha.md (@unaligned_store<mode>):
8860 Rename from unaligned_store<mode>.
8861 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8862 * config/alpha/sync.md (@load_locked_<mode>): Rename
8863 from load_locked_<mode>.
8864 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8865 (@atomic_compare_and_swap<mode>_1): Rename
8866 from atomic_compare_and_swap<mode>_1.
8867 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8868 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8869 Use gen_reload_in_aligned and gen_unaligned_store.
8870 (emit_load_locked): Remove.
8871 (emit_store_conditional): Ditto.
8872 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8873 (alpha_split_compare_and_swap): Ditto.
8874 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8875 (alpha_split_compare_and_swap_12): Use gen_load_locked
8876 and gen_store_conditional.
8877 (alpha_split_atomic_exchange): Ditto.
8878 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
8879 (alpha_split_atomic_exchange_12): Use gen_load_locked
8880 and gen_store_conditional.
8881
8882 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
8883
8884 * config/aarch64/aarch64-errata.h: New file.
8885 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
8886 (CA53_ERR_843419_SPEC): Delete.
8887 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
8888 * config/aarch64/aarch64-linux.h: Likewise.
8889 * config/aarch64/aarch64-netbsd.h: Likewise.
8890 * config/aarch64/aarch64-freebsd.h: Likewise.
8891
8892 2019-06-20 Marek Polacek <polacek@redhat.com>
8893
8894 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
8895
8896 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
8897
8898 * config/rs6000/rs6000.md (isa attribute): Add support for
8899 for a future processor.
8900
8901 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
8902
8903 PR target/54855
8904 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
8905 standard scalar operation pattern for V2DF.
8906 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
8907 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
8908 (*ieee_<ieee_maxmin><mode>3): Likewise.
8909 (vec_setv2df_0): Likewise.
8910
8911 2019-06-20 Jan Hubicka <jh@suse.cz>
8912
8913 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
8914 parameter; it has no use in gimple memory model.
8915 (indirect_ref_may_alias_decl_p): Update.
8916
8917 2019-06-20 Martin Liska <mliska@suse.cz>
8918
8919 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
8920 to 10.
8921
8922 2019-06-20 Jakub Jelinek <jakub@redhat.com>
8923
8924 * tree-vect-stmts.c (enum scan_store_kind): New type.
8925 (scan_store_can_perm_p): Change last argument from int * to
8926 vec<enum scan_store_kind> *, record precisely which permutations
8927 need whole vector left shift or that plus VEC_COND_EXPR.
8928 (vectorizable_scan_store): Adjust caller, use whole vector left shift
8929 and additional VEC_COND_EXPR only for those iterations that need it.
8930
8931 2019-06-20 Alexandre Oliva <oliva@adacore.com>
8932
8933 * config.gcc: Fix ARM --with-fpu checking and error message.
8934
8935 2019-06-19 Marek Polacek <polacek@redhat.com>
8936
8937 PR c++/60364 - noreturn after first decl not diagnosed.
8938 * attribs.c (get_attribute_namespace): No longer static.
8939 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
8940 attributes.
8941 (attr_noreturn_exclusions): Make it extern.
8942 * attribs.h (get_attribute_namespace): Declare.
8943 * tree-inline.c (function_attribute_inlinable_p): Use
8944 get_attribute_name.
8945
8946 2019-06-19 Martin Sebor <msebor@redhat.com>
8947
8948 PR tree-optimization/90626
8949 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
8950
8951 PR tree-optimization/90626
8952 * tree-ssa-strlen.c (strxcmp_unequal): New function.
8953 (handle_builtin_string_cmp): Call it.
8954
8955 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8956
8957 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
8958 and DARWIN_NOPIE_SPEC.
8959 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
8960 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
8961 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
8962 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
8963 (DARWIN_EXPORT_DYNAMIC): Delete.
8964 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
8965 and pie options processing to darwin.h.
8966 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
8967
8968 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8969
8970 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
8971 in computing the number of options to be moved.
8972
8973 2019-06-19 Maya Rashish <coypu@sdf.org>
8974
8975 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
8976 (CLEAR_INSN_CACHE) Use it.
8977
8978 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
8979
8980 * config/i386/i386.md (cmpstrnsi): Remove dead code.
8981
8982 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
8983
8984 PR middle-end/84521
8985 * builtins.c (expand_builtin_setjmp_setup): Save
8986 hard_frame_pointer_rtx.
8987 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
8988 restore fp.
8989 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
8990 non-local goto.
8991 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
8992 elimination code.
8993 (remove_reg_equal_offset_note): Remove unused function.
8994 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
8995 code.
8996 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8997 (arc_builtin_setjmp_frame_value): Remove function.
8998 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8999 (avr_builtin_setjmp_frame_value): Remove function.
9000 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9001 (ix86_builtin_setjmp_frame_value): Remove function.
9002 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
9003 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9004 (sparc_builtin_setjmp_frame_value): Remove function.
9005 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9006 (vax_builtin_setjmp_frame_value): Remove function.
9007 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
9008 pointer if has_nonlocal_label.
9009
9010 2019-06-19 Jakub Jelinek <jakub@redhat.com>
9011
9012 * doc/md.texi: Document vec_shl_<mode> pattern.
9013 * optabs.def (vec_shl_optab): New optab.
9014 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
9015 argument, if == vec_shl_optab, check for left whole vector shift
9016 pattern rather than right shift.
9017 (expand_vec_perm_const): Add vec_shl_optab support.
9018 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
9019 in the comment.
9020 * tree-vect-generic.c (lower_vec_perm): Support permutations which
9021 can be handled by vec_shl_optab.
9022 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
9023 (check_scan_store): Use it.
9024 (vectorizable_scan_store): If target can't do normal permutations,
9025 try to use whole vector left shifts and if needed a VEC_COND_EXPR
9026 after it.
9027 * config/i386/sse.md (vec_shl_<mode>): New expander.
9028
9029 * omp-low.c (lower_rec_input_clauses): Handle references properly
9030 in inscan clauses.
9031 (lower_omp_scan): Likewise.
9032
9033 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9034
9035 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
9036 mem_mode is BLKmode.
9037
9038 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
9039
9040 PR target/90922
9041 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
9042 pointer adjustment for the case of no callee-saved registers and
9043 stack frame bigger than 128 bytes.
9044
9045 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9046
9047 PR middle-end/90862
9048 * omp-low.c (check_omp_nesting_restrictions): Handle
9049 GF_OMP_TARGET_KIND_OACC_DECLARE.
9050
9051 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
9052
9053 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
9054 (@add<mode>3_carry): Rename from add<mode>3_carry.
9055 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
9056 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
9057 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
9058 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
9059 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
9060 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
9061 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
9062 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
9063 (cmpstrnsi): Use gen_cmp_1.
9064 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
9065 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
9066 (@umonitor_<mode>): Rename from umonitor_<mode>.
9067 * config/i386/i386-expand.c (ix86_expand_copysign):
9068 Use gen_copysign3_const and gen_copysign3_var.
9069 (ix86_expand_xorsign): Use gen_xorsign3_1.
9070 (ix86_expand_branch): Use gen_sub3_carry_ccc,
9071 gen_sub3_carry_ccgz and gen_cmp1.
9072 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
9073 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
9074 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
9075 (ix86_split_lshr): Ditto.
9076 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
9077
9078 2019-06-18 Jason Merrill <jason@redhat.com>
9079
9080 * tree.c (build_constructor): Add MEM_STAT_DECL.
9081
9082 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9083
9084 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
9085 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
9086 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
9087 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
9088 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
9089 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
9090 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
9091 Use CC_NZC instead of CC.
9092 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
9093 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
9094 (aarch64_print_operand): Handle E_CC_NZCmode.
9095 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
9096 of gen_set_clobber_cc.
9097
9098 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9099
9100 * config/aarch64/aarch64-sve.md: Tabify file.
9101
9102 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9103
9104 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
9105 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
9106 * config/aarch64/aarch64-sve.md: Use it.
9107
9108 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9109
9110 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
9111 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
9112 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
9113 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
9114 (aarch64_expand_sve_vec_cmp_int): Use it.
9115 (aarch64_expand_sve_vec_cmp_float): Likewise.
9116 * config/aarch64/aarch64-sve.md: Likewise throughout.
9117
9118 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9119 Kugan Vivekanandarajah <kuganv@linaro.org>
9120
9121 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
9122 (*cond_<optab><mode>_z): Fold into...
9123 (*cond_<optab><mode>_any): ...here. Also handle cases in which
9124 operand 4 can be tied to operand 0 (either inherently or via RA).
9125
9126 2019-06-18 Richard Biener <rguenther@suse.de>
9127
9128 PR debug/90900
9129 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
9130 as if optimized away.
9131
9132 2019-06-18 Tom de Vries <tdevries@suse.de>
9133
9134 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
9135 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
9136 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
9137 Rename to ...
9138 (define_insn "@set_softstack_<mode>"): ... this.
9139 (define_insn "omp_simt_enter_<mode>"): Rename to ...
9140 (define_insn "@omp_simt_enter_<mode>"): ... this.
9141 (define_insn "omp_simt_exit_<mode>"): Rename to ...
9142 (define_insn "@omp_simt_exit_<mode>"): ... this.
9143
9144 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9145
9146 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
9147 vf parameter. Restore the previous iv step of nscalars_step,
9148 but give it iv_type rather than compare_type. Tweak code order
9149 to match the comments.
9150 (vect_set_loop_condition_masked): Update accordingly.
9151 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
9152 for iv_precision. Tweak comment formatting.
9153
9154 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9155
9156 * config/darwin.c: Strip trailing whitespace.
9157
9158 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9159
9160 * config/darwin.c (darwin_emit_unwind_label): New default to false.
9161 (darwin_override_options): Set darwin_emit_unwind_label as needed.
9162
9163 2019-06-18 Martin Jambor <mjambor@suse.cz>
9164
9165 PR ipa/90889
9166 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
9167 caller does not have flag_ipa_cp set.
9168
9169 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9170
9171 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
9172 from "*fold_left_plus_<mode>", updated operands order.
9173 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
9174 * internal-fn.c (mask_fold_left_direct): New define.
9175 (expand_mask_fold_left_optab_fn): Likewise.
9176 (direct_mask_fold_left_optab_supported_p): Likewise.
9177 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
9178 * optabs.def (mask_fold_left_plus_optab): New optab.
9179 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
9180 masked internal_fn for a reduction ifn.
9181 (vectorize_fold_left_reduction): Add support for masking reductions.
9182
9183 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
9184
9185 PR middle-end/80791
9186 * target.def (predict_doloop_p): New hook.
9187 * targhooks.h (default_predict_doloop_p): New declaration.
9188 * targhooks.c (default_predict_doloop_p): New function.
9189 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
9190 * doc/tm.texi: Regenerate.
9191 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
9192 (TARGET_PREDICT_DOLOOP_P): New macro.
9193 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
9194
9195 2019-06-17 Jakub Jelinek <jakub@redhat.com>
9196
9197 * omp-low.c (struct omp_context): Add scan_inclusive field.
9198 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
9199 if inclusive scan.
9200 (struct omplow_simd_context): Add lastlane member.
9201 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
9202 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
9203 1 or 2 argument.
9204 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
9205 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
9206 (lower_omp_scan): New function.
9207 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
9208 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
9209 check 3rd argument if present rather than 2nd.
9210 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
9211 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
9212 2-bit bitfield.
9213 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9214 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
9215 than 2nd.
9216 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
9217 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
9218 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
9219 init.
9220 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
9221 IFN_GOMP_SIMD_LANE argument.
9222 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
9223 encoded ->aux value.
9224 * tree-vect-stmts.c: Include attribs.h.
9225 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
9226 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
9227 functions.
9228 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
9229 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
9230
9231 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
9232
9233 PR target/62055
9234 * config/i386/i386.md (*nabstf2_1): New insn pattern.
9235 (*nabs<mode>2_1): Ditto.
9236 (nabs sse-reg splitter): New splitter.
9237 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
9238
9239 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9240
9241 PR bootstrap/90873.
9242 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
9243 TMR index check.
9244
9245 2019-06-17 Tom de Vries <tdevries@suse.de>
9246
9247 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
9248 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
9249 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
9250 ...
9251 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
9252 match_operand 0.
9253 (define_insn "omp_simt_enter_insn"): Rename to ...
9254 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
9255 match_operand 0, 1 and 2, as well as the unspec_volatile result.
9256 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
9257 gen_omp_simt_enter_si.
9258 (define_expand "omp_simt_exit"): New.
9259 (define_insn "omp_simt_exit"): Rename to ...
9260 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
9261 match_operand 0.
9262
9263 2019-06-17 Matthew Green <mrg@eterna.com.au>
9264 Maya Rashish <coypu@sdf.org>
9265
9266 * config.gcc (aarch64*-*-netbsd*): New target.
9267 * config/aarch64/aarch64-netbsd.h: New file.
9268 * config/aarch64/t-aarch64-netbsd: Likewise.
9269
9270 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9271
9272 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
9273 the access path from base to first VIEW_CONVERT_EXPR or
9274 BIT_FIELD_REF.
9275
9276 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9277
9278 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
9279 access path on BIT_FIELD_REFs.
9280
9281 2019-06-17 Martin Liska <mliska@suse.cz>
9282
9283 PR ipa/90874
9284 * ipa-utils.h (odr_type_p): Remove dead code.
9285
9286 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9287
9288 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
9289 alternative Solaris 11.4 format.
9290 * configure: Regenerate.
9291
9292 2019-06-17 Tom de Vries <tdevries@suse.de>
9293
9294 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
9295 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
9296 match_operand 0.
9297 (define_insn "call_value_insn"): Rename to ...
9298 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
9299 match_operand 0.
9300 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
9301 DI.
9302
9303 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
9304
9305 PR middle-end/64242
9306 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
9307 frame clobbers and schedule block.
9308 (builtin_longjmp): Likewise.
9309
9310 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9311
9312 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
9313 describe how to perform MSPABI compliant 64-bit shift.
9314 * config/msp430/msp430.md (ashldi3): New define_expand.
9315 (ashrdi3): New define_expand.
9316 (lshrdi3): New define_expand.
9317
9318 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9319
9320 * doc/sourcebuild.texi: Document new effective target keyword
9321 longlong64.
9322
9323 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9324
9325 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
9326 indirect_refs_may_alias_p): Revert accidental commits.
9327
9328 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
9329 at the end of structures.
9330
9331 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9332
9333 * config/darwin.c (machopic_indirect_call_target): Use renamed
9334 darwin_picsymbol_stubs to decide on output.
9335 (darwin_override_options): Handle darwin_picsymbol_stubs.
9336 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
9337 (LD64_VERSION): Revise default.
9338 * config/darwin.opt: (mpic-symbol-stubs): New option.
9339 (darwin_picsymbol_stubs): New variable.
9340 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
9341 rename to TARGET_MACHO_PICSYM_STUBS.
9342 * config/i386/i386.c (output_pic_addr_const): Likewise.
9343 * config/i386/i386.h Likewise.
9344 * config/rs6000/darwin.h: Likewise.
9345 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
9346 darwin_picsymbol_stubs.
9347
9348 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9349
9350 * config/darwin.opt (prebind, noprebind, seglinkedit,
9351 noseglinkedit): Add RejectNegative.
9352
9353 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9354
9355 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
9356 in my previous patch.
9357
9358 2019-06-16 Tom de Vries <tdevries@suse.de>
9359
9360 PR tree-optimization/89376
9361 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
9362
9363 2019-06-15 Maya Rashish <coypu@sdf.org>
9364
9365 * doc/invoke.texi (Spec Files): Update location of the
9366 Fortran spec file.
9367
9368 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
9369
9370 * doc/extend.texi (Common Function Attributes): Clarify
9371 no_sanitize. Fix grammar.
9372
9373 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
9374
9375 * tree-ssa-alias.c (alias_stats): Add
9376 nonoverlapping_component_refs_p_may_alias,
9377 nonoverlapping_component_refs_p_no_alias,
9378 nonoverlapping_component_refs_of_decl_p_may_alias,
9379 nonoverlapping_component_refs_of_decl_p_no_alias.
9380 (dump_alias_stats): Dump them.
9381 (nonoverlapping_component_refs_of_decl_p): Add stats.
9382 (nonoverlapping_component_refs_p): Add stats; do not stop on first
9383 ARRAY_REF.
9384
9385 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
9386
9387 * config/i386/i386.md (and<mode>3): Generate zero-extends for
9388 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
9389 only.
9390 (*anddi3_doubleword): Split before reload. Merge with
9391 anddi->zext pre-reload splitter.
9392 (*andndi3_doubleword): Split before reload.
9393 (*<code>di3_doubleword): Ditto.
9394 (*one_cmpldi2_doubleword): Ditto.
9395
9396 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9397
9398 PR middle-end/90779
9399 * gimplify.c: Include omp-offload.h and context.h.
9400 (gimplify_bind_expr): Add "omp declare target" attributes
9401 to static block scope variables inside of target region or target
9402 functions.
9403
9404 2019-06-15 Tom de Vries <tdevries@suse.de>
9405
9406 PR tree-optimization/90009
9407 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
9408 Return NULL if bb contains IFN_UNIQUE.
9409
9410 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
9411
9412 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
9413 (un): New define_mode_attr.
9414 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
9415 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
9416 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
9417 merge into ...
9418 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
9419
9420 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
9421
9422 * config/darwin.opt: Add RejectNegative where needed, reorder
9423 and add minimal functional descriptions.
9424
9425 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9426
9427 PR rtl-optimization/90765
9428 * calls.c (update_stack_alignment_for_call): New function.
9429 (expand_call): Call update_stack_alignment_for_call when
9430 outgoing parameter is passed in the stack.
9431 (emit_library_call_value_1): Likewise.
9432 * function.c (locate_and_pad_parm): Don't update
9433 stack_alignment_needed and preferred_stack_boundary.
9434
9435 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9436
9437 PR target/90877
9438 * config/i386/i386-features.c
9439 (dimode_scalar_chain::compute_convert_gain): Replace
9440 mmxsse_to_integer with sse_to_integer.
9441 * config/i386/i386.c (ix86_register_move_cost): Verify that
9442 moves between MMX and non-MMX units require secondary memory.
9443 Correct costs of moves between SSE and integer units.
9444 * config/i386/i386.h (processor_costs): Rename cost of moving
9445 SSE register to integer to sse_to_integer. Rename cost of
9446
9447 2019-06-14 Matt Thomas <matt@3am-software.com>
9448 Matthew Green <mrg@eterna.com.au>
9449 Nick Hudson <skrll@netbsd.org>
9450 Maya Rashish <coypu@sdf.org>
9451 Richard Earnshaw <rearnsha@arm.com>
9452
9453 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
9454 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
9455 * config/arm/netbsd-eabi.h: New file.
9456 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
9457 redefining.
9458 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
9459 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
9460 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
9461 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
9462
9463 2019-06-14 Richard Biener <rguenther@suse.de>
9464
9465 * tree-loop-distribution.c (classify_partition): Return
9466 whether a reduction appeared in all partitions and do not
9467 stop builtin detection because of this.
9468 (distribute_loop): Sort a non-builtin partition last if
9469 there's a reduction in all partitions and make sure the
9470 partition prevailing as last is not a builtin.
9471
9472 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
9473
9474 PR ipa/90401
9475 * ipa-prop.c (add_to_agg_contents_list): New function.
9476 (clobber_by_agg_contents_list_p): Likewise.
9477 (extract_mem_content): Likewise.
9478 (get_place_in_agg_contents_list): Delete.
9479 (determine_known_aggregate_parts): Renamed from
9480 determine_locally_known_aggregate_parts. New parameter
9481 aa_walk_budget_p.
9482
9483 2019-06-13 Martin Sebor <msebor@redhat.com>
9484
9485 PR tree-optimization/90662
9486 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
9487 to the same type.
9488
9489 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9490
9491 PR bootstrap/90873
9492 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
9493 dbase is not TARGET_MEM_REF.
9494
9495 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9496
9497 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
9498 Update all uses.
9499 (and<mode>3): Use gen_extend_insn instead of indirect functions.
9500 Do not generate DImode extends for 32bit targets.
9501 (and->zext post-reload splitter): Use gen_extend_insn
9502 instead of indirect functions.
9503 (anddi->zext pre-reload splitter): New.
9504 (*zext<mode>_doubleword_and): Remove.
9505 (*zext<mode>_doubleword): Ditto.
9506 (*zextsi_doubleword): Dittto.
9507
9508 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9509
9510 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9511 Use gen_sub3_insn instead of indirect function.
9512 (ix86_expand_ashl_const): Use gen_add2_insn instead of
9513 indirect function.
9514 (ix86_adjust_counter): Ditto.
9515
9516 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
9517 Lijia He <helijia@linux.ibm.com>
9518
9519 PR tree-optimization/77820
9520 * tree-ssa-threadedge.c
9521 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
9522 function.
9523 (thread_across_edge): Add call to
9524 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
9525
9526 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
9527
9528 * config/darwin-driver.c (validate_macosx_version_min): New.
9529 (darwin_default_min_version): Cleanup and validate supplied version.
9530 (darwin_driver_init): Likewise and push cleaned version into opts.
9531
9532 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9533
9534 PR tree-optimization/90869
9535 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
9536 converts in MEM_REF referencing decl rather than view converts
9537 from decl type to MEM_REF type.
9538
9539 2019-06-13 Richard Biener <rguenther@suse.de>
9540
9541 PR tree-optimization/90856
9542 * tree-sra.c (build_ref_for_model): Only use
9543 build_reconstructed_reference when address-spaces are the same.
9544
9545 2019-06-13 Jakub Jelinek <jakub@redhat.com>
9546
9547 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
9548 wrap ei variable name in the declaration in ()s.
9549 (nvptx_single): Actually use mode_label variable. Formatting fix.
9550
9551 2019-06-13 Richard Biener <rguenther@suse.de>
9552
9553 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9554 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9555 also return the condition stmt.
9556 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9557 loop we can version and version that, reusing the loop version
9558 created by if-conversion instead of versioning again.
9559
9560 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9561
9562 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9563 may_contain_p.
9564 * tree-vrp (value_range_base::may_contain_p): Call into
9565 value_inside_range.
9566 (value_inside_range): Make private inside value_range_base class.
9567 Take min/max from *this.
9568 (range_includes_p): Remove.
9569 * tree-vrp.h (value_range_base): Add value_inside_range.
9570 (range_includes_p): Remove.
9571 (range_includes_zero_p): Call may_contain_p.
9572 * vr-values.c (compare_range_with_value): Same.
9573
9574 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9575
9576 * doc/extend.texi (ARC Function Attributes): Update info.
9577
9578 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9579
9580 PR tree-optimization/89713
9581 * doc/invoke.texi (-ffinite-loops): Document new option.
9582 * common.opt (-ffinite-loops): New option.
9583 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9584 IFN_GOACC_LOOP calls as necessary.
9585 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9586 is finite.
9587 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9588 IFN_GOACC_LOOP call is not used.
9589 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9590
9591 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9592
9593 PR target/88838
9594 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9595 compare_type is not with Pmode size, we will create an IV with
9596 Pmode size with truncated use (i.e. converted to the correct type).
9597 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9598 (vect_iv_limit_for_full_masking): New. Factored out of
9599 vect_set_loop_condition_masked.
9600 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9601 (vect_iv_limit_for_full_masking): Declare.
9602
9603 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9604
9605 PR target/88834
9606 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9607 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9608 (get_alias_ptr_type_for_ptr_address): Likewise.
9609 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9610 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9611 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9612 allow_reg_index_p.
9613
9614 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9615
9616 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9617
9618 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9619
9620 * common/config/pru/pru-common.c: New file.
9621 * config.gcc: Add PRU target.
9622 * config/pru/alu-zext.md: New file.
9623 * config/pru/constraints.md: New file.
9624 * config/pru/predicates.md: New file.
9625 * config/pru/pru-opts.h: New file.
9626 * config/pru/pru-passes.c: New file.
9627 * config/pru/pru-pragma.c: New file.
9628 * config/pru/pru-protos.h: New file.
9629 * config/pru/pru.c: New file.
9630 * config/pru/pru.h: New file.
9631 * config/pru/pru.md: New file.
9632 * config/pru/pru.opt: New file.
9633 * config/pru/t-pru: New file.
9634 * doc/extend.texi: Document PRU pragmas.
9635 * doc/invoke.texi: Document PRU-specific options.
9636 * doc/md.texi: Document PRU asm constraints.
9637
9638 2019-06-12 Martin Sebor <msebor@redhat.com>
9639
9640 PR middle-end/90676
9641 * tree-pretty-print.c (dump_mem_ref): New function. Include
9642 MEM_REF type in output when different size than operand.
9643 (dump_generic_node): Move code to dump_mem_ref and call it.
9644
9645 2019-06-12 Martin Sebor <msebor@redhat.com>
9646
9647 PR tree-optimization/90662
9648 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9649 to arrays.
9650
9651 2019-06-12 Tom de Vries <tdevries@suse.de>
9652
9653 PR tree-optimization/90009
9654 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9655
9656 2019-06-12 Martin Liska <mliska@suse.cz>
9657
9658 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9659 the created map.
9660 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9661 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9662 Do not sanitize created maps.
9663
9664 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9665
9666 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9667 value_range::singleton_p.
9668 * tree-vrp.c (value_range_constant_singleton): Remove.
9669 * tree-vrp.h (value_range_constant_singleton): Remove.
9670 * vr-values.c (vr_values::singleton): Use
9671 value_range::singleton_p.
9672
9673 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9674
9675 PR target/90811
9676 * cfgexpand.c (align_local_variable): Add really_expand argument,
9677 don't SET_DECL_ALIGN if it is false.
9678 (add_stack_var): Add really_expand argument, pass it through to
9679 align_local_variable.
9680 (expand_one_stack_var_1): Pass true as really_expand to
9681 align_local_variable.
9682 (expand_one_ssa_partition): Pass true as really_expand to
9683 add_stack_var.
9684 (expand_one_var): Pass really_expand through to add_stack_var.
9685
9686 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9687
9688 * config/arm/iterators.md (VABAL): New int iterator.
9689 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9690 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9691 UNSPEC_VABAL_U values.
9692
9693 2019-06-12 Martin Liska <mliska@suse.cz>
9694
9695 * value-prof.c (stream_out_histogram_value): Only first value
9696 can't be negative.
9697
9698 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9699
9700 PR c/90760
9701 * symtab.c (symtab_node::set_section): Allow being called on aliases
9702 as long as they aren't analyzed yet.
9703
9704 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9705
9706 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9707 to `mips_set_text_contents_type' to indicate whether a
9708 non-debug insn follows.
9709
9710 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9711
9712 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9713 enabling -mpcrel by default.
9714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9715 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9716 that the test against -mcpu=future is done first. Then test if
9717 -mprefixed-addr is on for -mpcrel.
9718 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9719
9720 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9721
9722 PR target/90811
9723 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9724 instead of and.u%d.
9725
9726 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9727
9728 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9729
9730 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9731
9732 PR c++/90449 - add -Winaccessible-base option.
9733 * doc/invoke.texi (Winaccessible-base): Document.
9734
9735 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9736
9737 PR tree-optimization/62041
9738 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9739
9740 2019-06-11 Jason Merrill <jason@redhat.com>
9741
9742 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9743 * tree.c (get_tree_code_name): Likewise.
9744 * print-tree.c (print_node): Only briefly print a node with an
9745 invalid code.
9746
9747 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9748
9749 PR bootstrap/90819
9750 * trans-mem.c (tm_memopt_compute_available): Add assertion
9751 that blocks is not empty. Formatting fix.
9752
9753 2019-06-11 Martin Liska <mliska@suse.cz>
9754
9755 PR c++/87847
9756 * hash-table.h: Extend create_gcc, add one parameter
9757 that is passed into hash_table::hash_table.
9758
9759 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9760
9761 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9762 New prototype.
9763 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9764 Emit clobber also for non-sse operations.
9765 (ix86_split_fp_absneg_operator): New function.
9766 * config/i386/i386.md (SSEMODEF): New mode iterator.
9767 (ssevecmodef): New mode attribute.
9768 (<code>tf2): Use absneg code iterator.
9769 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9770 Add three-operand AVX alternatives.
9771 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9772 Use absneg code iterator and X87MODEF mode iterator.
9773 (absneg fp_reg non-sse splitter): Call absneg code iterator
9774 and X87MODEF mode iterator.
9775 (absneg general_reg non-sse splitter): Use absneg code iterator
9776 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9777 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9778 code iterator. Add three-operand AVX alternative.
9779 (absneg sse_reg splitter): Use absneg code iterator
9780 and SSEMODEF mode iterator. Handle AVX operands.
9781 (absneg fp_reg splitter): Use absneg code iterator
9782 and MODEF mode iterator.
9783 (absneg general_reg splitter): Merge splitters using MODEF mode
9784 iterator. Use absneg code iterator. Call
9785 ix86_split_fp_absneg_operator.
9786 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9787 Do not enable for non-sse modes before reload.
9788 (CSGNMODE): Remove.
9789 (CSGNVMODE): Ditto.
9790 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9791 ssevecmodef mode attribute instaed of CSGNVMODE.
9792 (copysign<mode>3_const): Ditto.
9793 (copysign<mode>3_var): Ditto.
9794 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9795 Use absneg code iterator. Simplify code using std::swap.
9796 * config/i386/predicates.md (absneg_operator): Remove.
9797
9798 2019-06-10 Martin Sebor <msebor@redhat.com>
9799
9800 * gimple-fold.c (get_range_strlen): Update comment that didn't
9801 make it into r267503 or related commits.
9802
9803 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9804
9805 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9806 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9807
9808 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9809
9810 * tree.def (OMP_SCAN): New tree code.
9811 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9812 OMP_CLAUSE_EXCLUSIVE.
9813 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9814 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9815 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9816 OMP_CLAUSE_{IN,EX}CLUSIVE.
9817 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9818 * tree-nested.c (convert_nonlocal_reference_stmt,
9819 convert_local_reference_stmt, convert_gimple_call): Handle
9820 GIMPLE_OMP_SCAN.
9821 * tree-pretty-print.c (dump_omp_clause): Handle
9822 OMP_CLAUSE_{IN,EX}CLUSIVE.
9823 (dump_generic_node): Handle OMP_SCAN.
9824 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9825 * gimple.h (gomp_scan): New type.
9826 (is_a_helper <gomp_scan *>::test,
9827 is_a_helper <const gomp_scan *>::test): New templates.
9828 (gimple_build_omp_scan): Declare.
9829 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9830 gimple_omp_scan_set_clauses): New inline functions.
9831 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9832 * gimple.c (gimple_build_omp_scan): New function.
9833 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9834 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9835 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9836 GIMPLE_OMP_TASKGROUP.
9837 (dump_gimple_omp_scan): New function.
9838 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9839 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9840 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9841 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9842 (is_gimple_stmt): Handle OMP_SCAN.
9843 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9844 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9845 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9846 mentioned in nested #pragma omp scan. Handle
9847 OMP_CLAUSE_{IN,EX}CLUSIVE.
9848 (gimplify_expr): Handle OMP_SCAN.
9849 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9850 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9851 simd constructs.
9852 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9853 GIMPLE_OMP_SCAN.
9854
9855 2019-06-10 Martin Liska <mliska@suse.cz>
9856
9857 * ipa-cp.c (ignore_edge_p): New function.
9858 (build_toporder_info): Use it.
9859 * ipa-inline.c (ignore_edge_p): New function.
9860 (inline_small_functions): Use it.
9861 * ipa-pure-const.c (ignore_edge_for_nothrow):
9862 Verify opt_for_fn for caller and callee.
9863 (ignore_edge_for_pure_const): Likewise.
9864 * ipa-reference.c (ignore_edge_p): Extend to check
9865 for opt_for_fn.
9866 * ipa-utils.c (searchc): Refactor.
9867 * ipa-utils.h: Fix coding style.
9868
9869 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9870
9871 * config/arc/arc.c (arc_rtx_costs): Update costs.
9872
9873 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9874
9875 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9876 (arc_split_ior): Likewise.
9877 (arc_check_mov_const): Likewise.
9878 (arc_split_mov_const): Likewise.
9879 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
9880 (arc_rtx_costs): Replace check Crr with Cax constraint.
9881 (prepare_move_operands): Cleanup, remove unused code.
9882 (arc_split_ior): New function.
9883 (arc_check_ior_const): Likewise.
9884 (arc_split_mov_const): Likewise.
9885 (arc_check_mov_const): Likewise.
9886 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
9887 in define_insn_and_split pattern.
9888 (iorsi3): Likewise.
9889 (mulsi3_v2): Add new matching variant.
9890 (andsi3_i): Cleanup pattern.
9891 (rotrsi3_cnt1): Update pattern.
9892 (rotrsi3_cnt8): New pattern.
9893 (ashlsi2_cnt8): Likewise.
9894 (ashlsi2_cnt16): Likewise.
9895 * config/arc/constraints.md (C0p): Update constraint.
9896 (Crr): Remove it.
9897 (C0x): New pattern.
9898 (Cax): New pattern.
9899
9900 2019-06-10 Martin Liska <mliska@suse.cz>
9901
9902 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
9903 Update coding style.
9904 (sem_item_optimizer::dump_cong_classes):
9905 Print how many items are in a non-singular class. Improve
9906 coding style.
9907
9908 2019-06-10 Martin Liska <mliska@suse.cz>
9909
9910 * value-prof.c (dump_histogram_value): Change dump format.
9911 (gimple_mod_subtract_transform): Remove legacy comment.
9912
9913 2019-06-10 Martin Liska <mliska@suse.cz>
9914
9915 * value-prof.c (dump_histogram_value): Print histogram values
9916 only if present.
9917
9918 2019-06-10 Martin Liska <mliska@suse.cz>
9919
9920 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
9921 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
9922 * ipa-profile.c (ipa_profile_generate_summary):
9923 Use get_most_common_single_value.
9924 * tree-profile.c (gimple_init_gcov_profiler):
9925 Instrument with __gcov_one_value_profiler_v2
9926 and __gcov_indirect_call_profiler_v4.
9927 * value-prof.c (dump_histogram_value):
9928 Print all values for HIST_TYPE_SINGLE_VALUE.
9929 (stream_out_histogram_value): Update assert for
9930 N values.
9931 (stream_in_histogram_value): Set number of
9932 counters for HIST_TYPE_SINGLE_VALUE.
9933 (get_most_common_single_value): New.
9934 (gimple_divmod_fixed_value_transform):
9935 Use get_most_common_single_value.
9936 (gimple_ic_transform): Likewise.
9937 (gimple_stringops_transform): Likewise.
9938 (gimple_find_values_to_profile): Set number
9939 of counters for HIST_TYPE_SINGLE_VALUE.
9940 * value-prof.h (get_most_common_single_value): New.
9941
9942 2019-06-10 Martin Liska <mliska@suse.cz>
9943
9944 * hash-map.h: Pass default value to hash_table ctor.
9945 * hash-table.h: Add default value to call of a ctor.
9946
9947 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
9948
9949 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
9950 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
9951
9952 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
9953
9954 PR target/90751
9955 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
9956 Call pa_output_function_label.
9957 (TARGET_ASM_FUNCTION_PROLOGUE): define.
9958 * config/pa/pa-protos.h (pa_output_function_label): Declare.
9959 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
9960 to declaration.
9961 (pa_linux_output_function_prologue): Declare.
9962 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
9963 (pa_output_function_label): New.
9964 (pa_output_function_prologue): Revise to use pa_output_function_label.
9965 (pa_linux_output_function_prologue): New.
9966 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
9967
9968 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
9969
9970 * tree-vrp.h (value_range_base::intersect): New.
9971 (value_range::intersect_helper): Move from here...
9972 (value_range_base::intersect_helper): ...to here.
9973 * tree-vrp.c (value_range::intersect_helper): Rename to...
9974 (value_range_base::intersect_helper): ...this, and rewrite to
9975 return a value instead of modifying THIS in place.
9976 Also, move equivalence handling...
9977 (value_range::intersect): ...here, while calling intersect_helper.
9978 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
9979 calling intersect.
9980 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
9981 Same.
9982 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
9983
9984 2019-06-07 Jakub Jelinek <jakub@redhat.com>
9985
9986 * Makefile.in (genprogerr): Add condmd.
9987 (genprog): Remove it here.
9988
9989 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
9990
9991 * doc/invoke.texi (AMD GCN Options): Add gfx906.
9992
9993 2019-06-07 Richard Biener <rguenther@suse.de>
9994
9995 PR debug/90574
9996 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
9997 that appear after user labels.
9998
9999 2019-06-07 Martin Liska <mliska@suse.cz>
10000
10001 * cselib.c (cselib_init): Disable hash table
10002 sanitization.
10003 * hash-set.h: Pass new default argument to m_table.
10004 * hash-table.c: Add global variable with hash table
10005 sanitization limit.
10006 * hash-table.h (Allocator>::hash_table): Add new argument
10007 to ctor.
10008 (hashtab_chk_error): New.
10009 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
10010 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
10011 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
10012
10013 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10014
10015 * common.opt (flto-odr-type-merging): Ignore.
10016 * invoke.texi (-flto-odr-type-merging): Remove.
10017 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
10018 (can_be_vtable_hashed_p): Remove.
10019 (hash_odr_vtable): Remove.
10020 (odr_vtable_hasher::hash): Remove.
10021 (types_same_for_odr): Remove.
10022 (types_odr_comparable): Remove.
10023 (odr_vtable_hasher::equal): Remove.
10024 (odr_vtable_hash_type, odr_vtable_hash): Remove.
10025 (add_type_duplicate): Do not synchronize vtable and name hashtables.
10026 (get_odr_type): Do not use vtable hash.
10027 (dump_odr_type): Remove commented out code.
10028 (build_type_inheritance_graph): Do not allocate vtable hash.
10029 (rebuild_type_inheritance_graph): Do not delete vtable hash.
10030 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
10031 (odr_type_p): Likewise.
10032 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
10033 test.
10034
10035 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10036
10037 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
10038 immediately after same_types_for_tbaa_p returns -1 and continue
10039 looking for possible exact match; if matching types are arrays
10040 watch for partial overlaps.
10041 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
10042 (indirect_refs_may_alias_p): Do type based disambiguation first;
10043 update comment.
10044
10045 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
10046
10047 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
10048
10049 2019-06-07 Martin Liska <mliska@suse.cz>
10050
10051 * doc/invoke.texi: Remove param.
10052 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
10053 Remove.
10054 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
10055 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
10056 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
10057 * profile.c (instrument_values): Remove
10058 HIST_TYPE_INDIR_CALL_TOPN.
10059 * tree-profile.c (init_ic_make_global_vars):
10060 Always build __gcov_indirect_call only.
10061 (gimple_init_gcov_profiler): Remove usage
10062 of PARAM_INDIR_CALL_TOPN_PROFILE.
10063 (gimple_gen_ic_profiler): Likewise.
10064 * value-prof.c (dump_histogram_value): Likewise.
10065 (stream_in_histogram_value): Likewise.
10066 (gimple_indirect_call_to_profile): Likewise.
10067 (gimple_find_values_to_profile): Likewise.
10068 * value-prof.h (enum hist_type): Likewise.
10069
10070 2019-06-07 Martin Liska <mliska@suse.cz>
10071
10072 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
10073 function.
10074
10075 2019-06-07 Martin Liska <mliska@suse.cz>
10076
10077 PR tree-optimization/78902
10078 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
10079 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
10080 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10081 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10082 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
10083 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10084 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
10085 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
10086 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10087 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10088 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10089 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
10090 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
10091 New.
10092 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
10093 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
10094 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
10095 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10096 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10097 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
10098 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10099 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10100 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
10101 warn_unused_result attribute.
10102 (BUILT_IN_STRDUP): Likewise.
10103 (BUILT_IN_STRNDUP): Likewise.
10104 (BUILT_IN_ALLOCA): Likewise.
10105 (BUILT_IN_CALLOC): Likewise.
10106 (BUILT_IN_MALLOC): Likewise.
10107 (BUILT_IN_REALLOC): Likewise.
10108
10109 2019-06-06 Jim Wilson <jimw@sifive.com>
10110
10111 PR target/89955
10112 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
10113 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
10114 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
10115
10116 2019-06-06 Martin Sebor <msebor@redhat.com>
10117
10118 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
10119 (handle_builtin_malloc): Remove trailing spaces.
10120 (handle_builtin_memset): Same.
10121 (handle_builtin_memcmp): Same.
10122 (compute_string_length): Same.
10123 (determine_min_objsize): Same.
10124 (handle_builtin_string_cmp): Same.
10125 (handle_char_store): Same. Break up excessively long line.
10126
10127 2019-06-06 Martin Jambor <mjambor@suse.cz>
10128
10129 * tree-sra.c (build_reconstructed_reference): Drop the alignment
10130 check.
10131
10132 2019-06-06 Martin Jambor <mjambor@suse.cz>
10133
10134 * tree-sra.c (struct access): New field grp_same_access_path.
10135 (dump_access): Dump it.
10136 (build_reconstructed_reference): New function.
10137 (build_ref_for_model): Use it if possible.
10138 (path_comparable_for_same_access): New function.
10139 (same_access_path_p): Likewise.
10140 (sort_and_splice_var_accesses): Set the new flag.
10141 (analyze_access_subtree): Likewise.
10142 (propagate_subaccesses_across_link): Propagate zero value of the new
10143 flag down the access tree.
10144
10145 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
10146
10147 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
10148 * config/gcn/gcn.opt (gpu_type): Add gfx906.
10149 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
10150 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
10151 Add gfx906.
10152
10153 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10154
10155 PR tree-optimization/90332
10156 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
10157 Handle VALS containing two vectors.
10158 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
10159 to...
10160 (@aarch64_combinez<mode>): ... This.
10161 (*aarch64_combinez_be<mode>): Rename to...
10162 (@aarch64_combinez_be<mode>): ... This.
10163 (vec_init<mode><Vhalf>): New define_expand.
10164 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
10165
10166 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10167
10168 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
10169 library functions only when not optimizing for size.
10170 (ashlsi3): Likewise.
10171 (ashrhi3): Likewise.
10172 (ashrsi3): Likewise.
10173 (lshrhi3): Likewise.
10174 (lshrsi3): Likewise.
10175
10176 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
10177
10178 PR rtl-optimization/88751
10179 * ira.c (ira): Use the number of the actually referenced registers
10180 when calculating the threshold.
10181
10182 2019-06-06 Jakub Jelinek <jakub@redhat.com>
10183
10184 * configure: Regenerate.
10185
10186 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10187
10188 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
10189 register if it is in memory, so the shift can be emulated with a rotate
10190 instruction.
10191 (ashrhi3): Likewise.
10192 (lshrhi3): Likewise.
10193
10194 2019-06-06 Martin Liska <mliska@suse.cz>
10195
10196 PR tree-optimization/87954
10197 * match.pd: Simplify mult where both arguments are 0 or 1.
10198
10199 2019-06-06 Richard Biener <rguenther@suse.de>
10200
10201 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
10202 put equivalences on UNDEFINED ranges.
10203 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10204 Make sure to drop defs of stmts added during simplification
10205 to VARYING.
10206
10207 2019-06-06 Richard Biener <rguenther@suse.de>
10208
10209 * tree-ssa-structalias.c: Include tree-cfg.h.
10210 (make_heapvar): Do not make heap vars artificial.
10211 (find_func_aliases_for_builtin_call): Handle stack allocation
10212 functions.
10213 (find_func_aliases): Delay processing of simple enough returns
10214 in non-IPA mode.
10215 (set_uids_in_ptset): Adjust.
10216 (find_what_var_points_to): Likewise.
10217 (solve_constraints): Do not dump points-to sets here.
10218 (compute_points_to_sets): Post-process return statements,
10219 amending the escaped solution. Dump points-to sets afterwards.
10220 (ipa_pta_execute): Dump points-to sets.
10221
10222 2019-06-06 Martin Liska <mliska@suse.cz>
10223
10224 PR web/87933
10225 * doc/install.texi: Fix HTML headers and
10226 titles for 'Installing GCC' pages.
10227
10228 2019-06-06 Martin Liska <mliska@suse.cz>
10229
10230 * ipa-icf-gimple.h (dump_message_1): Remove.
10231 (dump_message): Likewise.
10232 (return_false_with_message_1): Print also file.
10233 (return_false_with_msg): Likewise.
10234 (return_with_result): Likewise.
10235 (return_with_debug): Likewise.
10236 * ipa-icf.c (sem_function::equals_private): Remove call
10237 to dump_message.
10238
10239 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10240
10241 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
10242 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
10243 memory operand for it.
10244 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
10245
10246 2019-06-05 Martin Sebor <msebor@redhat.com>
10247
10248 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
10249 Adjust quoting and hyphenation.
10250 * convert.c (convert_to_real_1): Same.
10251 * gcc.c (driver_wrong_lang_callback): Same.
10252 (driver::handle_unrecognized_options): Same.
10253 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
10254 * opts-common.c (cmdline_handle_error): Same.
10255 (read_cmdline_option): Same.
10256 * opts-global.c (complain_wrong_lang): Same.
10257 (print_ignored_options): Same.
10258 (handle_common_deferred_options): Same.
10259 * pretty-print.h: Same.
10260 * print-rtl.c (debug_bb_n_slim): Same.
10261 * sched-rgn.c (make_pass_sched_fusion): Same.
10262 * tree-cfg.c (verify_gimple_assign_unary): Same.
10263 (verify_gimple_label): Same.
10264 * tree-ssa-operands.c (verify_ssa_operands): Same.
10265 * varasm.c (do_assemble_alias): Same.
10266 (assemble_alias): Same.
10267
10268 2019-06-05 Richard Henderson <rth@twiddle.net>
10269
10270 * config/alpha/alpha.c (direct_return): Move down after
10271 struct machine_function definition; use saved frame_size;
10272 return bool.
10273 (struct machine_function): Add sa_mask, sa_size, frame_size.
10274 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
10275 (alpha_compute_frame_layout): ... new function.
10276 (TARGET_COMPUTE_FRAME_LAYOUT): New.
10277 (alpha_initial_elimination_offset): Use saved sa_size.
10278 (alpha_vms_initial_elimination_offset): Likewise.
10279 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
10280 (alpha_expand_prologue): Use saved frame data. Merge integer
10281 and fp register save loops.
10282 (alpha_expand_epilogue): Likewise.
10283 (alpha_start_function): Use saved frame data.
10284 * config/alpha/alpha-protos.h (direct_return): Update.
10285 (alpha_sa_size): Remove.
10286
10287 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
10288
10289 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
10290 multiplication by a power-of-two value.
10291 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
10292 and turn the modulo operation into a masking operation.
10293
10294 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10295
10296 PR debug/90733
10297 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
10298 with VOIDmode inner operands.
10299
10300 2019-06-05 Richard Biener <rguenther@suse.de>
10301
10302 PR middle-end/90726
10303 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10304 turn an expression graph into a tree.
10305
10306 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10307
10308 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
10309 member.
10310 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
10311 treat it like explicit monotonic schedule modifier.
10312 (expand_omp_for): Initialize has_lastprivate_conditional.
10313 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
10314 schedule modifier.
10315
10316 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
10317 references, lookup in in hash map MEM_REF operand instead of the
10318 MEM_REF itself.
10319 (lower_omp_1): When looking for lastprivate conditional assignments,
10320 handle MEM_REFs with REFERENCE_TYPE operands.
10321
10322 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
10323 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
10324 and references a VLA. Handle references to non-VLAs if is_simd
10325 all privatization clauses like reductions.
10326 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
10327 If omp_is_reference, use always omp simd arrays and set
10328 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
10329 fails, emit reference initialization.
10330
10331 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10332
10333 PR target/89803
10334 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
10335 _mm_mask_fpclass_sd_mask): New intrinsics.
10336 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
10337 * config/i386/i386-builtin.def
10338 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
10339 New builtins.
10340 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
10341 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
10342 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
10343 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
10344 case QI_FTYPE_V2SF_INT): Ditto.
10345 * config/i386/sse.md
10346 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
10347 Extended to insnstructions with mask operands.
10348
10349 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10350
10351 * config/rs6000/constraints.md (define_register_constraint "wp"):
10352 Delete.
10353 (define_register_constraint "wq"): Delete.
10354 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10355 (rs6000_init_hard_regno_mode_ok): Adjust.
10356 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10357 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
10358 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
10359 (define_mode_attr VSa): Delete.
10360 (define_mode_attr VSisa): New.
10361 (rest of file): Adjust.
10362 * doc/md.texi (Machine Constraints): Adjust.
10363
10364 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10365
10366 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
10367 (define_attr "enabled"): Handle those new isa values.
10368
10369 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10370
10371 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
10372 (define_mode_attr VSr5): Delete.
10373 (define_mode_attr VStype_sqrt): Delete.
10374 (define_mode_iterator VSX_SPDP): Delete.
10375 (define_mode_attr VS_spdp_res): Delete.
10376 (define_mode_attr VS_spdp_insn): Delete.
10377 (define_mode_attr VS_spdp_type): Delete.
10378 (*vsx_sqrt<mode>2): Adjust.
10379 (vsx_<VS_spdp_insn>): Delete, split to...
10380 (vsx_xscvdpsp): ... this. New. And...
10381 (vsx_xvcvspdp): ... this. New. And...
10382 (vsx_xvcvdpsp): ... this. New.
10383
10384 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10385
10386 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
10387 and V2DF.
10388 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
10389 (rest of file): Adjust.
10390
10391 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10392
10393 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
10394 (vsx_extract_<mode>_var): Ditto.
10395
10396 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10397
10398 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
10399 with just "wa".
10400
10401 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10402
10403 * config/rs6000/constraints.md (define_register_constraint "ww"):
10404 Delete.
10405 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10406 (rs6000_init_hard_regno_mode_ok): Adjust.
10407 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10408 RS6000_CONSTRAINT_ww.
10409 * config/rs6000/rs6000.md: Adjust.
10410 * config/rs6000/vsx.md: Adjust.
10411 * doc/md.texi (Machine Constraints): Adjust.
10412
10413 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10414
10415 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
10416 (define_mode_attr sd): New.
10417 (define_mode_attr s): New.
10418 (define_mode_attr Ftrad): Delete.
10419 (define_mode_attr Fvsx): Delete.
10420 (define_mode_attr Fs): Delete.
10421 (rest of file): Use the new mode attributes.
10422 * config.rs6000/vsx.md: Use the new mode attributes.
10423
10424 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10425
10426 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
10427 with just "wa".
10428
10429 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10430
10431 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
10432 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
10433 used with VSX_B, VSX_D, or VSX_F, with just "wa".
10434
10435 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
10436
10437 PR target/78263
10438 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
10439 C++ with strict ANSI requirements.
10440
10441 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
10442
10443 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
10444 computations when step is 1.
10445
10446 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10447
10448 * config/rs6000/constraints.md (define_register_constraint "wf"):
10449 Delete.
10450 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10451 (rs6000_init_hard_regno_mode_ok): Adjust.
10452 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10453 RS6000_CONSTRAINT_wf.
10454 * config/rs6000/rs6000.md: Adjust.
10455 * config/rs6000/vsx.md: Adjust.
10456 * doc/md.texi (Machine Constraints): Adjust.
10457
10458 2019-06-04 Andrew Pinski <apinski@marvell.com>
10459
10460 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
10461 Fix ILP32 value.
10462
10463 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10464
10465 * config/rs6000/constraints.md (define_register_constraint "wd"):
10466 Delete.
10467 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10468 (rs6000_init_hard_regno_mode_ok): Adjust.
10469 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10470 RS6000_CONSTRAINT_wd.
10471 * config/rs6000/rs6000.md: Adjust.
10472 * config/rs6000/vsx.md: Adjust.
10473 * doc/md.texi (Machine Constraints): Adjust.
10474
10475 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10476
10477 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
10478 (rest of file): Adjust.
10479
10480 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10481
10482 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
10483 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
10484 (vsx_splat_<mode>_reg): Adjust.
10485
10486 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10487
10488 * config/rs6000/constraints.md (define_register_constraint "ws"):
10489 Delete.
10490 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10491 (rs6000_init_hard_regno_mode_ok): Adjust.
10492 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10493 RS6000_CONSTRAINT_ws.
10494 * config/rs6000/rs6000.md: Adjust.
10495 * config/rs6000/vsx.md: Adjust.
10496 * doc/md.texi (Machine Constraints): Adjust.
10497
10498 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10499
10500 * config/rs6000/constraints.md (define_register_constraint "wv"):
10501 Delete.
10502 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10503 (rs6000_init_hard_regno_mode_ok): Adjust.
10504 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10505 RS6000_CONSTRAINT_wv.
10506 * config/rs6000/rs6000.md: Adjust.
10507 * config/rs6000/vsx.md: Adjust.
10508 * doc/md.texi (Machine Constraints): Adjust.
10509
10510 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10511
10512 * config/rs6000/constraints.md (define_register_constraint "wi"):
10513 Delete.
10514 (define_register_constraint "wt"): Delete.
10515 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10516 (rs6000_init_hard_regno_mode_ok): Adjust.
10517 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10518 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
10519 * config/rs6000/rs6000.md: Adjust.
10520 * config/rs6000/vsx.md: Adjust.
10521 * doc/md.texi (Machine Constraints): Adjust.
10522
10523 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10524
10525 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
10526 const.
10527 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
10528 default_elf_asm_output_external.
10529
10530 2019-06-04 Martin Liska <mliska@suse.cz>
10531
10532 * ipa-icf.c (INCLUDE_LIST): Remove.
10533 (sem_item_optimizer::execute): Remove call to init_wpa.
10534 * ipa-icf.h (init_wpa): Remove.
10535
10536 2019-06-04 Jakub Jelinek <jakub@redhat.com>
10537
10538 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
10539 conditional on combined for simd.
10540 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
10541 member.
10542 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
10543 constructs, don't remove lastprivate_conditional_map, but instead set
10544 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
10545 to parent construct temporaries.
10546 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
10547 like !ctx->lastprivate_conditional_map.
10548 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
10549 use up->outer context instead of up.
10550 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
10551 gimple_omp_for_combined_p.
10552 (expand_omp_for_static_nochunk): Likewise.
10553 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10554 probably moved over into expand_omp_for_generic rather than being copied
10555 there.
10556
10557 2019-06-04 Martin Liska <mliska@suse.cz>
10558
10559 * value-prof.c (dump_histogram_value): Fix typo.
10560 (gimple_mod_subtract_transform): Likewise.
10561
10562 2019-06-04 Richard Biener <rguenther@suse.de>
10563
10564 PR middle-end/90726
10565 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10566 (tree_contains_chrecs): Likewise.
10567 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10568 exponential behaivor from ...
10569 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10570 ... here.
10571 (expression_expensive_p): Avoid exponential behavior and compute
10572 expanded size, rejecting any expansion.
10573 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10574 (idx_contains_abnormal_ssa_name_p): Likewise.
10575 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10576 (contains_abnormal_ssa_name_p): Simplify and use
10577 walk_tree_without_duplicates.
10578
10579 2019-06-04 Richard Biener <rguenther@suse.de>
10580
10581 PR tree-optimization/90738
10582 Revert
10583 2019-06-03 Richard Biener <rguenther@suse.de>
10584
10585 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10586 full reference tree and record in ref->ref.
10587 (vn_reference_lookup_3): Pass in original ref to
10588 ao_ref_init_from_vn_reference.
10589 (vn_reference_lookup): Likewise.
10590 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10591 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10592 Handle non-decl bases in the original reference.
10593
10594 2019-06-04 Martin Liska <mliska@suse.cz>
10595
10596 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10597 number of references.
10598 (sem_item_optimizer::do_congruence_step):
10599 (sem_item_optimizer::worklist_push): Dump how references
10600 a class has.
10601 (sem_item_optimizer::worklist_pop): Use heap.
10602 (sem_item_optimizer::process_cong_reduction): Likewise.
10603 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10604
10605 2019-06-04 Martin Liska <mliska@suse.cz>
10606
10607 * ipa-icf.h (struct sem_usage_pair_hash): New.
10608 (sem_usage_pair_hash::hash): Likewise.
10609 (sem_usage_pair_hash::equal): Likewise.
10610 (struct sem_usage_hash): Likewise.
10611 * ipa-icf.c (sem_item::sem_item): Initialize
10612 referenced_by_count.
10613 (sem_item::add_reference): Register a reference
10614 in ref_map and not in target->usages.
10615 (sem_item::setup): Remove initialization of
10616 dead vectors.
10617 (sem_item::~sem_item): Remove usage of dead vectors.
10618 (sem_item::dump): Remove dump of references.
10619 (sem_item_optimizer::sem_item_optimizer): Initialize
10620 m_references.
10621 (sem_item_optimizer::read_section): Remove useless
10622 dump.
10623 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10624 (sem_item_optimizer::build_graph): Pass m_references
10625 to ::add_reference.
10626 (sem_item_optimizer::verify_classes): Remove usage of dead
10627 vectors.
10628 (sem_item_optimizer::traverse_congruence_split): Return true
10629 when a class is split.
10630 (sem_item_optimizer::do_congruence_step_for_index): Use
10631 hash_map for look up of (sem_item *, index). That brings
10632 significant speed up.
10633 (sem_item_optimizer::do_congruence_step): Return true
10634 when a split is done.
10635 (congruence_class::is_class_used): Use referenced_by_count.
10636
10637 2019-06-04 Alan Modra <amodra@gmail.com>
10638
10639 PR target/90689
10640 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10641 error.
10642
10643 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10644
10645 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10646 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10647 (rs6000_secondary_reload_simple_move): Adjust.
10648 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10649 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10650 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10651 comment.
10652 (power6x): Adjust.
10653 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10654 (floatunssi<mode>2_lfiwzx): Adjust.
10655 (fix_trunc<mode>si2_stfiwx): Adjust.
10656 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10657 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10658 (mfpgpr): Mark as deprecated.
10659 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10660 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10661 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10662
10663 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10664
10665 * config/rs6000/constraints.md (define_register_constraint "wg"):
10666 Delete.
10667 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10668 RS6000_CONSTRAINT_wg.
10669 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10670 (rs6000_init_hard_regno_mode_ok): Adjust.
10671 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10672 Delete "wg" alternatives.
10673 * doc/md.texi (Machine Constraints): Adjust.
10674
10675 2019-06-03 Alan Modra <amodra@gmail.com>
10676
10677 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10678 (get_uncond_jump_length): Assert length less than INT_MAX and
10679 non-negative.
10680
10681 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10682
10683 PR middle-end/64242
10684 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10685 block.
10686 (expand_builtin_nonlocal_goto): Likewise.
10687
10688 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10689
10690 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10691 (aarch64_asm_output_external): Declare.
10692 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10693 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10694 (aarch64_asm_output_alias): New.
10695 (aarch64_asm_output_external): New.
10696 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10697 (ASM_OUTPUT_EXTERNAL): Define.
10698
10699 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10700 * tree-vrp.h (value_range_base::nonzero_p): New.
10701 (value_range_base::set_nonnull): Rename to...
10702 (value_range_base::set_nonzero): ...this.
10703 (value_range_base::set_null): Rename to...
10704 (value_range_base::set_zero): ...this.
10705 (value_range::set_nonnull): Remove.
10706 (value_range::set_null): Remove.
10707 * tree-vrp.c (range_is_null): Remove.
10708 (range_is_nonnull): Remove.
10709 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10710 instead of range_is_*null.
10711 (extract_range_from_unary_expr): Same.
10712 (value_range_base::set_nonnull): Rename to...
10713 (value_range_base::set_nonzero): ...this.
10714 (value_range::set_nonnull): Remove.
10715 (value_range_base::set_null): Rename to...
10716 (value_range_base::set_zero): ...this.
10717 (value_range::set_null): Remove.
10718 (extract_range_from_binary_expr): Rename set_*null uses to
10719 set_*zero.
10720 (extract_range_from_unary_expr): Same.
10721 (union_helper): Same.
10722 * vr-values.c (get_value_range): Use set_*zero instead of
10723 set_*null.
10724 (vr_values::extract_range_from_binary_expr): Same.
10725 (vr_values::extract_range_basic): Same.
10726
10727 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10728
10729 PR driver/90684
10730 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10731
10732 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10733
10734 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10735 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10736 Rename to...
10737 (aarch64_<su>abd<mode>_3): ... This.
10738 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10739
10740 2019-06-03 Richard Biener <rguenther@suse.de>
10741
10742 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10743 full reference tree and record in ref->ref.
10744 (vn_reference_lookup_3): Pass in original ref to
10745 ao_ref_init_from_vn_reference.
10746 (vn_reference_lookup): Likewise.
10747 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10748 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10749 Handle non-decl bases in the original reference.
10750
10751 2019-06-03 Martin Liska <mliska@suse.cz>
10752
10753 * doc/generic.texi: Remove Java Trees.
10754
10755 2019-06-03 Martin Liska <mliska@suse.cz>
10756
10757 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10758 returns 0 when operands are equal.
10759
10760 2019-06-03 Richard Biener <rguenther@suse.de>
10761
10762 PR tree-optimization/90716
10763 * tree-loop-distribution.c (destroy_loop): Process blocks in
10764 correct order.
10765
10766 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10767
10768 PR target/88837
10769 * vector-builder.h (vector_builder::count_dups): New method.
10770 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10771 Declare prototype.
10772 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10773 (vec_init<mode><Vel>): New pattern.
10774 * config/aarch64/aarch64.c (emit_insr): New function.
10775 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10776 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10777 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10778 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10779
10780 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10781
10782 PR tree-optimization/90681
10783 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10784 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10785 special case for SLP, but fail on non-groupped loads.
10786
10787 2019-06-03 Martin Liska <mliska@suse.cz>
10788
10789 * cfg.c (debug): Use TDF_DETAILS for debug and
10790 print edge info only once.
10791
10792 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10793
10794 PR fortran/90539
10795 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10796
10797 2019-06-01 Martin Sebor <msebor@redhat.com>
10798
10799 PR middle-end/90694
10800 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10801
10802 2019-05-31 Jan Hubicka <jh@suse.cz>
10803
10804 * alias.c: Include ipa-utils.h.
10805 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10806 * ipa-devirt.c (prevailing_odr_type): New.
10807 * ipa-utils.h (previaling_odr_type): Declare.
10808
10809 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10810 Hongtao Liu <hongtao.liu@intel.com>
10811
10812 PR target/89355
10813 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10814 NOTE_INSN_DELETED_LABEL check.
10815
10816 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10817 Robert Suchanek <robert.suchanek@mips.com>
10818
10819 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10820 and 3rd operands of the fmadd/fmsub/maddv builtin.
10821
10822 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10823
10824 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10825 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10826 on OMP_SIMD if not nested inside of worksharing loop that also has
10827 lastprivate conditional clause for the same decl.
10828 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10829 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10830 on simd.
10831 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10832 on simd construct.
10833 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10834 on simd construct.
10835 (lower_lastprivate_clauses): Likewise.
10836 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10837 calling lower_rec_input_clauses.
10838 (lower_omp_for): Likewise.
10839 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10840 clause on simd construct.
10841 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10842 OMP_CLAUSE__CONDTEMP_ clause is present.
10843
10844 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10845 ivar and lvar.
10846
10847 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10848
10849 PR c/43673
10850 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10851 TEX_D32, TEX_D64 or TEX_D128.
10852
10853 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10854
10855 * match.pd (~(vec?cst1:cst2)): New transformation.
10856
10857 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10858
10859 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10860 ((size_t)(A /[ex] B) CMP C): New transformation.
10861
10862 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10863
10864 * doc/md.texi: Document define_insn_and_rewrite.
10865 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10866 * gensupport.c (queue_elem): Update comment.
10867 (replace_operands_with_dups): New function.
10868 (gen_rewrite_sequence): Likewise.
10869 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10870 * read-rtl.c (apply_subst_iterator): Likewise.
10871 (add_condition_to_rtx, named_rtx_p): Likewise.
10872 (rtx_reader::read_rtx_operand): Likewise.
10873 * config/aarch64/aarch64-sve.md
10874 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10875 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10876 define_insn_and_rewrite.
10877 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
10878 Remove separate define_split.
10879
10880 2019-05-31 Jan Hubicka <jh@suse.cz>
10881
10882 * tree-ssa-alias.c (type_has_components_p): New function.
10883 (aliasing_component_refs_p): Use it.
10884
10885 2019-05-31 Martin Liska <mliska@suse.cz>
10886
10887 * gdbhooks.py: Add const_tree to TreePrinter.
10888
10889 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
10890
10891 PR debug/86964
10892 * common.opt (feliminate-unused-debug-symbols): Enable by default.
10893 * doc/invoke.texi (Debugging Options): Document new default of
10894 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
10895
10896 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10897
10898 PR tree-optimization/90671
10899 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
10900 template_block used to be empty on the first call, don't use
10901 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
10902 seq with bb_seq and set it with set_bb_seq.
10903
10904 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
10905
10906 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
10907
10908 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10909 Michael Meissner <meissner@linux.ibm.com>
10910
10911 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
10912 (prefixed_mem_operand): Likewise.
10913 (non_prefixed_mem_operand): Likewise.
10914 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
10915 prototype.
10916 * config/rs6000/rs6000.c (print_operand_address): Handle
10917 PC-relative addresses.
10918 (mode_supports_prefixed_address_p): New function.
10919 (rs6000_prefixed_address): New function.
10920 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
10921 (SYMBOL_REF_PCREL_P): Likewise.
10922
10923 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10924
10925 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
10926 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
10927 (gimplify_omp_for): If worksharing loop with lastprivate conditional
10928 is nested inside of parallel region, add _condtemp_ clause to both.
10929 * tree-nested.c (convert_nonlocal_omp_clauses,
10930 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
10931 assertion failure.
10932 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
10933 member.
10934 * omp-general.c (omp_extract_for_data): Compute it.
10935 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
10936 (lower_rec_input_clauses): Likewise.
10937 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
10938 clause is already present, just add one further one after it.
10939 (lower_lastprivate_clauses): Handle cond_ptr with array type.
10940 (lower_send_shared_vars): Clear _condtemp_ vars.
10941 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
10942 or section or taskgroup.
10943 * omp-expand.c (determine_parallel_type): Disallow combining only if
10944 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
10945 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
10946 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10947 expand_omp_for_static_chunk, expand_omp_for): Use
10948 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
10949 determine if a special set of API routines are needed and if condtemp
10950 needs to be initialized, while always initialize cond_var if
10951 fd->lastprivate_conditional is non-zero.
10952
10953 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10954 Michael Meissner <meissner@linux.ibm.com>
10955
10956 * config/rs6000/constraints.md (eI): New constraint.
10957 * config/rs6000/predicates.md (cint34_operand): New predicate.
10958 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
10959 (SIGNED_34BIT_OFFSET_P): Likewise.
10960 * doc/md.texi (eI): Document constraint.
10961
10962 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
10963
10964 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
10965
10966 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10967 Michael Meissner <meissner@linux.ibm.com>
10968
10969 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
10970 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
10971 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
10972 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
10973 (OTHER_FUTURE_MASKS): Likewise.
10974 (POWERPC_MASKS): Likewise.
10975 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
10976 specified without -mprefixed-addr or -mcpu=future. Error if
10977 -mprefixed-addr is specified without -mcpu=future.
10978 (rs6000_opt_masks): Add entry for prefixed-addr.
10979 * rs6000.opt (mprefixed-addr): New option.
10980
10981 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
10982
10983 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
10984 cfun->is_thunk check.
10985
10986 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10987
10988 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
10989 to length.
10990
10991 2019-05-30 Martin Liska <mliska@suse.cz>
10992
10993 * gdbinit.in: Fix 'ptc' command. Add trt
10994 that prints TREE_TYPE($).
10995
10996 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
10997 Alan Modra <amodra@gmail.com>
10998
10999 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
11000 calls here...
11001 (rs6000_indirect_call_template_1): ...and here.
11002 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
11003 plt16_ha, plt16_lo, mtctr indirect calls. Use
11004 rs6000_pltseq_enum.
11005 (rs6000_decl_ok_for_sibcall): New function.
11006 (rs6000_function_ok_for_sibcall): Refactor.
11007 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
11008 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
11009 when pcrel. Reorganize.
11010 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
11011 * rs6000.h (rs6000_pltseq_enum): New enum.
11012 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
11013 (*pltseq_tocsave): Use rs6000_pltseq_enum.
11014 (*pltseq_plt16_ha): Likewise.
11015 (*pltseq_plt16_lo): Likewise.
11016 (*pltseq_mtctr): Likewise.
11017 (*pltseq_plt_pcrel): New insn.
11018 (*call_local_aix): Handle @notoc calls.
11019 (*call_value_local_aix): Likewise.
11020 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
11021 (*call_value_nonlocal_aix): Likewise.
11022 (*call_indirect_pcrel): New insn.
11023 (*call_value_indirect_pcrel): Likewise.
11024
11025 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
11026
11027 * config/i386/sse.md (*save_multiple<mode>): Rename from
11028 save_multiple<mode>.
11029 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
11030 (*restore_multiple_and_return<mode>): Rename from
11031 restore_multiple_and_return<mode>.
11032 (*restore_multiple_leave_return<mode>): Rename from
11033 restore_multiple_leave_return<mode>.
11034
11035 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
11036
11037 * config.gcc (rx-*-linux*): New target.
11038 * config/rx/elf.opt: New file.
11039 * config/rx/linux.h: Likewise.
11040 * config/rx/t-linux: Likewise.
11041 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
11042 make it zero.
11043 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
11044 (ASM_APP_OFF): Likewise.
11045 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
11046 moved elsewhere.
11047
11048 2019-05-29 Jan Hubicka <jh@suse.cz>
11049
11050 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
11051 variants are pointer equivalent.
11052
11053 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11054
11055 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
11056 * config/aarch64/aarch64-sve2.md: New file.
11057 (<u>avg<mode>3_floor): New pattern.
11058 (<u>avg<mode>3_ceil): Likewise.
11059 (*<sur>h<addsub><mode>): Likewise.
11060 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
11061 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
11062
11063 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11064
11065 PR bootstrap/90543
11066 * optc-save-gen.awk: In cl_optimization_print, use correct condition
11067 for var_opt_string printing. In cl_optimization_print_diff, print
11068 (null) instead of invoking undefined behavior if one of the
11069 var_opt_string pointers is NULL and use && instead of first || in the
11070 guarding condition. For var_target_other options, handle const char *
11071 target variables similarly to const char * optimize node variables.
11072
11073 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
11074
11075 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
11076 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
11077 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
11078 Add autib1716 and pacib1716 initialisation.
11079 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
11080 for autib1716 and pacib1716.
11081 * config/aarch64/aarch64-protos.h (aarch64_key_type,
11082 aarch64_post_cfi_startproc): Define.
11083 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
11084 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
11085 aarch64_handle_pac_ret_protection): Set default sign key to A.
11086 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
11087 aarch64_expand_prologue): Add check for b-key.
11088 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
11089 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
11090 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
11091 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
11092 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
11093 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
11094 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11095 * config/aarch64/aarch64.md (do_return): Add check for b-key.
11096 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
11097 pauth_hint_num_a with pauth_hint_num.
11098 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
11099 pauth_hint_num_a with pauth_hint_num.
11100 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
11101 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
11102 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11103 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
11104 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
11105 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
11106 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
11107 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11108 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
11109 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
11110 UNSPEC_AUTIA1716 respectively.
11111 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
11112 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
11113 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
11114 * doc/invoke.texi (-mbranch-protection): Add b-key type.
11115 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
11116 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
11117
11118 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11119
11120 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
11121 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
11122 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
11123 explicit clause on combined parallel into implicit shared clause.
11124 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
11125 and firstprivate if the decl has one too from combined parallel to
11126 the worksharing construct.
11127
11128 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
11129 Michael Meissner <meissner@linux.ibm.com>
11130
11131 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
11132
11133 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
11134
11135 * rtl.h (LABEL_REF_P): New #define.
11136
11137 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
11138
11139 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
11140
11141 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11142
11143 * internal-fn.c: Marked mask_load_direct as vectorizable.
11144 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
11145 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
11146 combined even if masks different with allow_slp_p param.
11147 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
11148 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
11149 dissolve SLP-only vectorizable groups when SLP has been discarded.
11150 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
11151 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
11152 masks.
11153 (vect_build_slp_tree_1): Fixed comment typo.
11154 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
11155 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
11156 loads for SLP only.
11157 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
11158 vectorizable.
11159 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
11160
11161 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11162
11163 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
11164 Remove obsolete use_thunk reference.
11165 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11166 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11167 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11168 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11169 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11170 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11171 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11172 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11173 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11174
11175 2019-05-28 Nathan Sidwell <nathan@acm.org>
11176
11177 * tree.h (IDENTIFIER_ANON_P): New.
11178 (anon_aggrname_format, anon_aggname_p): Don't declare.
11179 (make_anon_name): Declare.
11180 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
11181 (hash_tree): Likewise.
11182 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
11183 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
11184 (anon_cnt, make_anon_name): New.
11185
11186 2019-05-28 Martin Liska <mliska@suse.cz>
11187
11188 PR other/90315
11189 * opts-global.c (decode_options): Print help for all
11190 help_option_arguments.
11191 * opts.c (print_help): Add new argument.
11192 (common_handle_option): Remember all values into
11193 help_option_arguments.
11194 * opts.h (print_help): Add new argument.
11195
11196 2019-05-28 Martin Liska <mliska@suse.cz>
11197
11198 PR ipa/90555
11199 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
11200 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
11201 (func_checker::compare_bb): Call compare_loops.
11202
11203 2019-05-27 Jakub Jelinek <jakub@redhat.com>
11204
11205 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11206 on sections construct.
11207 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
11208 construct.
11209 (lower_omp_sections): Handle lastprivate conditional.
11210 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
11211 lastprivate_conditional_map.
11212 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
11213
11214 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
11215 critical, taskgroup and section regions when looking for a region
11216 with non-NULL lastprivate_conditional_map.
11217
11218 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11219
11220 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
11221 (*ix86_gen_sub3): Ditto.
11222 (*ix86_gen_sub3_carry): Ditto.
11223 (*ix86_gen_one_cmpl2): Ditto.
11224 (*ix86_gen_andsp): Ditto.
11225 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
11226 (gen_and2_insn): New static function.
11227 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
11228 Use gen_add3_insn instead of ix86_gen_add3.
11229 (ix86_expand_split_stack_prologue): Use gen_add2_insn
11230 instead of ix86_gen_add3.
11231 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
11232 Use gen_sub3_insn instead of ix86_gen_sub3.
11233 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
11234 instead of ix86_gen_add3.
11235 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
11236 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
11237 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
11238 * config/i386/i386-options.c (ix86_option_override_internal):
11239 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11240 ix86_gen_one_cmpl2 and ix86_gen_andsp.
11241
11242 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
11243
11244 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
11245 and DW_OP_GNU_const_index opcodes.
11246
11247 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11248
11249 * config/i386/i386.h (STACK_SIZE_MODE): Define.
11250
11251 2019-05-27 Richard Biener <rguenther@suse.de>
11252
11253 PR tree-optimization/90637
11254 * tree-ssa-sink.c (statement_sink_location): Honor the
11255 computed sink location for single-uses.
11256
11257 2019-05-27 Richard Biener <rguenther@suse.de>
11258
11259 PR middle-end/90610
11260 * match.pd (vec_perm): Avoid clobbering op0 when not generating
11261 a bit-insert.
11262
11263 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11264
11265 * config/i386/i386.md (@sub<mode>3_carry): Rename
11266 from sub<mode>3_carry.
11267 (@leave_<mode>): New expander.
11268 (*leave): Rename from leave.
11269 (*leave_rex64): Rename from leave_rex64.
11270 (@monitorx_<mode>): Rename from monitorx_<mode>.
11271 (@clzero_<mode>): Rename from clzero_<mode>.
11272 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
11273 from sse3_monitor_<mode>.
11274 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
11275 (*ix86_gen_leave): Ditto.
11276 (*ix86_gen_monitor): Ditto.
11277 (*ix86_gen_monitorx): Ditto.
11278 (*ix86_gen_clzero): Ditto.
11279 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
11280 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
11281 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
11282 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
11283 Use gen_sse3_monitor instead of ix86_gen_monitor.
11284 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
11285 instead of ix86_gen_monitorx.
11286 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
11287 instead of ix86_gen_clzero.
11288 * config/i386/i386-options.c (ix86_option_override_internal):
11289 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
11290 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
11291
11292 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11293
11294 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
11295 Rename from tls_global_dynamic_64_<mode>.
11296 (@tls_local_dynamic_base_64_<mode>): Rename from
11297 tls_local_dynamic_base_64_<mode>.
11298 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
11299 Remove indirect function.
11300 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
11301 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
11302 instead of ix86_gen_tls_global_dynamic_64.
11303 Use gen_tls_local_dynamic_base_64 instead of
11304 ix86_gen_tls_local_dynamic_base_64.
11305 * config/i386/i386-options.c (ix86_option_override_internal):
11306 Do not initialize ix86_gen_tls_global_dynamic_64 and
11307 ix86_gen_tls_local_dynamic_base_64.
11308
11309 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11310
11311 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
11312 Rename from pro_epilogue_adjust_stack_<mode>_add.
11313 (@pro_epilogue_adjust_stack_sub_<mode>)
11314 Rename from pro_epilogue_adjust_stack_<mode>_sub.
11315 (@allocate_stack_worker_probe_<mode>):
11316 Rename from allocate_stack_worker_probe_<mode>.
11317 (allocate_stack): Use gen_allocate_stack_worker_probe.
11318 (probe_stack): Use gen_probe_stack_1.
11319 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
11320 (@adjust_stack_and_probe_<mode>): Rename from
11321 adjust_stack_and_probe<mode>.
11322 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
11323 (stack_protect_set): Use gen_stack_protect_set_1.
11324 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
11325 (stack_protect_test): Use gen_stack_protect_test_1.
11326 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
11327 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
11328 Remove indirect function.
11329 (*ix86_gen_adjust_stack_and_probe): Ditto.
11330 (*ix86_gen_probe_stack_range): Ditto.
11331 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
11332 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
11333 (ix86_adjust_stack_and_probe_stack_clash): Use
11334 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
11335 (ix86_adjust_stack_and_probe): Ditto.
11336 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
11337 of ix86_gen_probe_stack_range.
11338 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
11339 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
11340 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
11341 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
11342 CODE_FOR_stack_protect_test_{si,di}.
11343 * config/i386/i386-options.c (ix86_option_override_internal):
11344 Do not initialize ix86_gen_allocate_stack_worker,
11345 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
11346
11347 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
11348
11349 * doc/invoke.texi (Link Options): Many editorial changes around
11350 -flinker-output.
11351
11352 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11353
11354 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
11355 pre-Solaris 11 referene and most Studio compiler details.
11356
11357 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
11358
11359 PR target/90530
11360 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
11361 DImode to SImode in floating-point registers on 64-bit target.
11362 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
11363 register_operand in xmpyu patterns.
11364
11365 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11366
11367 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
11368 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
11369 OMP_CLAUSE__REDUCTEMP_.
11370 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11371 OMP_CLAUSE__CONDTEMP_.
11372 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
11373 * tree-pretty-print.c (dump_omp_clause): Likewise.
11374 * tree-nested.c (convert_nonlocal_omp_clauses,
11375 convert_local_omp_clauses): Likewise.
11376 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
11377 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
11378 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
11379 on OMP_FOR.
11380 (gimplify_omp_for): Warn and disable conditional modifier from
11381 lastprivate on loop iterators.
11382 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
11383 member.
11384 * omp-general.c (omp_extract_for_data): Initialize it.
11385 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
11386 member.
11387 (delete_omp_context): Delete it.
11388 (lower_lastprivate_conditional_clauses): New function.
11389 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
11390 handle lastprivate conditional clauses.
11391 (lower_reduction_clauses): Add CLIST argument, emit it into
11392 the critical section if any.
11393 (lower_omp_sections): Adjust lower_lastprivate_clauses and
11394 lower_reduction_clauses callers.
11395 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
11396 to lower_lastprivate_clauses.
11397 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
11398 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
11399 clist into a critical section if not emitted there already by
11400 lower_reduction_clauses.
11401 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
11402 callers.
11403 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
11404 conditional variables.
11405 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
11406 clause is present.
11407 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11408 expand_omp_for_static_chunk): Handle lastprivate conditional.
11409 (expand_omp_for): Handle fd.lastprivate_conditional like
11410 fd.have_reductemp.
11411
11412 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11413
11414 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
11415 kernel does not exit cleanly.
11416 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
11417
11418 2019-05-24 Jason Merrill <jason@redhat.com>
11419
11420 Revert:
11421 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11422
11423 2019-05-24 Richard Biener <rguenther@suse.de>
11424
11425 PR testsuite/90607
11426 * tree-loop-distribution.c (struct partition): Add location
11427 member.
11428 (partition_alloc): Initialize all fields.
11429 (generate_memset_builtin): Use the location recorded in the
11430 partition for the generated call.
11431 (generate_memcpy_builtin): Likewise.
11432 (classify_partition): Record the location of a single store
11433 as location for the partition.
11434
11435 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11436
11437 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
11438 for lo-part.
11439
11440 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
11441
11442 PR target/90588
11443 * common/config/aarch64/aarch64-common.c
11444 (aarch64_rewrite_selected_cpu): Change local temporary variable
11445 type from unsigned long to uint64_t.
11446 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
11447 aarch64_get_extension_string_for_isa_flags): Change declaration to
11448 match new definition by replacing unsigned long with uint64_t.
11449
11450 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11451
11452 PR target/90568
11453 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
11454 gen_attr_type just once instead of 4-7 times. Formatting fixes.
11455 Handle stack_protect_test_<mode> codegen similarly to corresponding
11456 sub instruction.
11457
11458 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
11459
11460 * config/i386/darwin.h: Reject -mfentry*.
11461 * doc/sourcebuild.texi: Document mfentry target support.
11462
11463 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11464
11465 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
11466 Rename to rs6000_global_entry_point_prologue_needed_p. Return
11467 false for PC-relative functions.
11468 (rs6000_output_function_prologue): Change called function name to
11469 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
11470 name,1" for PC-relative functions.
11471 (rs6000_elf_declare_function_name): Change called function name to
11472 rs6000_global_entry_point_prologue_needed_p.
11473
11474 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
11475
11476 PR target/90552
11477 * config/i386/i386.c (gen_rtx_cost):
11478 Use ix86_tune_cost instead of ix86_cost.
11479
11480 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11481 Michael Meissner <meissner@linux.ibm.com>
11482 Segher Boessenkool <segher@kernel.crashing.org>
11483
11484 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
11485 OPTION_MASK_PCREL.
11486 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
11487 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
11488 (rs6000_fndecl_pcrel_p): Likewise.
11489 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
11490 error if -mpcrel is requested without -mcpu=future.
11491 (rs6000_opt_masks): Add entry for pcrel.
11492 (rs6000_fndecl_pcrel_p): New function.
11493 (rs6000_pcrel_p): Likewise.
11494 * config/rs6000/rs6000.opt (mpcrel): New option.
11495 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
11496
11497 2019-05-23 Jan Hubicka <jh@suse.cz>
11498 Martin Liska <mliska@suse.cz>
11499
11500 PR tree-optimization/90576
11501 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
11502 poly_int_tree_p.
11503 (aliasing_component_refs_p): Fix three way size compare conditional;
11504 give up earlier in case we can not decide on equivalence.
11505
11506 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11507 Michael Meissner <meissner@linux.ibm.com>
11508 Segher Boessenkool <segher@kernel.crashing.org>
11509
11510 * config.gcc: Add future cpu.
11511 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
11512 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
11513 #define.
11514 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
11515 (RS6000_CPU): New instantiation for future cpu.
11516 * config/rs6000/rs6000-opts.h (enum processor_type): Add
11517 PROCESSOR_FUTURE.
11518 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
11519 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
11520 * config/rs6000/rs6000-tables.opt: Regenerate.
11521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
11522 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
11523 (rs6000_machine_from_flags): Handle future cpu.
11524 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
11525 PROCESSOR_POWER9 for now.
11526 (rs6000_adjust_cost): Likewise.
11527 (rs6000_issue_rate): Likewise.
11528 (rs6000_register_move_cost): Likewise.
11529 (rs6000_opt_masks): Add entry for future.
11530 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
11531 (MASK_FUTURE): New #define.
11532 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
11533 * config/rs6000/rs6000.opt (mfuture): New target option.
11534 * doc/invoke.texi (mcpu): Add future cpu.
11535
11536 2019-05-23 Martin Liska <mliska@suse.cz>
11537
11538 PR c++/90587
11539 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
11540 operation points to a temporary (pointed via tree_to_wide_ref)
11541 that is out of scope after the &.
11542
11543 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
11544
11545 PR c++/90592
11546 * doc/extend.texi (Function Names): Add missing word.
11547
11548 2019-05-23 Richard Biener <rguenther@suse.de>
11549
11550 PR tree-optimization/88440
11551 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11552 at -O[2s]+.
11553 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11554 generated call.
11555 (generate_memcpy_builtin): Likewise.
11556 (distribute_loop): Pass in whether to only distribute patterns.
11557 (prepare_perfect_loop_nest): Also allow size optimization.
11558 (pass_loop_distribution::execute): When optimizing a loop
11559 nest for size allow pattern replacement.
11560
11561 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11562
11563 PR target/90568
11564 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11565 of xor.
11566
11567 2019-05-23 Martin Liska <mliska@suse.cz>
11568
11569 PR sanitizer/90570
11570 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11571 expression similarly to gimplify_decl_expr.
11572
11573 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11574
11575 * cse.c (cse_dump_path): s/dump_file/f.
11576
11577 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11578
11579 PR c++/90462
11580 * diagnostic-format-json.cc: Include "selftest.h".
11581 (json_from_expanded_location): Only add "file" key for non-NULL
11582 file strings.
11583 (json_from_location_range): Don't add "start" and "finish"
11584 children if they are UNKNOWN_LOCATION.
11585 (selftest::test_unknown_location): New selftest.
11586 (selftest::test_bad_endpoints): New selftest.
11587 (selftest::diagnostic_format_json_cc_tests): New function.
11588 * json.cc (json::object::get): New function.
11589 (selftest::test_object_get): New selftest.
11590 (selftest::json_cc_tests): Call it.
11591 * json.h (json::object::get): New decl.
11592 * selftest-run-tests.c (selftest::run_tests): Call
11593 selftest::diagnostic_format_json_cc_tests.
11594 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11595 decl.
11596
11597 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11598 Andrew Stubbs <amd@codesourcery.com>
11599
11600 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11601 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11602 (kernel): Rename to...
11603 (main_kernel): ... this.
11604 (load_image): Load _init_array and _fini_array kernels.
11605 (run): Add argument for kernel to run.
11606 (main): Run init_array_kernel before main_kernel, and
11607 fini_array_kernel after.
11608 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11609 amdgpu_hsa_kernel attribute on functions.
11610 (gcn_disable_constructors): Delete.
11611 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11612 * config/gcn/crt0.c (size_t): Define.
11613 (_init_array, _fini_array): New.
11614 (__preinit_array_start, __preinit_array_end,
11615 __init_array_start, __init_array_end,
11616 __fini_array_start, __fini_array_end): Declare weak references.
11617
11618 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11619
11620 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11621
11622 2019-05-22 Jason Merrill <jason@redhat.com>
11623
11624 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11625
11626 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11627
11628 PR target/88483
11629 * config/i386/i386-options.c (ix86_init_machine_status): Set
11630 stack_frame_required to true.
11631 * config/i386/i386.c (ix86_get_frame_size): New function.
11632 (ix86_frame_pointer_required): Replace get_frame_size with
11633 ix86_get_frame_size.
11634 (ix86_compute_frame_layout): Likewise.
11635 (ix86_find_max_used_stack_alignment): Changed to void. Set
11636 stack_frame_required.
11637 (ix86_finalize_stack_frame_flags): Always call
11638 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11639 ix86_get_frame_size.
11640 * config/i386/i386.h (machine_function): Add stack_frame_required.
11641
11642 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11643
11644 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11645
11646 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11647
11648 * common/config/aarch64/aarch64-common.c
11649 (struct aarch64_option_extension, struct processor_name_to_arch,
11650 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11651 aarch64_contains_opt,
11652 aarch64_get_extension_string_for_isa_flags): Change type of
11653 variables storing flags to uint64_t.
11654 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11655 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11656 * config/aarch64/aarch64.c (struct processor,
11657 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11658 aarch64_validate_march, aarch64_override_options,
11659 aarch64_option_print, aarch64_handle_attr_isa_flags,
11660 aarch64_declare_function_name, aarch64_start_file): Make flag
11661 variables uint64_t.
11662 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11663 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11664 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11665 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11666 * config/aarch64/driver-aarch64.c
11667 (struct aarch64_arch_extension, struct aarch64_core_data,
11668 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11669 flag variables uint64_t.
11670 * doc/invoke.texi: Add documentation for new arguments.
11671
11672 2019-05-22 Richard Biener <rguenther@suse.de>
11673
11674 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11675 rewrite ...
11676 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11677
11678 2019-05-22 Martin Liska <mliska@suse.cz>
11679
11680 PR lto/90500
11681 * doc/extend.texi: Document the change.
11682
11683 2019-05-22 Richard Biener <rguenther@suse.de>
11684
11685 PR tree-optimization/90450
11686 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11687 (mem_ref_hasher::equal): Check it.
11688 (mem_ref_alloc): Initialize it.
11689 (gather_mem_refs_stmt): Set it.
11690
11691 2019-05-22 Richard Biener <rguenther@suse.de>
11692
11693 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11694 Add ABS_EXPR.
11695 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11696 as ABSU_EXPR.
11697
11698 2019-05-22 Alan Modra <amodra@gmail.com>
11699
11700 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11701 (ASM_CPU_SPEC): Conditionally add -many.
11702 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11703 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11704 (rs6000_file_start): ..extracted from here, and modified to
11705 test all ISA bits.
11706 (rs6000_output_function_prologue): Emit .machine as necessary.
11707
11708 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11709
11710 PR middle-end/90553
11711 * ira-lives.c (process_bb_node_lives): Consider defs
11712 for a call insn to be die before the call, not after.
11713
11714 * function.c (assign_parm_setup_block): Raise alignment of
11715 stacked parameter only for STRICT_ALIGNMENT targets.
11716
11717 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11718
11719 * config/rs6000/constraints.md (define_register_constraint "wz"):
11720 Delete.
11721 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11722 RS6000_CONSTRAINT_wz.
11723 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11724 (rs6000_init_hard_regno_mode_ok): Adjust.
11725 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11726 * doc/md.texi (Machine Constraints): Adjust.
11727
11728 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11729
11730 * config/rs6000/constraints.md (define_register_constraint "wl"):
11731 Delete.
11732 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11733 RS6000_CONSTRAINT_wl.
11734 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11735 (rs6000_init_hard_regno_mode_ok): Adjust.
11736 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11737 * doc/md.texi (Machine Constraints): Adjust.
11738
11739 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11740
11741 * config/rs6000/constraints.md (define_register_constraint "wm"):
11742 Delete.
11743 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11744 RS6000_CONSTRAINT_wm.
11745 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11746 (rs6000_init_hard_regno_mode_ok): Adjust.
11747 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11748 * doc/md.texi (Machine Constraints): Adjust.
11749
11750 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11751
11752 * config/rs6000/constraints.md (define_register_constraint "wk"):
11753 Delete.
11754 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11755 RS6000_CONSTRAINT_wk.
11756 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11757 (rs6000_init_hard_regno_mode_ok): Adjust.
11758 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11759 * doc/md.texi (Machine Constraints): Adjust.
11760
11761 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11762
11763 * config/rs6000/constraints.md (define_register_constraint "wj"):
11764 Delete.
11765 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11766 RS6000_CONSTRAINT_wj.
11767 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11768 (rs6000_init_hard_regno_mode_ok): Adjust.
11769 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11770 (VS_64dm): Delete.
11771 * config/rs6000/vsx.md: Ditto.
11772 * doc/md.texi (Machine Constraints): Adjust.
11773
11774 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11775
11776 * config/rs6000/constraints.md (define_register_constraint "wh"):
11777 Delete.
11778 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11779 RS6000_CONSTRAINT_wh.
11780 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11781 (rs6000_init_hard_regno_mode_ok): Adjust.
11782 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11783 * doc/md.texi (Machine Constraints): Adjust.
11784
11785 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11786
11787 PR target/90547
11788 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11789 Avoid calling gen_lowpart with CONST operand.
11790
11791 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11792
11793 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11794 field template_last_to_copy.
11795 (ssa_create_duplicates): Set it, and use it. Attempt to
11796 preserve more debug stmts.
11797
11798 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11799
11800 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11801 (signbit<mode>2): New expander
11802
11803 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11804
11805 PR bootstrap/87338
11806 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11807 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11808
11809 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11810
11811 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11812 %ebx and %ecx bafore calling cpuid with leaf 1 or
11813 non-constant leaf argument.
11814
11815 2019-05-21 Alan Modra <amodra@gmail.com>
11816
11817 PR target/90545
11818 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11819 power9 direct move cost.
11820
11821 2019-05-21 Richard Biener <rguenther@suse.de>
11822
11823 PR middle-end/90510
11824 * fold-const.c (fold_read_from_vector): New function.
11825 * fold-const.h (fold_read_from_vector): Declare.
11826 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11827 single-element insert permutations. Canonicalize selector
11828 further and fix issue with last commit.
11829
11830 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11831
11832 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11833 parameter with default value false to declaration.
11834 (split_edges_for_insertion): New inline function. Wrapper for
11835 split_critical_edges with for_edge_insertion_p = true.
11836 * tree-cfg.c (split_critical_edges): Don't split non-critical
11837 edges if for_edge_insertion_p is false. Fix whitespace.
11838 * tree-ssa-pre.c (pass_pre::execute): Call
11839 split_edges_for_insertion instead of split_critical_edges.
11840 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11841 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11842 (pass_data_sink_code): Update function name in the comment.
11843
11844 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11845
11846 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11847 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11848 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11849 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11850 positives.
11851
11852 2019-05-21 Martin Liska <mliska@suse.cz>
11853
11854 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11855 an extra newline.
11856 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11857 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11858 vec_lvsr.
11859 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11860 Quote a C type.
11861 (rs6000_function_arg): Likewise.
11862 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11863 (rs6000_expand_ternop_builtin): Use interval syntax.
11864 (get_element_number): Likewise.
11865 (altivec_expand_builtin): Likewise.
11866 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11867
11868 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11869
11870 PR c++/59813
11871 PR target/90418
11872 * function.h (struct function): Add calls_eh_return member.
11873 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11874 gimplifying __builtin_eh_return call.
11875 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11876 to cfun.
11877 (expand_call_inline): Or in src_cfun->calls_eh_return into
11878 dst_cfun->calls_eh_return.
11879 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
11880 cfun->calls_eh_return.
11881 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
11882 * lto-streamer-out.c (output_struct_function_base): Write
11883 calls_eh_return.
11884
11885 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
11886
11887 PR rtl-optimization/43147
11888 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
11889 IX86_BUILTIN_SHUFPD.
11890
11891 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11892
11893 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
11894 (refs_may_alias_p_1): ... here; update stats.
11895 (refs_may_alias_p): Do not update stats here.
11896
11897 2019-05-20 Richard Biener <rguenther@suse.de>
11898
11899 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
11900 doesn't produce pointers.
11901 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
11902 the first operand points to.
11903
11904 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11905
11906 * tree-ssa-alias.c (compare_sizes): New function.
11907 (sompare_type_sizes): New function
11908 (aliasing_component_refs_p): Use it.
11909 (indirect_ref_may_alias_decl_p): Likewise.
11910
11911 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11912
11913 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
11914
11915 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11916
11917 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
11918 (LIBLSAN_EARLY_SPEC): Likewise.
11919 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
11920
11921 2019-05-20 Martin Liska <mliska@suse.cz>
11922
11923 * config/i386/i386.c (ix86_libc_has_fast_function):
11924 Add ATTRIBUTE_UNUSED for the argument.
11925
11926 2019-05-20 Richard Biener <rguenther@suse.de>
11927
11928 * gimple-match-head.c: Include vec-perm-indices.h.
11929 * generic-match-head.c: Likewise.
11930 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
11931 is included.
11932 * fold-const.c (fold_vec_perm): Export.
11933 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
11934 (match.pd): ...here.
11935
11936 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11937
11938 * cfgloop.h (struct loop): Add simdlen member.
11939 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
11940 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
11941 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
11942 as new argument to autovectorize_vector_sizes target hook. If
11943 loop->simdlen, pick up vector size where the vectorization factor
11944 is equal to loop->simd, and if there is none, fall back to the first
11945 successful one.
11946 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
11947 caller.
11948 * omp-low.c (omp_clause_aligned_alignment): Likewise.
11949 * omp-general.c (omp_max_vf): Likewise.
11950 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
11951 * tree-vect-slp.c (vect_slp_bb): Likewise.
11952 * target.def (autovectorize_vector_sizes): Add ALL argument and
11953 document it.
11954 * doc/tm.texi: Adjust documentation.
11955 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
11956 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
11957 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
11958 bool argument.
11959 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
11960 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
11961 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
11962 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
11963 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
11964 preferred vector size is not 512-bit or 256-bit, just put those
11965 unpreferred ones last.
11966
11967 2019-05-20 Martin Liska <mliska@suse.cz>
11968
11969 * targhooks.c (default_libc_has_fast_function): New function.
11970 * targhooks.h (default_libc_has_fast_function): Likewise.
11971
11972 2019-05-20 Martin Liska <mliska@suse.cz>
11973
11974 PR middle-end/90263
11975 * builtins.c (expand_builtin_memory_copy_args): When having a
11976 target with fast mempcpy implementation do now use memcpy.
11977 * config/i386/i386.c (ix86_libc_has_fast_function): New.
11978 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
11979 * doc/tm.texi: Likewise.
11980 * doc/tm.texi.in: Likewise.
11981 * target.def:
11982 * expr.c (emit_block_move_hints): Add 2 new arguments.
11983 * expr.h (emit_block_move_hints): Bail out when libcall
11984 to memcpy would be used.
11985
11986 2019-05-20 Martin Liska <mliska@suse.cz>
11987
11988 * profile-count.c: Add vertical spacing in order
11989 to separate functions.
11990 * profile-count.h: Likewise.
11991
11992 2019-05-20 Martin Liska <mliska@suse.cz>
11993
11994 * profile-count.h: Do not use full qualified
11995 names if possible.
11996 * profile-count.c (profile_count::to_frequency): Likewise.
11997
11998 2019-05-20 Martin Liska <mliska@suse.cz>
11999
12000 * profile-count.h (enum profile_quality): Use capital letters
12001 for enum value names. Use the adjusted names.
12002 * profile-count.c: Use the adjusted names.
12003
12004 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12005
12006 * config/rs6000/constraints.md (define_register_constraint "wH"):
12007 Delete.
12008 (define_register_constraint "wI"): Delete.
12009 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12010 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
12011 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12012 (rs6000_init_hard_regno_mode_ok): Adjust.
12013 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
12014 resp. "d", or with "wa" as appropriate, all with "p8v".
12015 * config/rs6000/vsx.md: Ditto.
12016 * doc/md.texi (Machine Constraints): Adjust.
12017
12018 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12019
12020 * config/rs6000/constraints.md (define_register_constraint "wy"):
12021 Delete.
12022 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12023 RS6000_CONSTRAINT_wy.
12024 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12025 (rs6000_init_hard_regno_mode_ok): Adjust.
12026 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
12027 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
12028 (define_mode_attr Fisa): New.
12029 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
12030 * doc/md.texi (Machine Constraints): Adjust.
12031
12032 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12033
12034 * config/rs6000/constraints.md (define_register_constraint "wu"):
12035 Delete.
12036 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12037 RS6000_CONSTRAINT_wu.
12038 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12039 (rs6000_init_hard_regno_mode_ok): Adjust.
12040 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
12041 both with "p8v".
12042 (define_mode_attr Fa): Delete.
12043 * config/rs6000/vsx.md: Ditto.
12044 * doc/md.texi (Machine Constraints): Adjust.
12045
12046 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12047
12048 * config/rs6000/constraints.md (define_register_constraint "wJ"):
12049 Delete.
12050 (define_register_constraint "wK"): Delete.
12051 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12052 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
12053 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12054 (rs6000_init_hard_regno_mode_ok): Adjust.
12055 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
12056 Replace "wK" constraint by "wH" with "p9v".
12057 * config/rs6000/vsx.md: Ditto.
12058 * doc/md.texi (Machine Constraints): Adjust.
12059
12060 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12061
12062 * config/rs6000/constraints.md (define_register_constraint "wb"):
12063 Delete.
12064 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12065 RS6000_CONSTRAINT_wb.
12066 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12067 (rs6000_init_hard_regno_mode_ok): Adjust.
12068 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
12069 * config/rs6000/vsx.md: Ditto.
12070 * doc/md.texi (Machine Constraints): Adjust.
12071
12072 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12073
12074 * config/rs6000/constraints.md (define_register_constraint "wo"):
12075 Delete.
12076 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12077 RS6000_CONSTRAINT_wo.
12078 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12079 (rs6000_init_hard_regno_mode_ok): Adjust.
12080 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
12081 * config/rs6000/altivec.md: Ditto.
12082 * doc/md.texi (Machine Constraints): Adjust.
12083
12084 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12085
12086 * config/darwin-c.c (darwin_register_objc_includes): Do not
12087 prepend the sysroot when building gnu-runtime header search
12088 paths.
12089
12090 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12091
12092 * config/darwin.c (darwin_file_end): Use switch_to_section ()
12093 instead of direct output of the asm.
12094
12095 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12096
12097 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
12098 argument to be type bool (was int before).
12099 (rs6000_emit_epilogue): Simplify some code. Declare some variables
12100 at first use. Use type bool for some variables. Fix a theoretical
12101 eh_return bug for svr4.
12102
12103 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12104
12105 * config/rs6000/rs6000.md (isa): New attribute.
12106 (enabled): New attribute.
12107
12108 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
12109
12110 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
12111 assemble_start_function and assemble_end_function.
12112
12113 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
12114
12115 PR middle-end/89433
12116 * omp-general.c (oacc_verify_routine_clauses): Change formal
12117 parameters. Add checking if already marked with an OpenACC
12118 'routine' directive. Adjust all users.
12119
12120 PR middle-end/89433
12121 * omp-general.c (oacc_build_routine_dims): Move some of its
12122 processing into...
12123 (oacc_verify_routine_clauses): ... this new function.
12124 * omp-general.h (oacc_verify_routine_clauses): New prototype.
12125
12126 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12127
12128 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
12129 formating of picbase labels to match other ports.
12130
12131 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12132
12133 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
12134 in the generated code.
12135
12136 2019-05-16 Martin Sebor <msebor@redhat.com>
12137
12138 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
12139 identifiers, keywords, operators, and types in diagnostics. Correct
12140 quoting, spelling, and sentence capitalization issues.
12141 (expand_builtin_atomic_is_lock_free): Same.
12142 (fold_builtin_next_arg): Same.
12143 * cfgexpand.c (expand_one_var): Same.
12144 (tree_conflicts_with_clobbers_p): Same.
12145 (expand_asm_stmt): Same.
12146 (verify_loop_structure): Same.
12147 * cgraphunit.c (process_function_and_variable_attributes): Same.
12148 * collect-utils.c (collect_execute): Same.
12149 * collect2.c (maybe_run_lto_and_relink): Same.
12150 (is_lto_object_file): Same.
12151 (scan_prog_file): Same.
12152 * convert.c (convert_to_real_1): Same.
12153 * dwarf2out.c (dwarf2out_begin_prologue): Same.
12154 * except.c (verify_eh_tree): Same.
12155 * gcc.c (execute): Same.
12156 (eval_spec_function): Same.
12157 (run_attempt): Same.
12158 (driver::set_up_specs): Same.
12159 (compare_debug_auxbase_opt_spec_function): Same.
12160 * gcov-tool.c (unlink_gcda_file): Same.
12161 (do_merge): Same.
12162 (do_rewrite): Same.
12163 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
12164 * gimplify.c (gimplify_asm_expr): Same.
12165 (gimplify_adjust_omp_clauses): Same.
12166 * hsa-gen.c (gen_hsa_addr_insns): Same.
12167 (gen_hsa_insns_for_load): Same.
12168 (gen_hsa_cmp_insn_from_gimple): Same.
12169 (gen_hsa_insns_for_operation_assignment): Same.
12170 (gen_get_level): Same.
12171 (gen_hsa_alloca): Same.
12172 (omp_simple_builtin::generate): Same.
12173 (gen_hsa_atomic_for_builtin): Same.
12174 (gen_hsa_insns_for_call): Same.
12175 * input.c (dump_location_info): Same.
12176 * ipa-devirt.c (compare_virtual_tables): Same.
12177 * ira.c (ira_setup_eliminable_regset): Same.
12178 * lra-assigns.c (lra_assign): Same.
12179 * lra-constraints.c (lra_constraints): Same.
12180 * lto-streamer-in.c (lto_input_mode_table): Same.
12181 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
12182 (merge_and_complain): Same.
12183 (compile_offload_image): Same.
12184 (compile_images_for_offload_targets): Same.
12185 (debug_objcopy): Same.
12186 (run_gcc): Same.
12187 (main): Same.
12188 * opts.c (print_specific_help): Same.
12189 (parse_no_sanitize_attribute): Same.
12190 (print_help): Same.
12191 (handle_param): Same.
12192 * plugin.c (add_new_plugin): Same.
12193 (parse_plugin_arg_opt): Same.
12194 (try_init_one_plugin): Same.
12195 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
12196 operators, and types in diagnostics. Correct quoting and spelling
12197 issues.
12198 * read-rtl-function.c (parse_edge_flag_token): Same.
12199 (function_reader::parse_enum_value): Same.
12200 * reg-stack.c (check_asm_stack_operands): Same.
12201 * regcprop.c (validate_value_data): Same.
12202 * sched-rgn.c (make_pass_sched_fusion): Same.
12203 * stmt.c (check_unique_operand_names): Same.
12204 * targhooks.c (default_target_option_pragma_parse): Same.
12205 * tlink.c (recompile_files): Same.
12206 * toplev.c (process_options): Same.
12207 (do_compile): Same.
12208 * trans-mem.c (diagnose_tm_1): Same.
12209 (ipa_tm_scan_irr_block): Same.
12210 (ipa_tm_diagnose_transaction): Same.
12211 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
12212 format a tree code name in a diagnostic.
12213 (verify_types_in_gimple_min_lval): Same.
12214 (verify_types_in_gimple_reference): Same.
12215 (verify_gimple_call): Same.
12216 (verify_gimple_assign_unary): Same.
12217 (verify_gimple_assign_binary): Same.
12218 (verify_gimple_assign_ternary): Same.
12219 (verify_gimple_assign_single): Same.
12220 (verify_gimple_switch): Same.
12221 (verify_gimple_label): Same.
12222 (verify_gimple_phi): Same.
12223 (verify_gimple_in_seq): Same.
12224 (verify_eh_throw_stmt_node): Same.
12225 (collect_subblocks): Same.
12226 (gimple_verify_flow_info): Same.
12227 (do_warn_unused_result): Same.
12228 * tree-inline.c (expand_call_inline): Same.
12229 * tree-into-ssa.c (update_ssa): Same.
12230 * tree.c (tree_int_cst_elt_check_failed): Same.
12231 (tree_vec_elt_check_failed): Same.
12232 (omp_clause_operand_check_failed): Same.
12233 (verify_type_variant): Same.
12234 (verify_type): Same.
12235 * value-prof.c (verify_histograms): Same.
12236 * varasm.c (assemble_start_function): Same.
12237
12238 2019-05-16 Martin Sebor <msebor@redhat.com>
12239
12240 * config/i386/i386-expand.c (get_element_number): Quote keywords
12241 and other internal names in diagnostics. Adjust other diagnostic
12242 formatting issues noted by -Wformat-diag.
12243 * config/i386/i386-features.c
12244 (ix86_mangle_function_version_assembler_name): Same.
12245 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
12246 * config/i386/i386.c (ix86_function_type_abi): Same.
12247 (ix86_function_ms_hook_prologue): Same.
12248 (classify_argument): Same.
12249 (ix86_expand_prologue): Same.
12250 (ix86_md_asm_adjust): Same.
12251 (ix86_memmodel_check): Same.
12252
12253 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
12254
12255 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
12256 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
12257 and fpxx modes.
12258
12259 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
12260
12261 PR target/90497
12262 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
12263 intrinsics without SSE/SSE2/SSSE3.
12264 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
12265 check.
12266 (*mmx_uavgv8qi3): Likewise.
12267
12268 2019-05-17 Richard Biener <rguenther@suse.de>
12269
12270 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
12271 VEC_PERM_EXPR as __VEC_PERM with -gimple.
12272
12273 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
12274
12275 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
12276 vec_sldw insn pattern.
12277
12278 2019-05-17 Richard Biener <rguenther@suse.de>
12279
12280 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
12281
12282 2019-05-17 Martin Liska <mliska@suse.cz>
12283
12284 PR driver/90496
12285 * toplev.c (output_stack_usage): With LTO and sanitizer it
12286 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
12287 has no file location.
12288
12289 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12290
12291 PR c++/90484
12292 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
12293 sz0 is equal to sz1, instead return false in that case.
12294
12295 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
12296 has non-constant expression, force sctx.lane and use two
12297 argument IFN_GOMP_SIMD_LANE instead of single argument.
12298 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
12299 two argument IFN_GOMP_SIMD_LANE without lhs.
12300 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
12301 member.
12302 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
12303 Define.
12304 (LOOP_REQUIRES_VERSIONING): Or in
12305 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
12306 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12307 simd_if_cond.
12308 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
12309 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
12310 from simd if clause if needed.
12311
12312 2019-05-16 Richard Biener <rguenther@suse.de>
12313
12314 * tree-affine.c (expr_to_aff_combination): New function split
12315 out from...
12316 (tree_to_aff_combination): ... here.
12317 (aff_combination_expand): Avoid building a GENERIC tree.
12318
12319 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
12320
12321 * cgraphunit.c (cgraph_node::expand_thunk): Remove
12322 assemble_start_function and assemble_end_function calls.
12323 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
12324 assemble_start_function and assemble_end_function.
12325 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
12326 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
12327 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
12328 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
12329 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
12330 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
12331 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
12332 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
12333 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12334 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12335 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12336 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
12337 Likewise.
12338 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12339 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
12340 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
12341 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
12342 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12343 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12344 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
12345 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
12346 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12347 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12348 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12349 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12350 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
12351 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
12352 Likewise.
12353 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12354 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12355 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
12356
12357 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
12358
12359 * tree-ssa-alias.c (alias_stats): Add
12360 aliasing_component_refs_p_may_alias and
12361 aliasing_component_refs_p_no_alias.
12362 (dump_alias_stats): Print aliasing_component_refs_p stats.
12363 (aliasing_component_refs_p): Update stats.
12364
12365 2019-05-16 Martin Liska <mliska@suse.cz>
12366
12367 PR lto/90500
12368 * multiple_target.c (expand_target_clones): Do not allow
12369 target_clones being used with a symbol that is an alias.
12370
12371 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
12372
12373 PR tree-optimization/90394
12374 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
12375 positives rather than ICE for cases where (code2 == NE_EXPR
12376 && code1 == BIT_AND_EXPR).
12377
12378 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12379
12380 PR fortran/90329
12381 * tree-core.h (struct tree_decl_common): Document
12382 decl_nonshareable_flag for PARM_DECLs.
12383 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
12384 * calls.c (expand_call): Don't try tail call if caller
12385 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
12386 passed on the stack and callee needs to pass any arguments on the
12387 stack.
12388 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12389 else if instead of series of mutually exclusive ifs. Handle
12390 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
12391 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12392
12393 * lto-streamer.h (LTO_major_version): Bump to 9.
12394
12395 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
12396
12397 PR tree-optimization/90106
12398 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
12399 new parameter as new internal function call, also move it to new
12400 basic block.
12401 (use_internal_fn): Pass internal function call to
12402 shrink_wrap_one_built_in_call_with_conds.
12403
12404 2019-05-15 Jakub Jelinek <jakub@redhat.com>
12405
12406 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
12407 max_vf to 1.
12408 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
12409 safelen_int and set loop->dont_vectorize.
12410
12411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12412
12413 PR target/89021
12414 * config/i386/i386-builtin.def: Enable MMX intrinsics with
12415 SSE/SSE2/SSSE3.
12416 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12417 Likewise.
12418 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
12419 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
12420 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
12421 is defined.
12422
12423 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12424
12425 PR target/89021
12426 * config/i386/mmx.md (*vec_dupv2sf): Changed to
12427 define_insn_and_split to support SSE emulation.
12428 (*vec_extractv2sf_0): Likewise.
12429 (*vec_extractv2sf_1): Likewise.
12430 (*vec_extractv2si_0): Likewise.
12431 (*vec_extractv2si_1): Likewise.
12432 (*vec_extractv2si_zext_mem): Likewise.
12433 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
12434 (vec_extractv2sf_1 splitter): Likewise.
12435 (vec_extractv2sfsf): Likewise.
12436 (vec_setv2si): Likewise.
12437 (vec_extractv2si_1 splitter): Likewise.
12438 (vec_extractv2sisi): Likewise.
12439 (vec_setv4hi): Likewise.
12440 (vec_extractv4hihi): Likewise.
12441 (vec_setv8qi): Likewise.
12442 (vec_extractv8qiqi): Likewise.
12443 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12444 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
12445 (vec_extractv2sisi): Likewise.
12446 (vec_extractv4hihi): Likewise.
12447 (vec_extractv8qiqi): Likewise.
12448 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12449 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
12450 (vec_initv2sisi): Likewise.
12451 (vec_initv4hihi): Likewise.
12452 (vec_initv8qiqi): Likewise.
12453 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
12454 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
12455 (vec_setv4hi): Likewise.
12456 (vec_setv8qi): Likewise.
12457
12458 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12459
12460 PR target/89021
12461 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
12462 TARGET_MMX_WITH_SSE.
12463 (MMXMODE:*mov<mode>_internal): Likewise.
12464 (MMXMODE:movmisalign<mode>): Likewise.
12465
12466 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
12467
12468 PR target/89021
12469 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
12470 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
12471 (sse2_cvtpd2pi): Ditto.
12472 (sse2_cvttpd2pi): Ditto.
12473 (*vec_concatv2sf_sse4_1): Ditto.
12474 (*vec_concatv2sf_sse): Ditto.
12475 (*vec_concatv2si_sse4_1): Ditto.
12476 (*vec_concatv2si): Ditto.
12477 (*vec_concatv4si_0): Ditto.
12478 (*vec_concatv2di_0): Ditto.
12479
12480 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12481
12482 PR target/89021
12483 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
12484
12485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12486
12487 PR target/89021
12488 * config/i386/sse.md (ssse3_palignrdi): Changed to
12489 define_insn_and_split to support SSE emulation.
12490
12491 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12492
12493 PR target/89021
12494 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
12495
12496 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12497
12498 PR target/89021
12499 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
12500 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12501 SSE emulation.
12502
12503 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12504
12505 PR target/89021
12506 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
12507 or TARGET_MMX_WITH_SSE.
12508 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
12509
12510 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12511
12512 PR target/89021
12513 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
12514
12515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12516
12517 PR target/89021
12518 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
12519 Changed to define_insn_and_split to support SSE emulation.
12520
12521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12522
12523 PR target/89021
12524 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
12525 Changed to define_insn_and_split to support SSE emulation.
12526
12527 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12528
12529 PR target/89021
12530 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
12531 (*mmx_<emms>): This.
12532 (mmx_<emms>): New expander.
12533
12534 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12535
12536 PR target/89021
12537 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
12538 support.
12539 (*sse2_umulv1siv1di3): Add SSE2 emulation.
12540
12541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12542
12543 PR target/89021
12544 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
12545
12546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12547
12548 PR target/89021
12549 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
12550
12551 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12552
12553 PR target/89021
12554 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12555 TARGET_MMX_WITH_SSE.
12556 (*mmx_uavgv4hi3): Add SSE emulation.
12557
12558 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12559
12560 PR target/89021
12561 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12562 and TARGET_MMX_WITH_SSE.
12563 (*mmx_uavgv8qi3): Add SSE emulation.
12564
12565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12566
12567 PR target/89021
12568 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12569 maskmovdqu for __MMX_WITH_SSE__.
12570
12571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12572
12573 PR target/89021
12574 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12575 TARGET_MMX and TARGET_MMX_WITH_SSE.
12576 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12577
12578 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12579
12580 PR target/89021
12581 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12582 define_insn_and_split to support SSE emulation.
12583
12584 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12585
12586 PR target/89021
12587 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12588 and TARGET_MMX_WITH_SSE.
12589 (mmx_<code>v8qi3): Likewise.
12590 (smaxmin:<code>v4hi3): New.
12591 (umaxmin:<code>v8qi3): Likewise.
12592 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12593 (umaxmin:*mmx_<code>v8qi3): Likewise.
12594
12595 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12596
12597 PR target/89021
12598 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12599 TARGET_MMX_WITH_SSE.
12600 (*mmx_pinsrw): Add SSE emulation.
12601
12602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12603
12604 PR target/89021
12605 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12606
12607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12608
12609 PR target/89021
12610 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12611 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12612 SSE emulation.
12613
12614 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12615
12616 PR target/89021
12617 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12618 (sse_cvttps2pi): Likewise.
12619
12620 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12621
12622 PR target/89021
12623 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12624 TARGET_MMX_WITH_SSE.
12625 (mmx_pshufw_1): Add SSE emulation.
12626 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12627 TARGET_MMX_WITH_SSE to support SSE emulation.
12628
12629 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12630
12631 PR target/89021
12632 * config/i386/constraints.md (Yw): New constraint.
12633 * config/i386/mmx.md (*vec_dupv2si): Changed to
12634 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12635 support SSE emulation.
12636
12637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12638
12639 PR target/89021
12640 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12641 TARGET_MMX_WITH_SSE.
12642 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12643 support.
12644 (mmx_gt<mode>3): Likewise.
12645
12646 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12647
12648 PR target/89021
12649 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12650 TARGET_MMX_WITH_SSE. Add SSE support.
12651
12652 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12653
12654 PR target/89021
12655 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12656 TARGET_MMX_WITH_SSE.
12657 (any_logic:<code><mode>3): New.
12658 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12659 Add SSE support.
12660
12661 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12662
12663 PR target/89021
12664 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12665 TARGET_MMX_WITH_SSE. Add SSE emulation.
12666 (mmx_<shift_insn><mode>3): Likewise.
12667 (ashr<mode>3): New.
12668 (<shift_insn><mode>3): Likewise.
12669
12670 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12671
12672 PR target/89021
12673 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12674 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12675
12676 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12677
12678 PR target/89021
12679 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12680 TARGET_MMX_WITH_SSE.
12681 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12682 SSE support.
12683
12684 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12685
12686 PR target/89021
12687 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12688 TARGET_MMX_WITH_SSE.
12689 (mulv4hi3): New.
12690 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12691 support.
12692
12693 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12694
12695 PR target/89021
12696 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12697 (plusminus:mmx_<plusminus_insn><mode>3): Check
12698 TARGET_MMX_WITH_SSE.
12699 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12700 (<plusminus_insn><mode>3): New.
12701 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12702 (*mmx_<plusminus_insn><mode>3): Likewise.
12703
12704 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12705
12706 PR target/89021
12707 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12708 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12709 prototype.
12710 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12711 define_insn_and_split to support SSE emulation.
12712 (mmx_punpcklbw): Likewise.
12713 (mmx_punpckhwd): Likewise.
12714 (mmx_punpcklwd): Likewise.
12715 (mmx_punpckhdq): Likewise.
12716 (mmx_punpckldq): Likewise.
12717
12718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12719 Uros Bizjak <ubizjak@gmail.com>
12720
12721 PR target/89021
12722 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12723 New function.
12724 (ix86_split_mmx_pack): Likewise.
12725 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12726 New prototype.
12727 (ix86_split_mmx_pack): Likewise.
12728 * config/i386/i386.md (mmx_isa): New.
12729 (enabled): Also check mmx_isa.
12730 * config/i386/mmx.md (any_s_truncate): New code iterator.
12731 (s_trunsuffix): New code attr.
12732 (mmx_packsswb): Removed.
12733 (mmx_packssdw): Likewise.
12734 (mmx_packuswb): Likewise.
12735 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12736 MMX packsswb/packuswb with SSE2.
12737 (mmx_packssdw): Likewise.
12738 * config/i386/predicates.md (register_mmxmem_operand): New.
12739
12740 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12741
12742 PR target/89021
12743 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12744 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12745 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12746 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12747 (ix86_vector_mode_supported_p): Likewise.
12748 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12749
12750 2019-05-15 Martin Liska <mliska@suse.cz>
12751
12752 PR middle-end/90478
12753 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12754 Check for overflow.
12755
12756 2019-05-15 Richard Biener <rguenther@suse.de>
12757
12758 * tree-into-ssa.c (pass_build_ssa::execute): Run
12759 update_address_taken before going into SSA.
12760
12761 2019-05-15 Richard Biener <rguenther@suse.de>
12762
12763 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12764 as __BIT_FIELD_REF with type with -gimple.
12765
12766 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12767
12768 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12769 semantically equivalent branches (left over after prior refactorings).
12770
12771 2019-05-15 Richard Biener <rguenther@suse.de>
12772
12773 PR tree-optimization/88828
12774 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12775 bogus check.
12776
12777 2019-05-14 Richard Biener <rguenther@suse.de>
12778
12779 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12780 as __VIEW_CONVERT with -gimple.
12781
12782 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12783
12784 PR target/82920
12785 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12786 Darwin.
12787
12788 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12789
12790 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12791 define_split to become a define_insn_and_split.
12792
12793 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12794
12795 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12796 arguments.
12797 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12798 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12799 (sibcall_epilogue): Adjust.
12800 (epilogue): Adjust.
12801
12802 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12803
12804 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12805 to unsupported ones.
12806 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12807 * config.host: Likewise.
12808 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12809 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12810 __svr4__]: Remove "brand" fallback.
12811 [!KSTAT_DATA_STRING]: Remove.
12812 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12813 to *-*-solaris2*.
12814 (comdat_group): Likewise.
12815 (set_have_as_tls): Likewise.
12816 (gcc_cv_target_dl_iterate_phdr): Likewise.
12817 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12818 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12819 * configure: Regenerate.
12820 * doc/install.texi: Simplify Solaris target triplets.
12821 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12822 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12823 Remove Solaris 10 references.
12824 Remove obsolete Solaris bug reference.
12825 (Specific, sparc-sun-solaris2.10): Remove.
12826
12827 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12828
12829 * config/i386/i386.md (any_div): New code iterator.
12830 (paired_mod): New code attribute.
12831 (sgnprefix): Handle DIV and UDIV RTXes.
12832 (u): Ditto.
12833 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12834 and udivmod<mode>4 patterns using any_div code iterator.
12835 (divmod splitters): Macroize splitters using any_div code iterator.
12836 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12837 (*udivmodsi4_pow2_zext_2): Ditto.
12838 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12839 and *udivmod<mode>4_noext patterns using any_div code iterator.
12840 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12841 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12842 patterns using any_div code iterator.
12843 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12844 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12845 patterns using any_div code iterator.
12846 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12847 udivmodhiqi3 patterns using any_extend code iterator.
12848
12849 2019-05-14 Richard Biener <rguenther@suse.de>
12850 H.J. Lu <hongjiu.lu@intel.com>
12851
12852 PR tree-optimization/88828
12853 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12854 permuting in a single non-constant element not extracted
12855 from a vector.
12856
12857 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12858
12859 * internal-fn.def (SIGNBIT): New.
12860 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12861 defined.
12862 (signbitv4sf2): Likewise.
12863
12864 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12865
12866 PR target/90357
12867 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12868 next insn when the SRC reg is dead.
12869
12870 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12871
12872 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12873 (alloc_cand_and_find_basis): Ditto.
12874 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12875 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12876 (create_add_imm_cand, slsr_process_cast): Ditto.
12877 (slsr_process_copy, replace_mult_candidate): Ditto.
12878 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
12879 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
12880 (pass_strength_reduction::execute): Init the first NULL element.
12881
12882 2019-05-13 Nathan Sidwell <nathan@acm.org>
12883
12884 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
12885 (run_attempt): Reformat line break.
12886
12887 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
12888
12889 PR target/90418
12890 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
12891 data registers in sibcall epilogues.
12892 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12893
12894 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
12895
12896 PR target/89221
12897 * configure.ac (--enable-frame-pointer):
12898 Disable by default for cygwin and mingw.
12899 * configure: Regenerate.
12900
12901 2019-05-13 Nathan Sidwell <nathan@acm.org>
12902
12903 * dwarf2out.c (breakout_comdat_types): Move comment to correct
12904 piece of code.
12905 (const_ok_for_output_1): Balance parens around #if/#else/#endif
12906 (gen_member_die): Move abstract origin check earlier. Only VARs
12907 can be static_inline_p. Simplify splicing control flow.
12908
12909 2019-05-13 Richard Biener <rguenther@suse.de>
12910
12911 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
12912 VIEW_CONVERT_EXPR.
12913 (vect_build_slp_tree_1): Likewise.
12914
12915 2019-05-13 Richard Biener <rguenther@suse.de>
12916
12917 PR tree-optimization/90402
12918 * tree-if-conv.c (tree_if_conversion): Value number only
12919 the loop body by making the latch an exit of the region
12920 as well.
12921 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
12922 processing PHIs.
12923 (do_rpo_vn): Deal with multiple edges into the entry block
12924 that are not backedges inside the region by skipping PHIs
12925 of the entry block.
12926
12927 2019-05-13 Richard Biener <rguenther@suse.de>
12928
12929 PR tree-optimization/90316
12930 * tree-ssa-pre.c (insert_aux): Fold into ...
12931 (insert): ... this function. Use a RPO walk to reduce the
12932 number of required iterations.
12933
12934 2019-05-13 Martin Liska <mliska@suse.cz>
12935
12936 PR tree-optimization/90416
12937 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
12938 string instead of passing the second part as va_arg argument.
12939
12940 2019-05-13 Martin Liska <mliska@suse.cz>
12941
12942 PR gcov-profile/90380
12943 * gcov.c (handle_cycle): Do not support zero cycle count,
12944 it should not be possible.
12945 (path_contains_zero_cycle_arc): New function.
12946 (circuit): Ignore zero cycle arc counts.
12947
12948 2019-05-13 Martin Liska <mliska@suse.cz>
12949
12950 PR gcov-profile/90380
12951 * gcov.c (enum loop_type): Remove the enum and
12952 the operator.
12953 (handle_cycle): Assert that we should not reach
12954 a negative count.
12955 (circuit): Use loop_found instead of a tri-state loop_type.
12956 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
12957 happen.
12958
12959 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12960
12961 PR target/82920
12962 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
12963 (ix86_output_indirect_branch_via_reg): Use output mechanism
12964 accounting for __USER_LABEL_PREFIX__.
12965 (ix86_output_indirect_branch_via_push): Likewise.
12966 (ix86_output_function_return): Likewise.
12967 (ix86_output_indirect_function_return): Likewise.
12968
12969 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
12970
12971 * doc/md.texi: Document use of code attributes in rtx patterns.
12972 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
12973 * read-rtl.c (find_code): Split out search loops into...
12974 (maybe_find_code): ...this new function.
12975 (check_code_iterator): Make the error message more informative.
12976 (check_code_attribute): New function.
12977 (rtx_reader::rtx_alloc_for_name): Likewise.
12978 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
12979 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
12980 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
12981 <max_opp> directly as an rtx code instead of via a match_operator.
12982 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
12983 (<su>abd<mode>_3): Update accordingly.
12984
12985 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12986
12987 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
12988 is given, print the state of the EH "save world" computation for
12989 Darwin.
12990
12991 2019-05-11 Jakub Jelinek <jakub@redhat.com>
12992
12993 PR c++/59813
12994 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
12995 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12996
12997 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
12998
12999 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
13000 Use pinsrd for TARGET_SSE4_1.
13001 * config/i386/sse.md (movdi_to_sse): Ditto.
13002
13003 2019-05-10 Richard Biener <rguenther@suse.de>
13004
13005 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
13006 (do_rpo_vn): Initialize next_value_id.
13007
13008 2019-05-10 Martin Liska <mliska@suse.cz>
13009
13010 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13011 Fix plural form.
13012
13013 2019-05-10 Jakub Jelinek <jakub@redhat.com>
13014
13015 PR tree-optimization/90385
13016 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
13017 arguments of the exit phis.
13018
13019 PR c++/90383
13020 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
13021 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
13022 id->do_not_fold.
13023 (copy_tree_body_r): Likewise.
13024 (copy_fn): Set id.do_not_fold to true.
13025
13026 2019-05-10 Martin Liska <mliska@suse.cz>
13027
13028 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
13029 Reapply changes from r269790.
13030
13031 2019-05-10 Martin Liska <mliska@suse.cz>
13032
13033 PR middle-end/90340
13034 * doc/invoke.texi: New params.
13035 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
13036 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
13037 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13038 Use it.
13039 * tree-switch-conversion.h (struct jump_table_cluster):
13040 Likewise.
13041
13042 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
13043
13044 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
13045
13046 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
13047
13048 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
13049
13050 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
13051
13052 PR rtl-optimization/88879
13053 * sel-sched.c (sel_target_adjust_priority): Remove assert.
13054
13055 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
13056
13057 PR target/90405
13058 * config/arm/arm.c (callee_saved_reg_p): Move before
13059 thumb_find_work_register.
13060 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
13061 thumb_find_work_register. Only call df_get_live_out once.
13062 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
13063 (thumb_find_work_register): Use
13064 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
13065 algorithms to locate a spare call clobbered reg.
13066
13067 2019-05-09 Martin Liska <mliska@suse.cz>
13068
13069 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
13070 and MAX_EXPR in GIMPLE FE format.
13071
13072 2019-05-09 Martin Liska <mliska@suse.cz>
13073
13074 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
13075 * gimple-pretty-print.c (dump_gimple_bb_header):
13076 Dump BB count.
13077 (pp_cfg_jump): Dump edge probability.
13078 * profile-count.c (profile_quality_as_string): Simplify
13079 with a static array.
13080 (parse_profile_quality): New function.
13081 (profile_count::dump): Simplify with a static array.
13082 (profile_count::from_gcov_type): Add new argument.
13083 * profile-count.h (parse_profile_quality): Likewise.
13084 * predict.h (set_hot_bb_threshold): New.
13085 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13086 New param.
13087 * predict.c (get_hot_bb_threshold): Set from the new param.
13088 (set_hot_bb_threshold): New.
13089
13090 2019-05-09 Richard Biener <rguenther@suse.de>
13091
13092 PR tree-optimization/90395
13093 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
13094 rewrite vector stores that throw internally.
13095
13096 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
13097
13098 * cif-code.def (CHKP): Remove.
13099
13100 PR target/89221
13101 * configure.ac (--enable-frame-pointer): Disable by default for
13102 GNU systems.
13103 * configure: Regenerate.
13104
13105 2019-05-09 Alan Modra <amodra@gmail.com>
13106
13107 PR target/89271
13108 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
13109 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
13110 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
13111 cost for general <-> vsx when direct moves are available.
13112 Cost union classes at minimal cost for any reg in the class.
13113 Correct calculation for moves between vsx, float, and altivec.
13114 Don't return a low cost for moves between special regs. Don't
13115 use hard coded register numbers.
13116 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
13117 (rs6000_ira_change_pseudo_allocno_class): New function.
13118 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
13119 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
13120 alternatives.
13121 (movsi_internal1): Don't disparage vector alternatives.
13122 (mov<mode>_internal): Likewise, excepting alternative that
13123 will be split.
13124 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
13125 we <- b alternative.
13126
13127 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13128
13129 PR c++/59813
13130 PR tree-optimization/89060
13131 * tree-ssa-live.h (live_vars_map): New typedef.
13132 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
13133 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
13134 (struct compute_live_vars_data): New type.
13135 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
13136 live_vars_at_stmt, destroy_live_vars): New functions.
13137 * tree-tailcall.c: Include tree-ssa-live.h.
13138 (live_vars, live_vars_vec): New global variables.
13139 (find_tail_calls): Perform variable life analysis before punting.
13140 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
13141 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
13142 member.
13143 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
13144 Perform variable life analysis to select variables that really need
13145 clobbers added.
13146 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
13147 instead set id->eh_landing_pad_dest and assert it is the same.
13148 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
13149
13150 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
13151 Richard Earnshaw <rearnsha@arm.com>
13152
13153 PR target/88167
13154 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
13155 function.
13156 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
13157 (thumb1_compute_save_core_reg_mask): Don't force a spare work
13158 register if both the epilogue and prologue can use call-clobbered
13159 regs.
13160 (thumb1_unexpanded_epilogue): Use
13161 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
13162 picking temporaries for restoring high regs to match that of the
13163 prologue where possible.
13164 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
13165 the list of work registers. Detect if the return address is still live
13166 at the end of the prologue and avoid using it for a work register if so.
13167 If the return address is not live, add LR to the list of pushable regs
13168 after the first pass.
13169
13170 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13171
13172 PR tree-optimization/90078
13173 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
13174 (INFTY): Increase the value for infinite cost.
13175 (struct comp_cost): Promote type of members to int64_t.
13176 (infinite_cost): Don't set complexity in initialization.
13177 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
13178 overflows to infinite_cost.
13179 (adjust_setup_cost): Promote type of parameter and cost computation
13180 to int64_t.
13181 (struct ainc_cost_data, struct iv_ca): Promote type of member to
13182 int64_t.
13183 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
13184 cost computation to int64_t.
13185 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
13186 int64_t's format specifier in dump.
13187
13188 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13189
13190 PR tree-optimization/90240
13191 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
13192 with respect to scaling factor pre-computed for each basic block.
13193 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
13194 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
13195 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
13196 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
13197 live range for array of loop's basic blocks. Cleanup aux field of
13198 loop's basic blocks.
13199
13200 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13201
13202 PR tree-optimization/90356
13203 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
13204
13205 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
13206
13207 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
13208 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
13209 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
13210 (ix86_handle_option): Handle -mavx512bf16.
13211 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
13212 to extra_headers.
13213 * config/i386/avx512bf16vlintrin.h: New.
13214 * config/i386/avx512bf16intrin.h: New.
13215 * config/i386/cpuid.h (bit_AVX512BF16): New.
13216 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
13217 * config/i386/i386-builtin-types.def: Add new types.
13218 * config/i386/i386-builtin.def: Add new builtins.
13219 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13220 __AVX512BF16__.
13221 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
13222 (ix86_option_override_internal): Handle BF16.
13223 (ix86_valid_target_attribute_inner_p): Ditto.
13224 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
13225 * config/i386/i386-builtin.c (enum processor_features): Add
13226 F_AVX512BF16.
13227 (static const _isa_names_table isa_names_table): Ditto.
13228 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
13229 (PTA_AVX512BF16): Ditto.
13230 * config/i386/i386.opt: Add -mavx512bf16.
13231 * config/i386/immintrin.h: Include avx512bf16intrin.h
13232 and avx512bf16vlintrin.h.
13233 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
13234 avx512f_cvtneps2bf16_<mode><mask_name>,
13235 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
13236 * config/i386/subst.md (mask_half): Add new subst.
13237 * doc/invoke.texi: Document -mavx512bf16.
13238
13239 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13240
13241 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
13242 Delete declaration.
13243 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
13244 (rs6000_debug_legitimize_reload_address): Delete.
13245 (rs6000_legitimize_reload_address_ptr): Delete.
13246 (rs6000_option_override_internal): Adjust.
13247 (mem_operand_gpr): Adjust comment.
13248 (legitimate_lo_sum_address_p): Ditto.
13249 (rs6000_legitimize_reload_address): Delete.
13250 (rs6000_debug_legitimize_reload_address): Delete.
13251 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
13252
13253 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
13254
13255 PR target/89765
13256 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13257 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
13258 to compute vector element selector for both constant and variable
13259 operands.
13260
13261 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13262
13263 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
13264 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
13265 ashrdi3_cvt using SWI48 mode iterator.
13266
13267 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13268
13269 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
13270 (aarch64_<su>abd<mode>_3): Likewise.
13271 (*aarch64_<su>abd<mode>_3): New define_insn.
13272 (<sur>sad<vsi2qi>): New define_expand.
13273 * config/aarch64/iterators.md: Added MAX_OPP attribute.
13274 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
13275 (build_vect_cond_expr): Likewise.
13276
13277 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13278
13279 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
13280 clobbers outside of accessible_reg_set.
13281 * config/i386/i386.c (ix86_conditional_register_usage):
13282 Disable register sets by clearing corresponding bits in
13283 accessible_reg_set. Do not set corresponding bits in fixed_regs,
13284 call_used_regs and don't clear corresponding reg_names array members.
13285
13286 2019-05-07 Richard Biener <rguenther@suse.de>
13287
13288 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
13289 not specified still compute a comp_vectype for invariant
13290 compares.
13291
13292 2019-05-07 Richard Biener <rguenther@suse.de>
13293
13294 PR tree-optimization/90316
13295 * tree-ssa-pre.c (translate_vuse_through_block): When
13296 same_valid is NULL do not bother to search for a virtual
13297 PHI continuation.
13298 (phi_translate_1): When operands changed we cannot keep
13299 the same value-number so do not bother to ask whether
13300 that's possible from translate_vuse_through_block.
13301
13302 2019-05-07 Martin Liska <mliska@suse.cz>
13303
13304 * bitmap.c (bitmap_register): Come up with
13305 alloc_descriptor_max_uid and assign it for
13306 a new bitmap.
13307 (register_overhead): Use get_descriptor as
13308 a descriptor.
13309 (release_overhead): New.
13310 (bitmap_elem_to_freelist): Call it.
13311 (bitmap_elt_clear_from): Likewise.
13312 (bitmap_obstack_free): Likewise.
13313 (bitmap_move): Sensitively release memory.
13314 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
13315 (bitmap_initialize): Initialize alloc_descriptor to zero.
13316 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
13317
13318 2019-05-07 Richard Biener <rguenther@suse.de>
13319
13320 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
13321 we build a SLP node. Remove max_size and limiting.
13322 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
13323
13324 2019-05-07 Richard Biener <rguenther@suse.de>
13325
13326 PR tree-optimization/90316
13327 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
13328 limit by reference.
13329 (walk_non_aliased_vuses): Take walking limit argument.
13330 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
13331 walking if it is reached instead of just counting.
13332 (get_continuation_for_phi): Likewise.
13333 (walk_non_aliased_vuses): Likewise, instead of leaving counter
13334 limiting to the callback.
13335 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
13336 (vn_reference_lookup_3): Likewise.
13337 (vn_reference_lookup_pieces): Likewise.
13338 (vn_reference_lookup): Likewise.
13339 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
13340 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
13341 (avail_exprs_stack::lookup_avail_expr): Likewise.
13342
13343 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
13344
13345 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
13346 for comparaible types in the second direction even if first one
13347 hits incomparable type.
13348
13349 2019-05-07 Richard Biener <rguenther@suse.de>
13350
13351 PR lto/90369
13352 * lto-wrapper.c (debug_objcopy): Use the original filename
13353 including archive offset for the filename used for -save-temps.
13354
13355 2019-05-07 Li Jia He <helijia@linux.ibm.com>
13356
13357 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
13358 detection.
13359
13360 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
13361 Hongtao Liu <hongtao.liu@intel.com>
13362
13363 PR target/89750
13364 PR target/86444
13365 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
13366 Modified, original implementation isn't correct.
13367
13368 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13369
13370 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
13371 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
13372 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
13373 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
13374 (FRAME_POINTER_REGNUM): Change numbering.
13375 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
13376 (alt_reg_names): Adjust.
13377 (rs6000_conditional_register_usage): Don't mark hard register 64 as
13378 fixed.
13379 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13380 (DWARF_FRAME_REGISTERS): Delete.
13381 (DWARF2_FRAME_REG_OUT): Fix whitespace.
13382 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13383 Adjust.
13384 (REG_ALLOC_ORDER): Adjust.
13385 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
13386 (REG_CLASS_CONTENTS): Adjust.
13387 (RETURN_ADDR_RTX): Change comment.
13388 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
13389 instead of 67.
13390 (REGISTER_NAMES): Adjust.
13391 (ADDITIONAL_REGISTER_NAMES): Adjust.
13392 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13393
13394 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13395
13396 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
13397 Delete.
13398 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13399 (DWARF_FRAME_REGISTERS): Adjust.
13400 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13401 Adjust.
13402 (REG_ALLOC_ORDER): Adjust.
13403 (enum reg_class): Delete SPR_REGS.
13404 (REG_CLASS_NAMES): Delete SPR_REGS.
13405 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
13406 (REGISTER_NAMES): Adjust.
13407 (ADDITIONAL_REGISTER_NAMES): Adjust.
13408 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13409 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
13410 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
13411 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
13412 (htm_spr_regno): Delete.
13413 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
13414 argument.
13415 (rs6000_dbx_register_number): Adjust.
13416
13417 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13418
13419 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
13420
13421 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13422
13423 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
13424 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
13425
13426 2019-05-06 Jakub Jelinek <jakub@redhat.com>
13427
13428 PR tree-optimization/88709
13429 PR tree-optimization/90271
13430 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
13431 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
13432 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
13433 variable.
13434 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
13435 of the store merging group is larger than
13436 PARAM_STORE_MERGING_MAX_SIZE parameter.
13437 (split_group): Add bzero_first argument. If set, always emit first
13438 the first store which must be = {} of the whole area and then for the
13439 rest of the stores consider all zero bytes as paddings.
13440 (imm_store_chain_info::output_merged_store): Check if first store
13441 is = {} of the whole area and if yes, determine which setting of
13442 bzero_first for split_group gives smaller number of stores. Adjust
13443 split_group callers.
13444 (lhs_valid_for_store_merging_p): Allow decls.
13445 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
13446 no elts.
13447 (pass_store_merging::process_store): Likewise.
13448
13449 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
13450
13451 PR target/89424
13452 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13453 handling of V1TImode.
13454
13455 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
13456
13457 PR target/89221
13458 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
13459 and enable_frame_pointer ...
13460 * configure.ac: ... here. Update help strings for
13461 --enable-frame-pointer.
13462 * configure: Regenerate.
13463 * config/i386/i386-options.c (ix86_option_override_internal): Remove
13464 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
13465 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
13466 (USE_X86_64_FRAME_POINTER): Ditto.
13467
13468 2019-05-06 Martin Liska <mliska@suse.cz>
13469
13470 * config.gcc: Append to target_gtfiles and fix indentation.
13471
13472 2019-05-06 Richard Biener <rguenther@suse.de>
13473
13474 PR tree-optimization/90358
13475 * tree-vect-stmts.c (get_group_load_store_type): Properly
13476 detect unused upper half of load.
13477 (vectorizable_load): Likewise.
13478
13479 2019-05-06 Richard Biener <rguenther@suse.de>
13480
13481 PR tree-optimization/88828
13482 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
13483 (simplify_vector_constructor): ...here. Handle constants in
13484 the constructor.
13485
13486 2019-05-06 Richard Biener <rguenther@suse.de>
13487
13488 PR tree-optimization/90328
13489 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
13490 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
13491 is valid in the loop nest before using it.
13492 (initialize_data_dependence_relation): Adjust.
13493 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
13494 loop as loop-nest to dr_may_alias_p.
13495
13496 2019-05-06 Richard Biener <rguenther@suse.de>
13497
13498 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
13499
13500 2019-05-06 Richard Biener <rguenther@suse.de>
13501
13502 PR tree-optimization/90316
13503 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
13504 compute target on demand.
13505 (get_continuation_for_phi): Remove code walking stmts to
13506 get to a target virtual operand which could end up being
13507 quadratic.
13508
13509 2019-05-06 Martin Liska <mliska@suse.cz>
13510
13511 PR sanitizer/90312
13512 * config/i386/i386-options.c (ix86_option_override_internal): Error only
13513 when -mabi is selected to a non-default version.
13514
13515 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
13516 Martin Liska <mliska@suse.cz>
13517
13518 * Makefile.in: Add lto-dump.texi.
13519 * cgraph.h: Add new functions get_visibility_string and
13520 get_symtab_type_string.
13521 * doc/gcc.texi: Include lto-dump section.
13522 * doc/lto-dump.texi: New file.
13523 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
13524 (parse_dump_option): Factor out this function.
13525 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
13526 (parse_dump_option): Export the function.
13527 * symtab.c (symtab_node::get_visibility_string): New function.
13528 (symtab_node::get_symtab_type_string): Likewise.
13529
13530 2019-05-06 Martin Liska <mliska@suse.cz>
13531
13532 * config/i386/i386-builtins.c: New file.
13533 * config/i386/i386-builtins.h: New file.
13534 * config/i386/i386-expand.c: New file.
13535 * config/i386/i386-expand.h: New file.
13536 * config/i386/i386-features.c: New file.
13537 * config/i386/i386-features.h: New file.
13538 * config/i386/i386-options.c: New file.
13539 * config/i386/i386-options.h: New file.
13540 * config.gcc: Add new files into extra_objs and
13541 target_gtfiles.
13542 * config/i386/i386.c: Split content of the file
13543 into newly introduced files.
13544 * config/i386/i386.h: Declare common variables
13545 and macros.
13546 * config/i386/t-i386: Define dependencies for new files.
13547
13548 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
13549
13550 PR target/89400
13551 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
13552 Restrict 'all' variant to 32-bit configurations.
13553 (unaligned_loadhiu): Likewise.
13554 (unaligned_storehi): Likewise.
13555 (unaligned_storesi): Likewise.
13556 (unaligned_loadhis): Disable when compiling for thumb1.
13557
13558 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13559
13560 PR tree-optimization/90269
13561 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13562 Ignore clobbers.
13563
13564 2019-05-03 Martin Liska <mliska@suse.cz>
13565
13566 * hash-map.h: Add is_empty function.
13567 * hash-set.h: Likewise.
13568 * hash-table.h: Likewise.
13569 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13570 elements () == 0 (and similar usages).
13571 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13572 * gimplify.c (gimplify_bind_expr): Likewise.
13573 (gimplify_switch_expr): Likewise.
13574 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13575 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13576 * postreload-gcse.c (dump_hash_table): Likewise.
13577 (gcse_after_reload_main): Likewise.
13578 * predict.c (combine_predictions_for_bb): Likewise.
13579 * tree-parloops.c (reduction_phi): Likewise.
13580 (separate_decls_in_region): Likewise.
13581 (transform_to_exit_first_loop): Likewise.
13582 (gen_parallel_loop): Likewise.
13583 (gather_scalar_reductions): Likewise.
13584 (try_create_reduction_list): Likewise.
13585 * var-tracking.c (dump_vars): Likewise.
13586 (emit_notes_for_changes): Likewise.
13587 (vt_emit_notes): Likewise.
13588
13589 2019-05-03 Richard Biener <rguenther@suse.de>
13590
13591 PR tree-optimization/90316
13592 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13593 before running VN.
13594
13595 2019-05-03 Richard Biener <rguenther@suse.de>
13596
13597 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13598 peeling for gaps by loading only lower halves of vectors
13599 if possible.
13600 (vectorizable_load): Likewise.
13601
13602 2019-05-03 Richard Biener <rguenther@suse.de>
13603
13604 PR middle-end/89518
13605 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13606
13607 2019-05-03 Richard Biener <rguenther@suse.de>
13608
13609 PR middle-end/87314
13610 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13611 Handle STRING_CST vs DECL or STRING_CST.
13612
13613 2019-05-03 Richard Biener <rguenther@suse.de>
13614
13615 PR tree-optimization/88963
13616 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13617 vector loads feeding only BIT_FIELD_REFs to component
13618 loads. Rewrite stores fed by CONSTRUCTORs to component
13619 stores.
13620
13621 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13622
13623 * opts.h (finish_options): Remove lang_mask argument.
13624 (print_help, help_option_argument): Declare.
13625 * opts.c (print_help): Remove forward declaration, no longer static.
13626 (finish_options): Remove lang_mask argument, don't call print_help
13627 here.
13628 * opts-global.c (decode_options): Adjust finish_option caller, call
13629 print_help here.
13630
13631 PR tree-optimization/90303
13632 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13633 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13634
13635 2019-05-03 Richard Biener <rguenther@suse.de>
13636
13637 PR tree-optimization/89698
13638 * gimple-fold.c (canonicalize_constructor_val): Early out
13639 for constants, handle unfolded INTEGER_CSTs as they appear in
13640 C++ virtual table ctors.
13641
13642 2019-05-03 Richard Biener <rguenther@suse.de>
13643
13644 * passes.c (execute_function_todo): Remove dead code.
13645
13646 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13647
13648 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13649 the internal register number, for any "real" register.
13650
13651 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13652
13653 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13654 correct numbers for TFHAR, TFIAR, TEXASR.
13655
13656 2019-05-02 Richard Biener <rguenther@suse.de>
13657
13658 PR tree-optimization/89653
13659 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13660 update-address-taken before the pass.
13661 * passes.def (pass_tree_loop_init): Put comment before it.
13662
13663 2019-05-02 Richard Biener <rguenther@suse.de>
13664
13665 PR tree-optimization/89509
13666 * tree-ssa-structalias.c (compute_dependence_clique): Look
13667 at the first subvar when determining whether it is restrict.
13668
13669 2019-05-02 Richard Biener <rguenther@suse.de>
13670
13671 PR tree-optimization/90273
13672 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13673 useless debug stmts.
13674
13675 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13676
13677 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13678 ACLE branch.
13679 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13680 SVE ACLE branch.
13681 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13682 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13683 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13684 (vectorizable_reduction): Use the functions above to vectorize in a
13685 fully masked loop codes that don't have a conditional internal
13686 function.
13687
13688 2019-05-02 Martin Liska <mliska@suse.cz>
13689
13690 * cgraphclones.c: Call valid_attribute_p with 1 for
13691 target_clone.
13692 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13693 it's for target attribute.
13694 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13695 Add new boolean argument.
13696 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13697 Likewise.
13698 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13699 to ix86_valid_target_attribute_inner_p.
13700 (ix86_valid_target_attribute_p): Pass flags argument to
13701 ix86_valid_target_attribute_inner_p.
13702 (get_builtin_code_for_version): Use 0 as it's target attribute.
13703
13704 2019-05-02 Martin Liska <mliska@suse.cz>
13705
13706 * gcc.c (process_command): Add dummy file only
13707 if n_infiles == 0.
13708 * opts-global.c (decode_options): Pass lang_mask.
13709 * opts.c (print_help): New function.
13710 (finish_options): Print --help if help_option_argument
13711 is set.
13712 (common_handle_option): Factor out content of OPT__help_
13713 into print_help.
13714 * opts.h (finish_options): Add new argument.
13715
13716 2019-05-02 Martin Liska <mliska@suse.cz>
13717
13718 PR target/88809
13719 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13720 With -minline-all-stringops use inline expansion using 4B loop.
13721 * doc/invoke.texi: Document the change of
13722 -minline-all-stringops.
13723
13724 2019-05-01 Jeff Law <law@redhat.com>
13725
13726 PR tree-optimization/88797
13727 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13728 PHI feeds a conditional on the RHS of an assignment.
13729
13730 2019-04-30 Andrew Waterman <andrew@sifive.com>
13731 Jim Wilson <jimw@sifive.com>
13732
13733 * config/riscv/constraints.md (L): New.
13734 * config/riscv/predicates.md (lui_operand): New.
13735 (sfb_alu_operand): New.
13736 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13737 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13738 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13739 * config/riscv/risc.md (type): Add sfb_alu.
13740 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13741 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13742 (branch_zero<mode>): Delete.
13743 (mov<mode>cc): New.
13744 (mov<GPR:mode><X:mode>cc): Likewise.
13745 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13746
13747 2019-04-30 Nathan Sidwell <nathan@acm.org>
13748
13749 * tree.h (MARK_TS_EXP): New.
13750
13751 2019-04-30 Martin Liska <mliska@suse.cz>
13752
13753 * opts.c (enable_warning_as_error): Provide hints
13754 for unknown options.
13755
13756 2019-04-30 Martin Liska <mliska@suse.cz>
13757
13758 PR debug/90288
13759 * doc/invoke.texi: Add missing dash for gas-locview-support
13760 and gno-as-locview-support.
13761
13762 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13763
13764 PR target/89093
13765 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13766 whitespace at the start of target attribute string.
13767
13768 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13769
13770 PR target/86538
13771 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13772 Define __ARM_FEATURE_ATOMICS.
13773
13774 2019-04-30 Martin Liska <mliska@suse.cz>
13775
13776 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13777 into built_in_function enum. Remove code for endp == 2 and
13778 use BUILT_IN_* constants.
13779 (gimple_fold_builtin): Call the function with fcode.
13780
13781 2019-04-30 Martin Liska <mliska@suse.cz>
13782
13783 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13784 DECL_FUNCTION_CODE into ix86_builtins enum before
13785 the switch statement.
13786
13787 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13788
13789 PR tree-optimization/89475
13790 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13791 calls.
13792
13793 2019-04-30 Martin Liska <mliska@suse.cz>
13794
13795 PR translation/90274
13796 * opts.c (print_filtered_help): Wrap string in _(...).
13797
13798 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13799
13800 PR tree-optimization/90240
13801 Revert:
13802 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13803
13804 PR tree-optimization/90078
13805 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13806 checks for infinite_cost overflow.
13807
13808 2019-04-29 Jeff Law <law@redhat.com>
13809
13810 * passes.def: Move -Wrestrict pass after copy propagation.
13811
13812 2019-04-29 Maya Rashish <coypu@sdf.org>
13813
13814 * config.gcc (default_gnu_indirect_function): Default to yes
13815 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13816 sparc*-*-netbsd*, x86_64-*-netbsd*.
13817
13818 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13819
13820 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13821 where cond2 is NE_EXPR.
13822 (is_value_included_in): Update comment.
13823
13824 2019-04-29 Richard Biener <rguenther@suse.de>
13825
13826 PR tree-optimization/90278
13827 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13828 EH on comparison simplification.
13829
13830 2019-04-29 Jason Merrill <jason@redhat.com>
13831
13832 PR c++/82081 - tail call optimization breaks noexcept
13833 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13834 nothrow function to a might-throw function into a tail call.
13835
13836 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13837
13838 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13839 (DDR_INNER_LOOP): Likewise.
13840 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13841 (initialize_data_dependence_relation): Likewise.
13842 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13843
13844 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13845
13846 PR rtl-optimization/90257
13847 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13848 return value.
13849
13850 Revert the revert:
13851 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13852
13853 PR target/90178
13854 Revert:
13855 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13856
13857 Revert the revert:
13858 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13859
13860 Revert:
13861 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13862
13863 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13864
13865 2019-04-29 Richard Biener <rguenther@suse.de>
13866
13867 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13868 rhs issue a reset.
13869
13870 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13871
13872 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13873 varasm.h, and netbsd-protos.h.
13874
13875 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13876
13877 PR target/89261
13878 * config/i386/i386-protos.h (ix86_data_alignment): Change
13879 the second argument type to unsigned int.
13880 * config/i386/i386.c (ix86_data_alignment): Change "align"
13881 argument type to unsigned int.
13882
13883 2019-04-27 Martin Liska <mliska@suse.cz>
13884
13885 PR middle-end/90258
13886 * opt-suggestions.c (option_proposer::build_option_suggestions):
13887 When get_valid_option_values returns empty values, add the
13888 misspelling candidate.
13889
13890 2019-04-26 Jim Wilson <jimw@sifive.com>
13891
13892 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
13893 parameter.
13894 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
13895 Pass orig_mode to riscv_build_integer.
13896 (riscv_split_integer): Pass mode to riscv_move_integer.
13897 (riscv_legitimize_const_move): Likewise.
13898 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
13899 promoted_mode. Replace force_reg call with code to load constant into
13900 promoted reg and then subreg it for the store.
13901 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
13902 riscv_move_integer.
13903
13904 2018-04-26 Eugene Sharygin <eush@ispras.ru>
13905
13906 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
13907 corrupt codes.
13908
13909 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
13910
13911 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
13912 commentary about the encoding of precision.
13913
13914 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
13915
13916 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
13917 * config/i386/t-freebsd64: New file.
13918 * config.gcc: Add the t-freebsd64 for multilib support.
13919
13920 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
13921
13922 * doc/extend.texi (vector_size): Add missing comma after @xref.
13923
13924 2019-04-25 Jakub Jelinek <jakub@redhat.com>
13925
13926 * BASE-VER: Set to 10.0.0.
13927
13928 2019-04-25 Richard Biener <rguenther@suse.de>
13929
13930 PR middle-end/89765
13931 * gimplify.c (gimplify_expr): Avoid turning a lvalue
13932 VIEW_CONVERT_EXPR into one operating on an rvalue.
13933
13934 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
13935
13936 PR target/89929
13937 * config/i386/i386.c (feature_priority): Moved to file scope.
13938 (processor_features): Likewise.
13939 (processor_model): Likewise.
13940 (_arch_names_table): Likewise.
13941 (arch_names_table): Likewise.
13942 (_feature_list): Removed.
13943 (feature_list): Likewise.
13944 (_isa_names_table): Moved to file scope. Add priority.
13945 (isa_names_table): Likewise.
13946 (get_builtin_code_for_version): Replace feature_list with
13947 isa_names_table. Update error message for P_ZERO priority.
13948
13949 2019-04-25 Richard Biener <rguenther@suse.de>
13950
13951 * tree-pass.h (make_pass_phi_only_cprop): Remove.
13952 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
13953
13954 2019-04-24 Jeff Law <law@redhat.com>
13955
13956 PR tree-optimization/90037
13957 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
13958 * passes.def: Replace all instance of phi-only cprop with the
13959 lattice propagator. Move propagation pass from after erroneous
13960 path isolation to before erroneous path isolation.
13961 * tree-ssa-phionlycprop.c: Remove.
13962
13963 2019-04-24 Richard Biener <rguenther@suse.de>
13964
13965 PR middle-end/90213
13966 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
13967 by size and BITS_PER_UNIT on poly-wide-ints.
13968
13969 2019-04-25 Richard Biener <rguenther@suse.de>
13970
13971 PR middle-end/90194
13972 * match.pd: Add pattern to simplify view-conversion of an
13973 empty constructor.
13974
13975 2019-04-24 Clement Chigot <clement.chigot@atos.net>
13976
13977 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
13978 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
13979 for Go on 32 bit AIX.
13980 * config/rs6000/aix72.h: Likewise.
13981
13982 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13983
13984 PR target/90193
13985 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
13986 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
13987
13988 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
13989
13990 PR target/89952
13991 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
13992 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
13993 for restored hard frame pointer.
13994 (s390_sched_dependencies_evaluation): Implement new target hook.
13995 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
13996
13997 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
13998
13999 * config/arc/arc-options.def: Fix typos and spelling mistakes.
14000 * config/arc/arc.c (arc_init): Cleanup warning message.
14001 (arc_override_options): Likewise.
14002
14003 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14004
14005 PR target/90187
14006 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
14007 a register if both if_true and if_false are MEMs.
14008
14009 PR tree-optimization/90208
14010 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
14011 after labels of new_bb, not before them.
14012
14013 PR tree-optimization/90211
14014 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
14015 which are not SSA_NAMEs.
14016
14017 2018-04-23 Sudakshina Das <sudi.das@arm.com>
14018
14019 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
14020 AArch64.
14021 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
14022
14023 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14024
14025 PR rtl-optimization/87979
14026 * modulo-sched.c (sms_schedule): Start ii value "mii" should
14027 not equal zero.
14028
14029 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14030
14031 PR rtl-optimization/84032
14032 * modulo-sched.c (ps_insn_find_column): Change condition so that
14033 branch will always be the last insn in a row inside partial
14034 schedule.
14035
14036 2019-04-23 Richard Biener <rguenther@suse.de>
14037
14038 PR debug/90131
14039 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
14040 dest_single_pred_p argument.
14041 (remove_forwarder_block): Adjust.
14042 (remove_forwarder_block_with_phi): Likewise.
14043
14044 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14045 Bernd Edlinger <bernd.edlinger@hotmail.de>
14046 Jakub Jelinek <jakub@redhat.com>
14047
14048 PR target/89093
14049 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
14050 if used with general-regs-only.
14051 (arm_conditional_register_usage): Don't add non-general regs if
14052 general-regs-only.
14053 (arm_valid_target_attribute_rec): Handle general-regs-only.
14054 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
14055 general-regs-only.
14056 (TARGET_HARD_FLOAT_SUB): Define.
14057 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
14058 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
14059 (TARGET_REALLY_IWMMXT2): Likewise.
14060 * config/arm/arm.opt: Add -mgeneral-regs-only.
14061 * doc/extend.texi: Document ARM general-regs-only target.
14062 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
14063
14064 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14065
14066 PR tree-optimization/90078
14067 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14068 checks for infinite_cost overflow.
14069
14070 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14071
14072 PR tree-optimization/90021
14073 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
14074 and check univariate against it.
14075 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
14076 * tree-data-ref.c (add_other_self_distances): Pass new argument.
14077
14078 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14079
14080 PR target/90178
14081 Revert:
14082 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14083
14084 Revert the revert:
14085 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14086
14087 Revert:
14088 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14089
14090 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14091
14092 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
14093
14094 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
14095 names using operand format, rather than hard-wired.
14096 (speculation_barrier): Likewise.
14097
14098 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
14099
14100 PR tree-optimization/88055
14101 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
14102 (gen_one_condition): Use it if !HONOR_NANS.
14103
14104 2019-04-19 Jakub Jelinek <jakub@redhat.com>
14105
14106 PR middle-end/90139
14107 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
14108 assign_temp instead of gen_reg_rtx.
14109
14110 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
14111
14112 PR translation/90118
14113 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14114 Add missing space before %<.
14115
14116 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
14117
14118 PR rtl-optimization/87871
14119 * ira-lives.c (make_object_dead): Don't add conflicts to
14120 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
14121
14122 2019-04-18 Martin Sebor <msebor@redhat.com>
14123
14124 PR middle-end/89797
14125 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
14126 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
14127 assuming type size fits in SHWI.
14128
14129 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
14130
14131 PR ipa/85051
14132 * ipa-inline.c (flatten_function): New parameter UPDATE.
14133 (ipa_inline, early_inliner): Use it.
14134
14135 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14136
14137 * fold-const.c (int_const_binop): Return early on failure.
14138
14139 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14140
14141 PR middle-end/85164
14142 * combine.c (force_int_to_mode): Cast the argument rather than
14143 the result of known_alignment.
14144 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
14145
14146 2019-04-18 Richard Biener <rguenther@suse.de>
14147
14148 PR debug/90131
14149 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
14150 out from ...
14151 (remove_forwarder_block): ... here.
14152 (remove_forwarder_block_with_phi): Also move debug stmts here.
14153
14154 2019-04-18 Jakub Jelinek <jakub@redhat.com>
14155
14156 PR translation/79183
14157 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
14158 inform where appropriate.
14159
14160 2019-04-18 Richard Biener <rguenther@suse.de>
14161
14162 * tree.c (get_qualified_type): Put found type variants at the
14163 head of the variant list.
14164
14165 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14166
14167 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
14168
14169 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
14170
14171 PR target/90125
14172 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
14173 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
14174 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
14175 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
14176 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
14177
14178 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
14179
14180 * ira-conflicts.c (print_allocno_conflicts): Always print something,
14181 even for allocno's with no conflicts.
14182 (print_conflicts): Print an extra newline.
14183
14184 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14185
14186 * auto-inc-dec.c (attempt_change): Set the alignment of the
14187 temporary memory to that of the original.
14188
14189 2019-04-17 Joao Moreira <jmoreira@suse.de>
14190
14191 * targhooks.c (default_print_patchable_function_entry): Emit
14192 __patchable_function_entries section with writable flags to allow
14193 relocation resolution.
14194
14195 2019-04-17 Jonny Grant <jg@jguk.org>
14196
14197 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
14198
14199 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14200
14201 PR middle-end/90095
14202 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
14203 on lowpart SUBREGs.
14204
14205 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
14206
14207 * config/arc/arc.c (arc_init): Format diagnostic string.
14208 (arc_override_options): Likewise.
14209 (check_if_valid_regno_const): Likewise.
14210 (arc_reorg): Likewise.
14211
14212 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14213
14214 PR target/17108
14215 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
14216 name.
14217 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
14218 name.
14219 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
14220 (*movdi_update1): Use Pmode.
14221 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
14222 (movdi_<mode>_update_stack): Rename to ...
14223 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
14224 use Pmode.
14225 (*movsi_update1): Use Pmode.
14226 (*movsi_update2): Use Pmode.
14227 (movsi_update): Rename to ...
14228 (movsi_<mode>_update): ... this. Use Pmode.
14229 (movsi_update_stack): Fix condition.
14230 (*movhi_update1): Use Pmode. Fix argument to
14231 avoiding_indexed_address_p.
14232 (*movhi_update2): Ditto.
14233 (*movhi_update3): Ditto.
14234 (*movhi_update4): Ditto.
14235 (*movqi_update1): Ditto.
14236 (*movqi_update2): Ditto.
14237 (*movqi_update3): Ditto.
14238 (*movsf_update1, *movdf_update1): Merge, rename to...
14239 (*mov<mode>_update1): This. Use Pmode. Fix argument to
14240 avoiding_indexed_address_p. Add "size" attribute.
14241 (*movsf_update2, *movdf_update2): Merge, rename to...
14242 (*mov<mode>_update2): This. Ditto.
14243 (*movsf_update3): Use Pmode. Fix argument to
14244 avoiding_indexed_address_p.
14245 (*movsf_update4): Ditto.
14246 (allocate_stack): Simplify condition. Adjust pattern names.
14247
14248 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14249
14250 PR target/89093
14251 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
14252 whitespace at the start of target attribute string.
14253
14254 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
14255
14256 PR target/84369
14257 * config/rs6000/power9.md: Add store forwarding bypass.
14258
14259 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
14260
14261 PR debug/89528
14262 * valtrack.c (dead_debug_insert_temp): Reset debug references
14263 to the return value of a call being removed.
14264
14265 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14266
14267 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
14268 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
14269 implement target hook.
14270 (arc_memory_move_cost): New function.
14271 (TARGET_REGISTER_MOVE_COST): Define.
14272 (TARGET_MEMORY_MOVE_COST): Likewise.
14273 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
14274 (MEMORY_MOVE_COST): Likewise.
14275
14276 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14277
14278 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
14279 (sibcall_value_insn): Likewise.
14280 * config/arc/constraints.md (Rs5): Remove.
14281
14282 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14283
14284 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
14285 for last two fake registers.
14286 (arc_conditional_register_usage): Make sure fake frame and arg
14287 pointer regs are in general regs class.
14288 (FRAME_POINTER_MASK): Remove.
14289 (RETURN_ADDR_MASK): Remove.
14290 (arc_must_save_register): Use hard frame regnum.
14291 (frame_restore_reg): Use hard_frame_pointer_rtx.
14292 (arc_save_callee_saves): Likewise.
14293 (arc_restore_callee_saves): Likewise.
14294 (arc_save_callee_enter): Likewise.
14295 (arc_restore_callee_leave): Likewise.
14296 (arc_save_callee_milli): Likewise.
14297 (arc_eh_return_address_location): Likewise.
14298 (arc_check_multi): Use hard frame regnum.
14299 (arc_can_eliminate): Likewise.
14300 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
14301 for register allocator.
14302 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
14303 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
14304 (FRAME_POINTER_REGNUM): Change it to a fake register.
14305 (HARD_FRAME_POINTER_REGNUM): Defined.
14306 (ARG_POINTER_REGNUM): Change it to a new fake register.
14307 (ELIMINABLE_REGS): Update.
14308 (REGISTER_NAMES): Update names.
14309 * config/arc/arc.md (LP_START): Remove.
14310 (LP_END): Likewise.
14311 (shift_si3_loop): Update pattern.
14312
14313 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14314
14315 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
14316 to avoid delay slot scheduling.
14317 (arc_must_save_register): Don't save SP.
14318 * config/arc/arc.md (stack_tie): Remove.
14319 (UNSPEC_ARC_STKTIE): Likewise.
14320
14321 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
14322 Shiva Chen <shiva0217@gmail.com>
14323
14324 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
14325 code gen with large shift amount.
14326
14327 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
14328
14329 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
14330 subreg.
14331
14332 2019-04-16 Jakub Jelinek <jakub@redhat.com>
14333
14334 PR target/90096
14335 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
14336 print -m64/-mx32/-m32 if it is true.
14337 (ix86_debug_options, ix86_function_specific_print): Pass true as
14338 ADD_ABI_P to ix86_target_string.
14339 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
14340 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
14341 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
14342
14343 PR rtl-optimization/90082
14344 * dce.c (can_delete_call): New function.
14345 (deletable_insn_p, mark_insn): Use it.
14346
14347 PR tree-optimization/90090
14348 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
14349 throw internally.
14350 (is_division_by_square): Likewise. Formatting fix.
14351
14352 2019-04-16 Richard Biener <rguenther@suse.de>
14353
14354 PR tree-optimization/56049
14355 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
14356 equality check if alias-set zero will prevail.
14357
14358 2019-04-15 Jeff Law <law@redhat.com>
14359
14360 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
14361 size and alignment as unsigned.
14362
14363 2019-04-15 Richard Biener <rguenther@suse.de>
14364
14365 PR debug/90074
14366 * tree-loop-distribution.c (destroy_loop): Preserve correct
14367 debug info.
14368
14369 2019-04-15 Richard Biener <rguenther@suse.de>
14370
14371 PR tree-optimization/90071
14372 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
14373 abnormal operands from def stmts.
14374
14375 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
14376
14377 PR rtl-optimization/89794
14378 * combine.c (count_auto_inc): New function.
14379 (try_combine): Count how many auto_inc expressions there were in the
14380 original instructions. Ensure we have the same number in the new
14381 instructions. Remove the code that tried to ensure auto_inc side
14382 effects on i1 and i0 are not lost.
14383
14384 2019-04-15 Richard Biener <rguenther@suse.de>
14385
14386 PR ipa/88936
14387 * tree.h (auto_var_p): Declare.
14388 * tree.c (auto_var_p): New function, split out from ...
14389 (auto_var_in_fn_p): ... here.
14390 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
14391 member.
14392 (new_var_info): Initialize it.
14393 (set_uids_in_ptset): Also set the shadow variable uid if required.
14394 (ipa_pta_execute): Postprocess points-to solutions assigning
14395 shadow variable uids for locals that may reach their containing
14396 function recursively.
14397 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
14398 assert but instead check whether the points-to solution is
14399 a singleton.
14400
14401 2019-04-15 Martin Jambor <mjambor@suse.cz>
14402
14403 PR ipa/pr89693
14404 * cgraph.c (clone_of_p): Loop over clone chain for each step in
14405 the thunk chain.
14406
14407 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14408
14409 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
14410
14411 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14412 Kito Cheng <kito.cheng@gmail.com>
14413 Shiva Chen <shiva0217@gmail.com>
14414
14415 * config/nds32/nds32-md-auxiliary.c
14416 (nds32_legitimize_pic_address): Use new PIC pattern.
14417 (nds32_legitimize_tls_address): Use new TLS pattern.
14418 (nds32_output_symrel): New.
14419 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
14420 (nds32_alloc_relax_group_id): Ditto.
14421 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
14422 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
14423 relax_group_id.
14424 (nds32_group_tls_insn): Ditto.
14425 (nds32_group_float_insns): Ditto.
14426 * config/nds32/nds32.md (tls_le): New.
14427 (sym_got): Ditto.
14428
14429 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
14430
14431 * configure: Add nds32 target for dwarf2 debug_line checking.
14432 * configure.ac: Regenerated.
14433
14434 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
14435
14436 PR lto/89358
14437 * ipa-devirt.c (skip_in_fields_list_p): New.
14438 (odr_types_equivalent_p): Use it.
14439
14440 2019-04-13 Jakub Jelinek <jakub@redhat.com>
14441
14442 PR target/89093
14443 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
14444 instead of strncmp when checking for thumb and arm. Formatting fixes.
14445
14446 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
14447
14448 * doc/install.texi: Document --with-target-system-zlib.
14449
14450 2019-04-12 Martin Sebor <msebor@redhat.com>
14451
14452 PR c/88383
14453 PR c/89288
14454 PR c/89798
14455 PR c/89797
14456 * targhooks.c (default_vector_alignment): Avoid assuming
14457 argument fits in SHWI.
14458 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
14459 a shift expression.
14460 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
14461
14462 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14463
14464 PR rtl-optimization/89965
14465 * dce.c: Include rtl-iter.h.
14466 (struct check_argument_load_data): New type.
14467 (check_argument_load): New function.
14468 (find_call_stack_args): Check for loads from stack slots still tracked
14469 in sp_bytes and punt if any is found.
14470
14471 * config/mips/loongson-mmiintrin.h: Fix up #error message.
14472
14473 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
14474
14475 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
14476 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
14477
14478 2019-04-12 Martin Liska <mliska@suse.cz>
14479
14480 PR middle-end/89970
14481 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
14482 in error message.
14483 (separate_attrs): Handle multiple 'default's.
14484 (expand_target_clones): Rework error handling code.
14485
14486 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
14487
14488 PR target/87532
14489 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
14490 mode of vector rather than mode of destination for move instruction.
14491 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
14492 Use QI inner mode with V16QI vector mode.
14493
14494 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14495
14496 PR target/52726
14497 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
14498 "invalid %%t operand" in output_operand_lossage message.
14499
14500 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
14501
14502 * config/s390/predicates.md (permute_pattern_operand): New
14503 predicate.
14504 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
14505 operand for the permute pattern.
14506 ("*vec_perm<mode>"): New insn definition.
14507 ("bswap<mode>"): Generate the permute pattern operand in the
14508 expander and perform the operand reloads for pre arch13 level
14509 already.
14510 ("*bswap<mode>_emu"): Rename to ...
14511 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
14512 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
14513 Add the USE operand for the permute pattern.
14514 ("*vec_set_bswap_vec<mode>"): Likewise.
14515
14516 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14517
14518 PR c/89946
14519 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
14520 and gcc_unreachable if it fails, just call tree_to_uhwi which
14521 verifies that too. Test TREE_CHAIN instead of list_length > 1.
14522 Start warning message with a lower-case letter. Formatting fixes.
14523
14524 PR rtl-optimization/90026
14525 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
14526 successors, look for BARRIERs inside of the whole BB_FOOTER chain
14527 rather than just at the start of it. If e->src BB_FOOTER is not NULL
14528 in cfglayout mode, use emit_barrier_after_bb.
14529
14530 2018-04-11 Steve Ellcey <sellcey@marvell.com>
14531
14532 PR rtl-optimization/87763
14533 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
14534 New Instruction.
14535
14536 2019-04-11 Tom de Vries <tdevries@suse.de>
14537
14538 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
14539 max macro using statement expression.
14540
14541 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
14542
14543 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
14544 * xcoffout.c (xcoff_private_rodata_section_name): Define.
14545 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
14546 read_only_private_data_section using xcoff_private_rodata_section_name.
14547 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
14548
14549 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
14550
14551 PR target/90016
14552 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14553
14554 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14555
14556 PR rtl-optimization/89965
14557 * dce.c (sp_based_mem_offset): New function.
14558 (find_call_stack_args): Use sp_based_mem_offset.
14559
14560 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14561
14562 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14563
14564 2019-04-11 Richard Biener <rguenther@suse.de>
14565
14566 PR tree-optimization/90020
14567 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14568 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14569 * tree-ssa-pre.c (compute_avail): Use it to not put
14570 possibly trapping references after a call that might not
14571 return into EXP_GEN.
14572 * gcse.c (compute_hash_table_work): Do not elide
14573 marking a block containing a call if the call might not
14574 return.
14575
14576 2019-04-11 Richard Biener <rguenther@suse.de>
14577
14578 PR tree-optimization/90018
14579 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14580 Test both SLP and interleaving variants.
14581
14582 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14583
14584 * config/s390/8561.md: New file.
14585 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14586 Add arch13 cpu model.
14587 * config/s390/s390-opts.h (enum processor_type): Likewise.
14588 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14589 (s390_get_unit_mask): Likewise.
14590 (s390_is_fpd): Likewise.
14591 (s390_is_fxd): Likewise.
14592 * config/s390/s390.h (s390_tune_attr): Likewise.
14593 * config/s390/s390.md: Include arch13 pipeline description.
14594 * config/s390/s390.opt: Add arch13.
14595
14596 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14597
14598 PR rtl-optimization/87763
14599 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14600 New prototype.
14601 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14602 New function.
14603 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14604 New instruction.
14605 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14606 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14607 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14608 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14609
14610 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14611
14612 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14613 "Although" in -fipa-icf documentation.
14614
14615 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14616 of using multiple -g options.
14617
14618 2019-04-10 Martin Liska <mliska@suse.cz>
14619
14620 PR gcov-profile/89959
14621 * doc/gcov.texi: Make documentation of -x option
14622 more precise.
14623
14624 2019-04-10 Richard Biener <rguenther@suse.de>
14625
14626 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14627 member.
14628 (DR_GROUP_SAME_DR_STMT): Remove.
14629 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14630 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14631 replace with assert.
14632 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14633 (vect_record_grouped_load_vectors): Remove unreachable code.
14634
14635 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14636
14637 PR target/90016
14638 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14639 obsolete reference to N.
14640
14641 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14642
14643 PR middle-end/90025
14644 * expr.c (store_expr): Set properly size on the MEM passed to
14645 clear_storage.
14646
14647 PR c++/90010
14648 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14649 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14650 translation is needed, and when translation is needed, only append
14651 ... if the string length is hostsz or more bytes long. Avoid using
14652 strncpy or strcat.
14653
14654 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14655
14656 PR target/90024
14657 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14658 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14659 into three.
14660 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14661 differences directly.
14662 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14663
14664 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14665
14666 PR translation/90011
14667 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14668 from diagnostics.
14669 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14670 diagnostics.
14671 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14672 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14673 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14674 trailing space from -gsplit-dwarf diagnostics.
14675
14676 PR tree-optimization/89998
14677 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14678 instead of integer_type_node if possible, don't add ranges if return
14679 type is not compatible with int.
14680 * gimple-fold.c (gimple_fold_builtin_sprintf,
14681 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14682 integer_type_node.
14683
14684 2019-04-09 Martin Liska <mliska@suse.cz>
14685
14686 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14687 * doc/install.texi: Document the new config.
14688
14689 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14690
14691 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14692 use gimple_expr_type for load and store calls. Skip over the
14693 condition argument in a conditional internal function.
14694 Protect use of TREE_INT_CST_LOW.
14695
14696 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14697
14698 PR target/90015
14699 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14700 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14701 trailing period from it too.
14702
14703 2019-04-08 wu yuan <wuyuan5@huawei.com>
14704
14705 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14706 * config/aarch64/aarch64.md : Add "tsv110.md"
14707 * config/aarch64/tsv110.md: New file.
14708
14709 2019-04-08 Richard Biener <rguenther@suse.de>
14710
14711 PR tree-optimization/90006
14712 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14713 calls like lrint.
14714
14715 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14716
14717 PR target/83033
14718 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14719 construction.
14720 (fma_root_node): Likewise.
14721 (func_fma_steering): Likewise.
14722
14723 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14724
14725 PR rtl-optimization/89865
14726 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14727
14728 PR rtl-optimization/89865
14729 * config/i386/i386.md
14730 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14731 numbers not to clash with the additional operands[4].
14732 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14733 with extra register copy in the middle.
14734
14735 2019-04-08 Martin Liska <mliska@suse.cz>
14736
14737 PR gcov-profile/89961
14738 * doc/gcov.texi: Document data_file.
14739 * gcov.c (generate_results): Add data_info into JSON output.
14740
14741 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14742
14743 PR tree-optimization/89725
14744 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14745 loop's chrec as invariant symbol.
14746 * tree-chrec.h (chrec_contains_symbols): New parameter.
14747 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14748 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14749 function of loops not in DDR's loop_nest.
14750 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14751
14752 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14753
14754 PR target/89623
14755 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14756 Mask.
14757
14758 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14759
14760 PR target/89945
14761 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14762 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14763
14764 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14765
14766 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14767 targetm.fixed_condition_code_regs.
14768
14769 2019-04-05 Richard Biener <rguenther@suse.de>
14770
14771 PR debug/89892
14772 PR debug/89905
14773 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14774 debug bind stmts but reset them if they are not valid at the
14775 destination.
14776
14777 2019-04-05 Martin Liska <mliska@suse.cz>
14778
14779 PR translation/89936
14780 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14781 order to wrap keywords or arguments.
14782 * collect2.c (main): Likewise.
14783 (scan_prog_file): Likewise.
14784 (scan_libraries): Likewise.
14785 * common/config/riscv/riscv-common.c
14786 (riscv_subset_list::parsing_subset_version): Likewise.
14787 (riscv_subset_list::parse_std_ext): Likewise.
14788 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14789 Likewise.
14790 * config/arm/arm.c (arm_option_override): Likewise.
14791 * config/cris/cris.c (cris_print_operand): Likewise.
14792 * config/darwin-c.c (darwin_pragma_options): Likewise.
14793 (darwin_pragma_unused): Likewise.
14794 (darwin_pragma_ms_struct): Likewise.
14795 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14796 * config/i386/i386.c (print_reg): Likewise.
14797 (ix86_print_operand): Likewise.
14798 * config/i386/xm-djgpp.h: Likewise.
14799 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14800 * config/m32c/m32c.c (m32c_option_override): Likewise.
14801 * config/msp430/msp430.c (msp430_option_override): Likewise.
14802 * config/nds32/nds32.c (nds32_option_override): Likewise.
14803 * config/nvptx/mkoffload.c (main): Likewise.
14804 * config/rx/rx.c (rx_print_operand): Likewise.
14805 (valid_psw_flag): Likewise.
14806 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14807 (vms_pragma_nomember_alignment): Likewise.
14808 (vms_pragma_extern_model): Likewise.
14809 * lto-wrapper.c (compile_offload_image): Likewise.
14810 * omp-offload.c (oacc_parse_default_dims): Likewise.
14811 * symtab.c (symtab_node::verify_base): Likewise.
14812 * tlink.c (recompile_files): Likewise.
14813 (start_tweaking): Likewise.
14814 * tree-profile.c (parse_profile_filter): Likewise.
14815
14816 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14817
14818 PR tree-optimization/89956
14819 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14820 multiple negates of the same value.
14821
14822 2019-04-04 Martin Sebor <msebor@redhat.com>
14823
14824 PR middle-end/89957
14825 PR middle-end/89911
14826 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14827 have the same precision since the function crashes otherwise.
14828 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14829 has non-zero arguments.
14830
14831 2019-04-04 Martin Sebor <msebor@redhat.com>
14832
14833 PR middle-end/89934
14834 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14835 out if the number of arguments is less than expected.
14836
14837 2019-04-04 Jeff Law <law@redhat.com>
14838
14839 PR rtl-optimization/89399
14840 * ree.c (combine_set_extension): Use single_set rather than
14841 digging into PATTERN for items on the candidate list.
14842 (combine_reaching_defs): Likewise.
14843
14844 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14845
14846 PR rtl-optimization/46590
14847 * loop-invariant.c (find_defs): Move df_remove_problem and
14848 df_process_deferred_rescans to move_invariants.
14849 Move df_live_add_problem and df_live_set_all_dirty calls
14850 to move_invariants.
14851 (move_invariants): Likewise.
14852 (move_loop_invariants): Likewise, making the df_live calls
14853 conditional on -O. Remove the problem again if we added it
14854 locally.
14855
14856 2019-04-03 qing zhao <qing.zhao@oracle.com>
14857
14858 PR tree-optimization/89730
14859 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14860 -flive-patching=inline-only-static.
14861 (can_inline_edge_by_limits_p): Add the checking for
14862 -flive-patching=inline-only-static and grant always_inline
14863 even when -flive-patching=inline-only-static is specified.
14864
14865 2019-04-03 Jeff Law <law@redhat.com>
14866
14867 PR rtl-optimization/81025
14868 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14869
14870 2019-04-03 Richard Biener <rguenther@suse.de>
14871
14872 PR tree-optimization/84101
14873 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14874 regs.h for hard_regno_nregs.
14875 (cfun_returns): New helper.
14876 (vect_model_store_cost): When vectorizing a store to a decl
14877 we return and the function ABI returns in a multi-reg location
14878 account for the possible spilling that will happen.
14879
14880 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
14881
14882 * config/s390/s390.c (s390_legitimate_address_p): Reject long
14883 displacement addresses for vector mode operands.
14884
14885 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
14886
14887 * config/arc/arc.c (GMASK_LEN): Define.
14888 (arc_restore_callee_saves): Restore first blink when
14889 !optimize_size.
14890
14891 2019-04-03 Sudakshina Das <sudi.das@arm.com>
14892
14893 * doc/extend.texi: Add deprecated comment on sign-return-address
14894 function attribute and add mbranch-protection.
14895 * doc/invoke.texi: Add bti to the options for mbranch-protection.
14896
14897 2019-04-03 Richard Biener <rguenther@suse.de>
14898
14899 PR lto/89896
14900 * lto-wrapper.c (run_gcc): Avoid implicit rules making
14901 the all target phony.
14902
14903 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
14904
14905 PR target/89902
14906 PR target/89903
14907 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14908 Return false for variable DImode shifts.
14909 (dimode_scalar_chain::compute_convert_gain): Do not handle
14910 register count operand in variable DImode shifts.
14911 (dimode_scalar_chain::make_vector_copies): Remove support to copy
14912 count argument of a variable shift instruction to a vector register.
14913 (dimode_scalar_chain::convert_reg): Remove support to convert
14914 count argument of a variable shift instruction.
14915
14916 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14917
14918 PR rtl-optimization/84206
14919 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
14920 iterating over loop headers.
14921
14922 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14923
14924 PR rtl-optimization/85876
14925 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
14926 beyond the original fence.
14927
14928 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
14929
14930 * config.gcc: Mark spu* targets as deprecated/obsolete.
14931
14932 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14933
14934 * config/s390/s390-builtin-types.def: New builtin function type
14935 definitions. Remove unused types.
14936 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
14937 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
14938 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
14939 overloaded builtins.
14940 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
14941 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
14942 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
14943 (vec_double, vec_signed, vec_unsigned): Define to use the new
14944 overloaded builtins.
14945 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
14946 Remove expanders.
14947
14948 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14949
14950 * config/s390/s390-builtin-types.def: New builtin function type
14951 definitions.
14952 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
14953 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
14954 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
14955 (s390_vstrszh, s390_vstrszf): New low-level builtins.
14956 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
14957 constant definitions.
14958 * config/s390/vecintrin.h (vec_search_string_cc)
14959 (vec_search_string_until_zero_cc): New builtin name definitions.
14960 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
14961 expanders.
14962 ("vec_vstrs<mode>"): New insn definition.
14963
14964 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14965
14966 * config/s390/s390-builtin-types.def: Add new builtin function
14967 types.
14968 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
14969 New overloaded builtins.
14970 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
14971 s390_vsrd.
14972 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
14973 (UNSPEC_VEC_SLDBYTE): ... this.
14974 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
14975 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
14976 definitions.
14977 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
14978 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
14979 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
14980
14981 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14982
14983 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
14984 New insn definition.
14985 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
14986 * config/s390/vector.md (V_HW_HSD): ... here.
14987
14988 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14989
14990 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
14991 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
14992 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
14993 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
14994 New insn definitions.
14995
14996 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14997
14998 * config/s390/s390-builtin-types.def: Add new builtin function type.
14999 * config/s390/s390-builtins.def: Add overloaded builtin
15000 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
15001 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
15002 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
15003 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
15004 ("eltswap<mode>"): New expander.
15005 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
15006 insn definitions.
15007
15008 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15009
15010 * config/s390/s390-builtin-types.def: Add new builtin function types.
15011 * config/s390/s390-builtins.def: Add overloaded builtin
15012 s390_vec_revb. Add low-level builtins for vlbr and vstbr
15013 instructions.
15014 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
15015 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
15016 ("bswap<mode>"): New expander.
15017 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
15018
15019 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15020
15021 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
15022 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
15023 vector builtin version number in __VEC__.
15024
15025 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15026
15027 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
15028 iterators.
15029 (SFSI): New mode attribute.
15030 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
15031 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
15032 rename to ...
15033 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
15034 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
15035 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
15036 ("floatsi<mode>2"): Add wcefb instruction.
15037
15038 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15039
15040 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
15041 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
15042 mode iterators.
15043 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
15044 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
15045 support 32 bit fp-int conversions. Rename to ...
15046 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15047 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15048 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
15049 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
15050 ... to these.
15051
15052 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15053
15054 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
15055 if-then-else constructs if we can use the select instruction.
15056 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
15057
15058 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15059
15060 * config/s390/s390.md ("*popcountdi_arch13_cc")
15061 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
15062 definition.
15063 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
15064 Append _z196 to make it ...
15065 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
15066 ("popcounthi2_z196"): ... this.
15067 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
15068 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
15069
15070 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15071
15072 * config/s390/s390.c (s390_canonicalize_comparison): Convert
15073 certain compares for arch13 in order to make use of the condition
15074 code result produced by the new instructions.
15075 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
15076 nxrk, and nxgrk instruction patterns.
15077 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
15078 (inv_no): Add new code iterator together with some attributes.
15079 ("*andc_split_<mode>"): Disable splitter for arch13.
15080 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
15081 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
15082 ("*<ANDOR:bitops_name>c<GPR:mode>")
15083 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
15084 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
15085 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
15086 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
15087
15088 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15089
15090 * common/config/s390/s390-common.c (processor_flags_table): New
15091 entry for arch13.
15092 * config.gcc: Support arch13 with the --with-arch= configure flag.
15093 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15094 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
15095 * config/s390/s390.c (s390_get_sched_attrmask)
15096 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
15097 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
15098 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
15099 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
15100 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
15101 definitions.
15102 * config/s390/s390.opt: Support arch13 as processor type in
15103 command line options.
15104
15105 2019-04-02 Martin Liska <mliska@suse.cz>
15106
15107 PR translation/89912
15108 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
15109 Fix param description of graphite-max-arrays-per-scop.
15110
15111 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
15112
15113 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
15114 (ASAN_CC1_SPEC): Use it in 64-bit mode.
15115 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
15116
15117 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15118
15119 PR rtl-optimization/85412
15120 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
15121 sel_sched_region_1, not after.
15122
15123 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15124
15125 PR rtl-optimization/86928
15126 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
15127 compute_live if necessary.
15128 (sel_redirect_edge_and_branch): Likewise.
15129
15130 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
15131
15132 PR rtl-optimization/89865
15133 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
15134 register if it is a part of small class.
15135
15136 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15137
15138 PR rtl-optimization/87273
15139 * sel-sched-ir.c (merge_fences): Remove assert.
15140
15141 2019-04-01 Richard Biener <rguenther@suse.de>
15142
15143 PR tree-optimization/46590
15144 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
15145 (dom_walker::m_reachability): Add in place of...
15146 (dom_walker::m_skip_unreachable_blocks): ...this.
15147 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
15148 Move complex initialization ...
15149 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
15150 lazily and initialize edge flags on each invocation.
15151 (dom_walker::bb_reachable): Use m_reachability.
15152
15153 2019-04-01 Martin Liska <mliska@suse.cz>
15154
15155 PR driver/89861
15156 * opt-suggestions.c (option_proposer::build_option_suggestions):
15157 Add variant without any argument in order to provide better
15158 hints.
15159
15160 2019-04-01 Richard Biener <rguenther@suse.de>
15161
15162 PR c/71598
15163 * gimple.c: Include langhooks.h.
15164 (gimple_get_alias_set): Treat enumeral types as the underlying
15165 integer type.
15166
15167 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15168 Eric Botcazou <ebotcazou@adacore.com>
15169
15170 PR rtl-optimization/89862
15171 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
15172 that operates on the full registers for WORD_REGISTER_OPERATIONS
15173 architectures.
15174
15175 2019-03-29 Jim Wilson <jimw@sifive.com>
15176
15177 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
15178 Clear MASK_RVC and then set if C subset supported.
15179
15180 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15181
15182 PR c/89872
15183 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
15184 non-addressable complit into its initializer if it is volatile.
15185
15186 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
15187
15188 * opts-common.c (integral_argument): Set errno properly in one case.
15189
15190 2019-03-29 Martin Liska <mliska@suse.cz>
15191
15192 * doc/invoke.texi: Remove -Wchkp from documentation.
15193
15194 2019-03-29 Martin Liska <mliska@suse.cz>
15195
15196 * dbgcnt.c (print_limit_reach): New function.
15197 (dbg_cnt): Use it.
15198
15199 2019-03-29 Martin Liska <mliska@suse.cz>
15200
15201 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
15202 (dbg_cnt_process_opt): Parse first tokens aas
15203 dbg_cnt_process_single_pair is also using strtok.
15204
15205 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15206
15207 PR rtl-optimization/87485
15208 * function.c (expand_function_end): Move stack_protect_epilogue
15209 before loading of return value into hard register(s).
15210
15211 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15212
15213 PR middle-end/89621
15214 * tree-inline.h (struct copy_body_data): Add
15215 dont_remap_vla_if_no_change flag.
15216 * tree-inline.c (remap_type_3, remap_type_2): New functions.
15217 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
15218 and remap_type_2 returns false.
15219 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
15220 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
15221 only from where it is copied to nested contexts.
15222
15223 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15224
15225 PR target/89865
15226 * config/i386/i386.md (RMW operation with LEA peephole):
15227 Use LEAMODE mode attribute instead of SWI mode iterator for
15228 LEA pattern.
15229
15230 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15231
15232 PR target/89848
15233 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
15234 Also process XEXP (src, 0) of a shift insn.
15235
15236 2019-03-28 David Malcolm <dmalcolm@redhat.com>
15237
15238 PR middle-end/89725
15239 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
15240 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
15241
15242 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15243
15244 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
15245 test.
15246 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
15247 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
15248 immediately after first one with df_analyze in between, but rather
15249 process all bbs, queueing ones that need second pass in a worklist,
15250 df_analyze, process queued debug insn changes and if second pass is
15251 needed, process bbs from worklist, df_analyze, process queued debug
15252 insns again.
15253
15254 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
15255 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
15256 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
15257
15258 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
15259
15260 PR c/79022
15261 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
15262 definition.
15263
15264 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
15265
15266 PR target/85667
15267 * config/i386/i386.c (ix86_function_value_1): Call the newly added
15268 function for 32-bit MS_ABI.
15269 (function_value_ms_32): New function.
15270
15271 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
15272
15273 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
15274 (movdi): Call gen_movdi_symbol_save_scc.
15275 (gen_movdi_symbol_save_scc): New insn and split.
15276
15277 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
15278
15279 PR rtl-optimization/89313
15280 * function.c (matching_constraint_num): New static function.
15281 (match_asm_constraints_1): Use it. Fixup white space and comment.
15282 Don't replace inputs with non-matching constraints which conflict
15283 with early clobber outputs.
15284
15285 2019-03-27 Jeff Law <law@redhat.com>
15286
15287 PR rtl-optimization/87761
15288 PR rtl-optimization/89826
15289 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
15290 slightly later.
15291 (pass_cprop_hardreg::execute): Call df_analyze after adding the
15292 note problem to get REG_DEAD/REG_UNUSED notes updated.
15293
15294 2019-03-27 Richard Biener <rguenther@suse.de>
15295
15296 PR tree-optimization/89463
15297 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
15298 queue edges to remove.
15299 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
15300 dead stmts. Delay edge removal until PHIs are removed to
15301 make debug-stmt creation not confused by seemingly degenerate
15302 PHIs.
15303
15304 2019-03-27 Alan Modra <amodra@gmail.com>
15305
15306 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
15307 throughout file.
15308 * config/rs6000/darwin.h: Likewise.
15309 * config/rs6000/rs6000.c: Likewise.
15310
15311 2019-03-27 Alan Modra <amodra@gmail.com>
15312
15313 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
15314 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
15315
15316 2019-03-26 Andrew Waterman <andrew@sifive.com>
15317 Jim Wilson <jimw@sifive.com>
15318
15319 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
15320 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
15321 (generic_idivdi, generic_fmul_single, generic_fmul_double)
15322 (generic_fdiv, generic_fsqrt): Add check for generic tune.
15323 (generic_alu): Add auipc to type list.
15324 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
15325 (riscv_microarchitecture): Declare.
15326 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
15327 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
15328 field.
15329 (riscv_microarchitecture): New.
15330 (sifive_7_tune_info): New.
15331 (riscv_cpu_info_table): Add microarchitecture value for rocket and
15332 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
15333 entries.
15334 (riscv_store_data_bypass_p): New.
15335 (riscv_option_override): Set riscv_microarchitecture from
15336 cpu->microarchitecture.
15337 * config/riscv/riscv.md: Include sifive-7.md.
15338 (type): Add auipc.
15339 (tune): New.
15340 (auipc<mode>): Change type to auipc.
15341 (restore_stack_nonlocal): New.
15342 * config/riscv/sifive-7.md: New.
15343 * doc/invoke.texi (RISC-V Options): Update mtune docs.
15344
15345 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
15346
15347 PR target/89827
15348 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
15349 Also process XEXP (src, 0) of a shift insn.
15350
15351 2019-03-26 Richard Biener <rguenther@suse.de>
15352
15353 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
15354 (copy_debug_stmt): Likewise.
15355 (expand_call_inline): Likewise.
15356 (copy_bb): Avoid redundant lookup & set of gimple_block.
15357 * gimple-low.c (lower_gimple_return): Likewise.
15358 (lower_builtin_setjmp): Likewise.
15359
15360 2019-03-26 Jakub Jelinek <jakub@redhat.com>
15361
15362 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
15363 is constant 0, turn into static const data member initialized to false.
15364 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
15365 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
15366
15367 2019-03-26 Jason Merrill <jason@redhat.com>
15368 Jakub Jelinek <jakub@redhat.com>
15369
15370 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
15371 method.
15372 (mem_alloc_description::release_object_overhead): Fix comment typos.
15373 * hash-table.h (hash_table::~hash_table): Call
15374 release_instance_overhead only if m_entries is non-NULL, otherwise
15375 call unregister_descriptor.
15376
15377 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
15378
15379 PR tree-optimization/81740
15380 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15381 In case of outer loop vectorization, check for backward dependence
15382 at the inner loop if outer loop dependence is reversed.
15383
15384 2019-03-26 Alan Modra <amodra@gmail.com>
15385
15386 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
15387 rs6000_vector_mem init. Correct wI and wJ comment.
15388
15389 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
15390
15391 PR rtl-optimization/88347
15392 PR rtl-optimization/88423
15393 * sched-deps.c (sched_analyze_insn): Take into account that for
15394 tablejumps the barrier appears after a label and a jump_table_data.
15395
15396 2019-03-25 Martin Sebor <msebor@redhat.com>
15397
15398 PR c/89812
15399 * c-common.c (check_user_alignment): Rename local. Correct maximum
15400 alignment in diagnostic. Avoid assuming argument fits in SHWI,
15401 convert it to UHWI when it fits.
15402
15403 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
15404
15405 PR debug/86964
15406 * dwarf2out.c (premark_used_variables): New function.
15407 (prune_unused_types_walk): Do not mark not premarked external
15408 variables.
15409 (prune_unused_types): Call premark_used_variables.
15410
15411 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
15412
15413 PR rtl-optimization/89676
15414 * lra-constraints.c (curr_insn_transform): Do match reload for
15415 early clobbers when the match was successful only for different
15416 registers.
15417
15418 2019-03-25 Martin Sebor <msebor@redhat.com>
15419
15420 * doc/extend.texi (Common Type Attributes): Document vector_size.
15421 (Common Variable Attributes): Mention size constraint. Correct
15422 quoting and typos.
15423 (Vector Extensions): Use @dfn when defining bas type. Clarify
15424 base type and size constraints.
15425
15426 2019-03-25 Richard Biener <rguenther@suse.de>
15427
15428 PR tree-optimization/89789
15429 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
15430 changes from non-undefined back to undefined.
15431
15432 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
15433
15434 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
15435 heap string and a gc string, but since this variable is unknown to
15436 ggc the gc string might get reused and corrupted. Fixed by always
15437 using a heap string.
15438
15439 2019-03-25 Richard Biener <rguenther@suse.de>
15440
15441 PR tree-optimization/89779
15442 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
15443 to remove IV defs, delay actual removal.
15444 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
15445 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
15446 very end, properly also reset loop control IV information.
15447
15448 2019-03-25 Richard Biener <rguenther@suse.de>
15449
15450 PR tree-optimization/89802
15451 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
15452 move EH data to folded stmt.
15453
15454 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15455
15456 * config/s390/s390-builtin-types.def: Remove few unused types and
15457 fix sort order for others.
15458
15459 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15460
15461 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
15462 expected and found types with -mdebug during builtin matching.
15463
15464 2019-03-25 Richard Biener <rguenther@suse.de>
15465
15466 PR middle-end/89790
15467 * fold-const.c (operand_equal_p): Revert last change with
15468 updated comment.
15469
15470 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
15471
15472 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
15473 notes for the result of the __tls_get_addr calls.
15474 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
15475
15476 2019-03-24 Jeff Law <law@redhat.com>
15477
15478 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
15479
15480 PR rtl-optimization/87761
15481 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
15482 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
15483 as needed.
15484 (pass_cprop_hardreg::execute): Add df note problem and defer insn
15485 rescans. Reprocess blocks as needed, calling df_analyze before
15486 reprocessing. Always call df_analyze before fixing up debug bind
15487 insns.
15488
15489 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
15490
15491 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
15492 big endian.
15493
15494 2019-03-22 Andrew Pinski <apinski@marvell.com>
15495
15496 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
15497 attrribute for uxtw.
15498
15499 2019-03-26 Jeff Law <law@redhat.com>
15500
15501 PR rtl-optimization/87761
15502 * config/mips/mips-protos.h (mips_split_move): Add new argument.
15503 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
15504 (mips_split_move): Accept new INSN argument. Try to forward SRC
15505 into the next instruction.
15506 (mips_split_move_insn): Pass INSN through to mips_split_move.
15507
15508 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
15509
15510 PR rtl-optimization/89676
15511 * lra-constraints.c (curr_insn_transform): Do match reload for
15512 early clobbers even if the match was successful.
15513
15514 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15515
15516 PR c++/87481
15517 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
15518
15519 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
15520
15521 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
15522
15523 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15524
15525 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
15526 <avx512>_fmsub_<mode>_mask3<round_name>,
15527 <avx512>_fnmadd_<mode>_mask3<round_name>,
15528 <avx512>_fnmsub_<mode>_mask3<round_name>,
15529 avx512f_vmfmadd_<mode>_mask3<round_name>,
15530 avx512f_vmfmsub_<mode>_mask3<round_name>,
15531 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
15532 instead of register_operand and %v instead of v for match_operand 1.
15533 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
15534 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
15535 <round_nimm_predicate> instead of register_operand and %v instead of v
15536 for match_operand 1.
15537
15538 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
15539 <avx512>_fmadd_<mode>_mask3<round_name>,
15540 <avx512>_fmsub_<mode>_mask<round_name>,
15541 <avx512>_fmsub_<mode>_mask3<round_name>,
15542 <avx512>_fnmadd_<mode>_mask<round_name>,
15543 <avx512>_fnmadd_<mode>_mask3<round_name>,
15544 <avx512>_fnmsub_<mode>_mask<round_name>,
15545 <avx512>_fnmsub_<mode>_mask3<round_name>,
15546 <avx512>_fmaddsub_<mode>_mask<round_name>,
15547 <avx512>_fmaddsub_<mode>_mask3<round_name>,
15548 <avx512>_fmsubadd_<mode>_mask<round_name>,
15549 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
15550 <round_nimm_predicate> instead of nonimmediate_operand.
15551 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
15552 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15553 Use register_operand instead of <round_nimm_predicate> for the
15554 operand that needs to match output.
15555 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15556 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15557 Likewise. Formatting fixes.
15558
15559 PR target/89784
15560 * config/i386/i386.c (enum ix86_builtins): Remove
15561 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15562 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15563 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15564 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15565 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15566 __builtin_ia32_vfmsubss3_mask3): New builtins.
15567 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15568 avx512f_vmfmadd_<mode>_mask3<round_name>,
15569 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15570 *avx512f_vmfmsub_<mode>_mask<round_name>,
15571 avx512f_vmfmsub_<mode>_mask3<round_name>,
15572 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15573 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15574 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15575 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15576 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15577 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15578 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15579 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15580 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15581 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15582 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15583 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15584 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15585 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15586 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15587 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15588 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15589 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15590 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15591 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15592 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15593 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15594 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15595 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15596 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15597 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15598 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15599 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15600
15601 2019-03-21 Martin Sebor <msebor@redhat.com>
15602
15603 PR tree-optimization/89350
15604 * builtins.c (compute_objsize): Also ignore offsets whose upper
15605 bound is negative.
15606 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15607 (builtin_memref::builtin_memref): Initialize new member.
15608 Allow EXPR to be null.
15609 (builtin_memref::extend_offset_range): Replace local with a member.
15610 Avoid assuming pointer offsets are unsigned.
15611 (builtin_memref::set_base_and_offset): Determine base object
15612 before computing offset range.
15613 (builtin_access::builtin_access): Handle memset.
15614 (builtin_access::generic_overlap): Replace local with a member.
15615 (builtin_access::strcat_overlap): Same.
15616 (builtin_access::overlap): Same.
15617 (maybe_diag_overlap): Same.
15618 (maybe_diag_access_bounds): Same.
15619 (wrestrict_dom_walker::check_call): Handle memset.
15620 (check_bounds_or_overlap): Same.
15621
15622 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15623 Jakub Jelinek <jakub@redhat.com>
15624
15625 PR lto/89692
15626 * tree.c (fld_type_variant, fld_incomplete_type_of,
15627 fld_process_array_type): Call fld->pset.add and don't call
15628 add_tree_to_fld_list if it returns true.
15629 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15630 non-marked types from TYPE_NEXT_VARIANT list.
15631 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15632
15633 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15634
15635 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15636 to false, if true, don't alloc_entries during construction, but defer
15637 it to the first method that needs m_entries allocated.
15638 (hash_table::hash_table, hash_table::~hash_table,
15639 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15640 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15641 hash_table::clear_slot, hash_table::traverse_noresize,
15642 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15643 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15644 false.
15645 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15646 NO_INSERT instead of find_with_hash.
15647 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15648 hash_set::m_table): Add Lazy to template params of hash_table.
15649 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15650 * attribs.c (test_attribute_exclusions): Likewise.
15651 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15652 hash_set. Add tests for hash_set with Lazy = true.
15653
15654 2019-03-21 Richard Biener <rguenther@suse.de>
15655
15656 PR tree-optimization/89779
15657 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15658 checks with respect to released SSA names now having error_mark_node
15659 type.
15660 * fold-const.c (operand_equal_p): Likewise.
15661
15662 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15663
15664 PR target/89775
15665 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15666 available to ...
15667 (s390_optimize_register_info): Use global_not_special_regno_p to
15668 check for global regs.
15669
15670 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15671
15672 PR target/89752
15673 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15674 update this_alternative nor this_alternative_set.
15675
15676 2019-03-19 Jim Wilson <jimw@sifive.com>
15677
15678 PR target/89411
15679 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15680 align, size, offset. Use them to handle a BLKmode reference. Update
15681 comment.
15682 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15683
15684 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15685
15686 PR rtl-optimization/89768
15687 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15688 instead of GEN_INT.
15689 (unroll_loop_runtime_iterations): Likewise.
15690
15691 2019-03-19 Martin Sebor <msebor@redhat.com>
15692
15693 PR tree-optimization/89644
15694 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15695 rather than endptr as an indicator of nul-termination.
15696
15697 PR tree-optimization/89644
15698 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15699 arrays in determining sequence sizes in strncpy and stpncpy.
15700
15701 2019-03-19 Martin Liska <mliska@suse.cz>
15702
15703 PR middle-end/89737
15704 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15705 unlikely_edges if there's an edge that belongs to both these sets.
15706
15707 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15708
15709 PR target/89746
15710 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15711 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15712 go via a stack temporary.
15713
15714 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15715
15716 PR target/89378
15717 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15718 instead of gen_rtx_SUBREG.
15719 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15720
15721 2019-03-19 Richard Biener <rguenther@suse.de>
15722
15723 PR debug/88389
15724 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15725
15726 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15727
15728 PR lto/87809
15729 PR lto/89335
15730 * tree.c (free_lang_data_in_decl): Do not free context of C++
15731 destrutors.
15732
15733 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15734
15735 PR target/89506
15736 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15737 subs for the first alternative except when operands[3] is 1.
15738
15739 PR target/89752
15740 * gimplify.c (gimplify_asm_expr): For output argument with
15741 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15742 diagnose error.
15743
15744 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15745
15746 PR rtl-optimization/89753
15747 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15748 explicit unrolling factor even more robust.
15749
15750 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15751
15752 PR target/89726
15753 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15754 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15755 signed zeros, do another copysign after the compensation.
15756
15757 2019-03-18 Martin Sebor <msebor@redhat.com>
15758
15759 PR tree-optimization/89720
15760 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15761 more conservatively, the same as anti-range.
15762
15763 2019-03-18 Richard Biener <rguenther@suse.de>
15764
15765 PR middle-end/88945
15766 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15767 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15768 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15769 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15770
15771 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15772
15773 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15774 Extend queue to 1024 entries.
15775 Add "consumed" field.
15776 (gomp_print_output): Remove print_index parameter.
15777 Add final parameter.
15778 Change limit to unsigned.
15779 Use consumed field to implement circular buffer.
15780 Detect interrupted print in final pass.
15781 Flush output at the end.
15782 (run): Update gomp_print_output usage.
15783 (main): Initialize kernargs->output_data.consumed.
15784
15785 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15786
15787 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15788 calculation of the minimum number of scalar iterations for
15789 fully-predicated loops.
15790
15791 2019-03-18 Martin Jambor <mjambor@suse.cz>
15792
15793 PR tree-optimization/89546
15794 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15795 any propagation to its children took place.
15796
15797 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15798
15799 PR target/89627
15800 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15801 parameter, and make use of it.
15802 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15803
15804 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15805
15806 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15807 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15808 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15809 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15810 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15811 match what the ops is doing.
15812 (push_multi_fp_blink): Likewise.
15813 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15814 compiling for size and elf target.
15815 (arc_save_callee_enter): Adjust note to match what enter/leave
15816 operation does.
15817
15818 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15819
15820 * config/arc/arc.md (tst_movb): Fix constraint.
15821
15822 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15823
15824 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15825
15826 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15827
15828 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15829 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15830 reg_alloc_order references.
15831 (size_alloc_order): Define.
15832 (arc_adjust_reg_alloc_order): New function.
15833 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15834 order.
15835 (ADJUST_REG_ALLOC_ORDER): Define.
15836 (HONOR_REG_ALLOC_ORDER): Likewise.
15837
15838 2019-03-18 Richard Biener <rguenther@suse.de>
15839
15840 PR target/87561
15841 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15842 loads and stores a bit more.
15843
15844 2019-03-18 Richard Biener <rguenther@suse.de>
15845
15846 PR target/87561
15847 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15848 load pessimization to stores as well.
15849
15850 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15851
15852 PR middle-end/86979
15853 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15854 successor, use NULL as its av set.
15855
15856 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15857
15858 PR rtl-optimization/89721
15859 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15860
15861 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15862
15863 PR target/87532
15864 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15865 When handling vec_extract, use modular arithmetic to allow
15866 constant selectors greater than vector length.
15867 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15868 V1TImode vectors to have constant selector values greater than 0.
15869 Use modular arithmetic to compute vector index.
15870 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15871 index for in-memory vectors. Correct code generation for
15872 in-register vectors.
15873 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15874 compute index.
15875
15876 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
15877
15878 PR c++/88534
15879 PR c++/88537
15880 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
15881 VAR_DECL args.
15882
15883 2019-03-15 Jakub Jelinek <jakub@redhat.com>
15884
15885 PR c++/89709
15886 * tree.c (inchash::add_expr): Strip any location wrappers.
15887 * fold-const.c (operand_equal_p): Move stripping of location wrapper
15888 after hash verification.
15889
15890 PR debug/89704
15891 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
15892 SIGN_EXTEND and ZERO_EXTEND.
15893
15894 2019-03-14 Jason Merrill <jason@redhat.com>
15895 Jakub Jelinek <jakub@redhat.com>
15896
15897 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
15898 than if is_empty (*slot).
15899 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
15900 existing elt and for elt removal.
15901 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
15902 of already removed elt.
15903
15904 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
15905
15906 PR target/89650
15907 * config/i386/i386.c (remove_partial_avx_dependency): Handle
15908 REG_EH_REGION note.
15909
15910 2019-03-14 Martin Liska <mliska@suse.cz>
15911
15912 PR other/89712
15913 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
15914
15915 2019-03-14 Richard Biener <rguenther@suse.de>
15916
15917 PR target/89711
15918 * config/i386/i386.c (make_resolver_func): Properly set
15919 DECL_CONTEXT on the RESULT_DECL.
15920 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
15921
15922 2019-03-14 Richard Biener <rguenther@suse.de>
15923
15924 * gimple-pretty-print.c: Include cfgloop.h.
15925 (dump_gimple_phi): Adjust.
15926 (dump_gimple_bb_header): Dump loop header for GIMPLE.
15927 (pp_cfg_jump): Adjust.
15928 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
15929 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
15930 (lower_phi_internal_fn): Remove.
15931 (verify_gimple_call): Remove IFN_PHI special-casing.
15932 (dump_function_to_file): Dump IL state.
15933 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
15934 done to deal with PHI nodes being present in non-SSA state.
15935
15936 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15937
15938 PR ipa/89684
15939 * multiple_target.c (create_dispatcher_calls): Change
15940 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
15941 In the node->iterate_referring loop, push *ref rather than ref, call
15942 ref->remove_reference () and always pass 0 to iterate_referring.
15943
15944 PR rtl-optimization/89679
15945 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
15946 would contain a paradoxical SUBREG.
15947
15948 2019-03-14 Richard Biener <rguenther@suse.de>
15949
15950 PR tree-optimization/89710
15951 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
15952 safe_dyn_cast.
15953
15954 2019-03-14 Martin Liska <mliska@suse.cz>
15955
15956 * coverage.c (coverage_begin_function): Stream also
15957 end_column.
15958 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
15959 documentation about function declaration location.
15960 * gcov-dump.c (tag_function): Print whole range
15961 of function declaration.
15962 * gcov.c (struct function_info): Add end_column field.
15963 (function_info::function_info): Initialize it.
15964 (output_json_intermediate_file): Output {start,end}_column
15965 fields.
15966 (read_graph_file): Read end_column.
15967
15968 2019-03-14 Richard Biener <rguenther@suse.de>
15969
15970 PR middle-end/89698
15971 * fold-const.c (operand_equal_p): For INDIRECT_REF check
15972 that the access types are similar.
15973
15974 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15975
15976 PR tree-optimization/89703
15977 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
15978 aren't compatible also with builtin_decl_explicit. Check pure
15979 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
15980 and BUILT_IN_STPNCPY{,_CHK}.
15981
15982 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
15983
15984 PR target/89523
15985 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
15986 addr32 prefix to VSIB address for X32.
15987 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
15988 "%M2" to opcode.
15989 (*avx512pf_gatherpf<mode>df_mask): Likewise.
15990 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
15991 (*avx512pf_scatterpf<mode>df_mask): Likewise.
15992 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
15993 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
15994 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
15995 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
15996 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
15997 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
15998 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
15999 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
16000 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
16001 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
16002 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
16003 (*avx512f_scatterdi<mode>): Likewise.
16004
16005 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
16006
16007 PR target/85860
16008 * lra-constraints.c (inherit_in_ebb): Update
16009 potential_reload_hard_regs along with live_hard_regs.
16010
16011 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16012
16013 PR debug/89498
16014 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
16015 DWARF_OFFSET_SIZE.
16016 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
16017
16018 2019-03-13 Martin Sebor <msebor@redhat.com>
16019
16020 PR tree-optimization/89662
16021 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
16022 has a size.
16023
16024 2019-03-13 Richard Biener <rguenther@suse.de>
16025
16026 PR middle-end/89677
16027 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
16028 throw FP expressions at tree-affine.
16029
16030 2019-03-14 Richard Biener <rguenther@suse.de>
16031
16032 * tree-pretty-print.c (dump_generic_node): For -gimple properly
16033 dump negative integer constants using _Literal (type) -num.
16034
16035 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16036
16037 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
16038 nonlocal_value member.
16039
16040 PR middle-end/88588
16041 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
16042 (ipa_simd_modify_function_body): Handle PHIs.
16043
16044 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16045
16046 * config/s390/s390.c (s390_option_override_internal): Use more
16047 aggressive inlining parameters.
16048
16049 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16050
16051 * config/s390/3906.md: New file.
16052 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16053 (LONGRUNNING_THRESHOLD): Remove.
16054 (MAX_SCHED_MIX_SCORE): Decrease.
16055 (MAX_SCHED_MIX_DISTANCE): Decrease.
16056 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
16057 (struct s390_sched_state): New struct to hold scheduling state.
16058 (S390_SCHED_STATE_NORMAL): Remove.
16059 (S390_SCHED_STATE_CRACKED): Remove.
16060 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
16061 (s390_get_sched_attrmask): Use new attribute.
16062 (s390_get_unit_mask): Use new units.
16063 (s390_is_fpd): New function.
16064 (s390_is_fxd): New function.
16065 (s390_is_longrunning): New function.
16066 (s390_sched_score): Use new functions.
16067 (s390_sched_reorder): Likewise.
16068 (s390_sched_variable_issue): Rework and use new functions.
16069 (s390_sched_init): Use new functions.
16070 * config/s390/s390.h (s390_tune_attr): Add z14.
16071 * config/s390/s390.md: Add z14.
16072
16073 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16074
16075 * config/s390/2964.md: Update pipeline description.
16076 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16077 (LONGRUNNING_THRESHOLD): Remove.
16078 (LATENCY_FACTOR): Remove.
16079 (s390_get_unit_mask): Add unit.
16080 (s390_sched_score): Use fxd/fpd.
16081 (s390_sched_variable_issue): Use fxd/fpd.
16082
16083 2019-03-12 Martin Liska <mliska@suse.cz>
16084
16085 * config/i386/i386.c: Reword an error message.
16086
16087 2019-03-12 Martin Jambor <mjambor@suse.cz>
16088
16089 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
16090 terminate with newline.
16091
16092 2019-03-12 Jakub Jelinek <jakub@redhat.com>
16093
16094 PR target/52726
16095 * config/s390/s390.md (tabort): Use %wd instead of
16096 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
16097 letters and periods.
16098 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
16099 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
16100 's with %< and %>.
16101
16102 PR middle-end/89663
16103 * builtins.c (expand_builtin_int_roundingfn,
16104 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
16105 gcc_unreachable if validate_arglist fails.
16106
16107 2019-03-12 Richard Biener <rguenther@suse.de>
16108
16109 PR tree-optimization/89664
16110 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
16111 free the occurance tree after the early out.
16112
16113 2019-03-11 Jakub Jelinek <jakub@redhat.com>
16114
16115 PR middle-end/89655
16116 PR bootstrap/89656
16117 * vr-values.c (vr_values::update_value_range): If
16118 old_vr->varying_p (), don't update it, make new_vr also VARYING
16119 and return false.
16120
16121 2019-03-11 Martin Liska <mliska@suse.cz>
16122
16123 * config/aarch64/aarch64.c (aarch64_override_options_internal):
16124 Fix double string quoting.
16125
16126 2019-03-11 Martin Liska <mliska@suse.cz>
16127
16128 * collect-utils.c (collect_wait): Wrap apostrophes
16129 in gcc internal format with %'.
16130 * collect2.c (main): Likewise.
16131 (scan_prog_file): Likewise.
16132 (scan_libraries): Likewise.
16133 * config/i386/i386.c (ix86_expand_call): Likewise.
16134 (ix86_handle_interrupt_attribute): Likewise.
16135 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16136 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16137 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
16138 * lto-wrapper.c (find_crtoffloadtable): Likewise.
16139 * symtab.c (symtab_node::verify_base): Likewise.
16140 * tree-cfg.c (verify_gimple_label): Likewise.
16141 * tree.c (verify_type_variant): Likewise.
16142
16143 2019-03-11 Martin Liska <mliska@suse.cz>
16144
16145 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
16146 in a string format message and fix GNU coding style.
16147 (expand_builtin_set_thread_pointer): Likewise.
16148 * common/config/aarch64/aarch64-common.c
16149 (aarch64_rewrite_selected_cpu): Likewise.
16150 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
16151 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
16152 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
16153 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
16154 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
16155 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
16156 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
16157 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
16158 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
16159 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
16160 Likewise.
16161 * common/config/riscv/riscv-common.c
16162 (riscv_subset_list::parsing_subset_version): Likewise.
16163 (riscv_subset_list::parse_std_ext): Likewise.
16164 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16165 (riscv_subset_list::parse): Likewise.
16166 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
16167 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
16168 (aarch64_override_options_internal): Likewise.
16169 (aarch64_validate_mcpu): Likewise.
16170 (aarch64_validate_march): Likewise.
16171 (aarch64_validate_mtune): Likewise.
16172 (aarch64_override_options): Likewise.
16173 * config/alpha/alpha.c (alpha_option_override): Likewise.
16174 * config/arc/arc.c (arc_init): Likewise.
16175 (parse_mrgf_banked_regs_option): Likewise.
16176 (arc_override_options): Likewise.
16177 (arc_expand_builtin_aligned): Likewise.
16178 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
16179 (arm_expand_builtin): Likewise.
16180 * config/arm/arm.c (arm_option_check_internal): Likewise.
16181 (arm_configure_build_target): Likewise.
16182 (arm_option_override): Likewise.
16183 (arm_options_perform_arch_sanity_checks): Likewise.
16184 (arm_handle_cmse_nonsecure_entry): Likewise.
16185 (arm_handle_cmse_nonsecure_call): Likewise.
16186 (arm_tls_referenced_p): Likewise.
16187 (thumb1_expand_prologue): Likewise.
16188 * config/avr/avr.c (avr_option_override): Likewise.
16189 * config/bfin/bfin.c (bfin_option_override): Likewise.
16190 * config/c6x/c6x.c (c6x_option_override): Likewise.
16191 * config/cr16/cr16.c (cr16_override_options): Likewise.
16192 * config/cris/cris.c (cris_option_override): Likewise.
16193 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
16194 * config/darwin-c.c (macosx_version_as_macro): Likewise.
16195 * config/darwin.c (darwin_override_options): Likewise.
16196 * config/frv/frv.c (frv_expand_builtin): Likewise.
16197 * config/h8300/h8300.c (h8300_option_override): Likewise.
16198 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
16199 (ix86_option_override_internal): Likewise.
16200 (warn_once_call_ms2sysv_xlogues): Likewise.
16201 (ix86_expand_prologue): Likewise.
16202 (split_stack_prologue_scratch_regno): Likewise.
16203 (ix86_warn_parameter_passing_abi): Likewise.
16204 * config/ia64/ia64.c (fix_range): Likewise.
16205 * config/m68k/m68k.c (m68k_option_override): Likewise.
16206 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
16207 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
16208 (mips_set_compression_mode): Likewise.
16209 * config/mmix/mmix.c (mmix_option_override): Likewise.
16210 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
16211 * config/msp430/msp430.c (msp430_option_override): Likewise.
16212 * config/nds32/nds32.c (nds32_option_override): Likewise.
16213 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
16214 (nios2_option_override): Likewise.
16215 (nios2_expand_custom_builtin): Likewise.
16216 * config/nvptx/mkoffload.c (main): Likewise.
16217 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
16218 * config/pa/pa.c (fix_range): Likewise.
16219 (pa_option_override): Likewise.
16220 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
16221 (riscv_option_override): Likewise.
16222 * config/rl78/rl78.c (rl78_option_override): Likewise.
16223 * config/rs6000/aix61.h: Likewise.
16224 * config/rs6000/aix71.h: Likewise.
16225 * config/rs6000/aix72.h: Likewise.
16226 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
16227 * config/rs6000/freebsd64.h: Likewise.
16228 * config/rs6000/linux64.h: Likewise.
16229 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
16230 (rs6000_expand_zeroop_builtin): Likewise.
16231 (rs6000_expand_mtfsb_builtin): Likewise.
16232 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
16233 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
16234 (rs6000_invalid_builtin): Likewise.
16235 (rs6000_expand_split_stack_prologue): Likewise.
16236 * config/rs6000/rtems.h: Likewise.
16237 * config/rx/rx.c (valid_psw_flag): Likewise.
16238 (rx_expand_builtin): Likewise.
16239 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16240 * config/s390/s390.c (s390_expand_builtin): Likewise.
16241 (s390_function_profiler): Likewise.
16242 (s390_option_override_internal): Likewise.
16243 (s390_option_override): Likewise.
16244 * config/sh/sh.c (sh_option_override): Likewise.
16245 (sh_builtin_saveregs): Likewise.
16246 (sh_fix_range): Likewise.
16247 * config/sh/vxworks.h: Likewise.
16248 * config/sparc/sparc.c (sparc_option_override): Likewise.
16249 * config/spu/spu.c (spu_option_override): Likewise.
16250 (fix_range): Likewise.
16251 * config/visium/visium.c (visium_option_override): Likewise.
16252 (visium_handle_interrupt_attr): Likewise.
16253 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
16254 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
16255 (dbg_cnt_process_opt): Likewise.
16256 * dwarf2out.c (output_dwarf_version): Likewise.
16257 * except.c (expand_eh_return): Likewise.
16258 * gcc.c (defined): Likewise.
16259 (driver_handle_option): Likewise.
16260 (process_command): Likewise.
16261 (compare_files): Likewise.
16262 (driver::prepare_infiles): Likewise.
16263 (driver::do_spec_on_infiles): Likewise.
16264 (driver::maybe_run_linker): Likewise.
16265 * omp-offload.c (oacc_parse_default_dims): Likewise.
16266 * opts-global.c (handle_common_deferred_options): Likewise.
16267 * opts.c (parse_sanitizer_options): Likewise.
16268 (common_handle_option): Likewise.
16269 (enable_warning_as_error): Likewise.
16270 * passes.c (enable_disable_pass): Likewise.
16271 * plugin.c (parse_plugin_arg_opt): Likewise.
16272 (default_plugin_dir_name): Likewise.
16273 * targhooks.c (default_expand_builtin_saveregs): Likewise.
16274 (default_pch_valid_p): Likewise.
16275 * toplev.c (init_asm_output): Likewise.
16276 (process_options): Likewise.
16277 (toplev::run_self_tests): Likewise.
16278 * tree-cfg.c (verify_gimple_call): Likewise.
16279 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
16280 (tree_inlinable_function_p): Likewise.
16281 * var-tracking.c (vt_find_locations): Likewise.
16282
16283 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
16284
16285 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
16286 only on the else branch.
16287
16288 2019-03-11 Martin Liska <mliska@suse.cz>
16289
16290 * gcov.c (output_intermediate_json_line): Print function
16291 name of each line.
16292 (output_json_intermediate_file): Add new argument.
16293 * doc/gcov.texi: Document the change.
16294
16295 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
16296
16297 PR rtl-optimization/89588
16298 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16299 explicit unrolling factor more robust.
16300
16301 2019-03-11 Richard Biener <rguenther@suse.de>
16302
16303 PR tree-optimization/89649
16304 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
16305 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
16306 on the prolog and epilog loops.
16307 (vect_loop_versioning): Return copy of loop.
16308 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
16309 on the non-vectorized version of the loop.
16310
16311 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
16312
16313 PR target/68924
16314 * config/i386/sse.md (*vec_extractv2di_0_sse):
16315 Add (=r,x) alternative and corresponding splitter.
16316
16317 2019-03-10 Martin Jambor <mjambor@suse.cz>
16318
16319 PR tree-optimization/85762
16320 PR tree-optimization/87008
16321 PR tree-optimization/85459
16322 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
16323 it points to if there is a type changing MEM_REF. Adjust all callers.
16324 (build_accesses_from_assign): Disable total scalarization if
16325 contains_vce_or_bfcref_p returns true through the new parameter, for
16326 both rhs and lhs.
16327
16328 2019-03-09 Jakub Jelinek <jakub@redhat.com>
16329
16330 PR c/88568
16331 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
16332 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
16333
16334 PR target/79645
16335 * common.opt (fdiagnostics-show-labels,
16336 fdiagnostics-show-line-numbers, fdiagnostics-format=,
16337 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
16338 gas-locview-support, ginline-points, ginternal-reset-location-views):
16339 Terminate description text with a dot.
16340 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
16341 * config/mcore/mcore.opt (m210, m340): Likewise.
16342 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
16343 mnops=): Start description text with a capital letter.
16344 * config/arc/arc.opt (msize-level=): Likewise.
16345 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
16346 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
16347 mnewlib): Likewise.
16348 * config/ft32/ft32.opt (msim): Likewise.
16349 (mft32b, mcompress): Likewise. Terminate description text with a dot.
16350 (mnodiv, mnopm): Terminate description text with a dot.
16351 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
16352 a colon.
16353 * config/i386/i386.opt (prefer_vector_width, instrument_return):
16354 Likewise.
16355 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
16356 text.
16357
16358 PR rtl-optimization/89634
16359 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
16360 are modified in BB_END (e->src) instruction.
16361
16362 2019-03-08 David Malcolm <dmalcolm@redhat.com>
16363
16364 PR target/79926
16365 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
16366 messages more amenable to translation, and improve wording.
16367
16368 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
16369
16370 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
16371 ud- and du-chains between phases.
16372
16373 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
16374
16375 PR debug/89631
16376 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
16377 instead of POLY_INT_CST.
16378
16379 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
16380
16381 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
16382 requirement.
16383
16384 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
16385
16386 PR target/68924
16387 PR target/78782
16388 PR target/87558
16389 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
16390 (_mm_storeu_si64): Ditto.
16391
16392 2019-03-08 Martin Liska <mliska@suse.cz>
16393
16394 PR target/86952
16395 * config/i386/i386.c (ix86_option_override_internal): Disable
16396 jump tables when retpolines are used.
16397
16398 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
16399
16400 PR go/63560
16401 * ipa-split.c (execute_split_functions): Do not split
16402 'noinline' or 'section' function.
16403
16404 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16405
16406 PR target/79846
16407 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
16408 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
16409 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
16410
16411 PR ipa/80000
16412 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
16413 from diagnostics. Formatting fixes.
16414
16415 PR target/85665
16416 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
16417 warn_odr diagnostics.
16418
16419 PR other/80058
16420 * lra-constraints.c (process_alt_operands): Avoid one space before
16421 " at the end of line and another after " on another line in a string
16422 literal.
16423 * attribs.c (handle_dll_attribute): Likewise.
16424 * config/avr/avr-devices.c (avr_texinfo): Likewise.
16425
16426 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
16427 warning_at or inform messages in G_() if there is no ?:.
16428
16429 PR tree-optimization/89550
16430 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
16431 returned true. Formatting fixes.
16432 (expand_builtin_strnlen): Formatting fixes.
16433 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
16434 if warning_at returned true.
16435 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
16436
16437 2019-03-08 Richard Biener <rguenther@suse.de>
16438
16439 PR middle-end/89578
16440 * cfgloop.h (struct loop): Add owned_clique field.
16441 * cfgloopmanip.c (copy_loop_info): Copy it.
16442 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
16443 cliques.
16444 * tree-inline.c (copy_loops): Remap owned_clique.
16445 * lto-streamer-in.c (input_cfg): Stream owned_clique.
16446 * lto-streamer-out.c (output_cfg): Likewise.
16447
16448 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16449
16450 PR target/80190
16451 * config/darwin.c: Include intl.h.
16452 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
16453 composing the message out of two separate parts.
16454
16455 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16456
16457 PR target/80003
16458 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
16459 doesn't start with a capital letter and doesn't end with a dot.
16460 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
16461 with a capital letter.
16462 (ix86_mangle_function_version_assembler_name): Likewise.
16463 (ix86_generate_version_dispatcher_body): Likewise.
16464 (fold_builtin_cpu): Likewise.
16465 (get_builtin_code_for_version): Likewise. Remove extraneous space.
16466 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
16467 translators, wrap full type name in %qs.
16468
16469 PR translation/79999
16470 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
16471 depend clause with source (or sink) modifier.
16472 * omp-expand.c (expand_omp_ordered_sink): Likewise.
16473
16474 PR target/89602
16475 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
16476 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
16477 (avx512f_load<mode>_mask): New define_expand.
16478 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
16479 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
16480 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
16481 __builtin_ia32_movess_mask): New builtins.
16482 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
16483 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
16484 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
16485 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
16486
16487 2019-03-07 Martin Jambor <mjambor@suse.cz>
16488
16489 PR lto/87525
16490 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
16491 for extern inline functions.
16492
16493 2019-03-07 Martin Jambor <mjambor@suse.cz>
16494
16495 PR ipa/88235
16496 * cgraph.h (cgraph_node): New inline method former_thunk_p.
16497 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
16498 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
16499 have multiple callees. At the end check if declarations match as
16500 opposed to cgraph_nodes.
16501
16502 2019-03-07 Martin Liska <mliska@suse.cz>
16503
16504 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
16505 which is equivalent to searching for this in clones chain.
16506 * symtab.c (symtab_node::verify_base): Similarly compare ASM
16507 names with a neighbour and special case first node in a chain.
16508
16509 2019-01-25 Jason Merrill <jason@redhat.com>
16510
16511 PR c++/80916 - spurious "static but not defined" warning.
16512 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
16513 for an internal symbol with DECL_EXTERNAL.
16514
16515 2019-04-07 Richard Biener <rguenther@suse.de>
16516
16517 PR middle-end/89618
16518 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
16519 * tree-inline.c (copy_loops): Simplify.
16520
16521 2019-03-07 Martin Liska <mliska@suse.cz>
16522
16523 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
16524
16525 2019-03-07 Richard Biener <rguenther@suse.de>
16526
16527 PR tree-optimization/89595
16528 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
16529 stmt iterator as reference, take boolean output parameter to
16530 indicate whether the stmt was removed and thus the iterator
16531 already advanced.
16532 (dom_opt_dom_walker::before_dom_children): Re-iterate over
16533 stmts created by folding.
16534
16535 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16536
16537 PR c++/89585
16538 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
16539 at toplevel.
16540
16541 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
16542
16543 PR rtl-optimization/88845
16544 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
16545 LRA.
16546 * lra.c (remove_scratches_1): New function.
16547 (remove_scratches): Use it.
16548 (lra_emit_move): Likewise.
16549
16550 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
16551
16552 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16553 unaligned_access variable.
16554 * config/arc/arc.c (arc_override_options): Set unaligned access
16555 default on for HS CPUs.
16556 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16557
16558 2019-03-06 Martin Liska <mliska@suse.cz>
16559
16560 PR gcov-profile/89577
16561 * doc/gcov.texi: Prefer to use --coverage.
16562 * doc/sourcebuild.texi: Likewise.
16563
16564 2019-03-02 Jason Merrill <jason@redhat.com>
16565
16566 PR c++/86485 - -Wmaybe-unused with empty class ?:
16567 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16568
16569 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16570
16571 PR target/89587
16572 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16573 if_multiarch.
16574
16575 PR middle-end/89590
16576 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16577 exactly one argument.
16578
16579 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16580 Richard Sandiford <richard.sandiford@arm.com>
16581
16582 PR tree-optimization/89570
16583 * match.pd (vec_cond into cond_op simplification): Don't use
16584 get_conditional_internal_fn, use as_internal_fn (cond_op).
16585
16586 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16587
16588 PR target/89222
16589 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16590 to decide when to split off a non-zero offset from a symbol.
16591 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16592 in function symbols.
16593
16594 2019-03-05 Richard Biener <rguenther@suse.de>
16595
16596 PR tree-optimization/89594
16597 * tree-if-conv.c (pass_if_conversion::execute): Handle
16598 case where .LOOP_VECTORIZED_FUNCTION was removed.
16599
16600 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16601
16602 PR bootstrap/89560
16603 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16604 instead alloca it only when needed with the needed size.
16605
16606 PR tree-optimization/89570
16607 * match.pd (vec_cond into cond_op simplification): Guard with
16608 vectorized_internal_fn_supported_p test and #if GIMPLE.
16609
16610 PR tree-optimization/89566
16611 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16612 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16613 Punt if get_user_idx_format succeeds, but idx_format argument is
16614 not provided or doesn't have pointer type, or if idx_args is above
16615 number of provided arguments.
16616
16617 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16618
16619 PR tree-optimization/89437
16620 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16621
16622 2019-03-04 Richard Biener <rguenther@suse.de>
16623
16624 PR middle-end/89572
16625 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16626 safe_dyn_cast.
16627
16628 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16629
16630 PR tree-optimization/89487
16631 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16632 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16633 (distribute_loop): Don't do runtime alias check if there is non-
16634 addressable data reference.
16635 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16636 is a register variable.
16637
16638 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16639
16640 PR target/89506
16641 * config/arm/arm.md (cmpsi2_addneg): Use
16642 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16643 If operands[2] is 0 or INT_MIN, force use of subs.
16644 (*compare_scc splitter): Use gen_int_mode.
16645 (*negscc): Likewise.
16646 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16647
16648 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16649 Monk Chiang <sh.chiang04@gmail.com>
16650
16651 * common/config/riscv/riscv-common.c: Include sstream.
16652 (riscv_subset_list::to_string): New.
16653 (riscv_arch_str): Likewise.
16654 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16655 * config.in: Regen.
16656 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16657 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16658 (riscv_emit_attribute): New.
16659 (riscv_file_start): Emit attribute if needed.
16660 (riscv_option_override): Init riscv_emit_attribute_p.
16661 * config/riscv/riscv.opt (mriscv-attribute): New option.
16662 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16663 * configure: Regen.
16664 * doc/install.texi: Document --with-riscv-attribute.
16665 * doc/invoke.texi: Document -mriscv-attribute.
16666
16667 * common/config/riscv/riscv-common.c:
16668 Include config/riscv/riscv-protos.h.
16669 (INCLUDE_STRING): Defined.
16670 (RISCV_DONT_CARE_VERSION): Defined.
16671 (riscv_subset_t): Declare.
16672 (riscv_subset_t::riscv_subset_t): New.
16673 (riscv_subset_list): Declare.
16674 (riscv_subset_list::riscv_subset_list): New.
16675 (riscv_subset_list::~riscv_subset_list): Likewise.
16676 (riscv_subset_list::parsing_subset_version): Likewise.
16677 (riscv_subset_list::parse_std_ext): Likewise.
16678 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16679 (riscv_subset_list::add): Likewise.
16680 (riscv_subset_list::lookup): Likewise.
16681 (riscv_subset_list::xlen): Likewise.
16682 (riscv_subset_list::parse): Likewise.
16683 (riscv_supported_std_ext): Likewise.
16684 (current_subset_list): Likewise.
16685 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16686 parse.
16687
16688 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16689
16690 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16691 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16692 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16693
16694 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16695
16696 PR rtl-optimization/85899
16697 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16698 fallthru edges leading to the exit block.
16699
16700 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16701
16702 PR target/89517
16703 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16704 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16705
16706 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16707
16708 PR tree-optimization/89535
16709 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16710 for each operand. Calculate the fallback choice for mask operands
16711 and pass it to vect_get_vec_def_for_operand.
16712
16713 2019-03-01 Richard Biener <rguenther@suse.de>
16714
16715 PR middle-end/89541
16716 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16717 get virtual operands.
16718 (get_expr_operands): Handle CONST_DECL like other decls.
16719
16720 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16721
16722 PR middle-end/89503
16723 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16724 on DECL_P and EXPR_P.
16725
16726 2019-03-01 Richard Biener <rguenther@suse.de>
16727
16728 PR middle-end/89497
16729 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16730 argument, defaulted to zero.
16731 * passes.c (execute_function_todo): Pass down SSA update flags
16732 to cleanup_tree_cfg.
16733 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16734 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16735 form if requested.
16736 (cleanup_tree_cfg): Get and pass down SSA update flags.
16737
16738 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16739
16740 PR bootstrap/89539
16741 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16742 early_lto_debug argument.
16743
16744 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16745
16746 PR tree-optimization/89536
16747 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16748 only whether bit #0 of the value is 0 instead of the entire value.
16749
16750 2019-02-28 Marek Polacek <polacek@redhat.com>
16751
16752 PR c++/87068 - missing diagnostic with fallthrough statement.
16753 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16754 at the end of a seq, save its location to walk_stmt_info.
16755 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16756 a switch.
16757
16758 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16759
16760 PR lto/88585
16761 * tree.c (find_atomic_core_type): Move ahead in file.
16762 (check_base_type): Correctly compare alignments of atomic types.
16763
16764 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16765
16766 PR target/89455
16767 * config/i386/i386.c (get_builtin_code_for_version): Identify
16768 Westmere from PCLMUL, instead of AES.
16769
16770 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16771
16772 PR target/89434
16773 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16774 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16775 -UINTVAL (...).
16776
16777 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16778
16779 PR target/88530
16780 * config/aarch64/aarch64-option-extensions.def: Document it.
16781 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16782 if empty hwcaps.
16783
16784 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16785
16786 PR c/89520
16787 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16788 builtins if they don't have a single scalar floating point argument.
16789 Formatting fixes.
16790
16791 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16792
16793 PR rtl-optimization/89490
16794 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16795 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16796 block section is not mergeable.
16797
16798 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16799
16800 PR target/70341
16801 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16802 old define_insn to ...
16803 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16804 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16805 Rename old define_insn to ...
16806 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16807 (thumb2_casesi_internal_pic): New define_expand. Rename old
16808 define_insn to ...
16809 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16810 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16811 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16812
16813 2019-02-27 Richard Biener <rguenther@suse.de>
16814
16815 PR debug/88878
16816 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16817
16818 2019-02-27 Richard Biener <rguenther@suse.de>
16819
16820 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16821 building.
16822
16823 2019-02-27 Richard Biener <rguenther@suse.de>
16824
16825 PR debug/88878
16826 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16827 parameter, prefix section name with .gnu.debuglto_ if true.
16828 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16829 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16830
16831 2019-02-27 Richard Biener <rguenther@suse.de>
16832
16833 PR debug/89514
16834 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16835 rather than on use_debug_types, doing what output_die does.
16836 (value_format): Likewise.
16837
16838 2019-02-27 Martin Jambor <mjambor@suse.cz>
16839 Martin Sebor <msebor@redhat.com>
16840
16841 * doc/invoke.texi (Warning Options): Reword description of
16842 -Wno-absolute-value.
16843
16844 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16845
16846 PR tree-optimization/89280
16847 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16848 builtin_setjmp_setup_bb): New functions.
16849 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16850 When visiting __builtin_setjmp_setup block, queue in special
16851 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16852 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16853 from visited after the loop if they don't have any visited successor
16854 blocks.
16855
16856 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16857
16858 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16859 New function.
16860 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16861
16862 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16863
16864 PR c++/89507
16865 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16866 with types other than sizetype/ssizetype.
16867
16868 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16869
16870 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16871 (enum sparc_processor_type): ...this.
16872 (enum sparc_code_model_type): New enumeration type.
16873 (enum sparc_memory_model_type): Tweak comments.
16874 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16875 (mtune): Likewise.
16876 (mcmodel): Use sparc_code_model enumeration and variable.
16877 (sparc_code_model): New enumeration.
16878 (mdebug): Add Undocumented marker.
16879 * config/sparc/sparc.h (enum cmodel): Delete.
16880 (sparc_cmodel): Likewise.
16881 (TARGET_CM_MEDLOW): Adjust to above renaming.
16882 (TARGET_CM_MEDMID): Likewise.
16883 (TARGET_CM_MEDANY): Likewise.
16884 (TARGET_CM_EMBMEDANY): Likewise.
16885 * config/sparc/sparc.c (sparc_cmodel): Delete.
16886 (sparc_option_override): Remove string/value mapping support for the
16887 code model. Move code and memory model support to after the handling
16888 of target flags. Do private machine setup last.
16889 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
16890 (sparc_legitimize_reload_address): Likewise.
16891 (sparc_output_mi_thunk): Likewise.
16892 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
16893
16894 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16895
16896 PR tree-optimization/89500
16897 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
16898 (handle_builtin_strlen): Remove noncst_bound variable. Always
16899 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
16900 cst if the first cst bytes starting at x are known to be non-zero,
16901 even if the string is not zero terminated. Don't try to modify
16902 *si for strnlen. Update strlen_to_stridx only for strlen or if
16903 we can prove strnlen returns the same value as strlen would.
16904
16905 2019-02-26 Martin Liska <mliska@suse.cz>
16906
16907 * alloc-pool.h (struct pool_usage): Remove extra
16908 print_dash_line.
16909 * bitmap.h (struct bitmap_usage): Likewise.
16910 * ggc-common.c (struct ggc_usage): Likewise.
16911 * mem-stats.h (struct mem_usage): Likewise.
16912 (mem_alloc_description::dump): Print dash lines
16913 here and repeat header at the end of a table report.
16914 It's then more readable.
16915 * tree-phinodes.c (phinodes_print_statistics): Make
16916 horizontal alignment.
16917 * tree-ssanames.c (ssanames_print_statistics): Likewise.
16918 * vec.c (struct vec_usage): Remove extra print_dash_line.
16919 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
16920
16921 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
16922
16923 * doc/extend.texi (__builtin_object_size):
16924 Use @pxref instead of @xref inside parenthesis.
16925 (__builtin_has_attribute): Add missing comma after @xref.
16926 (__builtin_object_size): Ditto.
16927 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
16928
16929 2019-02-26 Jeff Law <law@redhat.com>
16930
16931 PR rtl-optimization/87761
16932 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
16933 detect obviously dead insns and delete them.
16934
16935 2019-02-26 Richard Biener <rguenther@suse.de>
16936
16937 PR tree-optimization/89505
16938 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
16939 to handle restrict pointed-to vars with multiple subvars
16940 correctly.
16941
16942 2019-02-26 Richard Biener <rguenther@suse.de>
16943
16944 PR tree-optimization/89489
16945 * tree-parloops.c (create_loop_fn): Copy over last_clique.
16946
16947 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16948
16949 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
16950 and move around comment.
16951 <BIT_AND_EXPR>: Likewise.
16952 <BIT_NOT_EXPR>: Add specific handling for boolean types.
16953
16954 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16955
16956 PR target/89474
16957 * config/i386/i386.c (remove_partial_avx_dependency): Call
16958 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
16959 after changing possibly many instructions to use that pseudo. Fix up
16960 insertion of v4sf_const0 setter at the start of bb.
16961
16962 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16963
16964 PR c/80409
16965 * doc/extend.texi (Variadic Pointer Args): New section.
16966
16967 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16968 Martin Sebor <msebor@gmail.com>
16969
16970 * common.opt (Wattribute-alias): Likewise.
16971 * doc/invoke.texi (Option Summary): List general form of
16972 -Wattribute-alias=. List positive form of -Wmissing-attributes.
16973 (-Wmissing-attributes): Invert entry, rewrite and correct default.
16974 Add cross-references.
16975 (-Wattribute-alias): Rewrite and correct default. Mention
16976 considered attributes (same as for -Wmissing-attributes).
16977
16978 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
16979
16980 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
16981 (_mm_cvtpd_ps): Likewise.
16982 (_mm_cvttpd_epi32): Likewise.
16983
16984 PR target/89338
16985 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
16986 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
16987
16988 PR target/89339
16989 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
16990
16991 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16992
16993 PR target/88530
16994 * common/config/aarch64/aarch64-common.c
16995 (struct aarch64_option_extension): Add is_synthetic.
16996 (all_extensions): Use it.
16997 (TARGET_OPTION_INIT_STRUCT): Define hook.
16998 (struct gcc_targetm_common): Moved to end.
16999 (all_extensions_by_on): New.
17000 (opt_ext_cmp, typedef opt_ext): New.
17001 (aarch64_option_init_struct): New.
17002 (aarch64_contains_opt): New.
17003 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
17004 * config/aarch64/aarch64-option-extensions.def
17005 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
17006 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
17007 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
17008 Set is_synthetic to false.
17009 (crypto): Set is_synthetic to true.
17010 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
17011 SYNTHETIC.
17012
17013 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17014
17015 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17016 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
17017 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17018 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
17019 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
17020 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
17021 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
17022 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
17023 Rename ...
17024 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
17025 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17026 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
17027 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
17028 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
17029 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
17030 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
17031 vfmlsl_laneq_high_f16): ... To this.
17032 * config/arm/neon.md: Update comments.
17033
17034 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17035
17036 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17037 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
17038 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17039 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
17040 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
17041 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
17042 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
17043 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
17044 Rename ...
17045 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
17046 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17047 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
17048 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
17049 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
17050 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
17051 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
17052 vfmlslq_laneq_high_f16): ... To this.
17053
17054 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
17055
17056 PR rtl-optimization/86096
17057 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
17058 comparing mw_order values.
17059
17060 2019-02-25 Jakub Jelinek <jakub@redhat.com>
17061
17062 PR target/89434
17063 * config/arm/arm.md (*subsi3_carryin_const): Use
17064 arm_neg_immediate_operand predicate instead of
17065 arm_not_immediate_operand, "L" constraint instead of "K" and
17066 print it using %n2 instead of %B2.
17067 (*subsi3_carryin_const0): New define_insn.
17068 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
17069 instead of arm_not_operand and "I" constraint instead of "K" and
17070 print it using %n3 instead of %B2. Instead of using match_dup 2 add
17071 another match_operand and in the condition check that it is negation
17072 of operands[2].
17073 (*subsi3_carryin_compare_const0): New define_ins.
17074 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
17075 *subsi3_carryin_const.
17076 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
17077 split into *subsi3_carryin_compare_const0 if the highpart is zero.
17078
17079 PR target/89438
17080 * config/arm.vfp.md (*negdf2_vfp): Use
17081 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
17082 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
17083
17084 2019-02-24 Jakub Jelinek <jakub@redhat.com>
17085
17086 PR rtl-optimization/89445
17087 * simplify-rtx.c (simplify_ternary_operation): Don't use
17088 simplify_merge_mask on operands that may trap.
17089 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
17090 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
17091 second operand is CONST_VECTOR, check if any element could be zero.
17092 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
17093 their operands can trap.
17094
17095 2019-02-23 Martin Sebor <msebor@redhat.com>
17096
17097 * gimple-ssa-sprintf.c (target_strtol): Rename...
17098 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
17099 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
17100 check for range error.
17101
17102 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
17103
17104 PR driver/69471
17105 * opts-common.c (prune_options): Also prune joined switches
17106 with Negative and RejectNegative.
17107 * config/i386/i386.opt (march=): Add Negative(march=).
17108 (mtune=): Add Negative(mtune=).
17109 * doc/options.texi: Document Negative used together with Joined
17110 and RejectNegative.
17111
17112 2019-02-22 Martin Sebor <msebor@redhat.com>
17113
17114 * doc/extend.texi (Other Builtins): Add
17115 __builtin_is_constant_evaluated.
17116
17117 2019-02-22 Richard Biener <rguenther@suse.de>
17118
17119 PR tree-optimization/87609
17120 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
17121
17122 2019-02-22 Jeff Law <law@redhat.com>
17123
17124 PR rtl-optimization/87761
17125 * config/mips/mips.md: Add new combiner pattern to recognize
17126 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
17127
17128 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
17129
17130 PR target/89324
17131 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
17132 destination register in peepholes generating patterns for ADDS/SUBS.
17133 (add<mode>3_compare0,
17134 *addsi3_compare0_uxtw, add<mode>3_compareC,
17135 add<mode>3_compareV_imm, add<mode>3_compareV,
17136 *adds_<optab><ALLX:mode>_<GPI:mode>,
17137 *subs_<optab><ALLX:mode>_<GPI:mode>,
17138 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
17139 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
17140 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
17141 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
17142 sub<mode>3_compare1): Allow stack pointer for source register.
17143 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
17144
17145 2019-02-22 Martin Sebor <msebor@redhat.com>
17146
17147 PR tree-optimization/88993
17148 PR tree-optimization/88853
17149 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
17150 New helper.
17151 (sprintf_dom_walker::call_info::is_string_func): New helper.
17152 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
17153 for formatted string functions.
17154 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
17155
17156 2019-02-22 Martin Sebor <msebor@redhat.com>
17157
17158 PR c/89425
17159 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
17160 unreachable subexpressions.
17161
17162 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
17163 Hongtao Liu <hongtao.liu@intel.com>
17164 Sunil K Pandey <sunil.k.pandey@intel.com>
17165
17166 PR target/87007
17167 * config/i386/i386-passes.def: Add
17168 pass_remove_partial_avx_dependency.
17169 * config/i386/i386-protos.h
17170 (make_pass_remove_partial_avx_dependency): New.
17171 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
17172 New function.
17173 (pass_data_remove_partial_avx_dependency): New.
17174 (pass_remove_partial_avx_dependency): Likewise.
17175 (make_pass_remove_partial_avx_dependency): Likewise.
17176 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
17177 (*extendsfdf2): Add avx_partial_xmm_update.
17178 (truncdfsf2): Likewise.
17179 (*float<SWI48:mode><MODEF:mode>2): Likewise.
17180 (SF/DF conversion splitters): Disabled for TARGET_AVX.
17181
17182 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
17183
17184 PR middle-end/85598
17185 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
17186 analysis for pass.
17187
17188 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
17189
17190 PR target/89444
17191 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
17192 (PTA_SKYLAKE): Add PTA_AES.
17193 (PTA_GOLDMONT): Likewise.
17194
17195 2019-02-22 Sudakshina Das <sudi.das@arm.com>
17196
17197 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
17198 instruction if enabled.
17199 (aarch64_override_options): Remove reference to return address key.
17200
17201 2019-02-22 Richard Biener <rguenther@suse.de>
17202
17203 PR tree-optimization/89440
17204 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17205 not necessary assert.
17206
17207 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
17208
17209 PR fortran/72741
17210 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
17211 (oacc_replace_fn_attrib_attr): ... this new function.
17212 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
17213 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
17214
17215 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17216
17217 * config/arm/arm-cpus.in (ares): Rename to...
17218 (neoverse-n1): ... This. Add ares as alias.
17219 * config/arm/arm-tables.opt: Regenerate.
17220 * config/arm/arm-tune.md: Likewise.
17221 * doc/invoke.txt (ARM Options): Document neoverse-n1.
17222
17223 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17224
17225 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
17226 * config/aarch64/aarch64-tune.md: Regenerate.
17227 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
17228
17229 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17230
17231 * config/aarch64/aarch64.c (ares_tunings): Rename to...
17232 (neoversen1_tunings): ... This.
17233 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
17234 (neoverse-n1): New CPU.
17235 * config/aarch64/aarch64-tune.md: Regenerate.
17236 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
17237
17238 2019-02-22 Richard Biener <rguenther@suse.de>
17239
17240 PR middle-end/87609
17241 * cfghooks.h (dependence_hash): New typedef.
17242 (struct copy_bb_data): New type.
17243 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
17244 (duplicate_block): Likewise.
17245 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
17246 (copy_bbs): Create and pass down copy_bb_data.
17247 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
17248 (rtl_duplicate_bb): Likewise.
17249 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
17250 remap dependence info.
17251
17252 2019-02-22 Richard Biener <rguenther@suse.de>
17253
17254 PR tree-optimization/87609
17255 * tree-core.h (tree_base): Document special clique values.
17256 * tree-inline.c (remap_dependence_clique): Do not use the
17257 special clique value of one.
17258 (maybe_set_dependence_info): Use clique one.
17259 (clear_dependence_clique): New callback.
17260 (compute_dependence_clique): Clear clique one from all refs
17261 before assigning it (again).
17262
17263 2019-02-21 Martin Sebor <msebor@redhat.com>
17264
17265 * doc/extend.texi (__clear_cache): Correct signature.
17266
17267 2019-02-21 Ian Lance Taylor <iant@golang.org>
17268
17269 PR go/89170
17270 * varasm.c (decode_addr_const): Call lookup_constant_def rather
17271 than output_constant_def.
17272 (add_constant_to_table): New static function.
17273 (output_constant_def): Call add_constant_to_table.
17274 (tree_output_constant_def): Likewise.
17275
17276 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17277
17278 PR c++/89285
17279 * builtins.c (fold_builtin_arith_overflow): If first two args are
17280 INTEGER_CSTs, set intres and ovfres to constants rather than calls
17281 to ifn.
17282
17283 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
17284
17285 PR target/87412
17286 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
17287 error for -mindirect-branch/-mfunction-return with incompatible
17288 -fcf-protection.
17289
17290 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17291
17292 PR bootstrap/88714
17293 * constraints.md (q): Remove.
17294 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
17295 instead of q.
17296
17297 2019-02-21 Martin Jambor <mjambor@suse.cz>
17298
17299 PR hsa/89302
17300 * omp-general.c (omp_extract_for_data): Removed a duplicate call
17301 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
17302 (omp_adjust_for_condition): ...here. Added necessary parameters.
17303 * omp-general.h (omp_adjust_for_condition): Updated declaration.
17304 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
17305 proper values to new parameters of omp_adjust_for_condition.
17306
17307 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17308
17309 PR middle-end/89412
17310 * expr.c (expand_assignment): If result is a MEM, use change_address
17311 instead of simplify_gen_subreg.
17312
17313 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17314 David Malcolm <dmalcolm@redhat.com>
17315
17316 PR middle-end/89091
17317 * fold-const.c (decode_field_reference): Return NULL_TREE if
17318 lang_hooks.types.type_for_size returns NULL. Check it before
17319 overwriting *exp_. Use return NULL_TREE instead of return 0.
17320
17321 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17322
17323 PR middle-end/88074
17324 PR middle-end/89415
17325 * toplev.c (do_compile): Double the emin/emax exponents to workaround
17326 buggy mpc_norm.
17327
17328 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
17329
17330 PR target/89397
17331 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
17332 TARGET_SSE in addition to TARGET_SSE_MATH.
17333
17334 (ix86_excess_precision): Ditto.
17335 (ix86_float_exceptions_rounding_supported_p): Ditto.
17336 (use_rsqrt_p): Ditto.
17337 * config/i386/sse.md (rsqrt<mode>2): Ditto.
17338
17339 2019-02-20 David Malcolm <dmalcolm@redhat.com>
17340
17341 PR c/89410
17342 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
17343 linenum_arith_t when determining if two adjacent line spans are
17344 close enough to merge.
17345 (diagnostic_show_locus): Use linenum_arith_t when iterating over
17346 lines within each line_span.
17347
17348 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17349
17350 PR target/86487
17351 * lra-constraints.c(uses_hard_regs_p): Fix handling of
17352 paradoxical SUBREGS.
17353
17354 2019-02-20 Li Jia He <helijia@linux.ibm.com>
17355
17356 PR target/88100
17357 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
17358 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
17359 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
17360 range checking it.
17361
17362 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
17363
17364 * config/gcn/gcn.c (print_operand): Fix typo.
17365
17366 2019-02-19 Richard Biener <rguenther@suse.de>
17367
17368 PR middle-end/88074
17369 * toplev.c (do_compile): Initialize mpfr's exponent range
17370 based on available float modes.
17371
17372 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
17373
17374 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
17375 as long as the epilogue isn't completed.
17376
17377 2019-02-18 Martin Sebor <msebor@redhat.com>
17378
17379 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
17380 __has_cpp_attribute, and __has_include.
17381
17382 2019-02-18 Martin Sebor <msebor@redhat.com>
17383
17384 * doc/invoke.texi (-Wreturn-type): Correct and expand.
17385
17386 2019-02-18 Martin Sebor <msebor@redhat.com>
17387
17388 PR middle-end/89294
17389 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
17390 expression.
17391 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
17392
17393 2019-02-18 Richard Biener <rguenther@suse.de>
17394
17395 PR tree-optimization/89296
17396 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
17397 of no-warning flag to cases that might emit the bogus warning.
17398
17399 2019-02-18 Jakub Jelinek <jakub@redhat.com>
17400
17401 PR bootstrap/88714
17402 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
17403 "q" constraint.
17404 * config/arm/vfp.md (*movdi_vfp): Likewise.
17405 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
17406 "q" constraint for operands[0].
17407
17408 PR target/89369
17409 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
17410 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
17411 pattern in a temporary buffer.
17412 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
17413 than 64-operands[2].
17414
17415 PR target/89361
17416 * config/s390/s390.c (s390_indirect_branch_attrvalue,
17417 s390_indirect_branch_settings): Define unconditionally.
17418 (s390_set_current_function): Likewise, but guard the whole body except
17419 the s390_indirect_branch_settings call with
17420 #if S390_USE_TARGET_ATTRIBUTE.
17421 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
17422
17423 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
17424 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
17425 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
17426 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
17427 HOST_WIDE_INT_1U instead of 1ULL.
17428 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
17429 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
17430 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
17431 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
17432 instead of 1UL.
17433 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
17434 instead of 1ul.
17435
17436 2019-02-18 Martin Jambor <mjambor@suse.cz>
17437
17438 PR tree-optimization/89209
17439 * tree-sra.c (create_access_replacement): New optional parameter
17440 reg_tree. Use it as a type if non-NULL and access type is not of
17441 a register type.
17442 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
17443 to create_access_replacement.
17444 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
17445 Check lacc is non-NULL before attempting to re-create it on the RHS.
17446
17447 2019-02-18 Martin Liska <mliska@suse.cz>
17448
17449 PR ipa/89306
17450 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
17451 by default.
17452 (symbol_table::free_edge): Recycle m_summary_id.
17453 * cgraph.h (get_summary_id): New.
17454 (symbol_table::release_symbol): Set m_summary_id to -1
17455 by default.
17456 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
17457 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
17458 function_summary to fast_function_summary.
17459 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
17460 * ipa-pure-const.c (class funct_state_summary_t):
17461 Switch from function_summary to fast_function_summary.
17462 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
17463 (class ipa_ref_opt_summary_t): Switch from function_summary
17464 to fast_function_summary.
17465 * symbol-summary.h (class function_summary_base): New class
17466 that is created from base of former function_summary.
17467 (function_summary_base::unregister_hooks): New.
17468 (class function_summary): Inherit from function_summary_base.
17469 (class call_summary_base): New class
17470 that is created from base of former call_summary.
17471 (class call_summary): Inherit from call_summary_base.
17472 (struct is_same): New.
17473 (class fast_function_summary): New summary class.
17474 (class fast_call_summary): New summary class.
17475 * vec.h (vec_safe_grow_cleared): New function.
17476
17477 2019-02-18 Martin Liska <mliska@suse.cz>
17478
17479 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
17480 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
17481 * doc/tm.texi: Document new target hook.
17482 * doc/tm.texi.in: Likewise.
17483 * target.def: Add new target macro.
17484 * gcc.c (find_fortran_preinclude_file): Do not search multilib
17485 suffixes.
17486
17487 2019-02-17 Alan Modra <amodra@gmail.com>
17488
17489 PR target/89271
17490 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
17491 output reg on add insn.
17492 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
17493
17494 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17495
17496 PR target/89372
17497 * config/i386/sse.md (ssedoublemode): Remove V4HI.
17498 (PMULHRSW): Likewise.
17499 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
17500 TARGET_AVX2.
17501 (ssse3_pmulhrswv4hi3): New expander.
17502
17503 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17504
17505 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
17506 MMX. Add isa attribute.
17507
17508 2019-02-16 Jakub Jelinek <jakub@redhat.com>
17509
17510 PR rtl-optimization/66152
17511 * builtins.h (c_readstr): Declare.
17512 * builtins.c (c_readstr): Remove forward declaration. Add
17513 null_terminated_p argument, if false, read all bytes from the
17514 string instead of stopping after '\0'.
17515 * expr.c (string_cst_read_str): New function.
17516 (store_expr): Use string_cst_read_str instead of
17517 builtin_strncpy_read_str. Try to store by pieces the whole
17518 exp_len first, and only if that fails, split it up into
17519 store by pieces followed by clear_storage. Formatting fix.
17520
17521 * config/i386/i386.md (*movqi_internal): Remove static from
17522 buf variable. Use output_asm_insn (buf, operands); return "";
17523 instead of return buf;.
17524 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
17525 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
17526 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
17527
17528 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17529
17530 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
17531 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
17532 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
17533 (CC1_SPEC): Likewise.
17534 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
17535
17536 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17537
17538 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
17539 the base address on 64-bit strict-alignment platforms.
17540
17541 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
17542
17543 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
17544
17545 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17546
17547 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
17548
17549 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
17550
17551 PR rtl-optimization/88308
17552 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17553 on copied instruction.
17554
17555 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17556
17557 * final.c (insn_current_reference_address): Replace test on JUMP_P
17558 with test on jump_to_label_p.
17559 * config/visium/visium-passes.def: New file.
17560 * config/visium/t-visium (PASSES_EXTRA): Define.
17561 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17562 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17563 (TRAMPOLINE_ALIGNMENT): Define.
17564 * config/visium/visium.c (visium_option_override): Do not register
17565 the machine-specific reorg pass here.
17566 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17567 for the GR6.
17568 (output_branch): Adjust threshold for long branch instruction.
17569 * config/visium/visium.md (cpu): Move around.
17570 (length): Adjust for the GR6.
17571
17572 2019-02-15 Richard Biener <rguenther@suse.de>
17573 Jakub Jelinek <jakub@redhat.com>
17574
17575 PR tree-optimization/89278
17576 * tree-loop-distribution.c: Include tree-eh.h.
17577 (generate_memset_builtin, generate_memcpy_builtin): Call
17578 rewrite_to_non_trapping_overflow on builtin->size before passing it
17579 to force_gimple_operand_gsi.
17580
17581 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17582
17583 PR other/89342
17584 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17585 optimize_debug.
17586 * opth-gen.awk: Likewise.
17587
17588 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17589
17590 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17591 Enable MMX, SSE and SSE2 by default.
17592 * config/i386/i386.c (ix86_option_override_internal): Do not
17593 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17594
17595 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17596
17597 PR rtl-optimization/89354
17598 * combine.c (make_extraction): Punt if extraction_mode is narrower
17599 than len bits.
17600
17601 2019-02-14 Maya Rashish <coypu@sdf.org>
17602
17603 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17604 * config/netbsd-d.c: New file.
17605 * config/t-netbsd: Add netbsd-d.o
17606
17607 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17608
17609 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17610 affects_type_identity to true for aarch64_vector_pcs.
17611 (aarch64_comp_type_attributes): New function.
17612 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17613
17614 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17615
17616 PR target/88850
17617 * config/arm/iterators.md (ANY64): Add V4HF.
17618
17619 2019-02-14 Martin Liska <mliska@suse.cz>
17620
17621 PR rtl-optimization/89242
17622 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17623 process a transformation.
17624
17625 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17626
17627 PR tree-optimization/89314
17628 * fold-const.c (fold_binary_loc): Cast strlen argument to
17629 const char * before dereferencing it. Formatting fixes.
17630
17631 PR middle-end/89284
17632 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17633
17634 2019-02-13 Ian Lance Taylor <iant@golang.org>
17635
17636 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17637 and set current index for other optimizations.
17638
17639 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17640
17641 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17642 nonimmediate_operand as operand 2 predicate.
17643 (vec_set<VF2_512_256:mode>_0): Ditto.
17644 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17645 (*vec_concatv2si): Remove alternative 2.
17646 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17647 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17648 (vec_concatv2di): Split alternatives 4,5,6 to ...
17649 (*vec_concatv2di_0) ... new pattern.
17650
17651 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17652
17653 PR target/89190
17654 * config/arm/arm.c (ldm_stm_operation_p) Set
17655 addr_reg_in_reglist correctly for first register.
17656 (load_multiple_sequence): Remove dead base check.
17657 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17658
17659 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17660
17661 PR target/88847
17662 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17663 Expose as @aarch64_pred_mov.
17664 * config/aarch64/aarch64.c (aarch64_classify_address):
17665 Use expand_insn which legitimizes operands.
17666
17667 2019-02-13 Martin Liska <mliska@suse.cz>
17668
17669 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17670 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17671 and pointer_offset fields.
17672 (initialize_argument_information): Remove usage of dead
17673 fields.
17674 * cgraph.h (struct cgraph_thunk_info): Remove
17675 add_pointer_bounds_args.
17676 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17677 fields.
17678 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17679 fields.
17680 * config/i386/i386.c (ix86_function_arg_advance): Remove
17681 unrelated comment.
17682 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17683 (def_builtin): Remove usage of dead fields.
17684 (ix86_add_new_builtins): Likewise.
17685 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17686 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17687 (sem_function::init): Likewise.
17688 (sem_variable::merge): Likewise.
17689 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17690 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17691 * lto-cgraph.c (lto_output_node): Likewise.
17692 (lto_output_varpool_node): Likewise.
17693 (input_node): Likewise.
17694 (input_varpool_node): Likewise.
17695 * lto-streamer-out.c (lto_output): Likewise.
17696 * tree-inline.c (expand_call_inline): Remove usage of
17697 assign_stmts.
17698 * tree-inline.h (struct copy_body_data): Likewise.
17699 * varpool.c (varpool_node::dump): Likewise.
17700
17701 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17702
17703 PR middle-end/89303
17704 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17705 into pt->vars_contains_escaped_heap instead of setting
17706 pt->vars_contains_escaped_heap to it.
17707
17708 PR middle-end/89281
17709 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17710 INTVAL (size), compare it to GET_MODE_MASK instead of
17711 1 << GET_MODE_BITSIZE.
17712
17713 PR target/89290
17714 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17715 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17716 -mcmodel=large.
17717
17718 2019-02-13 Martin Liska <mliska@suse.cz>
17719
17720 PR lto/88858
17721 * cfgrtl.c (remove_barriers_from_footer): New function.
17722 (try_redirect_by_replacing_jump): Use it.
17723 (cfg_layout_redirect_edge_and_branch): Likewise.
17724
17725 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17726
17727 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17728 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17729 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17730 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17731 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17732 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17733 New BU_CRYPTO_2.
17734 * config/rs6000/rs6000.c (builtin_function_type)
17735 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17736 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17737 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17738 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17739 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17740
17741 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17742
17743 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17744 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17745
17746 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17747
17748 PR target/89229
17749 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17750 268678 and revision 268657.
17751 (*movti_internal): Likewise.
17752
17753 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17754
17755 PR target/89233
17756 * config/s390/s390.c (s390_decompose_address): Update comment.
17757 (s390_check_qrst_address): Reject invalid address forms after
17758 LRA.
17759
17760 2019-02-12 Martin Liska <mliska@suse.cz>
17761
17762 PR lto/88876
17763 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17764 we need default values of funct_state for a function that
17765 is not optimized.
17766
17767 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17768
17769 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17770 the object to pick the size of stores on strict-alignment platforms.
17771
17772 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17773 (*movdi_insn_sp32): Likewise.
17774 (*movdi_insn_sp64): Likewise.
17775
17776 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17777
17778 PR lto/88677
17779 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17780 types that needs constructiong.
17781 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17782
17783 2019-02-12 Richard Biener <rguenther@suse.de>
17784
17785 PR tree-optimization/89253
17786 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17787 duplicate the loop.
17788
17789 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17790
17791 PR lto/88147
17792 * input.c (selftest::test_line_offset_overflow): New selftest.
17793 (selftest::input_c_tests): Call it.
17794
17795 2019-02-11 Martin Sebor <msebor@redhat.com>
17796
17797 PR tree-optimization/88771
17798 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17799 when -Wstringop-overflow is set.
17800 (builtin_memref::builtin_memref): Adjust excessive upper bound
17801 only when lower bound is not excessive.
17802 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17803 -Wstringop-ovefflow.
17804 (maybe_diag_offset_bounds): Rename...
17805 (maybe_diag_access_bounds): ...to this.
17806 (check_bounds_or_overlap): Adjust for name change above.
17807
17808 2019-02-11 Martin Sebor <msebor@redhat.com>
17809
17810 PR c++/87996
17811 * builtins.c (max_object_size): Move from here...
17812 * builtins.h (max_object_size): ...and here...
17813 * tree.c (max_object_size): ...to here...
17814 * tree.h (max_object_size): ...and here.
17815
17816 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17817
17818 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17819 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17820 for correct semantics.
17821
17822 2019-02-11 Alan Modra <amodra@gmail.com>
17823
17824 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17825 -mlongcall and -mpltseq.
17826 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17827 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17828 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17829 * config/rs6000/sysv4.opt (mpltseq): New option.
17830 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17831 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17832 support is lacking. Don't allow -mpltseq with -mbss-plt.
17833 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17834 -mpltseq given for ELFv1.
17835 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17836 Only use UNSPEC_PLTSEQ for inline PLT calls.
17837 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17838 use UNSPEC_PLTSEQ for inline PLT calls.
17839 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17840 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17841 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17842 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17843 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17844 (pltseq_mtctr_<mode>): Likewise.
17845
17846 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17847
17848 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17849 Solaris ld.
17850 * configure: Regenerate.
17851
17852 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17853
17854 PR bootstrap/88714
17855 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17856 instead of r.
17857
17858 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17859
17860 * function.c (assign_parm_setup_block): Use the stored
17861 size, not the passed size, when allocating stack-space,
17862 also for a parameter with alignment larger than
17863 MAX_SUPPORTED_STACK_ALIGNMENT.
17864
17865 2019-02-11 Martin Liska <mliska@suse.cz>
17866
17867 PR ipa/89009
17868 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17869 * ipa-inline.c (inline_small_functions): Likewise.
17870 * ipa-pure-const.c (propagate_pure_const): Likewise.
17871 (propagate_nothrow): Likewise.
17872 * ipa-reference.c (propagate): Likewise.
17873 * ipa-utils.c (struct searchc_env): Remove unused field.
17874 (searchc): Always search across AVAIL_INTERPOSABLE.
17875 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17876 the only called IPA pure const can properly not propagate
17877 across interposable boundary.
17878 * ipa-utils.h (ipa_reduced_postorder): Remove param.
17879
17880 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
17881
17882 * config/nds32/nds32.md (call_internal, call_value_internal,
17883 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
17884
17885 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17886
17887 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
17888 typo.
17889
17890 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
17891
17892 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
17893 in comments
17894
17895 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17896
17897 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
17898
17899 2019-02-10 Jakub Jelinek <jakub@redhat.com>
17900
17901 PR tree-optimization/89268
17902 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
17903 if preds is non-NULL.
17904
17905 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17906
17907 PR lto/89272
17908 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
17909 polymorphic types.
17910
17911 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17912
17913 * config/nds32/nds32.md (trap): New pattern.
17914
17915 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17916
17917 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
17918 dwarf span.
17919
17920 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17921
17922 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
17923 to split POST_INC.
17924
17925 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17926
17927 * ipa-visibility.c (localize_node): Also do not localize
17928 LDPR_PREVAILING_DEF_IRONLY_EXP.
17929
17930 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17931
17932 PR lto/87957
17933 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
17934 instead of type_with_linkage.
17935
17936 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17937
17938 PR ipa/88755
17939 * params.def (uninlined-function-insns, uninlined-function-time,
17940 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
17941 bound so we don't get overflows.
17942
17943 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
17944
17945 * config/rs6000/rs6000-string.c (expand_compare_loop,
17946 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
17947 memcmp/strncmp.
17948
17949 2019-02-09 Jakub Jelinek <jakub@redhat.com>
17950
17951 PR middle-end/89246
17952 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17953 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
17954 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
17955
17956 2019-02-09 Alan Modra <amodra@gmail.com>
17957
17958 PR target/88343
17959 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
17960 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
17961 setup.
17962
17963 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
17964
17965 PR middle-end/88560
17966 * lra-constraints.c (process_alt_operands): Don't increase reject
17967 for memory when offset memory is required.
17968
17969 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
17970
17971 * config/s390/vector.md: Implement vector copysign.
17972
17973 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17974
17975 * expr.c (expand_constructor): Correct indentations.
17976
17977 2019-02-08 Richard Biener <rguenther@suse.de>
17978
17979 PR tree-optimization/89247
17980 * tree-if-conv.c: Include tree-cfgcleanup.h.
17981 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
17982 (tree_if_conversion): Pass through predicate vector.
17983 (pass_if_conversion::execute): Do CFG cleanup and SSA update
17984 inline, see if any if-converted loops we refrece in
17985 LOOP_VECTORIZED calls vanished and fixup.
17986 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
17987
17988 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
17989
17990 * config/s390/constraints.md (jdd): New constraint.
17991
17992 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17993
17994 PR target/89229
17995 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
17996 upper 16 vector registers without TARGET_AVX512VL.
17997 (*movti_internal): Likewise.
17998
17999 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18000
18001 PR rtl-optimization/89234
18002 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
18003 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
18004 (copy_reg_eh_region_note_backward): Likewise.
18005
18006 2019-02-08 Richard Biener <rguenther@suse.de>
18007
18008 PR middle-end/89223
18009 * tree-data-ref.c (initialize_matrix_A): Fail if constant
18010 doesn't fit in HWI.
18011 (analyze_subscript_affine_affine): Handle failure from
18012 initialize_matrix_A.
18013
18014 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18015
18016 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
18017 cfun everywhere.
18018
18019 2019-02-07 David Malcolm <dmalcolm@redhat.com>
18020
18021 PR tree-optimization/86637
18022 PR tree-optimization/89235
18023 * tree-vect-loop.c (optimize_mask_stores): Add an
18024 auto_purge_vect_location sentinel to ensure that vect_location is
18025 purged on exit.
18026 * tree-vectorizer.c
18027 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
18028 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
18029 to ensure that vect_location is purged on exit.
18030 (pass_slp_vectorize::execute): Likewise, replacing the manual
18031 reset.
18032 * tree-vectorizer.h (class auto_purge_vect_location): New class.
18033
18034 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18035
18036 * config/aarch64/iterators.md (max_opp): New code_attr.
18037 (USMAX): New code iterator.
18038 * config/aarch64/predicates.md (aarch64_smin): New predicate.
18039 (aarch64_smax): Likewise.
18040 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
18041 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
18042 MINUS (MAX MIN).
18043
18044 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
18045
18046 PR target/89229
18047 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
18048 for TARGET_AVX512VL.
18049 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
18050
18051 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
18052
18053 * config/s390/s390-builtin-types.def: Add new types.
18054 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
18055 (s390_vec_xlw4): Make the memory operand into a const pointer.
18056 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
18057 float.
18058 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
18059 a new vector type with the alignment of the scalar memory operand.
18060
18061 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
18062 Jakub Jelinek <jakub@redhat.com>
18063
18064 PR bootstrap/88714
18065 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
18066 arm_count_ldrdstrd_insns): New declarations.
18067 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
18068 MINUS.
18069 (valid_operands_ldrd_strd): New function.
18070 (arm_count_ldrdstrd_insns): New function.
18071 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
18072 sets instead of single DImode set and define new insns to match this.
18073
18074 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18075
18076 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
18077 Make it a C initializer.
18078
18079 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18080
18081 PR/target 88850
18082 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
18083
18084 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18085
18086 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
18087 Use neon_dot<q> for type.
18088 (neon_<sup>dot_lane<vsi2qi>): Likewise.
18089
18090 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18091
18092 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
18093 Use neon_dot<q> for type.
18094 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
18095 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
18096
18097 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
18098
18099 PR rtl-optimization/89225
18100 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
18101 sizes check.
18102
18103 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
18104
18105 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
18106 after restoring registers saved to allocate the frame on Windows.
18107
18108 2019-02-06 Richard Biener <rguenther@suse.de>
18109
18110 PR tree-optimization/89182
18111 * graphite.h (cached_scalar_evolution_in_region): Declare.
18112 * graphite.c (struct seir_cache_key): New.
18113 (struct sese_scev_hash): Likewise.
18114 (seir_cache): New global.
18115 (cached_scalar_evolution_in_region): New function.
18116 (graphite_transform_loops): Allocate and release seir_cache.
18117 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
18118 cached_scalar_evolution_in_region.
18119 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18120 Simplify.
18121 (scop_detection::graphite_can_represent_expr: Use
18122 cached_scalar_evolution_in_region.
18123 (scop_detection::stmt_simple_for_scop_p): Likewise.
18124 (find_params_in_bb): Likewise.
18125 (gather_bbs::before_dom_children): Likewise.
18126 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
18127 (add_loop_constraints): Likewise.
18128
18129 2019-02-06 Jakub Jelinek <jakub@redhat.com>
18130
18131 PR middle-end/89210
18132 * fold-const-call.c (fold_const_vec_convert): Pass true as last
18133 operand to new_unary_operation only if both element types are integral
18134 and it isn't a widening conversion. Return NULL_TREE if
18135 new_unary_operation failed.
18136
18137 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
18138
18139 PR target/88856
18140 * config/s390/s390.md: Remove load and test FP splitter.
18141
18142 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18143
18144 PR target/89112
18145 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
18146 expand_compare_loop, expand_block_compare_gpr,
18147 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
18148 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
18149 #include "profile-count.h" and "predict.h" for types and functions
18150 needed to work with REG_BR_PROB notes.
18151
18152 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18153
18154 PR target/89112
18155 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
18156 for the long branch case.
18157
18158 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18159
18160 PR target/89188
18161 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
18162 can throw, non-call exceptions are enabled and we can't delete
18163 dead exceptions or alter cfg. Set must_clean if
18164 delete_insn_and_edges returns true, don't set it blindly for calls.
18165 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
18166
18167 PR rtl-optimization/89195
18168 * combine.c (make_extraction): For MEMs, don't extract bytes outside
18169 of the original MEM.
18170
18171 2019-02-05 Martin Liska <mliska@suse.cz>
18172
18173 PR gcov-profile/89000
18174 * gcov.c (function_summary): Remove argument.
18175 (file_summary): New function.
18176 (print_usage): Replace tabs with spaces.
18177 (generate_results): Use new function file_summary.
18178
18179 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18180
18181 PR target/89186
18182 * optabs.c (prepare_cmp_insn): Pass x and y to
18183 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
18184
18185 2019-02-05 Richard Biener <rguenther@suse.de>
18186
18187 PR middle-end/89150
18188 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
18189 (struct bitmap_element): Drop chain_prev so we properly recurse on
18190 the prev member, supporting tree views.
18191 (struct bitmap_head): GTY skip the obstack member.
18192
18193 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
18194
18195 PR c/88698
18196 * doc/extend.texi (Vector Extensions): Add an example of using vector
18197 types together with x86 intrinsics.
18198
18199 2019-02-04 Alan Modra <amodra@gmail.com>
18200
18201 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
18202 str[] size to 160, and comment.
18203
18204 2019-02-04 Alan Modra <amodra@gmail.com>
18205
18206 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
18207 (rs6000_pltseq_template): Guard output of TLS markers with
18208 TARGET_TLS_MARKERS.
18209 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
18210 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
18211 to use inline PLT sequences.
18212 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18213 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18214 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
18215
18216 2019-02-04 Martin Liska <mliska@suse.cz>
18217
18218 PR ipa/88985
18219 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
18220 out when ipa_fn_summaries does not contain entry for callee.
18221
18222 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
18223
18224 * config/sparc/sparc.h: Remove superfluous blank lines.
18225 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
18226 (got_register_rtx): ...this.
18227 (sparc_got): Adjust to above renaming.
18228 (sparc_tls_got): Likewise.
18229 (sparc_delegitimize_address): Likewise.
18230 (sparc_output_mi_thunk): Likewise.
18231 (sparc_init_pic_reg): Likewise.
18232 (save_local_or_in_reg_p): Fix test on the GOT register.
18233 (USE_HIDDEN_LINKONCE): Move around.
18234 (get_pc_thunk_name): Likewise.
18235 (gen_load_pcrel_sym): Likewise.
18236 (load_got_register): Likewise.
18237
18238 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
18239
18240 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
18241 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
18242
18243 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18244
18245 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
18246 into consideration.
18247
18248 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18249
18250 * config.gcc (with_nds32_lib, glibc):
18251 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
18252 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
18253 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
18254
18255 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
18256
18257 PR target/89071
18258 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
18259 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
18260 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
18261 (*rcpsf2_sse): Ditto.
18262 (*rsqrtsf2_sse): Ditto.
18263 (sse4_1_round<mode<2): Ditto.
18264
18265 2019-02-03 Richard Biener <rguenther@suse.de>
18266
18267 PR debug/87295
18268 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
18269 orig.
18270
18271 2019-02-02 Jakub Jelinek <jakub@redhat.com>
18272
18273 PR middle-end/87887
18274 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18275 Punt with warning on aggregate return or argument types. Ignore
18276 type/mode checking for uniform arguments.
18277
18278 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
18279
18280 * combine.c (try_combine): Do not print "Can't combine" messages unless
18281 printing failed combination attempts.
18282
18283 2019-02-01 Martin Jambor <mjambor@suse.cz>
18284
18285 PR hsa/87863
18286 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
18287 segment and global segment variables before making them static.
18288
18289 2019-02-01 Martin Jambor <mjambor@suse.cz>
18290
18291 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
18292 missed optimization dump with dump_enabled_p.
18293
18294 2019-02-01 Richard Biener <rguenther@suse.de>
18295
18296 PR middle-end/88597
18297 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
18298 the instantiate cache.
18299 (instantiate_scev_binary): Elide second operand procesing
18300 if equal to the first.
18301 * tree-chrec.c (chrec_contains_symbols): Add visited set.
18302 (chrec_contains_undetermined): Likewise.
18303 (tree_contains_chrecs): Likewise.
18304
18305 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
18306
18307 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
18308
18309 2019-02-01 Jakub Jelinek <jakub@redhat.com>
18310
18311 PR tree-optimization/89143
18312 * wide-int-range.h (wide_int_range_absu): Declare.
18313 * wide-int-range.cc (wide_int_range_absu): New function.
18314 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
18315
18316 PR tree-optimization/88107
18317 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
18318 instead of assertion that eh_region_outermost is non-NULL, if it
18319 is NULL, set *ALL to true and return NULL.
18320 (move_sese_region_to_fn): Adjust caller, if all is set, call
18321 duplicate_eh_regions with NULL region.
18322
18323 2019-02-01 Richard Biener <rguenth@suse.de>
18324
18325 PR rtl-optimization/88593
18326 * mode-switching.c (optimize_mode_switching): Free dominators before
18327 calling cleanup_cfg.
18328
18329 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18330
18331 PR tree-optimization/88932
18332 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
18333
18334 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18335
18336 PR middle-end/89137
18337 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
18338 bogus clang warning.
18339
18340 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
18341
18342 PR target/89071
18343 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
18344 alternative to avoid partial SSE register stall for TARGET_AVX.
18345 (truncdfsf2): Ditto.
18346 (sse4_1_round<mode>2): Ditto.
18347
18348 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
18349
18350 PR tree-optimization/89008
18351 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
18352 process anything of the form X * 0.
18353
18354 2019-01-31 Richard Biener <rguenther@suse.de>
18355
18356 PR tree-optimization/89135
18357 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
18358 with abnormal preds.
18359
18360 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18361
18362 PR sanitizer/89124
18363 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
18364 always_inline callees into no_sanitize_address callers.
18365
18366 2019-01-31 Richard Biener <rguenther@suse.de>
18367
18368 PR rtl-optimization/89115
18369 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
18370
18371 2019-01-30 Martin Sebor <msebor@redhat.com>
18372
18373 PR other/89106
18374 * doc/extend.texi (cast to a union): Correct and expand.
18375
18376 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
18377
18378 PR rtl-optimization/87246
18379 * lra-constraints.c (simplify_operand_subreg): Reload memory
18380 in subreg if the address became invalid.
18381
18382 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
18383
18384 PR target/87064
18385 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
18386 Disable for little-endian.
18387
18388 2019-01-30 Richard Biener <rguenther@suse.de>
18389
18390 PR rtl-optimization/89115
18391 * opts.c (default_options_optimization): Reduce
18392 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
18393 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
18394 to the default.
18395
18396 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18397
18398 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
18399 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
18400 type of vector element when vec_extract is implemented by direct
18401 move.
18402
18403 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
18404
18405 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
18406
18407 2019-01-30 Richard Biener <rguenther@suse.de>
18408
18409 PR tree-optimization/89111
18410 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
18411 canonicalization to appropriately sized access types.
18412
18413 2019-01-30 Jakub Jelinek <jakub@redhat.com>
18414
18415 PR c++/89105
18416 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
18417 for arguments to functions that are TU-local and shouldn't be
18418 referenced by assembly.
18419
18420 2019-01-30 Ulrich Drepper <drepper@redhat.com>
18421
18422 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
18423 after '='.
18424
18425 2019-01-29 Martin Sebor <msebor@redhat.com>
18426
18427 PR c/88956
18428 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
18429
18430 2019-01-29 Jakub Jelinek <jakub@redhat.com>
18431
18432 PR c++/66676
18433 PR ipa/89104
18434 * omp-simd-clone.c (simd_clone_clauses_extract)
18435 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
18436 OMP_CLAUSE_ALIGNED_ALIGNMENT.
18437
18438 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
18439
18440 * config.gcc: Force .init_array for ARC.
18441
18442 2019-01-29 Richard Biener <rguenther@suse.de>
18443
18444 PR debug/87295
18445 * dwarf2out.c (collect_skeleton_dies): New helper.
18446 (copy_decls_for_unworthy_types): Call it.
18447 (build_abbrev_table): Assert we do not try to replace
18448 DW_AT_signature refs with local refs.
18449
18450 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18451
18452 PR middle-end/89002
18453 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
18454 for lastprivate/linear IV, push gimplify context around gimplify_assign
18455 and, if it needed any temporaries, pop it into a gimple bind around the
18456 sequence.
18457
18458 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18459
18460 * common.opt (-Wattribute-alias): Remove "no-" from name.
18461 Make -Wattribute-alias command line option and
18462 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
18463
18464 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18465
18466 PR target/89073
18467 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
18468 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
18469 x86 ISA options.
18470 (bmi2): Add missing @opindex.
18471 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
18472 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
18473 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
18474 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
18475 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
18476 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
18477 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
18478 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
18479 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
18480 xsavec, xsaveopt and xsaves options.
18481
18482 2019-01-28 Richard Biener <rguenther@suse.de>
18483
18484 PR debug/89076
18485 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
18486 support removal.
18487
18488 2019-01-28 Richard Biener <rguenther@suse.de>
18489
18490 PR tree-optimization/88739
18491 * tree-cfg.c (verify_types_in_gimple_reference): Verify
18492 BIT_FIELD_REFs only are applied to mode-precision operands
18493 when they are integral.
18494 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
18495 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
18496 BIT_FIELD_REFs of non-mode-precision integral operands.
18497
18498 2019-01-27 Jakub Jelinek <jakub@redhat.com>
18499
18500 PR target/87214
18501 * config/i386/sse.md
18502 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
18503 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
18504 first constants in pairs are multiples of 2. Formatting fixes.
18505 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
18506 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
18507 first constants in each quadruple are multiples of 4. Formatting fixes.
18508
18509 2019-01-26 Martin Jambor <mjambor@suse.cz>
18510
18511 PR ipa/88933
18512 * tree-inline.c: Include tree-cfgcleanup.h.
18513 (delete_unreachable_blocks_update_callgraph): Move...
18514 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
18515 ...here, make externally visible, make second argument bool, adjust
18516 all callers.
18517 * tree-cfgcleanup.c: Include cgraph.h.
18518 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
18519 Declare.
18520 * ipa-prop.c: Include tree-cfgcleanup.h.
18521 (ipcp_transform_function): Call
18522 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
18523
18524 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
18525
18526 PR rtl-optimization/88846
18527 * ira.c (process_set_for_memref_referenced_p): New.
18528 (memref_referenced_p): Add new param. Use
18529 process_set_for_memref_referenced_p. Add new switch cases.
18530 (memref_used_between_p): Pass new arg to memref_referenced_p.
18531
18532 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
18533
18534 PR target/88469
18535 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
18536 argument ABI_BREAK. Set to true if the calculated alignment has
18537 changed in gcc-9. Check bit-fields for their base type alignment.
18538 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
18539 (aarch64_function_arg_boundary): Likewise.
18540 (aarch64_gimplify_va_arg_expr): Likewise.
18541
18542 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18543
18544 PR middle-end/89037
18545 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
18546 instead of accessing TREE_INT_CST_ELT directly.
18547
18548 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
18549
18550 * doc/sourcebuild.texi (Environment attributes): Add fenv and
18551 fenv_exceptions description.
18552
18553 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18554
18555 PR rtl-optimization/87763
18556 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18557 Allow SUBREG when matching CC_NZmode compare.
18558
18559 2019-01-25 Richard Biener <rguenther@suse.de>
18560
18561 PR tree-optimization/89049
18562 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18563 Look at the pattern stmt to determine if the stmt is vectorized.
18564
18565 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18566
18567 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18568 (pred_mov<mode>): Handle all-register forms using both a new
18569 alternative and a split.
18570
18571 2019-01-25 Richard Biener <rguenther@suse.de>
18572
18573 PR tree-optimization/86865
18574 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18575 Reject non-do-while loops.
18576
18577 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18578
18579 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18580 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18581 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18582 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18583 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18584 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18585 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18586 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18587 vlogical_operand, gpc_reg_operand, int_reg_operand,
18588 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18589 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18590 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18591 (save_world_operation, restore_world_operation, lmw_operation,
18592 stmw_operation): Use MEM_P and REG_P.
18593 (tie_operand): Use MEM_P.
18594 (vrsave_operation, crsave_operation): Use REG_P.
18595 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18596 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18597 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18598 (call_operand): Use HARD_REGISTER_P.
18599 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18600 Use CONST_INT_P.
18601 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18602 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18603 quad_aligned_load_p, replace_swapped_aligned_store,
18604 recombine_lvx_pattern, replace_swapped_aligned_load,
18605 recombine_stvx_pattern): Use MEM_P.
18606 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18607 Use MEM_P and SYMBOL_REF_P.
18608 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18609 (insn_is_swappable_p): Use REG_P and MEM_P.
18610 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18611 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18612 Use CONST_INT_P.
18613 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18614 Use CONST_DOUBLE_P.
18615 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18616 CONST_WIDE_INT_P.
18617 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18618 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18619 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18620 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18621 reg_or_subregno:
18622 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18623 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18624 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18625 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18626 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18627 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18628 rs6000_split_logical_di): Use CONST_INT_P.
18629 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18630 REG_P and SYMBOL_REF_P.
18631 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18632 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18633 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18634 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18635 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18636 (small_data_operand, print_operand_address): Use CONST_INT_P and
18637 SYMBOL_REF_P.
18638 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18639 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18640 Use HARD_REGISTER_NUM_P.
18641 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18642 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18643 SUBREG_P and SYMBOL_REF_P.
18644 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18645 and HARD_REGISTER_NUM_P.
18646 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18647 reg_or_subregno.
18648 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18649 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18650 MEM_P and REG_P.
18651 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18652 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18653 find_addr_reg): Use REG_P.
18654 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18655 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18656 (offsettable_ok_by_alignment, constant_pool_expr_p,
18657 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18658 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18659 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18660 rs6000_assemble_integer, create_TOC_reference,
18661 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18662 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18663 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18664 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18665 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18666 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18667 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18668 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18669 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18670 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18671 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18672 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18673 and cbranch<mode>4): Use CONST_INT_P.
18674 (multiple define_splits): Use REG_P and SUBREG_P.
18675 (define_expands call, call_value): Use MEM_P.
18676 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18677 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18678 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18679 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18680 and HARD_REGISTER_NUM_P.
18681 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18682
18683 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18684
18685 PR rtl-optimization/88948
18686 * rtl.h (prepare_copy_insn): New prototype.
18687 * gcse.c (prepare_copy_insn): New function, split out from
18688 process_insert_insn.
18689 (process_insert_insn): Use prepare_copy_insn.
18690 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18691 instead of gen_move_insn.
18692
18693 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18694
18695 PR debug/89006
18696 * config/i386/i386.c (ix86_pic_register_p): Return true for
18697 UNSPEC_SET_GOT too.
18698
18699 PR tree-optimization/88964
18700 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18701 punt if HONOR_SNANS (chrec).
18702
18703 PR middle-end/89015
18704 * tree-nested.c (convert_nonlocal_reference_stmt,
18705 convert_local_reference_stmt, convert_tramp_reference_stmt,
18706 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18707 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18708 or GIMPLE_OMP_TASK.
18709
18710 PR tree-optimization/89027
18711 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18712 for "omp simd array" variables.
18713
18714 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18715
18716 PR target/88469
18717 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18718 force the alignment of m_val.
18719
18720 2019-01-24 Richard Biener <rguenther@suse.de>
18721
18722 PR lto/87187
18723 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18724 When in "legacy" debug mode make sure to reset self-origins.
18725
18726 2019-01-24 Martin Liska <mliska@suse.cz>
18727
18728 PR gcov-profile/88994
18729 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18730 result will be always smaller or equal to the original.
18731 * gcov.c (mangle_name): Fix else branch where we should
18732 also copy to PTR and shift the pointer.
18733
18734 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18735
18736 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18737 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18738
18739 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18740
18741 * common/config/i386/i386-common.c
18742 (OPTION_MASK_ISA_ENQCMD_SET,
18743 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18744 (ix86_handle_option): Handle -menqcmd.
18745 * config.gcc (enqcmdintrin.h): New header file.
18746 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18747 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18748 -menqcmd.
18749 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18750 function type.
18751 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18752 __builtin_ia32_enqcmds): New builtins.
18753 * config/i386/i386-c.c (__ENQCMD__): New macro.
18754 * config/i386/i386-option.c (ix86_target_string): Add
18755 -menqcmd.
18756 (ix86_valid_target_attribute_inner_p): Likewise.
18757 * config/i386/i386-expand.c
18758 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18759 IX86_BUILTIN_ENQCMDS.
18760 * config/i386/i386.h (TARGET_ENQCMD): New.
18761 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18762 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18763 (movdir64b_<mode>): Parameterize to enable share expansion code
18764 with ENQCMD in function ix86_expand_builtin.
18765 * config/i386/i386.opt: Add -menqcmd.
18766 * config/i386/immintrin.h: Include enqcmdintrin.h.
18767 * config/i386/enqcmdintrin.h: New intrinsic file.
18768 * doc/invoke.texi: Add -menqcmd.
18769
18770 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18771 Steve Ellcey <sellcey@marvell.com>
18772
18773 PR target/85711
18774 * recog.c (address_operand): Return false on wrong mode for address.
18775 (constrain_operands): Check for mode with 'p' constraint.
18776
18777 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18778
18779 PR target/88998
18780 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18781 Disparage MMX alternative.
18782 (sse2_cvtpd2pi): Ditto.
18783 (sse2_cvttpd2pi): Ditto.
18784
18785 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18786
18787 PR driver/89014
18788 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18789 use-after-free of the result of
18790 aarch64_get_extension_string_for_isa_flags.
18791
18792 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18793
18794 PR c/44715
18795 * doc/extend.texi: Document break and continue behavior in
18796 statement expressions.
18797
18798 2019-01-23 Richard Biener <rguenther@suse.de>
18799
18800 PR tree-optimization/89008
18801 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18802 not leave another stray operand.
18803
18804 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18805
18806 * BASE-VER: Bump to 9.0.1.
18807
18808 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18809
18810 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18811 thunk that returns by reference, use the type of the return object
18812 of the thunk instead of that of the alias to build the dereference.
18813
18814 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18815
18816 * config/arc/atomic.md: Add operand to DMB instruction.
18817
18818 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18819
18820 PR tree-optimization/88964
18821 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18822 build_zero_cst instead of build_int_cst. Return false for loop
18823 invariants which honor signed zeros.
18824
18825 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18826
18827 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18828
18829 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18830
18831 PR target/88965
18832 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18833 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18834 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18835
18836 PR middle-end/88968
18837 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18838 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18839
18840 PR target/87064
18841 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18842 Disable for little endian.
18843
18844 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18845
18846 PR target/88469
18847 * config/arm/arm.c (arm_needs_double_word_align): Check
18848 DECL_BIT_FIELD_TYPE.
18849
18850 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18851 H.J. Lu <hongjiu.lu@intel.com>
18852
18853 PR target/88909
18854 * config/i386/i386-builtin.def: Add mask2 to all builtin
18855 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18856 SPECIAL_ARGS.
18857 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18858 (BDESC_FIRST): Likewise.
18859 (define_builtin): Add an argument for mask2. Updated to handle
18860 both ix86_isa_flags and ix86_isa_flags2.
18861 (define_builtin_const): Likewise.
18862 (define_builtin_pure): Likewise.
18863 (define_builtin2): Deleted.
18864 (define_builtin_const2): Likewise.
18865 (builtin_description): Add a member, mask2.
18866 (bdesc_*): Add mask2 to builtin initializations.
18867 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18868 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18869 support.
18870 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18871
18872 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18873
18874 PR target/88954
18875 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18876 noplt attribute.
18877
18878 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18879
18880 PR target/88469
18881 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
18882 alignment is dominated by a bitfield with 64-bit aligned base type.
18883 (arm_function_arg): Emit a warning if the alignment has changed since
18884 earlier GCC releases.
18885 (arm_function_arg_boundary): Likewise.
18886 (arm_setup_incoming_varargs): Likewise.
18887
18888 2019-01-22 Richard Biener <rguenther@suse.de>
18889
18890 PR tree-optimization/88862
18891 * graphite-scop-detection.c
18892 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
18893
18894 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
18895
18896 * doc/extend.tex (AMD GCN Function Attributes): New section.
18897 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
18898 * doc/invoke.texi (AMD GCN Options): New section.
18899 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
18900
18901 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
18902
18903 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
18904 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
18905
18906 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18907
18908 PR tree-optimization/88044
18909 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
18910 is false in the first iteration, but !every_iteration, return false
18911 instead of true with niter->niter zero.
18912
18913 PR rtl-optimization/88904
18914 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
18915 any nonequal registers before processing BB_END (b).
18916
18917 PR target/88905
18918 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
18919 GET_MODE (op0).
18920 (expand_binop_directly, expand_doubleword_clz,
18921 expand_doubleword_popcount, expand_ctz, expand_ffs,
18922 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
18923
18924 PR rtl-optimization/49429
18925 PR target/49454
18926 PR rtl-optimization/86334
18927 PR target/88906
18928 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
18929 addressable from here...
18930 (emit_block_op_via_libcall): ... to here.
18931
18932 2019-01-22 Richard Biener <rguenther@suse.de>
18933
18934 * tree-vect-loop.c (vect_analyze_loop_operations): Use
18935 auto_vec for cost vector to fix memleak.
18936 (vectorize_fold_left_reduction): Properly gather SLP defs.
18937 (vectorizable_comparison): Do not swap operands to properly
18938 gather SLP defs.
18939
18940 2019-01-22 Alan Modra <amodra@gmail.com>
18941
18942 PR target/88614
18943 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
18944 stays a reg. Allow a const_int.
18945 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
18946 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
18947 (IS_NOMARK_TLSGETADDR): Define.
18948 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
18949 (rs6000_output_tlsargs): New function.
18950 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
18951 __tls_get_addr call takes an arg.
18952 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
18953 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
18954 delete split..
18955 (call_value_nonlocal_sysv): ..or here, delete split.
18956 (tls_gdld_nomark): Delete.
18957 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
18958 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
18959 (call_value_nonlocal_sysv): Likewise.
18960 (call_value_nonlocal_sysv_secure): Likewise.
18961 (call_value_nonlocal_aix): Likewise.
18962 (call_value_indirect_aix): Likewise.
18963 (call_value_indirect_elfv2): Likewise.
18964 (call_value_local32, call_value_local64): Disable for no-mark tls.
18965 (call_value_local_aix): Likewise.
18966
18967 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
18968
18969 PR target/88938
18970 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
18971 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
18972
18973 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
18974
18975 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
18976 string contents as hash_map keys.
18977
18978 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
18979
18980 PR c/88928
18981 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
18982 for rvalue context. Handle rvalues correctly. Use min_align_of_type
18983 instead of TYPE_ALIGN.
18984 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
18985 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
18986 pointer from TYPE_STUB_DECL.
18987
18988 2019-01-21 Richard Biener <rguenther@suse.de>
18989
18990 PR tree-optimization/88934
18991 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
18992 at the possibly non-constant operand.
18993 (vect_get_constant_vectors): Adjust.
18994
18995 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
18996
18997 PR target/71659
18998 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
18999 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
19000 instead of _X86INTRIN_H_INCLUDED.
19001 * onfig/i386/clwbintrin.h: Likewise.
19002 * config/i386/pkuintrin.h: Likewise.
19003 * config/i386/prfchwintrin.h: Likewise.
19004 * config/i386/rdseedintrin.h: Likewise.
19005 * config/i386/wbnoinvdintrin.h: Likewise.
19006 * config/i386/xsavecintrin.h: Likewise.
19007 * config/i386/xsavesintrin.h: Likewise.
19008 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
19009 * config/i386/xsaveintrin.h: Likewise.
19010 * config/i386/xsaveoptintrin.h: Likewise.
19011 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
19012 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
19013 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
19014 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
19015 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
19016 * config/i386/immintrin.h: Here.
19017
19018 2019-01-20 Martin Jambor <mjambor@suse.cz>
19019
19020 PR ipa/87615
19021 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
19022 with aa_walk_budget.
19023 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
19024 aa_walk_budget_p parameter.
19025 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
19026 walk. Updated all callers.
19027 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
19028 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
19029 unmodified_parm.
19030 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
19031 parameter info. Extract info from fbi. Pass fbi to recursive calls
19032 and to unmodified_parm.
19033 (phi_result_unknown_predicate): New parameter fbi, removed parameter
19034 info, updated call to will_be_nonconstant_expr_predicate.
19035 (param_change_prob): New parameter fbi, limit AA walking.
19036 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
19037 calls to various above functions.
19038 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
19039 parameter. Use it to limit AA walking.
19040 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
19041 fbi, limit AA walk.
19042 (detect_type_change): New parameter fbi, pass it on to
19043 detect_type_change_from_memory_writes.
19044 (detect_type_change_ssa): Likewise.
19045 (aa_overwalked): Removed.
19046 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
19047 accordingly, adjust to the neew AA limiting scheme.
19048 (parm_ref_data_preserved_p): Likewise.
19049 (ipa_compute_jump_functions_for_edge): Adjust call to
19050 get_dynamic_type.
19051 (ipa_analyze_call_uses): Likewise.
19052 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
19053 (ipa_analyze_node): Initialize aa_walk_budget.
19054 (ipcp_transform_function): Likewise.
19055 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
19056 to get_dynamic_type.
19057
19058 2019-01-19 Jakub Jelinek <jakub@redhat.com>
19059
19060 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
19061 outside of #if CHECKING_P code.
19062
19063 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
19064
19065 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
19066 New function, split out from...
19067 (loop_versioning::analyze_stride): ...here.
19068 (loop_versioning::find_per_loop_multiplication): Use gassign.
19069 (loop_versioning::analyze_term_using_scevs): Return a success code.
19070 (loop_versioning::analyze_arbitrary_term): New function.
19071 (loop_versioning::analyze_address_fragment): Use
19072 analyze_arbitrary_term if all else fails.
19073
19074 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
19075
19076 PR target/88892
19077 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
19078 operands.
19079
19080 2019-01-18 Richard Biener <rguenther@suse.de>
19081
19082 PR tree-optimization/88903
19083 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
19084 scalar stmts a SLP shift amount is composed of when detecting
19085 shifts by scalars.
19086
19087 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
19088
19089 PR target/88799
19090 * config/arm/arm-cpus.in (mp): New feature.
19091 (sec): New feature.
19092 (fgroup ARMv7ve): Add mp and sec features.
19093 (arch armv7-a): Add options to allow mp and sec extensions.
19094 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
19095 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
19096 extenstions to the base architecture.
19097 (cpu cortex-a8): Add sec extension to the base architecture.
19098 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
19099 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
19100 variants down to the base v7-a varaint.
19101 * config/arm/t-multilib (v7_a_arch_variants): New variable.
19102 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
19103 of permitted extensions for -march=armv7-a and for
19104 -mcpu=generic-armv7-a.
19105
19106 2019-01-18 Martin Liska <mliska@suse.cz>
19107
19108 * params.def: Fix comment.
19109 * tree-profile.c (gimple_init_gcov_profiler): Bump function
19110 name.
19111 (gimple_gen_ic_func_profiler): Likewise.
19112
19113 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19114
19115 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
19116 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
19117 and put in error checks for stack protector guard options.
19118 (aarch64_stack_protect_guard): New.
19119 (TARGET_STACK_PROTECT_GUARD): Define.
19120 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
19121 (reg_stack_protect_address<mode>): New.
19122 (stack_protect_set): Adjust for SSP_GLOBAL.
19123 (stack_protect_test): Likewise.
19124 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
19125 (-mstack-protector-guard): Likewise.
19126 (-mstack-protector-guard-offset): Likewise.
19127
19128 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19129
19130 PR tree-optimization/86214
19131 * tree-inline.h (struct copy_body_data): Add
19132 add_clobbers_to_eh_landing_pads member.
19133 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
19134 (copy_edges_for_bb): Call it if EH edge destination is <
19135 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
19136 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
19137 if flag_stack_reuse != SR_NONE and clear it afterwards.
19138
19139 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
19140
19141 PR target/85596
19142 * doc/install.texi (with-multilib-list): Document for aarch64.
19143
19144 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19145
19146 PR target/88734
19147 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
19148 (("..."))) with ("...").
19149
19150 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
19151
19152 * doc/extend.texi (Built-in Functions for Memory Model Aware
19153 Atomic Operations): Document atomic fetch and nand.
19154
19155 2019-01-18 Martin Liska <mliska@suse.cz>
19156 Richard Biener <rguenther@suse.de>
19157
19158 PR middle-end/88587
19159 * cgraph.h (create_version_clone_with_body): Add new argument
19160 with attributes.
19161 * cgraphclones.c (cgraph_node::create_version_clone): Add
19162 DECL_ATTRIBUTES to a newly created decl. And call
19163 valid_attribute_p so that proper cl_target_optimization_node
19164 is set for the newly created declaration.
19165 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
19166 for declaration.
19167 (expand_target_clones): Do not call valid_attribute_p, it must
19168 be already done.
19169 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
19170 vector types.
19171
19172 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19173
19174 PR target/88734
19175 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
19176 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
19177 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
19178
19179 2019-01-17 Martin Sebor <msebor@redhat.com>
19180
19181 PR middle-end/88273
19182 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
19183 Handle anti-ranges the same as no range at all.
19184
19185 2018-01-17 Steve Ellcey <sellcey@cavium.com>
19186
19187 * config/aarch64/aarch64.c (cgraph.h): New include.
19188 (intl.h): New include.
19189 (supported_simd_type): New function.
19190 (currently_supported_simd_type): Ditto.
19191 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
19192 (aarch64_simd_clone_adjust): Ditto.
19193 (aarch64_simd_clone_usable): Ditto.
19194 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
19195 (TARGET_SIMD_CLONE_ADJUST): Ditto.
19196 (TARGET_SIMD_CLONE_USABLE): Ditto.
19197 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
19198 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
19199 call.
19200
19201 2019-01-17 Martin Sebor <msebor@redhat.com>
19202
19203 PR tree-optimization/88800
19204 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
19205 NO_WARNING bit here. Avoid folding out-of-bounds calls.
19206 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
19207 redundant argument. Add new argument and issue diagnostics under
19208 its control. Detect out-of-bounds access even with warnings
19209 disabled.
19210 (check_bounds_or_overlap): Change return type. Add argument.
19211 (wrestrict_dom_walker::check_call): Adjust.
19212 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
19213 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
19214 check_bounds_or_overlap's return value.
19215 (handle_builtin_stxncpy): Same.
19216 (handle_builtin_strcat): Same.
19217
19218 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19219 Kwok Cheung Yeung <kcy@codesourcery.com>
19220 Julian Brown <julian@codesourcery.com>
19221 Tom de Vries <tom@codesourcery.com>
19222
19223 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
19224
19225 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19226
19227 * doc/sourcebuild.texi: Document dg-require-effective-target
19228 llvm_binutils and offload_gcn.
19229
19230 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19231 Kwok Cheung Yeung <kcy@codesourcery.com>
19232 Julian Brown <julian@codesourcery.com>
19233 Tom de Vries <tom@codesourcery.com>
19234
19235 * doc/sourcebuild.texi: Document dg-required-effective-target
19236 exceptions.
19237
19238 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19239 Kwok Cheung Yeung <kcy@codesourcery.com>
19240 Julian Brown <julian@codesourcery.com>
19241 Tom de Vries <tom@codesourcery.com>
19242 Jan Hubicka <hubicka@ucw.cz>
19243 Martin Jambor <mjambor@suse.cz>
19244
19245 * config.gcc: Add amdgcn*-*-amdhsa configuration.
19246 * configure.ac: Check for dlopen.
19247 * configure: Regenerate.
19248
19249 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19250 Kwok Cheung Yeung <kcy@codesourcery.com>
19251 Julian Brown <julian@codesourcery.com>
19252 Tom de Vries <tom@codesourcery.com>
19253 Jan Hubicka <hubicka@ucw.cz>
19254 Martin Jambor <mjambor@suse.cz>
19255
19256 * common/config/gcn/gcn-common.c: New file.
19257 * config/gcn/driver-gcn.c: New file.
19258 * config/gcn/gcn-builtins.def: New file.
19259 * config/gcn/gcn-hsa.h: New file.
19260 * config/gcn/gcn-modes.def: New file.
19261 * config/gcn/gcn-opts.h: New file.
19262 * config/gcn/gcn-passes.def: New file.
19263 * config/gcn/gcn-protos.h: New file.
19264 * config/gcn/gcn-run.c: New file.
19265 * config/gcn/gcn-tree.c: New file.
19266 * config/gcn/gcn.c: New file.
19267 * config/gcn/gcn.h: New file.
19268 * config/gcn/gcn.opt: New file.
19269 * config/gcn/t-gcn-hsa: New file.
19270
19271 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19272 Kwok Cheung Yeung <kcy@codesourcery.com>
19273 Julian Brown <julian@codesourcery.com>
19274 Tom de Vries <tom@codesourcery.com>
19275 Jan Hubicka <hubicka@ucw.cz>
19276 Martin Jambor <mjambor@suse.cz>
19277
19278 * config/gcn/constraints.md: New file.
19279 * config/gcn/gcn-valu.md: New file.
19280 * config/gcn/gcn.md: New file.
19281 * config/gcn/predicates.md: New file.
19282
19283 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
19284
19285 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
19286 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
19287 (stmt_uses_0_or_null_in_undefined_way): Likewise.
19288 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
19289
19290 2019-01-17 Tamar Christina <tamar.christina@arm.com>
19291
19292 PR target/88851
19293 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
19294 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
19295 it and document registers.
19296
19297 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19298
19299 * config/aarch64/aarch64.c (ares_tunings): Define.
19300 * config/aarch64/aarch64-cores.def (ares): Use the above.
19301
19302 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19303
19304 PR target/88794
19305 Revert:
19306 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
19307
19308 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
19309 (_mm512_fixupimm_round_pd): Update parameters and builtin.
19310 (_mm512_maskz_fixupimm_round_pd): Ditto.
19311 (_mm512_fixupimm_round_ps): Ditto.
19312 (_mm512_maskz_fixupimm_round_ps): Ditto.
19313 (_mm_fixupimm_round_sd): Ditto.
19314 (_mm_maskz_fixupimm_round_sd): Ditto.
19315 (_mm_fixupimm_round_ss): Ditto.
19316 (_mm_maskz_fixupimm_round_ss): Ditto.
19317 (_mm512_fixupimm_pd): Ditto.
19318 (_mm512_maskz_fixupimm_pd): Ditto.
19319 (_mm512_fixupimm_ps): Ditto.
19320 (_mm512_maskz_fixupimm_ps): Ditto.
19321 (_mm_fixupimm_sd): Ditto.
19322 (_mm_maskz_fixupimm_sd): Ditto.
19323 (_mm_fixupimm_ss): Ditto.
19324 (_mm_maskz_fixupimm_ss): Ditto.
19325 (_mm512_mask_fixupimm_round_pd): Update builtin.
19326 (_mm512_mask_fixupimm_round_ps): Ditto.
19327 (_mm_mask_fixupimm_round_sd): Ditto.
19328 (_mm_mask_fixupimm_round_ss): Ditto.
19329 (_mm512_mask_fixupimm_pd): Ditto.
19330 (_mm512_mask_fixupimm_ps): Ditto.
19331 (_mm_mask_fixupimm_sd): Ditto.
19332 (_mm_mask_fixupimm_ss): Ditto.
19333 * config/i386/avx512vlintrin.h:
19334 (_mm256_fixupimm_pd): Update parameters and builtin.
19335 (_mm256_maskz_fixupimm_pd): Ditto.
19336 (_mm256_fixupimm_ps): Ditto.
19337 (_mm256_maskz_fixupimm_ps): Ditto.
19338 (_mm_fixupimm_pd): Ditto.
19339 (_mm_maskz_fixupimm_pd): Ditto.
19340 (_mm_fixupimm_ps): Ditto.
19341 (_mm_maskz_fixupimm_ps): Ditto.
19342 (_mm256_mask_fixupimm_pd): Update builtin.
19343 (_mm256_mask_fixupimm_ps): Ditto.
19344 (_mm_mask_fixupimm_pd): Ditto.
19345 (_mm_mask_fixupimm_ps): Ditto.
19346 * config/i386/i386-builtin-types.def: Add new types and remove
19347 useless ones.
19348 * config/i386/i386-builtin.def: Update builtin definitions.
19349 * config/i386/i386.c: Handle new builtin types and remove useless ones.
19350 * config/i386/sse.md: Update VFIXUPIMM* patterns.
19351 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19352 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19353 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
19354 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19355 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19356 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
19357 * config/i386/subst.md:
19358 (round_saeonly_sd_mask_operand4): Add new subst_attr.
19359 (round_saeonly_sd_mask_op4): Ditto.
19360 (round_saeonly_expand_operand5): Ditto.
19361 (round_saeonly_expand): Update.
19362
19363 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19364
19365 PR target/88794
19366 Revert:
19367 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
19368
19369 * config/i386/sse.md: Combine VFIXUPIMM* patterns
19370 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19371 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19372 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
19373 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19374 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19375 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
19376
19377 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19378
19379 PR target/88794
19380 Revert:
19381 2018-12-15 Jakub Jelinek <jakub@redhat.com>
19382
19383 PR target/88489
19384 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
19385 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
19386 instead of UNSPEC_FIXUPIMM.
19387
19388 2019-01-17 Richard Biener <rguenther@suse.de>
19389
19390 PR lto/86736
19391 * dwarf2out.c (want_pubnames): Never generate pubnames sections
19392 and friends for the LTO part of debug info.
19393
19394 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19395
19396 PR tree-optimization/86214
19397 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
19398 if x == y.
19399
19400 PR rtl-optimization/88870
19401 * dce.c (deletable_insn_p): Never delete const/pure calls that can
19402 throw if we can't alter the cfg or delete dead exceptions.
19403 (mark_insn): Don't call find_call_stack_args for such calls.
19404
19405 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
19406
19407 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
19408 prototypes for vec_st.
19409 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
19410 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
19411 mainly on signed/unsigned long long and double.
19412
19413 2019-01-16 David Malcolm <dmalcolm@redhat.com>
19414
19415 PR target/88861
19416 * combine.c (delete_noop_moves): Convert to "bool" return,
19417 returning true if any edges are eliminated.
19418 (combine_instructions): Also return true if delete_noop_moves
19419 returns true.
19420
19421 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19422
19423 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
19424 correct max nunits for endian swap.
19425 (aarch64_expand_fcmla_builtin): Correct subreg code.
19426 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19427 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
19428 lane endianness.
19429
19430 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
19431
19432 * config/alpha/alpha.c (alpha_gimplify_va_arg):
19433 Handle split indirect COMPLEX_TYPE arguments.
19434
19435 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
19436
19437 PR target/86891
19438 * config/aarch64/aarch64-modes.def: Add comment about how the carry
19439 bit is set by add and compare.
19440 (CC_ADC): New CC_MODE.
19441 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
19442 to cache the code and mode of X. Adjust the shape of a CC_Cmode
19443 comparison. Add detection for CC_ADCmode.
19444 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
19445 CC_ADCmode.
19446 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
19447 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
19448 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
19449 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
19450 to eliminate the need for zero-extending the operands.
19451 (add<mode>3_compareC_imm): Delete. Merge into ...
19452 (add<mode>3_compareC): ... this. Restructure the comparison to
19453 eliminate the need for zero-extending the operands.
19454 (add<mode>3_carryin): Use LTU for the overflow detection.
19455 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
19456 Reexpress comparison for overflow.
19457 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
19458 (add<mode>3_carryinC): Likewise.
19459 (add<mode>3_carryinV): Use LTU for carry between partials.
19460 * config/aarch64/predicates.md (aarch64_carry_operation): Update
19461 handling of CC_Cmode and add CC_ADCmode.
19462 (aarch64_borrow_operation): Likewise.
19463
19464 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19465
19466 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
19467 Remove patternmode.
19468 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
19469 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19470 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
19471 Remove endianness conversion.
19472
19473 2019-01-16 Martin Liska <mliska@suse.cz>
19474
19475 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
19476 for GCC driver.
19477 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
19478 a new argument.
19479 * gcc.c (add_sysrooted_hdrs_prefix): New function.
19480 (path_prefix_reset): Move up in the source file.
19481 (find_fortran_preinclude_file): Make complex search for the
19482 fortran header files.
19483
19484 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
19485
19486 * godump.c (go_output_typedef): When outputting a typedef, refer
19487 to the underlying type by its name and not its structure.
19488
19489 2019-01-15 David Malcolm <dmalcolm@redhat.com>
19490
19491 PR c++/88795
19492 * tree.c (build_function_type): Assert that arg_types is not
19493 error_mark_node.
19494
19495 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
19496
19497 PR inline-asm/52813
19498 * doc/extend.texi: Document that listing the stack pointer in the
19499 clobber list of an asm is a deprecated feature.
19500 * common.opt (Wdeprecated): Moved from c-family/c.opt.
19501 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
19502 warning instead of an error for clobbers of the stack pointer.
19503 Add a note explaining why.
19504
19505 2019-01-15 Richard Biener <rguenther@suse.de>
19506
19507 PR debug/88046
19508 * dwarf2out.c (gen_member_die): Do not generate inheritance
19509 DIEs late.
19510
19511 2019-01-15 Richard Biener <rguenther@suse.de>
19512
19513 PR tree-optimization/88855
19514 * tree-if-conv.c (combine_blocks): Collect
19515 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
19516
19517 2019-01-15 Tom de Vries <tdevries@suse.de>
19518
19519 PR target/80547
19520 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
19521 lhs == NULL_TREE for gang-level reduction.
19522
19523 2019-01-15 Richard Biener <rguenther@suse.de>
19524 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19525
19526 PR ipa/88788
19527 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
19528 return true if SSA_NAME is already marked in visited bitmap.
19529 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
19530
19531 2019-01-15 Jakub Jelinek <jakub@redhat.com>
19532
19533 PR tree-optimization/88775
19534 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
19535 equal == 0 equality pointer comparisons some more if compared in
19536 integral types and either one points to an automatic var and the
19537 other to a global, or we can prove at least one points to the middle
19538 or both point to start or both point to end.
19539
19540 2019-01-14 Andi Kleen <ak@linux.intel.com>
19541
19542 * Makefile.in: Lower autofdo sampling rate by 10x.
19543 * Makefile.tpl: Dito.
19544
19545 2019-01-14 Tom Honermann <tom@honermann.net>
19546
19547 * defaults.h: Define CHAR8_TYPE.
19548
19549 2019-01-14 Martin Sebor <msebor@redhat.com>
19550
19551 PR target/88638
19552 * doc/extend.texi (Darwin Format Checks): Clarify.
19553
19554 2019-01-14 Richard Biener <rguenther@suse.de>
19555
19556 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19557 whether we are in (simplify ...) or (match ...) context.
19558
19559 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19560
19561 PR rtl-optimization/88796
19562 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19563 * cfgexpand.c (stack_protect_prologue): Initialize
19564 crtl->stack_protect_guard_decl.
19565 * function.c (stack_protect_epilogue): Use it instead of calling
19566 targetm.stack_protect_guard again.
19567 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19568 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19569 crtl->stack_protect_guard_decl.
19570 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19571 on the returned MEM_EXPR.
19572
19573 2019-01-12 Tom de Vries <tdevries@suse.de>
19574
19575 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19576 vector length using -fopenacc-dim.
19577
19578 2019-01-12 Tom de Vries <tdevries@suse.de>
19579
19580 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19581 lengths into account.
19582
19583 2019-01-12 Svante Signell <svante.signell@gmail.com>
19584
19585 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19586 (TARGET_CAN_SPLIT_STACK): Define.
19587 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19588
19589 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19590
19591 * params.def (inline-unit-growth): Set to 40.
19592
19593 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19594
19595 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19596
19597 2019-01-12 Tom de Vries <tdevries@suse.de>
19598
19599 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19600 region calling vector-partitionable routine, set default_vector_length
19601 to WARP_SIZE.
19602
19603 2019-01-12 Tom de Vries <tdevries@suse.de>
19604
19605 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19606 variable default_vector_length.
19607
19608 2019-01-12 Tom de Vries <tdevries@suse.de>
19609
19610 PR middle-end/88703
19611 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19612 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19613 dimensions limits.
19614
19615 2019-01-12 Tom de Vries <tdevries@suse.de>
19616
19617 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19618 (nvptx_goacc_validate_dims): Add used parameter.
19619 * doc/tm.texi: Regenerate.
19620 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19621 argument to call to targetm.goacc.validate_dims.
19622 (default_goacc_validate_dims): Add used
19623 parameter.
19624 * target.def (validate_dims): Add used parameter in DEFHOOK.
19625 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19626
19627 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19628
19629 PR middle-end/85956
19630 PR lto/88733
19631 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19632 field.
19633 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19634 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19635 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19636 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19637
19638 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19639
19640 PR rtl-optimization/87305
19641 * lra-assigns.c
19642 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19643 for little endian pseudos used as paradoxical subreg.
19644
19645 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19646
19647 PR tree-optimization/88693
19648 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19649 for STRING_CSTs that don't contain any NUL characters in the first
19650 TREE_STRING_LENGTH bytes.
19651
19652 2019-01-11 Alan Modra <amodra@gmail.com>
19653
19654 PR 88777
19655 PR 88614
19656 * genattrtab.c (min_fn): Don't translate values.
19657 (min_attr_value): Return INT_MAX when the value can't be calculated.
19658 Return minimum among any values that can be calculated.
19659 (max_attr_value): Adjust.
19660
19661 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19662
19663 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19664
19665 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19666
19667 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19668 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19669 (aarch64_return_call_with_max_clobbers): New function.
19670 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19671 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19672 argument.
19673 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19674 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19675 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19676 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19677 * cselib.c (cselib_process_insn): Add argument to
19678 targetm.hard_regno_call_part_clobbered call.
19679 * ira-conflicts.c (ira_build_conflicts): Ditto.
19680 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19681 * lra-constraints.c (inherit_reload_reg): Ditto.
19682 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19683 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19684 argument. Call targetm.return_call_with_max_clobbers.
19685 Add argument to targetm.hard_regno_call_part_clobbered call.
19686 (calls_have_same_clobbers_p): New function.
19687 (process_bb_lives): Add call_insn and last_call_insn variables.
19688 Pass call_insn to check_pseudos_live_through_calls.
19689 Modify if stmt to check targetm.return_call_with_max_clobbers.
19690 Update setting of flush variable.
19691 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19692 to false.
19693 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19694 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19695 targetm.hard_regno_call_part_clobbered call.
19696 * reginfo.c (choose_hard_reg_mode): Ditto.
19697 * regrename.c (check_new_reg_p): Ditto.
19698 * reload.c (find_equiv_reg): Ditto.
19699 * reload1.c (emit_reload_insns): Ditto.
19700 * sched-deps.c (deps_analyze_insn): Ditto.
19701 * sel-sched.c (init_regs_for_mode): Ditto.
19702 (mark_unavailable_hard_regs): Ditto.
19703 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19704 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19705 (return_call_with_max_clobbers): New target function.
19706 * doc/tm.texi: Regenerate.
19707 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19708 * hooks.c (hook_bool_uint_mode_false): Change to
19709 hook_bool_insn_uint_mode_false.
19710 * hooks.h (hook_bool_uint_mode_false): Ditto.
19711
19712 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19713
19714 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19715 (aarch64_remove_extra_call_preserved_regs): New function.
19716 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19717 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19718 * doc/tm.texi: Regenerate.
19719 * final.c (get_call_reg_set_usage): Call new hook.
19720 * target.def (remove_extra_call_preserved_regs): New hook.
19721 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19722 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19723
19724 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19725
19726 PR bootstrap/88714
19727 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19728 inside of pass_combine_1 dump rather than pass_profile_1.
19729
19730 2019-01-11 Tom de Vries <tdevries@suse.de>
19731
19732 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19733 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19734 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19735 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19736 num_workers 16.
19737
19738 2019-01-11 Tom de Vries <tdevries@suse.de>
19739
19740 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19741
19742 2019-01-11 Jan Beulich <jbeulich@suse.com>
19743
19744 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19745 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19746 sse2_cvtsi2sd): Add {l}.
19747 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19748 syntax.
19749
19750 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19751
19752 PR target/88785
19753 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19754 define_expand.
19755 (*float<floatunssuffix>v2div2sf2): New define_insn.
19756 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19757 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19758 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19759 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19760 match_operands with "const0_operand" "C".
19761
19762 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19763
19764 * config/aarch64/aarch64-builtins.c
19765 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19766 (aarch64_init_simd_builtins): ...Here
19767
19768 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19769
19770 PR rtl-optimization/87305
19771 * lra-assigns.c
19772 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19773 allocation for big endian pseudos used as paradoxical subregs and
19774 spill them if it is wrong.
19775 * lra-constraints.c (lra_constraints): Add a comment.
19776
19777 2019-01-10 Richard Biener <rguenther@suse.de>
19778
19779 PR tree-optimization/88792
19780 * tree-ssa-pre.c (get_representative_for): Do not return a
19781 value-number here.
19782
19783 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19784
19785 PR middle-end/84877
19786 PR bootstrap/88450
19787 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19788 (assign_parm_setup_block): Do the argument slot realignment here
19789 instead.
19790
19791 2019-01-10 Stefan Agner <stefan@agner.ch>
19792
19793 PR target/88648
19794 * config/arm/arm.c (arm_option_override_internal): Force
19795 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19796
19797 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19798
19799 PR c/88568
19800 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19801 DECL_EXTERNAL.
19802
19803 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19804
19805 * config/arm/arm-builtins.c
19806 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19807 (MAC_LANE_PAIR_QUALIFIERS): New.
19808 (arm_expand_builtin_args): Use it.
19809 (arm_expand_builtin_1): Likewise.
19810 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19811 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19812 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19813 * config/arm/arm_neon.h:
19814 (vcadd_rot90_f16): New.
19815 (vcaddq_rot90_f16): New.
19816 (vcadd_rot270_f16): New.
19817 (vcaddq_rot270_f16): New.
19818 (vcmla_f16): New.
19819 (vcmlaq_f16): New.
19820 (vcmla_lane_f16): New.
19821 (vcmla_laneq_f16): New.
19822 (vcmlaq_lane_f16): New.
19823 (vcmlaq_laneq_f16): New.
19824 (vcmla_rot90_f16): New.
19825 (vcmlaq_rot90_f16): New.
19826 (vcmla_rot90_lane_f16): New.
19827 (vcmla_rot90_laneq_f16): New.
19828 (vcmlaq_rot90_lane_f16): New.
19829 (vcmlaq_rot90_laneq_f16): New.
19830 (vcmla_rot180_f16): New.
19831 (vcmlaq_rot180_f16): New.
19832 (vcmla_rot180_lane_f16): New.
19833 (vcmla_rot180_laneq_f16): New.
19834 (vcmlaq_rot180_lane_f16): New.
19835 (vcmlaq_rot180_laneq_f16): New.
19836 (vcmla_rot270_f16): New.
19837 (vcmlaq_rot270_f16): New.
19838 (vcmla_rot270_lane_f16): New.
19839 (vcmla_rot270_laneq_f16): New.
19840 (vcmlaq_rot270_lane_f16): New.
19841 (vcmlaq_rot270_laneq_f16): New.
19842 (vcadd_rot90_f32): New.
19843 (vcaddq_rot90_f32): New.
19844 (vcadd_rot270_f32): New.
19845 (vcaddq_rot270_f32): New.
19846 (vcmla_f32): New.
19847 (vcmlaq_f32): New.
19848 (vcmla_lane_f32): New.
19849 (vcmla_laneq_f32): New.
19850 (vcmlaq_lane_f32): New.
19851 (vcmlaq_laneq_f32): New.
19852 (vcmla_rot90_f32): New.
19853 (vcmlaq_rot90_f32): New.
19854 (vcmla_rot90_lane_f32): New.
19855 (vcmla_rot90_laneq_f32): New.
19856 (vcmlaq_rot90_lane_f32): New.
19857 (vcmlaq_rot90_laneq_f32): New.
19858 (vcmla_rot180_f32): New.
19859 (vcmlaq_rot180_f32): New.
19860 (vcmla_rot180_lane_f32): New.
19861 (vcmla_rot180_laneq_f32): New.
19862 (vcmlaq_rot180_lane_f32): New.
19863 (vcmlaq_rot180_laneq_f32): New.
19864 (vcmla_rot270_f32): New.
19865 (vcmlaq_rot270_f32): New.
19866 (vcmla_rot270_lane_f32): New.
19867 (vcmla_rot270_laneq_f32): New.
19868 (vcmlaq_rot270_lane_f32): New.
19869 (vcmlaq_rot270_laneq_f32): New.
19870 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19871 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19872 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19873 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19874 vcmlaq_lane270): New.
19875 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19876 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
19877 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
19878 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
19879 (arm_option_reconfigure_globals): Use them.
19880 * config/arm/iterators.md (VDF, VQ_HSF): New.
19881 (VCADD, VCMLA): New.
19882 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
19883 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
19884 New.
19885 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
19886 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
19887
19888 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19889
19890 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19891 Add qualifier_lane_pair_index.
19892 (emit-rtl.h): Include.
19893 (TYPES_QUADOP_LANE_PAIR): New.
19894 (aarch64_simd_expand_args): Use it.
19895 (aarch64_simd_expand_builtin): Likewise.
19896 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
19897 New.
19898 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
19899 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
19900 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
19901 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
19902 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
19903 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
19904 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
19905 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
19906 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
19907 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
19908 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
19909 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
19910 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
19911 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19912 Add __ARM_FEATURE_COMPLEX.
19913 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
19914 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
19915 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
19916 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19917 fcmlaq_lane270): New.
19918 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19919 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
19920 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
19921 * config/aarch64/arm_neon.h:
19922 (vcadd_rot90_f16): New.
19923 (vcaddq_rot90_f16): New.
19924 (vcadd_rot270_f16): New.
19925 (vcaddq_rot270_f16): New.
19926 (vcmla_f16): New.
19927 (vcmlaq_f16): New.
19928 (vcmla_lane_f16): New.
19929 (vcmla_laneq_f16): New.
19930 (vcmlaq_lane_f16): New.
19931 (vcmlaq_rot90_lane_f16): New.
19932 (vcmla_rot90_laneq_f16): New.
19933 (vcmla_rot90_lane_f16): New.
19934 (vcmlaq_rot90_f16): New.
19935 (vcmla_rot90_f16): New.
19936 (vcmlaq_laneq_f16): New.
19937 (vcmla_rot180_laneq_f16): New.
19938 (vcmla_rot180_lane_f16): New.
19939 (vcmlaq_rot180_f16): New.
19940 (vcmla_rot180_f16): New.
19941 (vcmlaq_rot90_laneq_f16): New.
19942 (vcmlaq_rot270_laneq_f16): New.
19943 (vcmlaq_rot270_lane_f16): New.
19944 (vcmla_rot270_laneq_f16): New.
19945 (vcmlaq_rot270_f16): New.
19946 (vcmla_rot270_f16): New.
19947 (vcmlaq_rot180_laneq_f16): New.
19948 (vcmlaq_rot180_lane_f16): New.
19949 (vcmla_rot270_lane_f16): New.
19950 (vcadd_rot90_f32): New.
19951 (vcaddq_rot90_f32): New.
19952 (vcaddq_rot90_f64): New.
19953 (vcadd_rot270_f32): New.
19954 (vcaddq_rot270_f32): New.
19955 (vcaddq_rot270_f64): New.
19956 (vcmla_f32): New.
19957 (vcmlaq_f32): New.
19958 (vcmlaq_f64): New.
19959 (vcmla_lane_f32): New.
19960 (vcmla_laneq_f32): New.
19961 (vcmlaq_lane_f32): New.
19962 (vcmlaq_laneq_f32): New.
19963 (vcmla_rot90_f32): New.
19964 (vcmlaq_rot90_f32): New.
19965 (vcmlaq_rot90_f64): New.
19966 (vcmla_rot90_lane_f32): New.
19967 (vcmla_rot90_laneq_f32): New.
19968 (vcmlaq_rot90_lane_f32): New.
19969 (vcmlaq_rot90_laneq_f32): New.
19970 (vcmla_rot180_f32): New.
19971 (vcmlaq_rot180_f32): New.
19972 (vcmlaq_rot180_f64): New.
19973 (vcmla_rot180_lane_f32): New.
19974 (vcmla_rot180_laneq_f32): New.
19975 (vcmlaq_rot180_lane_f32): New.
19976 (vcmlaq_rot180_laneq_f32): New.
19977 (vcmla_rot270_f32): New.
19978 (vcmlaq_rot270_f32): New.
19979 (vcmlaq_rot270_f64): New.
19980 (vcmla_rot270_lane_f32): New.
19981 (vcmla_rot270_laneq_f32): New.
19982 (vcmlaq_rot270_lane_f32): New.
19983 (vcmlaq_rot270_laneq_f32): New.
19984 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
19985 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
19986 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
19987 (FCADD, FCMLA): New.
19988 (rot): New.
19989 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
19990
19991 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19992
19993 PR other/16615
19994
19995 * config/pa/pa.c: Change "can not" to "cannot".
19996 * gimple-ssa-evrp-analyze.c: Likewise.
19997 * ipa-icf.c: Likewise.
19998 * ipa-polymorphic-call.c: Likewise.
19999 * ipa-pure-const.c: Likewise.
20000 * lra-constraints.c: Likewise.
20001 * lra-remat.c: Likewise.
20002 * reload1.c: Likewise.
20003 * reorg.c: Likewise.
20004 * tree-ssa-uninit.c: Likewise.
20005
20006 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20007
20008 PR other/16615
20009
20010 * Makefile.in: Mechanically replace "can not" with "cannot".
20011 * alias.c: Likewise.
20012 * builtins.c: Likewise.
20013 * calls.c: Likewise.
20014 * cgraph.c: Likewise.
20015 * cgraph.h: Likewise.
20016 * cgraphclones.c: Likewise.
20017 * cgraphunit.c: Likewise.
20018 * combine-stack-adj.c: Likewise.
20019 * combine.c: Likewise.
20020 * common/config/i386/i386-common.c: Likewise.
20021 * config/aarch64/aarch64.c: Likewise.
20022 * config/alpha/sync.md: Likewise.
20023 * config/arc/arc.c: Likewise.
20024 * config/arc/predicates.md: Likewise.
20025 * config/arm/arm-c.c: Likewise.
20026 * config/arm/arm.c: Likewise.
20027 * config/arm/arm.h: Likewise.
20028 * config/arm/arm.md: Likewise.
20029 * config/arm/cortex-r4f.md: Likewise.
20030 * config/csky/csky.c: Likewise.
20031 * config/csky/csky.h: Likewise.
20032 * config/darwin-f.c: Likewise.
20033 * config/epiphany/epiphany.md: Likewise.
20034 * config/i386/i386.c: Likewise.
20035 * config/i386/sol2.h: Likewise.
20036 * config/m68k/m68k.c: Likewise.
20037 * config/mcore/mcore.h: Likewise.
20038 * config/microblaze/microblaze.md: Likewise.
20039 * config/mips/20kc.md: Likewise.
20040 * config/mips/sb1.md: Likewise.
20041 * config/nds32/nds32.c: Likewise.
20042 * config/nds32/predicates.md: Likewise.
20043 * config/pa/pa.c: Likewise.
20044 * config/rs6000/e300c2c3.md: Likewise.
20045 * config/rs6000/rs6000.c: Likewise.
20046 * config/s390/s390.h: Likewise.
20047 * config/sh/sh.c: Likewise.
20048 * config/sh/sh.md: Likewise.
20049 * config/spu/vmx2spu.h: Likewise.
20050 * cprop.c: Likewise.
20051 * dbxout.c: Likewise.
20052 * df-scan.c: Likewise.
20053 * doc/cfg.texi: Likewise.
20054 * doc/extend.texi: Likewise.
20055 * doc/fragments.texi: Likewise.
20056 * doc/gty.texi: Likewise.
20057 * doc/invoke.texi: Likewise.
20058 * doc/lto.texi: Likewise.
20059 * doc/md.texi: Likewise.
20060 * doc/objc.texi: Likewise.
20061 * doc/rtl.texi: Likewise.
20062 * doc/tm.texi: Likewise.
20063 * dse.c: Likewise.
20064 * emit-rtl.c: Likewise.
20065 * emit-rtl.h: Likewise.
20066 * except.c: Likewise.
20067 * expmed.c: Likewise.
20068 * expr.c: Likewise.
20069 * fold-const.c: Likewise.
20070 * genautomata.c: Likewise.
20071 * gimple-fold.c: Likewise.
20072 * hard-reg-set.h: Likewise.
20073 * ifcvt.c: Likewise.
20074 * ipa-comdats.c: Likewise.
20075 * ipa-cp.c: Likewise.
20076 * ipa-devirt.c: Likewise.
20077 * ipa-fnsummary.c: Likewise.
20078 * ipa-icf.c: Likewise.
20079 * ipa-inline-transform.c: Likewise.
20080 * ipa-inline.c: Likewise.
20081 * ipa-polymorphic-call.c: Likewise.
20082 * ipa-profile.c: Likewise.
20083 * ipa-prop.c: Likewise.
20084 * ipa-pure-const.c: Likewise.
20085 * ipa-reference.c: Likewise.
20086 * ipa-split.c: Likewise.
20087 * ipa-visibility.c: Likewise.
20088 * ipa.c: Likewise.
20089 * ira-build.c: Likewise.
20090 * ira-color.c: Likewise.
20091 * ira-conflicts.c: Likewise.
20092 * ira-costs.c: Likewise.
20093 * ira-int.h: Likewise.
20094 * ira-lives.c: Likewise.
20095 * ira.c: Likewise.
20096 * ira.h: Likewise.
20097 * loop-invariant.c: Likewise.
20098 * loop-unroll.c: Likewise.
20099 * lower-subreg.c: Likewise.
20100 * lra-assigns.c: Likewise.
20101 * lra-constraints.c: Likewise.
20102 * lra-eliminations.c: Likewise.
20103 * lra-lives.c: Likewise.
20104 * lra-remat.c: Likewise.
20105 * lra-spills.c: Likewise.
20106 * lra.c: Likewise.
20107 * lto-cgraph.c: Likewise.
20108 * lto-streamer-out.c: Likewise.
20109 * postreload-gcse.c: Likewise.
20110 * predict.c: Likewise.
20111 * profile-count.h: Likewise.
20112 * profile.c: Likewise.
20113 * recog.c: Likewise.
20114 * ree.c: Likewise.
20115 * reload.c: Likewise.
20116 * reload1.c: Likewise.
20117 * reorg.c: Likewise.
20118 * resource.c: Likewise.
20119 * rtl.def: Likewise.
20120 * rtl.h: Likewise.
20121 * rtlanal.c: Likewise.
20122 * sched-deps.c: Likewise.
20123 * sched-ebb.c: Likewise.
20124 * sched-rgn.c: Likewise.
20125 * sel-sched-ir.c: Likewise.
20126 * sel-sched.c: Likewise.
20127 * shrink-wrap.c: Likewise.
20128 * simplify-rtx.c: Likewise.
20129 * symtab.c: Likewise.
20130 * target.def: Likewise.
20131 * toplev.c: Likewise.
20132 * tree-call-cdce.c: Likewise.
20133 * tree-cfg.c: Likewise.
20134 * tree-complex.c: Likewise.
20135 * tree-core.h: Likewise.
20136 * tree-eh.c: Likewise.
20137 * tree-inline.c: Likewise.
20138 * tree-loop-distribution.c: Likewise.
20139 * tree-nrv.c: Likewise.
20140 * tree-profile.c: Likewise.
20141 * tree-sra.c: Likewise.
20142 * tree-ssa-alias.c: Likewise.
20143 * tree-ssa-dce.c: Likewise.
20144 * tree-ssa-dom.c: Likewise.
20145 * tree-ssa-forwprop.c: Likewise.
20146 * tree-ssa-loop-im.c: Likewise.
20147 * tree-ssa-loop-ivcanon.c: Likewise.
20148 * tree-ssa-loop-ivopts.c: Likewise.
20149 * tree-ssa-loop-niter.c: Likewise.
20150 * tree-ssa-phionlycprop.c: Likewise.
20151 * tree-ssa-phiopt.c: Likewise.
20152 * tree-ssa-propagate.c: Likewise.
20153 * tree-ssa-threadedge.c: Likewise.
20154 * tree-ssa-threadupdate.c: Likewise.
20155 * tree-ssa-uninit.c: Likewise.
20156 * tree-ssanames.c: Likewise.
20157 * tree-streamer-out.c: Likewise.
20158 * tree.c: Likewise.
20159 * tree.h: Likewise.
20160 * vr-values.c: Likewise.
20161
20162 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
20163
20164 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
20165 (ix86_split_xorsign): Ditto.
20166 * config/i386/i386.c (ix86_expand_xorsign): New function.
20167 (ix86_split_xorsign): Ditto.
20168 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
20169 (xorsign<mode>3): New expander.
20170 (xorsign<mode>3_1): New insn_and_split pattern.
20171 * config/i386/sse.md (xorsign<mode>3): New expander.
20172
20173 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20174
20175 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
20176 (*tablejump_sp64): Likewise.
20177 (*tablejump<P:mode>): ...this.
20178 (*call_address_sp32): Merge into...
20179 (*call_address_sp64): Likewise.
20180 (*call_address<P:mode>): ...this.
20181 (*call_symbolic_sp32): Merge into...
20182 (*call_symbolic_sp64): Likewise.
20183 (*call_symbolic<P:mode>): ...this.
20184 (call_value): Remove constraint and add predicate.
20185 (*call_value_address_sp32): Merge into...
20186 (*call_value_address_sp64): Likewise.
20187 (*call_value_address<P:mode>): ...this.
20188 (*call_value_symbolic_sp32): Merge into...
20189 (*call_value_symbolic_sp64): Likewise.
20190 (*call_value_symbolic<P:mode>): ...this.
20191 (*sibcall_symbolic_sp32): Merge into...
20192 (*sibcall_symbolic_sp64): Likewise.
20193 (*sibcall_symbolic<P:mode>): ...this.
20194 (sibcall_value): Remove constraint and add predicate.
20195 (*sibcall_value_symbolic_sp32): Merge into...
20196 (*sibcall_value_symbolic_sp64): Likewise.
20197 (*sibcall_value_symbolic<P:mode>): ...this.
20198 (window_save): Minor tweak.
20199 (*branch_sp32): Merge into...
20200 (*branch_sp64): Likewise.
20201 (*branch<P:mode>): ...this.
20202
20203 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20204 James Clarke <jrtc27@jrtc27.com>
20205
20206 PR target/84010
20207 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
20208 consistently in TLS address generation and adjust code to the renaming
20209 of patterns. Mark calls to __tls_get_addr as const.
20210 * config/sparc/sparc.md (tgd_hi22): Turn into...
20211 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
20212 (tgd_lo10): Turn into...
20213 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
20214 (tgd_add32): Merge into...
20215 (tgd_add64): Likewise.
20216 (tgd_add<P:mode>): ...this and use Pmode throughout.
20217 (tldm_hi22): Turn into...
20218 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
20219 (tldm_lo10): Turn into...
20220 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
20221 (tldm_add32): Merge into...
20222 (tldm_add64): Likewise.
20223 (tldm_add<P:mode>): ...this and use Pmode throughout.
20224 (tldm_call32): Merge into...
20225 (tldm_call64): Likewise.
20226 (tldm_call<P:mode>): ...this and use Pmode throughout.
20227 (tldo_hix22): Turn into...
20228 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
20229 (tldo_lox10): Turn into...
20230 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
20231 (tldo_add32): Merge into...
20232 (tldo_add64): Likewise.
20233 (tldo_add<P:mode>): ...this and use Pmode throughout.
20234 (tie_hi22): Turn into...
20235 (tie_hi22<P:mode>): ...this and use Pmode throughout.
20236 (tie_lo10): Turn into...
20237 (tie_lo10<P:mode>): ...this and use Pmode throughout.
20238 (tie_ld64): Use DImode throughout.
20239 (tie_add32): Merge into...
20240 (tie_add64): Likewise.
20241 (tie_add<P:mode>): ...this and use Pmode throughout.
20242 (tle_hix22_sp32): Merge into...
20243 (tle_hix22_sp64): Likewise.
20244 (tle_hix22<P:mode>): ...this and use Pmode throughout.
20245 (tle_lox22_sp32): Merge into...
20246 (tle_lox22_sp64): Likewise.
20247 (tle_lox22<P:mode>): ...this and use Pmode throughout.
20248 (*tldo_ldub_sp32): Merge into...
20249 (*tldo_ldub_sp64): Likewise.
20250 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
20251 (*tldo_ldub1_sp32): Merge into...
20252 (*tldo_ldub1_sp64): Likewise.
20253 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
20254 (*tldo_ldub2_sp32): Merge into...
20255 (*tldo_ldub2_sp64): Likewise.
20256 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
20257 (*tldo_ldsb1_sp32): Merge into...
20258 (*tldo_ldsb1_sp64): Likewise.
20259 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
20260 (*tldo_ldsb2_sp32): Merge into...
20261 (*tldo_ldsb2_sp64): Likewise.
20262 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
20263 (*tldo_ldub3_sp64): Use DImode throughout.
20264 (*tldo_ldsb3_sp64): Likewise.
20265 (*tldo_lduh_sp32): Merge into...
20266 (*tldo_lduh_sp64): Likewise.
20267 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
20268 (*tldo_lduh1_sp32): Merge into...
20269 (*tldo_lduh1_sp64): Likewise.
20270 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
20271 (*tldo_ldsh1_sp32): Merge into...
20272 (*tldo_ldsh1_sp64): Likewise.
20273 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
20274 (*tldo_lduh2_sp64): Use DImode throughout.
20275 (*tldo_ldsh2_sp64): Likewise.
20276 (*tldo_lduw_sp32): Merge into...
20277 (*tldo_lduw_sp64): Likewise.
20278 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
20279 (*tldo_lduw1_sp64): Use DImode throughout.
20280 (*tldo_ldsw1_sp64): Likewise.
20281 (*tldo_ldx_sp64): Likewise.
20282 (*tldo_stb_sp32): Merge into...
20283 (*tldo_stb_sp64): Likewise.
20284 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
20285 (*tldo_sth_sp32): Merge into...
20286 (*tldo_sth_sp64): Likewise.
20287 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
20288 (*tldo_stw_sp32): Merge into...
20289 (*tldo_stw_sp64): Likewise.
20290 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
20291 (*tldo_stx_sp64): Use DImode throughout.
20292
20293 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20294
20295 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
20296 check configure option to set BTI and Return Address Signing.
20297 * configure.ac: Add --enable-standard-branch-protection and
20298 --disable-standard-branch-protection.
20299 * configure: Regenerated.
20300 * doc/install.texi: Document the same.
20301
20302 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20303 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20304
20305 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
20306 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
20307 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
20308 if bti is enabled.
20309 * config/aarch64/aarch64-bti-insert.c: New file.
20310 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
20311 pass.
20312 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
20313 new bti pass.
20314 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
20315 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
20316 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
20317 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
20318
20319 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20320
20321 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
20322 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
20323 Disable bti for -mbranch-protection=none.
20324 (aarch64_handle_standard_branch_protection): Enable bti for
20325 -mbranch-protection=standard.
20326 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
20327 -mbranch-protection.
20328 (aarch64_bti_enabled): Check if bti is enabled.
20329 * config/aarch64/aarch64.opt: Declare target variable.
20330 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
20331
20332 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20333
20334 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
20335 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
20336 (aarch64_expand_epilogue): Likewise.
20337 (aarch64_output_mi_thunk): Likewise.
20338 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
20339 TAILCALL_ADDR_REGS to x16 and x17.
20340 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
20341
20342 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20343
20344 * config/aarch64/aarch64-option-extensions.def: Define
20345 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
20346 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
20347 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
20348 (AARCH64_FL_PREDRES): New.
20349 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
20350 AARCH64_FL_PREDRES by default.
20351 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
20352
20353 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20354
20355 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
20356 ARMv8.5-A.
20357 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
20358 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
20359 * doc/invoke.texi: Document ARMv8.5-A.
20360
20361 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20362
20363 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
20364 (xorsign<mode>3): Likewise.
20365
20366 2019-01-09 Jelinek <jakub@redhat.com>
20367
20368 PR middle-end/88758
20369 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
20370 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
20371
20372 PR rtl-optimization/88331
20373 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
20374 not currently_expanding_to_rtl.
20375
20376 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20377
20378 * doc/invoke.texi (-Os): Remove trailing spaces.
20379 (-finline-functions): Remove reference to -O2.
20380
20381 2019-01-08 Jakub Jelinek <jakub@redhat.com>
20382
20383 PR rtl-optimization/79593
20384 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
20385
20386 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
20387 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
20388
20389 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
20390
20391 PR bootstrap/88721
20392 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
20393 to -1 on entry.
20394
20395 PR debug/88723
20396 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
20397 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
20398
20399 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
20400
20401 PR target/88717
20402 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
20403 ix86_avx_u128_mode_entry.
20404
20405 2019-01-08 Martin Liska <mliska@suse.cz>
20406
20407 PR tree-optimization/88753
20408 * tree-switch-conversion.c (switch_conversion::build_one_array):
20409 Come up with local variable constructor. Convert first to
20410 type of constructor values.
20411
20412 2019-01-08 Richard Biener <rguenther@suse.de>
20413
20414 PR tree-optimization/86554
20415 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
20416 rpo_avail): Move earlier.
20417 (visit_nary_op): When value-numbering to expressions
20418 with different overflow behavior make sure there's an
20419 available expression on the path.
20420
20421 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
20422
20423 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
20424 aarch64_parse_branch_protection,
20425 struct aarch64_branch_protect_type,
20426 aarch64_handle_no_branch_protection,
20427 aarch64_handle_standard_branch_protection,
20428 aarch64_validate_mbranch_protection,
20429 aarch64_handle_pac_ret_protection,
20430 aarch64_handle_attr_branch_protection,
20431 accepted_branch_protection_string,
20432 aarch64_pac_ret_subtypes,
20433 aarch64_branch_protect_types,
20434 aarch64_handle_pac_ret_leaf): Define.
20435 (aarch64_override_options_after_change_1, aarch64_override_options):
20436 Add check for accepted_branch_protection_string.
20437 (aarch64_option_save): Save accepted_branch_protection_string.
20438 (aarch64_option_restore): Save accepted_branch_protection_string.
20439 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
20440 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
20441 msign-return-address.
20442 * doc/invoke.texi: Add mbranch-protection.
20443
20444 2019-01-08 Alan Modra <amodra@gmail.com>
20445
20446 PR target/88614
20447 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
20448 Delete "unknownp" parameter. Adjust callers. Handle
20449 CONST_INT, PLUS, MINUS, and MULT.
20450 (attr_value_aligned): Renamed from or_attr_value.
20451 (min_attr_value): Return INT_MIN for unhandled rtl case..
20452 (min_fn): ..and translate to INT_MAX here.
20453 (write_length_unit_log): Modify to cope without "unknown".
20454 (write_attr_value): Handle IF_THEN_ELSE.
20455
20456 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20457
20458 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
20459 optimization for masked stores.
20460
20461 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20462
20463 PR middle-end/88567
20464 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
20465 output vector directly to duplicate_and_interleave instead of
20466 going through a temporary. Postpone insertion of ctor_seq to
20467 the end of the loop.
20468
20469 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
20470
20471 PR target/86891
20472 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
20473 unsigned_p. Handle signed and unsigned overflow correction as
20474 required.
20475 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
20476 prototype.
20477 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
20478 for operand 2.
20479 (add<mode>3_compareV_imm): Make this callable for expanding.
20480 (subv<GPI:mode>4): Use register_operand for operand 1. Use
20481 aarch64_plus_operand for operand 2.
20482 (subv<GPI:mode>_insn): New insn pattern.
20483 (subv<GPI:mode>_imm): Likewise.
20484 (negv<GPI:mode>3): New expand pattern.
20485 (negv<GPI:mode>_insn): New insn pattern.
20486 (negv<GPI:mode>_cmp_only): Likewise.
20487 (cmpv<GPI:mode>_insn): Likewise.
20488 (subvti4): Use register_operand for operand 1. Update call to
20489 aarch64_expand_subvti.
20490 (usubvti4): Likewise.
20491 (negvti3): New expand pattern.
20492 (negdi_carryout): New insn pattern.
20493 (negvdi_carryinV): New insn pattern.
20494 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
20495 version the named version.
20496 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
20497 operands.
20498 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
20499 patterns.
20500 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
20501 patterns.
20502 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
20503 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
20504 (sub<mode>3_carryinCV): Delete.
20505 (sub<GPI:mode>3_carryinV): New expand pattern.
20506 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
20507
20508 2019-01-07 Richard Biener <rguenther@suse.de>
20509
20510 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
20511 of tree_operand_hash.
20512
20513 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20514
20515 PR tree-optimization/88598
20516 * tree.h (single_nonzero_element): Declare.
20517 * tree.c (single_nonzero_element): New function.
20518 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
20519 if I is the only nonzero element of CST.
20520
20521 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20522
20523 PR tree-optimization/88598
20524 * tree.h (initializer_each_zero_or_onep): Declare.
20525 * tree.c (initializer_each_zero_or_onep): New function.
20526 (signed_or_unsigned_type_for): Handle float types too.
20527 (unsigned_type_for, signed_type_for): Update comments accordingly.
20528 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
20529 x & { 0 or -1, 0 or -1, ... }.
20530
20531 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
20532
20533 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
20534 with x86_64-pc-linux-gnu.
20535
20536 2019-01-07 Tom de Vries <tdevries@suse.de>
20537
20538 PR target/85486
20539 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
20540 function.
20541 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
20542 routines.
20543
20544 2019-01-07 Jakub Jelinek <jakub@redhat.com>
20545
20546 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
20547 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
20548 TARGET_AVX512F as condition.
20549
20550 PR debug/88723
20551 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
20552 const_not_ok_for_debug_p target hook.
20553 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20554 on UNSPEC and subexpressions thereof if all subexpressions of the
20555 UNSPEC are CONSTANT_P.
20556
20557 PR tree-optimization/88676
20558 * tree-ssa-phiopt.c (two_value_replacement): New function.
20559 (tree_ssa_phiopt_worker): Call it.
20560
20561 PR sanitizer/88619
20562 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20563 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20564
20565 PR c++/85052
20566 * tree-vect-generic.c: Include insn-config.h and recog.h.
20567 (expand_vector_piecewise): Add defaulted ret_type argument,
20568 if non-NULL, use that in preference to type for the result type.
20569 (expand_vector_parallel): Formatting fix.
20570 (do_vec_conversion, do_vec_narrowing_conversion,
20571 expand_vector_conversion): New functions.
20572 (expand_vector_operations_1): Call expand_vector_conversion
20573 for VEC_CONVERT ifn calls.
20574 * internal-fn.def (VEC_CONVERT): New internal function.
20575 * internal-fn.c (expand_VEC_CONVERT): New function.
20576 * fold-const-call.c (fold_const_vec_convert): New function.
20577 (fold_const_call): Use it for CFN_VEC_CONVERT.
20578 * doc/extend.texi (__builtin_convertvector): Document.
20579
20580 2019-01-07 Tom de Vries <tdevries@suse.de>
20581
20582 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20583 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20584 vector_red_partition, vector_red_sym): New global variables.
20585 (nvptx_option_override): Initialize vector_red_sym.
20586 (nvptx_declare_function_name): Restore red_partition register.
20587 (nvptx_file_end): Emit code to declare the vector reduction variables.
20588 (nvptx_output_red_partition): New function.
20589 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20590 large vector reductions.
20591 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20592 (nvptx_init_builtins): Add VECTOR_ADDR.
20593 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20594 Handle nvptx_expand_shared_addr.
20595 (nvptx_get_shared_red_addr): Add vector argument and handle large
20596 vectors.
20597 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20598 large vectors.
20599 (nvptx_goacc_reduction_init): Likewise.
20600 (nvptx_goacc_reduction_fini): Likewise.
20601 (nvptx_goacc_reduction_teardown): Likewise.
20602 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20603 init,fini,teardown}.
20604 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20605 (nvptx_set_current_function): Init vector_red_partition.
20606 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20607 (nvptx_red_partition): New insn.
20608 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20609
20610 2019-01-07 Tom de Vries <tdevries@suse.de>
20611
20612 PR target/85381
20613 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20614 empty loops.
20615
20616 2019-01-07 Tom de Vries <tdevries@suse.de>
20617
20618 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20619 (nvptx_option_override): Init oacc_bcast_partition.
20620 (nvptx_init_oacc_workers): New function.
20621 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20622 (nvptx_needs_shared_bcast): New function.
20623 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20624 to propagate state.
20625 (nvptx_shared_propagate): Initialize vector bcast partition and
20626 synchronization state.
20627 (nvptx_single): Generalize to enable vectors to use shared-memory
20628 to propagate state.
20629 (nvptx_process_pars): Likewise.
20630 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20631 * config/nvptx/nvptx.h (struct machine_function): Add
20632 bcast_partition and sync_bar members.
20633
20634 2019-01-07 Tom de Vries <tdevries@suse.de>
20635
20636 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20637 (nvptx_apply_dim_limits): New function.
20638 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20639 PTX_WARP_SIZE.
20640
20641 2019-01-07 Tom de Vries <tdevries@suse.de>
20642
20643 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20644 as late as possible.
20645
20646 2019-01-07 Tom de Vries <tdevries@suse.de>
20647
20648 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20649 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20650 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20651 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20652 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20653
20654 2019-01-07 Tom de Vries <tdevries@suse.de>
20655
20656 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20657
20658 2019-01-07 Tom de Vries <tdevries@suse.de>
20659
20660 * omp-offload.c (oacc_get_min_dim): New function.
20661 * omp-offload.h (oacc_get_min_dim): Declare.
20662
20663 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20664
20665 PR target/88521
20666 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20667 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20668
20669 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20670
20671 PR tree-opt/86020
20672 Revert:
20673 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20674
20675 * ipa-inline.c (edge_badness): Use inlined_time instead of
20676 inline_summaries->get.
20677
20678 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20679
20680 * opts.c (enable_fdo_optimizations): Enable
20681 version-loops-for-strides, loop-interchange, unrol-and-jam
20682 and tree-loop-distribution.
20683 * invoke.texi: Document newly enabled options.
20684
20685 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20686
20687 * doc/invoke.texi (max-inline-insns-small): New parameters.
20688 * ipa-inline.c (want_early_inline_function_p): simplify.
20689 (want_inline_small_function_p): Fix pasto from previous patch;
20690 use max-inline-insns-small bound.
20691 * params.def (max-inline-insns-small): New param.
20692 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20693 variables correctly.
20694
20695 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20696
20697 * doc/invoke.texi: Document max-inline-insns-size,
20698 uninlined-function-insns, uninlined-function-time,
20699 uninlined-thunk-insns and uninlined-thunk-time.
20700 * params.def: Add max-inline-insns-size,
20701 uninlined-function-insns, uninlined-function-time,
20702 uninlined-thunk-insns and uninlined-thunk-time.
20703 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20704 new parameters.
20705 * ipa-inline.c (can_inline_edge_by_limits_p,
20706 want_inline_small_function_p): Use new parameters.
20707
20708 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20709
20710 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20711
20712 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20713
20714 PR middle-end/82564
20715 PR target/88620
20716 * expr.c (expand_assignment): For calls returning VLA structures
20717 if to_rtx is not a MEM, force it into a stack temporary.
20718
20719 PR debug/88635
20720 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20721 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20722 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20723 subexpressions of both operands.
20724 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20725 subrtxes are CONSTANT_P.
20726 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20727 2018-11-09 changes.
20728
20729 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20730
20731 * params.def (hot-bb-count-ws-permille): Set to 990.
20732
20733 2019-01-04 Martin Sebor <msebor@redhat.com>
20734
20735 PR c/88546
20736 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20737 leaf.
20738
20739 2019-01-04 Martin Sebor <msebor@redhat.com>
20740
20741 PR c/88363
20742 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20743
20744 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20745
20746 * gdbinit.in: Turn off pagination for the skip commands, restore
20747 it to previous state afterwards.
20748
20749 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20750
20751 PR target/88594
20752 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20753 of GET_MODE (opN) as modes of the libcall arguments.
20754
20755 2019-01-04 Jan Beulich <jbeulich@suse.com>
20756
20757 * config/i386/sse.md
20758 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20759 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20760 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20761 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20762 avx512f_vmcmp<mode>3<round_saeonly_name>,
20763 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20764 avx512f_maskcmp<mode>3,
20765 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20766 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20767 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20768 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20769 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20770 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20771 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20772 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20773 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20774 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20775 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20776 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20777 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20778 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20779 avx512cd_maskb_vec_dup<mode>,
20780 avx512cd_maskw_vec_dup<mode>,
20781 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20782 avx512dq_vmfpclass<mode>,
20783 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20784 instead of =Yk.
20785
20786 2019-01-03 Martin Sebor <msebor@redhat.com>
20787
20788 PR tree-optimization/88659
20789 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20790
20791 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20792
20793 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20794 unaligned vsx and avoid lxvd2x/stxvd2x.
20795 (gen_lvx_v4si_move): New function.
20796
20797 2019-01-03 Tom de Vries <tdevries@suse.de>
20798
20799 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20800 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20801 function.
20802 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20803
20804 2019-01-03 Tom de Vries <tdevries@suse.de>
20805
20806 * config/nvptx/nvptx.c (struct offload_attrs): New.
20807 (populate_offload_attrs): New function. Factor mask extraction out of
20808 nvptx_reorg. Add extraction of dimensions.
20809 (nvptx_reorg): Use populate_offload_attrs.
20810
20811 2019-01-03 Tom de Vries <tdevries@suse.de>
20812
20813 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20814 cases for oacc_min_dims_p and routine_p. Add asserts for
20815 oacc_default_dims_p and offload_region_p.
20816
20817 2019-01-03 Tom de Vries <tdevries@suse.de>
20818
20819 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20820 factored out of ...
20821 (nvptx_goacc_validate_dims): ... here.
20822
20823 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20824
20825 PR tree-optimization/85574
20826 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20827 structure.
20828 (struct ssa_equip_hash_traits): Declare.
20829 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20830
20831 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20832
20833 PR debug/88644
20834 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20835 change it to qualified_type.
20836
20837 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20838
20839 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20840 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20841
20842 2019-01-02 Martin Sebor <msebor@redhat.com>
20843 Jeff Law <law@redhat.com>
20844
20845 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20846 (get_range_strlen_tree): Update appropriately.
20847 (get_range_strlen)
20848 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20849
20850 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20851 rather than set_range_info.
20852 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20853 maybe_set_strlen_range. Handle potentially boundary crossing
20854 cases more conservatively.
20855 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20856 Call set_strlen_range.
20857 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20858
20859 PR middle-end/88663
20860 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20861 need the flexp argument.
20862 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20863 from calls to get_range_strlen. Update comments. Just update
20864 VAL for an unterminated const char array and let the reset of the
20865 code handle it normally. No longer try to set *flexp. Adjust
20866 return value.
20867 (get_range_strlen): Update for the new get_range_strlen API.
20868 (get_maxval_strlen): Similarly.
20869 (gimple_fold_builtin_strlen): Handle update meaning of return value
20870 from get_range_strlen.
20871 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20872 get_range_strlen API.
20873
20874 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20875
20876 PR lto/88130
20877 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
20878 false at WPA time when body was removed.
20879
20880 2019-01-02 Martin Liska <mliska@suse.cz>
20881
20882 PR tree-optimization/88650
20883 * predict.c (set_even_probabilities): Calculate probability
20884 remainer only when really used.
20885
20886 2019-01-02 Richard Biener <rguenther@suse.de>
20887
20888 PR middle-end/88651
20889 * tree-data-ref.c (analyze_subscript_affine_affine): Use
20890 widest_ints when mangling max_stmt_execution results.
20891
20892 2019-01-02 Richard Biener <rguenther@suse.de>
20893
20894 PR tree-optimization/88621
20895 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
20896 bitfields when canoncalizing.
20897
20898 2019-01-02 Richard Biener <rguenther@suse.de>
20899
20900 PR target/87545
20901 * config/i386/x86-tune-costs.h (intel_cost): Adjust
20902 cost of cheap SSE instruction.
20903
20904 2019-01-02 Richard Biener <rguenther@suse.de>
20905
20906 PR ipa/85574
20907 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
20908 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
20909 function.
20910 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
20911 set after UIDs before splitting them.
20912
20913 2019-01-01 Martin Sebor <msebor@redhat.com>
20914 Jeff Law <law@redhat.com>
20915
20916 * gimple-fold.c (get_range_strlen_tree): Record if the computed
20917 length is optimistic. If it is, then arrange to compute the
20918 conservative length as well.
20919
20920 * gimple-fold.h (get_range_strlen): Update prototype.
20921 * builtins.c (check_access): Update call to get_range_strlen to use
20922 c_strlen_data pointer. Change various variable accesses to instead
20923 pull data from the c_strlen_data structure.
20924 (check_strncat_sizes, expand_builtin_strncat): Likewise.
20925 * calls.c (maybe_warn_nonstring_arg): Likewise.
20926 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
20927 minimum length if maximum lengh is unknown.
20928 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
20929 that used c_strlen, it's no longer needed. Restructure slightly.
20930 (format_string): Set unlikely range appropriately.
20931 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
20932 formatting issues.
20933 (get_range_strlen): Accept c_strlen_data pointer for external
20934 call sites as well. Pass through to call to internal get_range_strlen.
20935 Adjust minlen, maxlen and maxbound as needed.
20936 (get_maxval_strlen): Update comments.
20937 (gimple_fold_builtin_strlen): Update call to get_range_strlen
20938 to use c_strlen_data pointer. Change variable accesses to instead
20939 use c_strlen_data data members.
20940
20941 * gimple-fold.c (get_range_strlen): Update prototype.
20942 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
20943 local variables. Use pdata to return information to caller.
20944 Update calls to get_range_strlen. Update pdata->maxbound.
20945 (get_range_strlen -- static version): Similarly.
20946 (get_range_strlen -- extern version): Update for internal
20947 get_range_strlen API change. Convert to external data format.
20948 (get_maxval_strlen): Similarly.
20949
20950 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
20951
20952 * coverage.c (get_coverage_counts): Use current_function_decl.
20953 * profile.c (read_thunk_profile): New function.
20954 (branch_prob): Add THUNK parameter.
20955 * tree-profile.c (tree_profiling): Handle thunks.
20956 * value-prof.c (init_node_map): Handle thunks.
20957 * value-prof.h (branch_prob): Upate prototype.
20958 (read_thunk_profile): Declare.
20959
20960 2019-01-01 Jakub Jelinek <jakub@redhat.com>
20961
20962 Update copyright years.
20963
20964 * gcc.c (process_command): Update copyright notice dates.
20965 * gcov-dump.c (print_version): Ditto.
20966 * gcov.c (print_version): Ditto.
20967 * gcov-tool.c (print_version): Ditto.
20968 * gengtype.c (create_file): Ditto.
20969 * doc/cpp.texi: Bump @copying's copyright year.
20970 * doc/cppinternals.texi: Ditto.
20971 * doc/gcc.texi: Ditto.
20972 * doc/gccint.texi: Ditto.
20973 * doc/gcov.texi: Ditto.
20974 * doc/install.texi: Ditto.
20975 * doc/invoke.texi: Ditto.
20976 \f
20977 Copyright (C) 2019 Free Software Foundation, Inc.
20978
20979 Copying and distribution of this file, with or without modification,
20980 are permitted in any medium without royalty provided the copyright
20981 notice and this notice are preserved.