1 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
3 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
6 Fold all statements if requested.
7 * tree-ssa-propagate.h (class substitute_and_fold_engine):
8 Allow to fold all statements.
9 * tree-vrp.c (class vrp_folder):
10 Let substitute_and_fold_engine fold all statements.
12 2019-08-26 Richard Biener <rguenther@suse.de>
14 PR tree-optimization/91526
15 * passes.def: Note that after late FRE we do TODO_update_address_taken.
16 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
17 TODO_update_address_taken.
19 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
21 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
24 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
26 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
27 machine mode for unspec_volatile operand.
29 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
31 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
32 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
33 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
34 (prefer_neon_for_64bits): Remove.
35 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
36 (tune_params): Remove PREF_NEON_64_FALSE uses.
37 (arm_option_override): Remove prefer_neon selection code.
38 (arm_print_tune_info): Remove prefer_neon_for_64bits.
39 * gcc/config/arm/arm-protos.h (tune_params): Remove
40 prefer_neon_for_64bits.
41 (prefer_neon_for_64bits): Remove.
43 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
46 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
47 and issue any diagnostics needed before collecting the pre-PCH
50 2019-08-23 Jakub Jelinek <jakub@redhat.com>
53 * common.opt (fexcess-precision=): Add Optimization flag. Use
54 flag_excess_precision variable instead of
55 flag_excess_precision_cmdline.
56 * flags.h (class target_flag_state): Remove x_flag_excess_precision
58 (flag_excess_precision): Don't define.
59 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
60 flag_excess_precision_cmdline. Remove comment.
61 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
62 and x_flag_excess_precision instead of
63 frontend_set_flag_excess_precision_cmdline and
64 x_flag_excess_precision_cmdline.
65 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
66 x_flag_excess_precision_cmdline.
67 * toplev.c (init_excess_precision): Remove.
68 (lang_dependent_init_target): Don't call it.
70 2019-08-23 Martin Liska <mliska@suse.cz>
72 * lto-wrapper.c (run_gcc): When setting jobserver
73 set also parallel to 1. This was done so before r273908.
75 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
77 * config/arm/arm-cpus.in (cortex-m35p): New entry.
78 (cortex-a76ae): Likewise.
79 (cortex-a77): Likewise
80 * config/arm/arm-tables.opt: Regenerate.
81 * config/arm/arm-tune.md: Likewise.
82 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
83 cortex-a77 CPU options.
85 2019-08-23 Martin Liska <mliska@suse.cz>
87 * profile.c (instrument_values): Do not set
89 * tree-profile.c (gimple_gen_interval_profiler): Remove
91 (gimple_gen_pow2_profiler): Likewise.
92 (gimple_gen_topn_values_profiler): Likewise.
93 (gimple_gen_ic_profiler): Likewise.
94 (gimple_gen_time_profiler): Likewise.
95 (gimple_gen_average_profiler): Likewise.
96 (gimple_gen_ior_profiler): Likewise.
97 * value-prof.c (dump_histogram_value): Use default
98 in switch statement instead of HIST_TYPE_MAX.
99 (stream_in_histogram_value): Likewise.
100 (gimple_duplicate_stmt_histograms): Do not
101 use NULL for implicitly set arguments.
102 (gimple_divmod_values_to_profile): Do not use
104 (gimple_indirect_call_to_profile): Likewise.
105 (gimple_find_values_to_profile): Use implicit
106 function call arguments.
107 * value-prof.h (gimple_alloc_histogram_value):
109 (gimple_gen_interval_profiler): Remove last argument.
110 (gimple_gen_pow2_profiler): Likewise.
111 (gimple_gen_topn_values_profiler): Likewise.
112 (gimple_gen_ic_profiler): Likewise.
113 (gimple_gen_time_profiler): Likewise.
114 (gimple_gen_average_profiler): Likewise.
115 (gimple_gen_ior_profiler): Likewise.
117 2019-08-22 Martin Sebor <msebor@redhat.com>
120 * builtins.c (c_strlen): Rename argument and introduce new local.
121 Set no-warning bit on original argument.
122 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
123 Fold empty and zero constructors into empty strings.
124 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
125 for missing initializers.
126 * tree.c (build_string_literal): Handle optional argument.
127 * tree.h (build_string_literal): Add defaulted argument.
128 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
129 no-warning bit on original expression.
131 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
134 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
136 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
138 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
139 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
140 (darn): Use an unspec_volatile, and UNSPECV_DARN.
142 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
144 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
145 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
146 * config/rs6000/rs6000.md (unspec): ... here.
147 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
148 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
149 cmpeqb, *cmpeqb_internal): Delete, move to...
150 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
151 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
152 cmpeqb, *cmpeqb_internal): ... here.
154 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
156 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
157 intrinsics if __ARM_FP.
158 Use __ARM_FEATURE_CRC32 ifdef guard.
160 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
162 * config/arm/arm.md (neon_for_64bits): Remove.
163 (avoid_neon_for_64bits): Remove.
164 (arm_adddi3): Always split early.
165 (arm_subdi3): Always split early.
166 (negdi2): Remove Neon expansion.
167 (split zero_extend): Split before reload.
168 (split sign_extend): Split before reload.
170 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
172 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
173 (qhs_extenddi_cstr): Likewise.
174 * config/arm/arm.md (ashldi3): Always expand early.
177 (zero_extend<mode>di2): Remove Neon variants.
178 (extend<mode>di2): Likewise.
179 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
180 (signed_shift_di3_neon): Likewise.
181 (unsigned_shift_di3_neon): Likewise.
182 (ashrdi3_neon_imm_noclobber): Likewise.
183 (lshrdi3_neon_imm_noclobber): Likewise.
184 (<shift>di3_neon): Likewise.
185 (split extend): Remove DI extend split patterns.
187 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
189 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
190 (split not): Add DImode not splitter.
191 (anddi3): Remove pattern.
192 (anddi3_insn): Likewise.
193 (anddi_zesidi_di): Likewise.
194 (anddi_sesdi_di): Likewise.
195 (anddi_notdi_di): Likewise.
196 (anddi_notzesidi_di): Likewise.
197 (anddi_notsesidi_di): Likewise.
199 (iordi3_insn): Likewise.
200 (iordi_zesidi_di): Likewise.
201 (iordi_sesidi_di): Likewise.
203 (xordi3_insn): Likewise.
204 (xordi_sesidi_di): Likewise.
205 (xordi_zesidi_di): Likewise.
206 (one_cmpldi2): Likewise.
207 (one_cmpldi2_insn): Likewise.
208 * config/arm/constraints.md: Remove De, Df, Dg constraints.
209 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
211 (iwmmxt_xordi3): Likewise.
212 (iwmmxt_anddi3): Likewise.
213 * config/arm/neon.md (orndi3_neon): Remove pattern.
214 (anddi_notdi_di): Likewise.
215 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
216 (arm_iordi_operand_neon): Likewise.
217 (arm_xordi_operand_neon): Likewise.
218 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
219 (iordi_notzesidi_di): Likewise.
220 (iordi_notdi_zesidi): Likewise.
221 (iordi_notsesidi_di): Likewise.
223 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
225 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
227 (iorsi3_compare0_scratch): Likewise.
229 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
231 * config/aarch64/aarch64-simd-builtins.def:
234 * config/aarch64/aarch64-simd.md:
235 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
236 (aarch64_st1x4<VALLDIF:mode>): Likewise.
237 (aarch64_ld1_x4_<mode>): Likewise.
238 (aarch64_st1_x4_<mode>): Likewise.
239 * config/aarch64/arm_neon.h:
240 (vld1_s8_x4): New function.
241 (vld1q_s8_x4): Likewise.
242 (vld1_s16_x4): Likewise.
243 (vld1q_s16_x4): Likewise.
244 (vld1_s32_x4): Likewise.
245 (vld1q_s32_x4): Likewise.
246 (vld1_u8_x4): Likewise.
247 (vld1q_u8_x4): Likewise.
248 (vld1_u16_x4): Likewise.
249 (vld1q_u16_x4): Likewise.
250 (vld1_u32_x4): Likewise.
251 (vld1q_u32_x4): Likewise.
252 (vld1_f16_x4): Likewise.
253 (vld1q_f16_x4): Likewise.
254 (vld1_f32_x4): Likewise.
255 (vld1q_f32_x4): Likewise.
256 (vld1_p8_x4): Likewise.
257 (vld1q_p8_x4): Likewise.
258 (vld1_p16_x4): Likewise.
259 (vld1q_p16_x4): Likewise.
260 (vld1_s64_x4): Likewise.
261 (vld1_u64_x4): Likewise.
262 (vld1_p64_x4): Likewise.
263 (vld1q_s64_x4): Likewise.
264 (vld1q_u64_x4): Likewise.
265 (vld1q_p64_x4): Likewise.
266 (vld1_f64_x4): Likewise.
267 (vld1q_f64_x4): Likewise.
268 (vst1_s8_x4): Likewise.
269 (vst1q_s8_x4): Likewise.
270 (vst1_s16_x4): Likewise.
271 (vst1q_s16_x4): Likewise.
272 (vst1_s32_x4): Likewise.
273 (vst1q_s32_x4): Likewise.
274 (vst1_u8_x4): Likewise.
275 (vst1q_u8_x4): Likewise.
276 (vst1_u16_x4): Likewise.
277 (vst1q_u16_x4): Likewise.
278 (vst1_u32_x4): Likewise.
279 (vst1q_u32_x4): Likewise.
280 (vst1_f16_x4): Likewise.
281 (vst1q_f16_x4): Likewise.
282 (vst1_f32_x4): Likewise.
283 (vst1q_f32_x4): Likewise.
284 (vst1_p8_x4): Likewise.
285 (vst1q_p8_x4): Likewise.
286 (vst1_p16_x4): Likewise.
287 (vst1q_p16_x4): Likewise.
288 (vst1_s64_x4): Likewise.
289 (vst1_u64_x4): Likewise.
290 (vst1_p64_x4): Likewise.
291 (vst1q_s64_x4): Likewise.
292 (vst1q_u64_x4): Likewise.
293 (vst1q_p64_x4): Likewise.
294 (vst1_f64_x4): Likewise.
295 (vst1q_f64_x4): Likewise.
297 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
299 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
301 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
302 Richard Sandiford <richard.sandiford@arm.com>
305 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
306 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
308 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
311 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
312 in reg if it fails aarch64_plus_operand predicate.
314 2019-08-21 Richard Biener <rguenther@suse.de>
316 PR tree-optimization/91482
317 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
318 BUILT_IN_ASSUME_ALIGNED calls.
320 2019-08-21 Richard Biener <rguenther@suse.de>
324 * config/i386/i386-features.c
325 (general_scalar_chain::make_vector_copies): Copy stack temporary
326 rtx when using it multiple times.
327 (general_scalar_chain::convert_reg): Likewise.
329 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
331 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
333 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
335 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
336 catch more redundant zero initialization cases.
337 (dse_dom_walker::dse_optimize_stmt): Likewise.
339 2019-08-20 Richard Biener <rguenther@suse.de>
342 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
343 by collect2 when targetm.have_ctors_dtors which avoids dragging
344 in temporary filenames from LTO input objects.
346 2019-08-20 Richard Biener <rguenther@suse.de>
348 PR tree-optimization/37242
349 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
350 to (T)a + (T)b if we know that a + b does not overflow.
352 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
354 PR rtl-optimization/91347
355 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
356 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
358 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
360 * calls.h (function_arg_info): Add a pass_by_reference field,
362 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
363 when applying pass-by-reference semantics.
364 (initialize_argument_information): Likewise.
365 (emit_library_call_value_1): Likewise.
366 * function.c (assign_parm_data_one): Remove passed_pointer field.
367 (assign_parm_find_data_types): Don't set it.
368 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
369 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
370 arg.pass_by_reference instead of passed_pointer.
372 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
374 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
375 into a single function_arg_info, updating its fields when we
376 apply pass-by-reference and promotion semantics. Use the
377 function_arg_info to track the mode rather than keeping it in
378 a separate local variable.
379 (initialize_argument_information): Likewise. Base the final
380 arg_to_skip on this new function_arg_info rather than creating
381 a new one from scratch.
383 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
385 * function.c (assign_parm_data_one): Replace passed_type,
386 promoted_mode and named_arg with a function_arg_info field.
387 (assign_parm_find_data_types): Remove local variables and
388 assign directly to "data". Make data->passed_mode shadow
389 data->arg.mode until promotion, then assign the promoted
390 mode to data->arg.mode.
391 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
392 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
393 (assign_parm_remove_parallels, assign_parm_setup_block_p)
394 (assign_parm_setup_block, assign_parm_setup_reg)
395 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
396 arg.mode instead of promoted_mode, arg.type instead of passed_type
397 and arg.named instead of named_arg. Use data->arg for
398 function_arg_info structures that had the field values passed_type,
399 promoted_mode and named_arg. Base other function_arg_infos on
400 data->arg, changing the necessary properties.
402 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
404 * calls.h (apply_pass_by_reference_rules): Declare.
405 * calls.c (apply_pass_by_reference_rules): New function.
406 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
407 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
408 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
409 * function.c (assign_parm_find_data_types): Likewise.
410 * var-tracking.c (prepare_call_arguments): Likewise.
412 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
414 * target.def (must_pass_in_stack): Take a function_arg_info instead
415 of a mode and a type.
416 * doc/tm.texi: Regenerate.
417 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
418 instead of a mode and a type.
419 (must_pass_in_stack_var_size_or_pad): Likewise.
420 * calls.c (must_pass_in_stack_var_size): Likewise.
421 (must_pass_in_stack_var_size_or_pad): Likewise.
422 (initialize_argument_information): Update call to
423 targetm.calls.must_pass_in_stack.
424 (must_pass_va_arg_on_stack): Likewise.
425 * function.c (assign_parm_find_entry_rtl): Likewise.
426 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
427 * config/alpha/alpha.c (alpha_function_arg): Likewise.
428 (alpha_function_arg_advance): Likewise.
429 * config/cr16/cr16.c (cr16_function_arg): Likewise.
430 (cr16_function_arg_advance): Likewise.
431 * config/cris/cris.c (cris_pass_by_reference): Likewise.
432 (cris_arg_partial_bytes): Likewise.
433 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
434 * config/lm32/lm32.c (lm32_function_arg): Likewise.
435 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
436 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
437 * config/mips/mips.c (mips_pass_by_reference): Likewise.
438 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
439 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
440 * config/sh/sh.c (sh_pass_by_reference): Likewise.
441 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
442 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
443 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
444 instead of a mode and a type.
445 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
446 (fr30_num_arg_regs): Likewise.
447 (fr30_setup_incoming_varargs): Update calls accordingly.
448 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
449 (fr30_function_arg_advance): Likewise.
450 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
451 instead of a mode and a type.
452 * config/gcn/gcn.c (num_arg_regs): Likewise.
453 (gcn_function_arg, gcn_function_arg_advance): Update calls to
454 num_arg_regs and targetm.calls.must_pass_in_stack.
455 (gcn_arg_partial_bytes): Likewise.
456 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
457 function_arg_info instead of a mode and a type.
458 (classify_argument): Update call accordingly.
459 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
460 function_arg_info instead of a mode and a type.
461 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
463 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
464 (rs6000_parm_needs_stack): Update call accordingly.
465 (setup_incoming_varargs): Likewise.
467 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
469 * target.def (callee_copies): Take a function_arg_info instead
470 of a mode, type and named flag.
471 * doc/tm.texi: Regenerate.
472 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
473 instead of a mode, type and named flag.
474 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
475 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
476 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
477 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
478 instead of a mode, type and named flag.
479 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
480 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
481 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
482 * calls.h (reference_callee_copied): Take a function_arg_info
483 instead of a mode, type and named flag.
484 * calls.c (reference_callee_copied): Likewise.
485 (initialize_argument_information): Update call accordingly.
486 (emit_library_call_value_1): Likewise.
487 * function.c (gimplify_parameters): Likewise.
488 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
489 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
490 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
491 * config/c6x/c6x.c (c6x_callee_copies): Delete.
492 (TARGET_CALLEE_COPIES): Define to
493 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
494 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
495 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
496 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
497 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
498 instead of a mode, type and named flag.
499 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
500 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
501 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
502 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
503 * config/msp430/msp430.c (msp430_callee_copies): Delete.
504 (TARGET_CALLEE_COPIES): Define to
505 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
506 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
507 instead of a mode, type and named flag.
508 * config/sh/sh.c (sh_callee_copies): Likewise.
509 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
510 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
511 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
513 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
515 * target.def (function_arg_advance): Take a function_arg_info instead
516 of a mode, type and named flag.
517 * doc/tm.texi: Regenerate.
518 * targhooks.h (default_function_arg_advance): Take a function_arg_info
519 instead of a mode, type and named flag.
520 * targhooks.c (default_function_arg_advance): Likewise.
521 * calls.c (initialize_argument_information): Update call to
522 targetm.calls.function_arg_advance.
523 (emit_library_call_value_1): Likewise.
524 * dse.c (get_call_args): Likewise.
525 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
526 * function.c (assign_parms, gimplify_parameters): Likewise.
527 * var-tracking.c (prepare_call_arguments): Likewise.
528 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
529 function_arg_info instead of a mode, type and named flag.
530 (aarch64_setup_incoming_varargs): Update call accordingly.
531 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
532 function_arg_info instead of a mode, type and named flag.
533 (alpha_setup_incoming_varargs): Update call accordingly.
534 * config/arc/arc.c (arc_function_arg_advance): Take a
535 function_arg_info instead of a mode, type and named flag.
536 (arc_setup_incoming_varargs): Update call accordingly.
537 * config/arm/arm.c (arm_function_arg_advance): Take a
538 function_arg_info instead of a mode, type and named flag.
539 (cmse_func_args_or_return_in_stack): Update call accordingly.
540 (arm_function_ok_for_sibcall): Likewise.
541 (cmse_nonsecure_call_clear_caller_saved): Likewise.
542 * config/avr/avr.c (avr_function_arg_advance): Take a
543 function_arg_info instead of a mode, type and named flag.
544 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
545 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
546 (c6x_call_saved_register_used): Update call accordingly.
547 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
548 function_arg_info instead of a mode, type and named flag.
549 * config/cris/cris.c (cris_function_arg_advance): Likewise.
550 * config/csky/csky.c (csky_function_arg_advance): Likewise.
551 (csky_setup_incoming_varargs): Update call accordingly.
552 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
553 function_arg_info instead of a mode, type and named flag.
554 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
555 * config/frv/frv.c (frv_function_arg_advance): Likewise.
556 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
557 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
558 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
559 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
560 (ix86_setup_incoming_varargs): Update call accordingly.
561 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
562 function_arg_info instead of a mode, type and named flag.
563 (ia64_setup_incoming_varargs): Update call accordingly.
564 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
565 function_arg_info instead of a mode, type and named flag.
566 (iq2000_expand_prologue): Update call accordingly.
567 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
568 function_arg_info instead of a mode, type and named flag.
569 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
570 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
571 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
572 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
573 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
575 (microblaze_expand_prologue): Update call accordingly.
576 * config/mips/mips.c (mips_function_arg_advance): Take a
577 function_arg_info instead of a mode, type and named flag.
578 (mips_setup_incoming_varargs): Update call accordingly.
579 (mips_output_args_xfer): Likewise.
580 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
581 function_arg_info instead of a mode, type and named flag.
582 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
583 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
584 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
585 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
586 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
587 (nios2_setup_incoming_varargs): Update call accordingly.
588 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
589 function_arg_info instead of a mode, type and named flag.
590 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
591 * config/pa/pa.c (pa_function_arg_advance): Likewise.
592 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
593 * config/pru/pru.c (pru_function_arg_advance): Likewise.
594 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
595 (riscv_setup_incoming_varargs): Update call accordingly.
596 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
597 function_arg_info instead of a mode, type and named flag.
598 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
600 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
601 (rs6000_parm_needs_stack): Update call accordingly.
602 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
603 instead of a mode, type and named flag.
604 * config/s390/s390.c (s390_function_arg_advance): Likewise.
605 (s390_call_saved_register_used): Update call accordingly.
606 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
607 instead of a mode, type and named flag.
608 (sh_output_mi_thunk): Update call accordingly.
609 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
610 function_arg_info instead of a mode, type and named flag.
611 * config/spu/spu.c (spu_function_arg_advance): Likewise.
612 (spu_setup_incoming_varargs): Update call accordingly.
613 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
614 function_arg_info instead of a mode, type and named flag.
615 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
616 (tilegx_setup_incoming_varargs): Update call accordingly.
617 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
618 function_arg_info instead of a mode, type and named flag.
619 (tilegx_setup_incoming_varargs): Update call accordingly.
620 * config/v850/v850.c (v850_function_arg_advance): Take a
621 function_arg_info instead of a mode, type and named flag.
622 * config/vax/vax.c (vax_function_arg_advance): Likewise.
623 * config/visium/visium.c (visium_function_arg_advance): Likewise.
624 (visium_setup_incoming_varargs): Update call accordingly.
625 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
626 function_arg_info instead of a mode, type and named flag.
628 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
630 * target.def (function_arg, function_incoming_arg): Take a
631 function_arg_info instead of a mode, tree and named flag.
632 * doc/tm.texi: Regenerate.
633 * targhooks.h (default_function_arg): Take a function_arg_info
634 instead of a mode, tree and named flag.
635 (default_function_incoming_arg): Likewise.
636 * targhooks.c (default_function_arg): Likewise.
637 (default_function_incoming_arg): Likewise.
638 * calls.h (function_arg_info::end_marker_p): New function.
639 (function_arg_info::end_marker): Likewise.
640 * calls.c (prepare_call_address, initialize_argument_information)
641 (expand_call, emit_library_call_value_1): Update calls to
642 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
643 * dse.c: Include calls.h.
644 (get_call_args): Update call to targetm.calls.function_arg.
645 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
646 * var-tracking.c (prepare_call_arguments): Likewise.
647 * function.c (assign_parm_find_entry_rtl): Update call to
648 targetm.calls.function_incoming_arg.
649 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
650 function_arg_info instead of a mode, tree and named flag.
651 * config/alpha/alpha.c (alpha_function_arg): Likewise.
652 * config/arc/arc.c (arc_function_arg): Likewise.
653 * config/arm/arm.c (arm_function_arg): Likewise.
654 (cmse_func_args_or_return_in_stack): Update call accordingly.
655 (arm_function_ok_for_sibcall): Likewise.
656 (cmse_nonsecure_call_clear_caller_saved): Likewise.
657 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
658 instead of a mode, tree and named flag.
659 * config/bfin/bfin.c (bfin_function_arg): Likewise.
660 * config/c6x/c6x.c (c6x_function_arg): Likewise.
661 (c6x_call_saved_register_used): Update call accordingly.
662 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
663 instead of a mode, tree and named flag.
664 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
665 (cris_function_arg_1): Likewise.
666 * config/csky/csky.c (csky_function_arg): Likewise.
667 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
668 * config/fr30/fr30.c (fr30_function_arg): Likewise.
669 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
670 (frv_function_arg_1): Likewise.
671 * config/ft32/ft32.c (ft32_function_arg): Likewise.
672 * config/gcn/gcn.c (gcn_function_arg): Likewise.
673 * config/h8300/h8300.c (h8300_function_arg): Likewise.
674 * config/i386/i386.c (ix86_function_arg): Likewise.
675 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
676 (ia64_function_arg_1): Likewise.
677 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
678 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
680 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
681 instead of a mode, tree and named flag.
682 * config/m32c/m32c.c (m32c_function_arg): Likewise.
683 * config/m32r/m32r.c (m32r_function_arg): Likewise.
684 * config/m68k/m68k.c (m68k_function_arg): Likewise.
685 * config/mcore/mcore.c (mcore_function_arg): Likewise.
686 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
687 (microblaze_expand_prologue): Update call accordingly.
688 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
689 instead of a mode, tree and named flag.
690 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
691 (mmix_function_arg_1): Likewise.
692 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
693 * config/moxie/moxie.c (moxie_function_arg): Likewise.
694 * config/msp430/msp430.c (msp430_function_arg): Likewise.
695 * config/nds32/nds32.c (nds32_function_arg): Likewise.
696 * config/nios2/nios2.c (nios2_function_arg): Likewise.
697 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
698 (nvptx_function_incoming_arg): Likewise.
699 * config/or1k/or1k.c (or1k_function_arg): Likewise.
700 * config/pa/pa.c (pa_function_arg): Likewise.
701 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
702 * config/pru/pru.c (pru_function_arg): Likewise.
703 * config/riscv/riscv.c (riscv_function_arg): Likewise.
704 * config/rl78/rl78.c (rl78_function_arg): Likewise.
705 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
706 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
707 (rs6000_parm_needs_stack): Update call accordingly.
708 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
709 instead of a mode, tree and named flag.
710 * config/s390/s390.c (s390_function_arg): Likewise.
711 (s390_call_saved_register_used): Update call accordingly.
712 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
713 instead of a mode, tree and named flag.
714 (sh_output_mi_thunk): Update call accordingly.
715 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
716 (sparc_function_incoming_arg): Take a function_arg_info instead of
717 a mode, tree and named flag.
718 * config/spu/spu.c (spu_function_arg): Likewise.
719 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
720 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
721 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
722 * config/v850/v850.c (v850_function_arg): Likewise.
723 * config/vax/vax.c (vax_function_arg): Likewise.
724 * config/visium/visium.c (visium_function_arg): Likewise.
725 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
726 (xtensa_function_incoming_arg): Likewise.
728 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
730 * target.def (setup_incoming_varargs): Take a function_arg_info
731 instead of a mode and tree.
732 * doc/tm.texi: Regenerate.
733 * targhooks.h (default_setup_incoming_varargs): Take a
734 function_arg_info instead of a mode and tree.
735 * targhooks.c (default_setup_incoming_varargs): Likewise.
736 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
737 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
738 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
739 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
740 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
741 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
742 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
743 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
745 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
746 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
747 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
748 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
749 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
750 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
751 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
752 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
753 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
754 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
755 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
756 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
757 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
758 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
759 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
760 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
761 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
762 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
763 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
764 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
765 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
766 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
767 * function.c (assign_parms_setup_varargs): Update call to
768 targetm.calls.setup_incoming_varargs.
770 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
772 * target.def (pass_by_reference): Take a function_arg_info instead
773 of a mode, type and named flag.
774 * doc/tm.texi: Regenerate.
775 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
777 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
778 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
779 function_arg_info instead of a mode, type and named flag.
780 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
781 * calls.h (pass_by_reference): Take a function_arg_info instead of a
782 mode, type and named flag.
783 * calls.c (pass_by_reference): Likewise.
784 (pass_va_arg_by_reference): Update call accordingly.
785 (initialize_argument_information): Likewise.
786 (emit_library_call_value_1): Likewise.
787 * function.c (assign_parm_find_data_types): Likewise.
788 * var-tracking.c (prepare_call_arguments): Likewise.
789 * stor-layout.c: Include calls.h.
790 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
791 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
792 function_arg_info instead of a mode, type and named flag.
793 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
794 * config/arc/arc.c (arc_pass_by_reference): Likewise.
795 * config/arm/arm.c (arm_pass_by_reference): Likewise.
796 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
797 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
798 (c6x_call_saved_register_used): Update call to pass_by_reference.
799 * config/cris/cris.c (cris_pass_by_reference): Take a
800 function_arg_info instead of a mode, type and named flag.
801 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
802 function_arg_info instead of a mode, type and named flag.
803 (epiphany_arg_partial_bytes): Update call accordingly.
804 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
805 function_arg_info instead of a mode, type and named flag.
806 (ft32_arg_partial_bytes): Update call accordingly.
807 * config/i386/i386.c (ix86_pass_by_reference): Take a
808 function_arg_info instead of a mode, type and named flag.
809 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
810 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
811 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
812 (m32r_return_in_memory): Update call accordingly.
813 * config/mips/mips.c (mips_pass_by_reference): Take a
814 function_arg_info instead of a mode, type and named flag.
815 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
816 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
817 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
818 (moxie_arg_partial_bytes): Update call accordingly.
819 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
820 function_arg_info instead of a mode, type and named flag.
821 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
822 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
823 * config/pa/pa.c (pa_pass_by_reference): Likewise.
824 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
825 (riscv_return_in_memory): Update call accordingly.
826 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
827 function_arg_info instead of a mode, type and named flag.
828 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
829 (rs6000_parm_needs_stack): Update call to pass_by_reference.
830 * config/s390/s390.c (s390_pass_by_reference): Take a
831 function_arg_info instead of a mode, type and named flag.
832 (s390_call_saved_register_used): Update call accordingly.
833 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
834 instead of a mode, type and named flag.
835 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
836 * config/spu/spu.c (spu_pass_by_reference): Likewise.
837 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
838 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
839 * config/v850/v850.c (v850_pass_by_reference): Likewise.
840 * config/visium/visium.c (visium_pass_by_reference): Likewise.
842 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
844 * target.def (arg_partial_bytes): Take a function_arg_info instead
845 of a mode, type and named flag.
846 * doc/tm.texi: Regenerate.
847 * target.h (function_arg_info): Declare.
848 * calls.h (function_arg_info): New class.
849 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
850 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
851 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
852 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
853 * calls.c (initialize_argument_information): Update call to
854 targetm.calls.partial_bytes.
855 (emit_library_call_value_1): Likewise.
856 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
857 * function.c (assign_parm_find_entry_rtl): Likewise.
858 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
859 function_arg_info instead of a mode, type and named flag.
860 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
861 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
862 (cmse_func_args_or_return_in_stack): Update accordingly.
863 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
864 function_arg_info instead of a mode, type and named flag.
865 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
866 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
867 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
868 * config/fr30/fr30.c: Include calls.h.
869 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
871 * config/frv/frv.c: Include calls.h.
872 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
874 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
875 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
876 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
877 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
878 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
879 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
880 * config/microblaze/microblaze.c (function_arg_partial_bytes):
882 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
883 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
884 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
885 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
886 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
887 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
888 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
889 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
890 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
891 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
892 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
893 (rs6000_parm_needs_stack): Update call accordingly.
894 * config/sh/sh.c (sh_arg_partial_bytes): Take a
895 function_arg_info instead of a mode, type and named flag.
896 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
897 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
899 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
901 * calls.h (must_pass_va_arg_in_stack): Declare.
902 * calls.c (must_pass_va_arg_in_stack): New function.
903 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
904 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
905 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
907 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
909 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
911 * calls.h (pass_va_arg_by_reference): Declare.
912 * calls.c (pass_va_arg_by_reference): New function.
913 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
914 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
915 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
916 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
917 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
918 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
919 (mips_gimplify_va_arg_expr): Likewise.
920 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
921 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
922 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
923 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
924 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
925 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
926 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
927 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
928 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
929 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
930 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
932 2019-08-20 Richard Biener <rguenther@suse.de>
935 * config/i386/i386-features.c (general_scalar_chain::convert_op):
936 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
937 (convert_scalars_to_vector): Add timode_p parameter and use it
938 to guard TImode-only operation.
939 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
940 (pass_stv::execute): Pass down timode_p.
942 2019-08-20 Lili Cui <lili.cui@intel.com>
944 * common/config/i386/i386-common.c
945 (processor_names): Add tigerlake and cooperlake.
946 (processor_alias_table): Add tigerlake and cooperlake.
947 * config.gcc: Add -march=tigerlake and cooperlake.
948 * config/i386/driver-i386.c
949 (host_detect_local_cpu): Detect tigerlake and cooperlake.
950 Add "has_avx" to classify processor.
951 * config/i386/i386-builtins.c (processor_model) :
952 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
953 (arch_names_table): Add tigerlake and cooperlake.
954 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
955 and PROCESSOR_COOPERLAKE.
956 * config/i386/i386-c.c
957 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
958 * config/i386/i386-options.c
959 (m_TIGERLAKE) : Define.
960 (m_COOPERLAKE) : Ditto.
961 (m_CORE_AVX512): Ditto.
962 (processor_cost_table): Add cascadelake.
963 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
965 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
966 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
967 (PTA_MOVDIRI): Ditto.
968 (PTA_MOVDIR64B): Ditto.
969 (PTA_COOPERLAKE) : Ditto.
970 (PTA_TIGERLAKE) : Ditto.
971 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
972 * doc/extend.texi: Add tigerlake and cooperlake.
973 * doc/invoke.texi: Add tigerlake and cooperlake.
975 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
977 * doc/install.texi (Specific, alpha): Remove note to use
978 binutils 2.11.2 or later.
980 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
983 * function.c (assign_parm_find_stack_rtl): Use larger alignment
986 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
988 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
989 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
990 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
991 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
992 * config/aarch64/constraints.md (Dt): New constraint
993 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
995 2019-08-19 Richard Biener <rguenther@suse.de>
997 PR tree-optimization/91403
998 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
999 cases we can handle with tail-recursion...
1000 (follow_ssa_edge_expr): ... here. Do so.
1002 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
1005 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
1006 implemented for -fsanitize=kernel-address, and merge check logic
1007 with -fsanitize=address.
1009 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
1011 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
1012 for cpu and machine. Factor 64/32b builtins.
1014 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
1016 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
1017 gone, point to sourceforge.net.
1019 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1021 * doc/ux.texi (User Experience Guidelines): Update reference.
1023 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1025 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
1028 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
1030 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
1031 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
1033 2019-08-16 Martin Sebor <msebor@redhat.com>
1035 * tree.def (TYPE_SIZE): Clarify.
1036 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
1038 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1040 PR tree-optimization/91109
1041 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
1042 * lra.c (lra): Use lra_need_for_scratch_reg_p.
1043 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
1045 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
1047 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
1048 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
1049 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
1050 (uavg<mode>3_ceil): New expander.
1051 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
1052 mode iterator when creating CONST1_RTX.
1053 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
1054 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
1055 mode iterator for const1_operand predicate.
1057 2019-08-16 Richard Biener <rguenther@suse.de>
1059 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
1060 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
1062 (follow_ssa_edge_in_condition_phi_branch): Likewise.
1063 (analyze_evolution_in_loop): Likewise.
1064 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
1065 (follow_ssa_edge_expr): ... here. Refactor code.
1067 2019-08-16 Richard Biener <rguenther@suse.de>
1070 * config/i386/i386-features.c
1071 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
1073 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1076 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
1077 only if subst_name matches curr_attr string.
1079 2019-08-16 Richard Biener <rguenther@suse.de>
1081 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
1082 stmt at gsi_p, instead replace it with a NOP removed later.
1083 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
1084 that became dead because of that.
1086 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
1088 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
1089 for which we can't represent a range.
1090 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
1092 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
1093 Set VR_UNDEFINED if type is not supported.
1094 * tree-ssanames.c (get_range_info): Pass type to set_varying.
1095 * tree-vrp.c (value_range_base::check): Assert that a varying has
1097 (value_range_base::equal_p): Early bail for undefines.
1098 (value_range_base::set_varying): Accept a type.
1099 (value_range::set_varying): Same.
1100 (value_range_base::type): VARYING can have a type, while UNDEFINE
1102 (value_range_base::dump): Print type for VARYING nodes.
1103 (value_range_base::set): Add type to VARYING.
1104 (extract_range_from_multiplicative_op): Pass type to set_varying.
1105 (extract_range_from_binary_expr): Same.
1106 (value_range_base::intersect_helper): Same.
1107 (value_range_base::union_helper): Same.
1108 (value_range_base::normalize_symbolics): Same.
1109 (determine_value_range_1): Same.
1110 * tree-vrp.h (class value_range_base): Add type to set_varying.
1111 Add prototype for dump(void).
1112 Add prototype for supports_type_p.
1113 (class value_range): Add type to set_varying.
1114 Add prototype for dump(void).
1115 * vr-values.c (set_value_range_to_truthvalue): Pass type to
1117 (vr_values::get_lattice_entry): Set varying even if propagation
1119 Pass type to set_varying.
1120 (vr_values::get_value_range): Remove vr_const_varying.
1121 Reallocate the lattice if needed.
1122 (vr_values::update_value_range): Pass type to set_varying.
1123 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1124 (vr_values::extract_range_from_binary_expr): Same.
1125 (vr_values::extract_range_from_unary_expr): Same.
1126 (vr_values::extract_range_from_cond_expr): Same.
1127 (vr_values::check_for_binary_op_overflow): Same.
1128 (vr_values::extract_range_basic): Same.
1129 (vr_values::extract_range_from_assignment): Same.
1130 (vr_values::vr_values): Increase size of num_vr_values.
1131 (vr_values::extract_range_from_phi_node): Pass type to
1134 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
1137 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
1138 for costs of hard register moves.
1139 (ix86_register_move_cost): Likewise.
1140 * config/i386/i386.h (processor_costs): Move costs of hard
1141 register moves to hard_register. Add int_load, int_store,
1142 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1143 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
1144 for costs of RTL expressions.
1145 * config/i386/x86-tune-costs.h: Move costs of hard register
1146 moves to hard_register. Duplicate int_load, int_store,
1147 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1148 sse_load, sse_store for costs of RTL expressions.
1150 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1152 * target.def (setup_incoming_vararg_bounds): Remove.
1153 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
1154 * doc/tm.texi: Regenerate.
1155 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
1156 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
1157 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
1158 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
1160 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1162 MSP430: Fix lines over 80 characters long in
1163 config/msp430/*.{c,h} files
1165 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
1166 specifier in string.
1167 (msp430_select_hwmult_lib): Split line more than 80 characters long.
1168 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
1169 redundant old comment.
1170 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
1171 Split line more than 80 characters long.
1172 * config/msp430/msp430.c (msp430_option_override): Likewise.
1173 (msp430_return_in_memory): Likewise.
1174 (msp430_gimplify_va_arg_expr): Likewise.
1175 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1176 (msp430_legitimate_constant): Likewise.
1177 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
1178 (msp430_attr): Likewise.
1179 (msp430_data_attr): Likewise.
1180 (msp430_start_function): Likewise.
1181 (gen_prefix): Likewise.
1182 (msp430_init_sections): Likewise.
1183 (msp430_select_section): Likewise.
1184 (msp430_function_section): Likewise.
1185 (msp430_unique_section): Likewise.
1186 (msp430_output_aligned_decl_common): Likewise.
1187 (msp430_do_not_relax_short_jumps): Likewise.
1188 (msp430_init_builtins): Likewise.
1189 (msp430_expand_delay_cycles): Likewise.
1190 (msp430_expand_prologue): Likewise.
1191 (msp430_expand_epilogue): Likewise.
1192 (msp430_expand_helper): Likewise.
1193 (msp430_split_movsi): Likewise.
1194 (msp430_print_operand): Likewise.
1195 (msp430_return_addr_rtx): Likewise.
1196 (msp430x_extendhisi): Likewise.
1197 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
1198 (ASM_SPEC): Likewise.
1199 Remove very obvious comments.
1200 (LIB_SPEC): Split line more than 80 characters long.
1201 (EH_RETURN_HANDLER_RTX): Likewise.
1202 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1204 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1206 MSP430: Fix whitespace errors and incorrect indentation in
1207 config/msp430/*.{c,h} files
1209 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
1210 (msp430_select_hwmult_lib): Likewise.
1211 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
1212 (msp430_extract_mcu_data): Likewise.
1213 (struct t_msp430_mcu_data): Likewise.
1214 * config/msp430/msp430.c (struct machine_function): Remove whitespace
1215 before left square bracket.
1216 (msp430_option_override): Fix indentation.
1217 (msp430_hard_regno_nregs_with_padding): Likewise.
1218 (msp430_initial_elimination_offset): Likewise.
1219 (msp430_special_register_convention_p): Remove whitespace before left
1220 square bracket and after exclamation mark.
1221 (msp430_evaluate_arg): Likewise.
1222 (msp430_callee_copies): Fix indentation.
1223 (msp430_gimplify_va_arg_expr): Likewise.
1224 (msp430_function_arg_advance): Remove whitespace before left square
1226 (reg_ok_for_addr): Likewise.
1227 (msp430_preserve_reg_p): Likewise.
1228 (msp430_compute_frame_info): Likewise.
1229 (msp430_asm_output_addr_const_extra): Add space between function name
1230 and open parenthesis.
1231 (has_section_name): Fix indentation.
1232 (msp430_attr): Remove trailing whitespace.
1233 (msp430_section_attr): Likewise.
1234 (msp430_data_attr): Likewise.
1235 (struct msp430_attribute_table): Fix comment and whitespace.
1236 (msp430_start_function): Remove whitespace before left square bracket.
1237 Add space between function name and open parenthesis.
1238 (msp430_select_section): Remove trailing whitespace.
1239 (msp430_section_type_flags): Remove trailing whitespace.
1240 (msp430_unique_section): Remove space before closing parenthesis.
1241 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
1242 (msp430_builtins): Remove whitespace before left square bracket.
1243 (msp430_init_builtins): Fix indentation.
1244 (msp430_expand_prologue): Remove whitespace before left square bracket.
1245 Remove space before closing parenthesis.
1246 (msp430_expand_epilogue): Remove whitespace before left square bracket.
1247 (msp430_split_movsi): Remove space before closing parenthesis.
1248 (helper_function_name_mappings): Fix indentation.
1249 (msp430_use_f5_series_hwmult): Fix whitespace.
1250 (use_32bit_hwmult): Likewise.
1251 (msp430_no_hwmult): Likewise.
1252 (msp430_output_labelref): Remove whitespace before left square bracket.
1253 (msp430_print_operand_raw): Likewise.
1254 (msp430_print_operand_addr): Likewise.
1255 (msp430_print_operand): Add two spaces after '.' in comment.
1256 Fix trailing whitespace.
1257 (msp430x_extendhisi): Fix indentation.
1258 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
1260 (PC_REGNUM): Likewise.
1261 (STACK_POINTER_REGNUM): Likewise.
1262 (CC_REGNUM): Likewise.
1264 2019-08-15 Richard Biener <rguenther@suse.de>
1267 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
1269 (general_scalar_chain::make_vector_copies): Use it.
1271 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1273 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
1275 2019-08-15 Martin Liska <mliska@suse.cz>
1277 * tree-ssa-dce.c (propagate_necessity): We can't reach now
1278 operators with no arguments.
1279 (eliminate_unnecessary_stmts): Likewise here.
1281 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
1283 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
1284 <case COMPARE>: Revert 2019-08-14 change.
1285 (convertible_comparison_p): Revert 2019-08-14 change. Return false
1286 for (TARGET_64BIT || mode != DImode).
1288 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
1290 * tree-vrp.c (value_range_base::set): Merge in code from
1291 value_range_base::set_and_canonicalize.
1292 Enforce canonicalization at set time.
1293 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
1294 (value_range_base::set_undefined): Inline call to set().
1295 (value_range_base::set_varying): Same.
1296 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
1297 (vrp_val_max): New argument handle_pointers.
1298 (vrp_val_min): Same.
1299 (ranges_from_anti_range): Same.
1300 (extract_range_into_wide_ints): Use tree argument instead of sign
1302 (extract_range_from_multiplicative_op): Take in tree type instead
1303 of precision and sign. Adapt function for canonicalized ranges.
1304 (extract_range_from_binary_expr): Pass type to
1305 extract_range_from_multiplicative_op.
1306 Adapt for canonicalized ranges.
1307 (extract_range_from_unary_expr): Same.
1308 (value_range_base::intersect_helper): Adjust for canonicalized
1310 (value_range_base::union_helper): Same.
1311 (value_range_base::normalize_symbolics): New.
1312 * tree-vrp.h (class value_range_base): Remove
1313 set_and_canonicalize.
1314 New prototype for normalize_symbolics.
1315 (class value_range): Remove set_and_canonicalize.
1316 (vrp_val_min): Adjust prototype.
1317 (vrp_val_max): Same.
1319 (vr_values::extract_range_for_var_from_comparison_expr): Call set
1320 instead of set_and_canonicalize.
1322 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1325 * tree-vect-stmts.c (vectorizable_call): Check that the function
1326 is a BUILT_IN_MD function before passing it to
1327 targetm.vectorize.builtin_md_vectorized_function.
1329 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1331 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
1332 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
1333 (aarch64_select_early_remat_modes): Use it.
1335 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1337 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
1338 16 for SVE predicates even if they are fixed-length.
1340 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1342 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
1343 operand order match the MOV /Z alias.
1345 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1347 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
1348 the vector pattern as an aarch64_svpattern argument. Update the
1349 overloaded caller accordingly.
1350 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1351 (aarch64_output_sve_vector_inc_dec): Likewise.
1353 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1355 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1356 multiplication case, try to compute VG * (lowest set bit) directly
1357 rather than always basing the multiplication on VG. Use
1358 expand_mult for the multiplication if we can.
1360 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1362 * config/aarch64/aarch64-protos.h
1363 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1364 (aarch64_sve_inc_dec_immediate_p): Rename to...
1365 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1366 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1367 (aarch64_output_sve_scalar_inc_dec): Declare.
1368 (aarch64_output_sve_inc_dec_immediate): Rename to...
1369 (aarch64_output_sve_vector_inc_dec): ...this.
1370 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1371 (aarch64_output_sve_scalar_inc_dec): New functions.
1372 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1373 arguments. Only handle true ADDVL and ADDPL instructions;
1374 don't emit an INC or DEC.
1375 (aarch64_sve_inc_dec_immediate_p): Rename to...
1376 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1377 (aarch64_output_sve_inc_dec_immediate): Rename to...
1378 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1379 aarch64_sve_vector_inc_dec_immediate_p.
1380 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1381 (aarch64_sve_plus_immediate): New predicates.
1382 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1383 rather than aarch64_sve_addvl_addpl_immediate.
1384 (aarch64_sve_inc_dec_immediate): Rename to...
1385 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1386 aarch64_sve_vector_inc_dec_immediate_p.
1387 (aarch64_sve_add_operand): Update accordingly.
1388 * config/aarch64/constraints.md (Uai): New constraint.
1389 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1390 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1391 operand into a register if it satisfies aarch64_sve_plus_immediate.
1392 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1393 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1394 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1395 aarch64_output_sve_vector_inc_dec instead of
1396 aarch64_output_sve_inc_dec_immediate.
1398 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1400 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1401 (UNSPEC_REVW): New constants.
1402 (elem_bits): New mode attribute.
1403 (SVE_INT_UNARY): New int iterator.
1404 (optab): Handle UNSPEC_REV[BHW].
1405 (sve_int_op): New int attribute.
1406 (min_elem_bits): Handle VNx16QI and the predicate modes.
1407 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1408 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1409 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1410 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1411 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1412 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1413 unspecs based on the total width of the reversed data.
1414 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1415 reinterpret followed by a subreg on big-endian targets.
1417 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1418 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1420 * config/aarch64/aarch64-sve.md
1421 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1422 alternatives in which one of the inputs is in the same register
1425 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1427 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1428 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1430 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1432 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1433 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1435 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1436 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1438 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1439 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1440 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1442 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1443 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1445 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1446 Add an alternative that uses reversed shifts.
1448 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1450 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1453 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1455 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1456 a commutativity marker.
1458 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1459 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1461 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1462 (aarch64_prepare_sve_cond_int_fma): Declare.
1463 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1464 (aarch64_prepare_sve_int_fma): New functions.
1465 (aarch64_prepare_sve_cond_int_fma): Likewise.
1466 * config/aarch64/aarch64-sve.md
1467 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1468 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1469 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1470 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1471 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1472 (*madd<mode>): Rename to...
1473 (*fma<mode>4): ...this.
1474 (*msub<mode>): Rename to...
1475 (*fnma<mode>4): ...this.
1477 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1478 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1480 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1481 Print 2.0 naturally.
1482 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1483 * config/aarch64/predicates.md
1484 (aarch64_sve_float_negated_arith_immediate): New predicate,
1485 renamed from aarch64_sve_float_arith_with_sub_immediate.
1486 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1487 positive and negative constants.
1488 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1489 or an aarch64_sve_float_arith_with_sub_immediate.
1490 * config/aarch64/constraints.md (vsN): Use
1491 aarch64_sve_float_negated_arith_immediate.
1492 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1494 (sve_pred_fp_rhs2_immediate): New int attribute.
1495 * config/aarch64/aarch64-sve.md
1496 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1497 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1498 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1499 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1500 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1501 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1503 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1504 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1506 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1507 (*aarch64_cond_abd<SVE_F:mode>_3)
1508 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1510 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1511 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1513 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1514 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1516 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1517 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1519 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1520 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1521 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1522 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1524 * optabs.h (create_convert_operand_from): Expand comment.
1525 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1526 when mapping scalar rtxes to vector operands.
1527 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1528 ashiftrt and lshiftrt.
1529 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1530 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1531 (*cond_<optab><mode>_any_const): New patterns.
1533 2019-08-15 Martin Liska <mliska@suse.cz>
1536 * cgraph.c (cgraph_node::remove): When setting
1537 n->origin = NULL for all nested functions, reset
1540 2019-08-15 Martin Liska <mliska@suse.cz>
1542 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1545 2019-08-15 Martin Liska <mliska@suse.cz>
1548 * passes.c (order): Remove.
1549 (uid_hash_t): Likewise).
1550 (remove_cgraph_node_from_order): Remove from set
1551 of pointers (cgraph_node *).
1552 (insert_cgraph_node_to_order): New.
1553 (duplicate_cgraph_node_to_order): New.
1554 (do_per_function_toporder): Register all 3 cgraph hooks.
1555 Skip removed_nodes now as we know about all of them.
1557 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1559 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1560 <case E_V8QImode>: Use vector_set path for
1561 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1562 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1563 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1565 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1567 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1569 2019-08-14 Martin Sebor <msebor@redhat.com>
1571 PR tree-optimization/91294
1572 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1573 source length as exact.
1575 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1577 * doc/extend.texi: Add "noinit" attribute documentation.
1578 * doc/sourcebuild.texi: Add noinit effective target documentation.
1579 * varasm.c (default_section_type_flags): Add support for "noinit"
1581 (default_elf_select_section): Add support for "noinit" attribute.
1582 * config/msp430/msp430.c (msp430_attribute_table): Remove
1585 2019-08-14 Richard Biener <rguenther@suse.de>
1586 Uroš Bizjak <ubizjak@gmail.com>
1589 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1591 (scalar_chain::smode): New member.
1592 (scalar_chain::vmode): Likewise.
1593 (dimode_scalar_chain): Rename to...
1594 (general_scalar_chain): ... this.
1595 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1596 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1597 base with TImode and V1TImode.
1598 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1599 (general_scalar_chain::vector_const_cost): Adjust for SImode
1601 (general_scalar_chain::compute_convert_gain): Likewise. Add
1602 {S,U}{MIN,MAX} support.
1603 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1604 (general_scalar_chain::make_vector_copies): Likewise. Handle
1605 non-DImode chains appropriately.
1606 (general_scalar_chain::convert_reg): Likewise.
1607 (general_scalar_chain::convert_op): Likewise.
1608 (general_scalar_chain::convert_insn): Likewise. Add
1609 fatal_insn_not_found if the result is not recognized.
1610 (convertible_comparison_p): Pass in the scalar mode and use that.
1611 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1612 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1613 (scalar_to_vector_candidate_p): Remove by inlining into single
1615 (general_remove_non_convertible_regs): Rename from
1616 dimode_remove_non_convertible_regs.
1617 (remove_non_convertible_regs): Remove by inlining into single caller.
1618 (convert_scalars_to_vector): Handle SImode and DImode chains
1619 in addition to TImode chains.
1620 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1621 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1622 (*<maxmin>di3_doubleword): Likewise.
1624 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1625 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1627 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1628 (*cond_bic<mode>_any): New patterns.
1630 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1632 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1633 take the equivalent mask, as well as a bit count.
1634 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1635 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1636 (aarch64_sve_pred_and_operand): New predicates.
1637 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1639 * config/aarch64/aarch64-sve.md
1640 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1641 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1643 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1645 * config/aarch64/aarch64-sve.md
1646 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1647 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1650 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1651 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1653 * config/aarch64/aarch64-sve.md
1654 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1655 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1657 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1658 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1660 * config/aarch64/aarch64-sve.md
1661 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1662 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1664 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1666 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1667 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1670 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1671 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1673 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1675 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1676 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1678 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
1679 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
1680 (aarch64_print_operand): Add support for %I.
1681 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
1682 Bitcast floating-point constants to the corresponding integer constant.
1683 (aarch64_float_const_representable_p): Handle vectors as well
1685 (aarch64_expand_sve_vcond): Make sure that the operands are valid
1686 for the new vcond_mask_<mode><vpred> expander.
1687 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
1688 test aarch64_float_const_representable_p.
1689 (aarch64_sve_reg_or_dup_imm): New predicate.
1690 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
1691 gen_vcond_mask_<mode><vpred> instead of
1692 gen_aarch64_sve_dup<mode>_const.
1693 (vcond_mask_<mode><vpred>): Turn into a define_expand that
1694 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
1695 for operands 1 and 2 respectively. Force operand 2 into a
1696 register if operand 1 is a register. Fold old define_insn...
1697 (aarch64_sve_dup<mode>_const): ...and this define_insn...
1698 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
1699 floating-point constants that can be moved as integers. Add
1700 alternatives for MOV /M and FMOV /M.
1701 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
1702 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
1703 1 and 2 respectively.
1704 * config/aarch64/constraints.md (Ufc): Handle vectors as well
1706 (vss): New constraint.
1708 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1710 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
1711 (aarch64_sve_float_maxmin_operand): New predicates.
1712 * config/aarch64/constraints.md (vsB): New constraint.
1714 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
1715 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
1717 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
1718 Use aarch64_sve_float_maxmin_operand for operand 2.
1719 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
1720 Add alternatives for the constant forms.
1722 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1724 * config/aarch64/constraints.md (vsb): New constraint.
1725 (vsm): Generalize description.
1726 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
1728 (sve_imm_con): Handle smax, smin, umax and umin.
1729 (sve_imm_prefix): New code attribute.
1730 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
1731 (aarch64_sve_vsb_operand): New predicates.
1732 (aarch64_sve_mul_immediate): Rename to...
1733 (aarch64_sve_vsm_immediate): ...this.
1734 (aarch64_sve_mul_operand): Rename to...
1735 (aarch64_sve_vsm_operand): ...this.
1736 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
1737 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
1738 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
1739 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
1740 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
1741 add movprfx support for the immediate alternatives.
1742 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
1744 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
1747 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1749 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
1750 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
1751 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
1753 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1755 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
1756 (optab, sve_int_op): Handle them.
1757 * config/aarch64/aarch64-sve.md: Expand comment.
1759 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1761 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
1762 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
1763 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
1765 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1767 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
1768 (aarch64_expand_sve_const_pred_trn): New functions.
1769 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
1770 use the above functions when the parameter is true.
1771 (aarch64_expand_sve_const_pred): Update call accordingly.
1772 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
1774 (@aarch64_sve_<perm_insn><mode>): ...this.
1776 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1778 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
1780 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
1781 (aarch64_sve_emit_int_cmp): New functions.
1782 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
1783 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
1784 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
1785 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
1786 (UNSPEC_PRED_Z): New unspec.
1787 (set_clobber_cc_nzc): Delete.
1788 * config/aarch64/aarch64-sve.md: Add a block comment about
1790 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
1791 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
1792 the old pattern with that name. Use UNSPEC_PRED_Z instead of
1794 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
1795 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
1796 check for compatible predicates.
1797 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
1798 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
1799 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
1802 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1804 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
1805 * config/aarch64/aarch64-sve.md: Add a section describing it.
1806 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
1807 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
1808 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
1809 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
1810 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
1811 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
1812 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
1813 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
1814 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
1815 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
1816 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
1817 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
1818 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
1819 (aarch64_evpc_rev_local): Update accordingly.
1821 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1823 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
1825 (SVE_BHSI, SVE_SDI): Tweak comment.
1826 (SVE_HSDI): Likewise. Fix definition.
1827 (SVE_SDF): New mode iterator.
1828 (elem_bits): New mode attribute.
1829 (SVE_COND_FCVT): New int iterator.
1830 * config/aarch64/aarch64-sve.md
1831 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
1832 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
1833 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
1834 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1835 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
1836 ...these new patterns.
1837 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
1838 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
1839 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
1841 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
1842 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
1843 ...these new patterns.
1844 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
1845 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
1846 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
1847 ...this new pattern.
1848 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
1849 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
1850 ...this new pattern.
1851 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
1853 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1855 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
1856 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
1857 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
1859 (optab, su): Handle them.
1860 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
1861 * config/aarch64/aarch64-sve.md
1862 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
1863 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
1864 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
1865 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
1866 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
1867 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
1868 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
1869 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
1870 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
1872 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
1873 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
1874 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
1875 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
1876 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
1877 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
1878 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
1879 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
1880 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
1881 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
1882 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
1883 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
1884 of UNSPEC_FLOAT_CONVERT.
1885 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
1886 aarch64_sve_extend<mode><Vwide>2.
1888 2019-08-14 Richard Biener <rguenther@suse.de>
1891 * config/i386/i386-features.c
1892 (dimode_scalar_chain::compute_convert_gain): Compute and dump
1893 individual instruction gain. Fix reg-reg copy GRP cost. Use
1894 ix86_cost->sse_op for vector instruction costs.
1896 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1898 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
1899 (cmp_op): Handle it.
1900 (SVE_COND_FP_CMP): Rename to...
1901 (SVE_COND_FP_CMP_I0): ...this.
1902 (SVE_FP_CMP): Remove.
1903 * config/aarch64/aarch64-sve.md
1904 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
1905 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
1906 using unspecs to represent the comparison.
1907 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
1908 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
1910 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
1911 (aarch64_unspec_cond_code): Move after integer code. Handle
1913 (aarch64_emit_sve_predicated_cond): Replace with...
1914 (aarch64_emit_sve_fp_cond): ...this new function.
1915 (aarch64_emit_sve_or_conds): Replace with...
1916 (aarch64_emit_sve_or_fp_conds): ...this new function.
1917 (aarch64_emit_sve_inverted_cond): Replace with...
1918 (aarch64_emit_sve_invert_fp_cond): ...this new function.
1919 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
1921 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1923 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
1924 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
1925 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
1926 SVE_HSD instead of SVE_SD.
1928 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1929 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1931 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
1933 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
1935 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
1936 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
1937 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
1938 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
1939 (*div<SVE_F:mode>3): Generalize to...
1940 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
1942 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1943 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1945 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
1947 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
1949 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
1951 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
1953 * config/aarch64/aarch64-sve.md: Add a block comment about the
1954 handling of predicated FP operations.
1955 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
1956 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
1957 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1958 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
1959 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
1961 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
1962 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
1964 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
1965 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
1966 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
1967 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
1968 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
1969 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1970 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1971 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
1972 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
1973 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
1974 strictness operands. Use aarch64_sve_pred_dominates_p to check
1975 whether the predicate on the conditional operation is suitable
1976 for merging. Split patterns into the canonical equal-predicate form.
1977 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
1978 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
1980 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1981 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1983 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
1984 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
1985 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
1987 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
1988 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
1991 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1992 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1994 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
1995 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
1996 actually has, rather than relying on REG_EQUAL notes.
1997 Make the insn operand order match the SVE operand order.
1998 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
1999 the SVE operand order.
2001 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2003 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
2004 (aarch64_emit_set_immediate): Likewise.
2005 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
2006 (aarch64_pfalse_reg): Likewise.
2007 (aarch64_convert_sve_data_to_pred): New function.
2008 (aarch64_sve_move_pred_via_while): Take an optional target register
2009 and the required register mode.
2010 (aarch64_expand_sve_const_pred_1): New function.
2011 (aarch64_expand_sve_const_pred): Likewise.
2012 (aarch64_expand_mov_immediate): Build an all-true predicate
2013 if the significant bits of the immediate are all true. Use
2014 aarch64_expand_sve_const_pred for all compile-time predicate constants.
2015 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
2016 before register allocation.
2017 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
2018 a VNx16BI PTRUE when splitting the memory alternative.
2019 (vec_duplicate<mode>): Update accordingly.
2020 (*pred_cmp<cmp_op><mode>): Rename to...
2021 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
2023 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2025 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
2026 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
2027 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
2028 (UNSPEC_PTEST): New unspec.
2029 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
2030 * config/aarch64/iterators.md (data_bytes): New mode attribute.
2031 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
2032 * config/aarch64/aarch64-sve.md: Add a new section describing the
2033 handling of UNSPEC_PTEST.
2034 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
2035 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
2036 (ptest_ptrue<mode>): Replace with...
2037 (aarch64_ptest<mode>): ...this new pattern.
2038 (cbranch<mode>4): Update after above changes.
2039 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
2041 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
2042 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
2043 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
2045 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
2048 * builtins.c (builtin_with_linkage_p): New function.
2049 * builtins.h (builtin_with_linkage_p): New function.
2050 * symtab.c (write_symbol): Remove redundant assert.
2051 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
2052 Remove FIXME and use builtin_with_linkage_p.
2054 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2057 * tree-core.h (function_decl::function_code): Change type to
2059 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
2060 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
2061 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
2062 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
2064 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
2065 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
2066 (fndecl_built_in_p): Change the type of the "name" argument to
2068 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
2069 after check for DECL_BUILT_IN_CLASS.
2070 * cgraphclones.c (build_function_decl_skip_args): Use
2071 set_decl_built_in_function.
2072 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
2073 * ipa-split.c (split_function): Likewise.
2074 * langhooks.c (add_builtin_function_common): Likewise.
2075 * omp-simd-clone.c (simd_clone_create): Likewise.
2076 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2077 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
2078 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
2080 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
2081 instead of DECL_FUNCTION_CODE.
2082 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
2083 instead of DECL_FUNCTION_CODE.
2084 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2085 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
2086 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
2087 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
2088 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
2089 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
2090 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2091 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
2092 (alpha_gimple_fold_builtin): Likewise.
2093 * config/arc/arc.c (arc_expand_builtin): Likewise.
2094 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
2095 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
2096 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
2097 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
2098 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
2099 * config/frv/frv.c (frv_expand_builtin): Likewise.
2100 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
2101 (gcn_expand_builtin): Likewise.
2102 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
2103 (fold_builtin_cpu): Likewise.
2104 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
2105 * config/i386/i386.c (ix86_fold_builtin): Likewise.
2106 (ix86_gimple_fold_builtin): Likewise.
2107 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
2108 (ia64_expand_builtin): Likewise.
2109 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
2110 * config/mips/mips.c (mips_expand_builtin): Likewise.
2111 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
2112 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
2113 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
2114 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
2115 * config/pa/pa.c (pa_expand_builtin): Likewise.
2116 * config/pru/pru.c (pru_expand_builtin): Likewise.
2117 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
2118 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2120 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
2121 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
2122 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
2123 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
2124 (rs6000_builtin_reciprocal): Likewise.
2125 * config/rx/rx.c (rx_expand_builtin): Likewise.
2126 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2127 * config/s390/s390.c (s390_expand_builtin): Likewise.
2128 * config/sh/sh.c (sh_expand_builtin): Likewise.
2129 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
2130 (sparc_fold_builtin): Likewise.
2131 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2132 * config/spu/spu.c (spu_expand_builtin): Likewise.
2133 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
2134 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
2135 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
2136 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2137 (xtensa_expand_builtin): Likewise.
2139 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2142 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
2143 before the DECL_FUNCTION_CODE.
2144 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
2145 to check for a BUILT_IN_ALLOCA call.
2146 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
2147 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
2148 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
2149 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2150 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
2151 for BUILT_IN_NORMAL functions.
2152 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
2153 test for BUILT_IN_TM_ABORT.
2154 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
2155 to check for a BUILT_IN_STACK_RESTORE call.
2156 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
2157 * tree-ssa-threadedge.c
2158 (record_temporary_equivalences_from_stmts_at_dest): Check for a
2159 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
2160 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
2161 test for a BUILT_IN_NORMAL call instead of a negative test for
2162 an internal function call.
2164 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2166 * tree.h (build_vector_a_then_b): Declare.
2167 * tree.c (build_vector_a_then_b): New function.
2168 * fold-const-call.c (fold_while_ult): Likewise.
2169 (fold_const_call): Use it to handle IFN_WHILE_ULT.
2170 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
2171 (aarch64_svpattern): New enum.
2172 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
2173 constants through aarch64_expand_mov_immediate.
2174 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
2175 than general_operand as the predicate for operand 1.
2176 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
2177 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
2179 (simd_immediate_info::simd_immediate_info): New overload that
2180 takes a scalar_int_mode and an svpattern.
2181 (simd_immediate_info::u): Add a "pattern" field.
2182 (svpattern_token): New function.
2183 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
2184 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
2185 (aarch64_sve_move_pred_via_while): New functions.
2186 (aarch64_expand_mov_immediate): Try using
2187 aarch64_sve_move_pred_via_while for predicates that contain N ones
2188 followed by M zeros but that do not correspond to a VLnnn pattern.
2189 (aarch64_sve_pred_valid_immediate): New function.
2190 (aarch64_simd_valid_immediate): Use it instead of dealing directly
2191 with PTRUE and PFALSE.
2192 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
2195 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
2197 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
2199 (darwin_override_options): Likewise.
2200 * config/darwin.h: Likewise.
2201 * config/darwin.opt: Likewise.
2202 * config/i386/i386.c (output_pic_addr_const): Likewise.
2203 * config/rs6000/darwin.h: Likewise.
2204 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
2205 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
2206 ... this TARGET_MACHO_SYMBOL_STUBS.
2207 (FUNCTION_PROFILER):Likewise.
2208 * config/i386/i386.h: Likewise.
2210 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2212 * config/i386/i386-expand.c (ix86_expand_vector_extract)
2213 <case E_V2SImode>: Use vec_extr path for
2214 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2215 <case E_V8QImode>: Ditto.
2216 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
2217 Use SWI48 mode iterator. Use %k to output operand 0.
2218 (*mmx_pextrw): New insn pattern.
2219 (*mmx_pextrb): Ditto.
2220 (*mmx_pextrb_zext): Ditto.
2222 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
2224 * target.def (libc_has_function, libc_has_fast_function): Improve
2225 documentation strings.
2226 * doc/tm.texi: Regenerate.
2228 2019-08-13 Caroline Tice <cmtice@google.com>
2231 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
2232 vtv_end.o or vtv_end_preinit.o files if !static.
2234 2019-08-13 Olivier Hainque <hainque@adacore.com>
2236 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
2238 2019-08-13 Olivier Hainque <hainque@adacore.com>
2240 * rtlanal.c (tablejump_casesi_pattern): New function, to
2241 determine if a tablejump insn is a casesi dispatcher. Extracted
2242 from patch_jump_insn.
2243 * rtl.h (tablejump_casesi_pattern): Declare.
2244 * cfgrtl.c (patch_jump_insn): Use it.
2245 * dwarf2cfi.c (create_trace_edges): Use it.
2247 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2250 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
2251 operand is larger than a long int.
2253 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2255 * machmode.h (opt_mode::else_mode): New function.
2256 (opt_mode::else_blk): Use it.
2257 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
2258 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
2259 (aarch64_gen_stepped_int_parallel): Likewise.
2260 (aarch64_stepped_int_parallel_p): Likewise.
2261 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2263 * config/aarch64/aarch64.c
2264 (aarch64_expand_sve_widened_duplicate): Delete.
2265 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
2266 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
2267 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2268 argument. Use early returns in the !CONST_INT_P handling.
2269 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
2270 than handling some inline.
2271 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
2273 (aarch64_simd_container_mode): ...here.
2274 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
2275 (aarch64_sve_ld1rq_operand_p): New functions.
2276 * config/aarch64/predicates.md (descending_int_parallel)
2277 (aarch64_sve_ld1rq_operand): New predicates.
2278 * config/aarch64/constraints.md (UtQ): New constraint.
2279 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
2280 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
2281 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
2282 (@aarch64_sve_reinterpret<mode>): New expander.
2283 (*aarch64_sve_reinterpret<mode>): New pattern.
2284 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
2285 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
2286 (*sve_ld1rq<Vesize>): Replace with...
2287 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
2289 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2291 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
2294 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2296 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
2297 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
2298 (msp430_check_path_for_devices): New.
2299 (parse_devices_csv_1): New.
2300 (parse_devices_csv): New.
2301 (msp430_extract_mcu_data): Try to find devices.csv and search for the
2302 MCU data in devices.csv before using the hard-coded data.
2303 Warn if devices.csv isn't found and the MCU wasn't found in the
2304 hard-coded data either.
2305 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
2306 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
2307 Search for devices.csv on -I and -L paths.
2308 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
2309 msp430_set_driver_var.
2310 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
2312 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
2313 searched for devices.csv.
2314 (mwarn-devices-csv): Document option.
2316 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2318 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
2319 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
2320 Use a single Dn alternative instead of separate Dz and Dm
2321 alternatives. Use aarch64_output_sve_move_immediate.
2322 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
2324 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
2326 (aarch64_output_sve_mov_immediate): Handle predicate modes.
2327 (aarch64_output_ptrue): Delete.
2329 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2331 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
2333 (simd_immediate_info::value, simd_immediate_info::step)
2334 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
2336 (simd_immediate_info::u): ...this new union.
2337 (simd_immediate_info::simd_immediate_info): Update accordingly.
2338 (aarch64_output_simd_mov_immediate): Likewise.
2339 (aarch64_output_sve_mov_immediate): Likewise.
2341 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2343 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
2345 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
2346 (msp430_select_cpu): New spec function.
2347 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
2349 * config/msp430/msp430-devices.c: New file.
2350 * config/msp430/msp430-devices.h: New file.
2351 * config/msp430/msp430.c: Remove msp430_mcu_data.
2352 (msp430_option_override): Use msp430_extract_mcu_data to extract
2354 (msp430_use_f5_series_hwmult): Likewise.
2355 (use_32bit_hwmult): Likewise.
2356 (msp430_no_hwmult): Likewise.
2357 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2359 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2361 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2362 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2363 Remove hard-coded MCU multilib data.
2365 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2367 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2368 based on the mode instead of testing properties of it.
2370 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2372 * doc/md.texi: Document the x and y constraints for AArch64.
2373 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2374 (FP_LO8_REGS): New reg_class.
2375 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2376 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2377 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2378 * config/aarch64/predicates.md (aarch64_simd_register): Use
2379 FP_REGNUM_P instead of checking the classes manually.
2380 * config/aarch64/constraints.md (y): New constraint.
2382 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2384 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2385 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2386 * config/aarch64/aarch64-simd.md
2387 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2388 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2389 from the asm template.
2390 * config/aarch64/aarch64-sve.md
2391 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2392 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2393 from the asm template.
2394 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2395 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2396 from the asm template.
2397 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2399 2019-08-13 Martin Liska <mliska@suse.cz>
2401 * value-prof.c (gimple_ic_transform): Add new line.
2402 Print details with MSG_NOTE.
2404 2019-08-13 Martin Liska <mliska@suse.cz>
2406 * doc/invoke.texi: Document automatic detection of jobserver.
2407 * lto-wrapper.c (run_gcc): Detect jobserver always.
2409 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2411 * config/i386/i386-expand.c (ix86_expand_vector_set)
2412 <case E_V2SImode>: Use vec_merge path for
2413 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2414 <case E_V8QImode>: Ditto.
2415 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2416 (*mmx_pinsrb): Ditto.
2418 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2422 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2423 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2424 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2425 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2426 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2428 2019-08-12 Richard Biener <rguenther@suse.de>
2431 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2434 2019-08-12 Richard Biener <rguenther@suse.de>
2437 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2438 lang_mask option, always use CL_DRIVER.
2439 (get_options_from_collect_gcc_options): Adjust.
2440 (find_and_merge_options): Likewise.
2441 (run_gcc): Likewise.
2443 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2445 * ipa-predicate.c (add_condition): Restore inverted test.
2447 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2449 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2450 (enum omp_clause_device_type_kind): New enum.
2451 (struct tree_omp_clause): Add subcode.device_type_kind.
2452 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2453 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2454 for device_type clause.
2455 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2456 * tree-pretty-print.c (dump_omp_clause): Likewise.
2459 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2462 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2464 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2465 handling spilled pseudos.
2467 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2470 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2471 to preserve the contents of the original insns.
2473 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2475 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2476 (addsi3_compare_op2): Likewise.
2478 2019-08-09 Martin Liska <mliska@suse.cz>
2480 * alias.c (alias_ptr_types_compatible_p): Strengten
2481 type comparison in LTO mode.
2483 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2486 * tree-tailcall.c (find_tail_calls): Reject calls that might
2487 read from an escaped RESULT_DECL.
2489 2019-08-09 Martin Liska <mliska@suse.cz>
2491 * doc/invoke.texi: Document the option value.
2492 * lto-wrapper.c (run_gcc): Set auto_parallel
2493 only with -flto=auto.
2495 2019-08-09 Martin Liska <mliska@suse.cz>
2497 * opts.c (common_handle_option): Error for an invalid argument
2500 2019-08-09 Martin Liska <mliska@suse.cz>
2502 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2503 use dump_printf to report optimization.
2504 (sem_variable::merge): Likwise.
2505 (sem_item_optimizer::merge_classes): Use dump_printf to report
2508 2019-08-09 Martin Liska <mliska@suse.cz>
2510 * value-prof.c (gimple_divmod_fixed_value_transform):
2511 Use dump_printf_loc.
2512 (gimple_mod_pow2_value_transform): Likewise.
2513 (gimple_mod_subtract_transform): Likewise.
2514 (init_node_map): Likewise.
2515 (gimple_ic_transform): Likewise.
2516 (gimple_stringops_transform): Likewise.
2518 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2520 * doc/extend.texi: Add const qualifier to ld intrinsics.
2522 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2524 * config/rs6000/dfp.md (D64_D128): Rename to ...
2525 (DDTD): ... this, throughout.
2526 (dfp_suffix): Rename to ...
2527 (q): ... this, throughout.
2529 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2531 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2532 (dfp_suffix): Ditto.
2533 (adddd3, addtd3): Merge to ...
2534 (add<mode>3 for D64_D128): ... this.
2535 (subdd3, subtd3): Merge to ...
2536 (sub<mode>3 for D64_D128): ... this.
2537 (muldd3, multd3): Merge to ...
2538 (mul<mode>3 for D64_D128): ... this.
2539 (divdd3, divtd3): Merge to ...
2540 (div<mode>3 for D64_D128): ... this.
2541 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2542 (*cmp<mode>_internal1 for D64_D128): ... this.
2543 (ftruncdd2, ftrunctd2): Merge to ...
2544 (ftrunc<mode>2 for D64_D128): ... this.
2545 (fixdddi2, fixtddi2): Merge to ...
2546 (fix<mode>di2 for D64_D128): ... this.
2548 2019-08-08 Jim Wilson <jimw@sifive.com>
2551 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2552 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2553 Pass into recursive call.
2554 (riscv_flatten_aggregate_argument): New arg. Pass to
2555 riscv_flatten_aggregate_field.
2556 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2557 riscv_flatten_aggregate_argument twice, with false and true as last
2558 arg. Process result twice. Compare results and warn if different.
2559 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2561 2019-08-08 Martin Liska <mliska@suse.cz>
2564 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2565 * lto-wrapper.c (jobserver_active_p): Likewise.
2567 2019-08-08 Martin Liska <mliska@suse.cz>
2569 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2570 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2571 (create_version_clone_with_body): Likewise.
2573 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2575 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2576 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2577 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2578 GOVD_EXPLICIT flags.
2579 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2580 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2581 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2582 call install_var_field with mask 11 instead of 3.
2583 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2584 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2586 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2588 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2589 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2591 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2593 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2594 MOVPRFX alternatives. Make the GPR alternatives more expensive
2597 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2599 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2600 Disparage the GPR alternative relative to the FPR one.
2601 Fix handling of 8-bit and 16-bit FPR values.
2603 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2605 * config/aarch64/iterators.md (BITWISEV): Delete.
2606 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2607 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2608 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2609 UNSPEC_FMINNMV, UNSPEC_FMINV.
2610 (bit_reduc_op): Delete.
2611 (sve_int_op): New int attribute.
2612 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2613 UNSPEC_FMINNMV, UNSPEC_FMINV.
2614 * config/aarch64/aarch64-sve.md
2615 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2616 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2617 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2618 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2619 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2620 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2622 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2623 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2624 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2625 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2626 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2629 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2631 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2632 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2633 (fms<mode>4, *fms<mode>4): Replace with...
2634 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2635 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2636 Use unspecs instead of rtx codes.
2637 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2638 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2640 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2642 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2644 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2645 * config/aarch64/aarch64-sve.md
2646 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2647 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2648 use a single unspec for the rhs.
2649 (*<su><maxmin><mode>3): Delete.
2650 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2652 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2654 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2655 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2656 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2657 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2658 (optab, sve_fp_op): Handle them.
2659 (SVE_FP_UNARY): Delete.
2660 (optab): Remove sqrt entry.
2661 (sve_fp_op): Remove neg, abs and sqrt entries.
2662 (SVE_COND_FP_UNARY): New int iterator.
2663 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2664 (*<frint_pattern><mode>2): Delete.
2665 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2666 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2667 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2668 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2670 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2672 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2674 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2676 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
2677 (UNSPEC_COND_FADD): ...this.
2678 (UNSPEC_COND_SUB): Rename to...
2679 (UNSPEC_COND_FSUB): ...this.
2680 (UNSPEC_COND_MUL): Rename to...
2681 (UNSPEC_COND_FMUL): ...this.
2682 (UNSPEC_COND_DIV): Rename to...
2683 (UNSPEC_COND_FDIV): ...this.
2684 (UNSPEC_COND_MAX): Rename to...
2685 (UNSPEC_COND_FMAXNM): ...this.
2686 (UNSPEC_COND_MIN): Rename to...
2687 (UNSPEC_COND_FMINNM): ...this.
2688 (UNSPEC_COND_LT): Rename to...
2689 (UNSPEC_COND_FCMLT): ...this.
2690 (UNSPEC_COND_LE): Rename to...
2691 (UNSPEC_COND_FCMLE): ...this.
2692 (UNSPEC_COND_EQ): Rename to...
2693 (UNSPEC_COND_FCMEQ): ...this.
2694 (UNSPEC_COND_NE): Rename to...
2695 (UNSPEC_COND_FCMNE): ...this.
2696 (UNSPEC_COND_GE): Rename to...
2697 (UNSPEC_COND_FCMGE): ...this.
2698 (UNSPEC_COND_GT): Rename to...
2699 (UNSPEC_COND_FCMGT): ...this.
2700 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
2701 (sve_fp_op_rev): Update accordingly.
2702 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
2704 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2706 * config/aarch64/aarch64-sve.md: Reorganize contents and add
2708 * config/aarch64/check-sve-md.awk: New file.
2709 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
2710 (insn-conditions.md): Depend on it.
2712 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
2715 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
2716 (*negsi2_cmpz_zext): Ditto.
2718 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2720 * config/aarch64/iterators.md (commutative): Remove.
2722 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
2725 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
2726 processing COLLECT_GCC_OPTIONS.
2727 (run_gcc): Likewise.
2729 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2731 PR tree-optimization/91109
2732 * lra-remat.c (update_scratch_ops): Remove assignment of the
2735 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2737 * data-streamer.h (streamer_write_poly_uint64): Declare.
2738 (streamer_read_poly_uint64): Likewise.
2739 * data-streamer-in.c (streamer_read_poly_uint64): New function.
2740 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
2741 * ipa-predicate.h (condition::size): Turn into a poly_int64.
2742 (add_condition): Take a poly_int64 size.
2743 * ipa-predicate.c (add_condition): Likewise.
2744 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
2745 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
2746 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
2747 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
2748 condition::size as a poly_int64.
2749 (unmodified_parm_1): Take a poly_int64 size pointer.
2750 (unmodified_parm): Likewise.
2751 (unmodified_parm_or_parm_agg_item): Likewise.
2752 (set_cond_stmt_execution_predicate): Update accordingly.
2753 (set_switch_stmt_execution_predicate): Likewise.
2754 (will_be_nonconstant_expr_predicate): Likewise.
2755 (will_be_nonconstant_predicate): Likewise.
2756 (inline_read_section): Stream condition::size as a poly_int.
2757 (ipa_fn_summary_write): Likewise.
2759 2019-08-07 Martin Liska <mliska@suse.cz>
2761 * fold-const.c (twoval_comparison_p): Replace int
2762 with bool as a return type.
2763 (simple_operand_p): Likewise.
2764 (operand_equal_p): Replace int with bool as a return type.
2765 * fold-const.h (operand_equal_p): Likewise.
2767 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2769 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
2770 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
2771 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2772 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
2773 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
2774 * tree-pretty-print.c (dump_omp_clause): Likewise.
2775 * tree-nested.c (convert_nonlocal_omp_clauses,
2776 convert_local_omp_clauses): Likewise.
2777 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
2779 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
2780 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
2781 clause with array or reference to array types, no matter what type
2782 except for reference it has.
2784 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
2786 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
2788 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
2790 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
2791 (arch_canonicalize): Support rv32g and rv64g and fix error
2794 2019-08-06 Martin Liska <mliska@suse.cz>
2796 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
2797 and DECL_IS_OPERATOR_DELETE_P.
2799 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2801 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
2802 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
2803 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
2804 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
2805 (gimplify_omp_for): Don't do C++ random access iterator clause
2806 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
2807 don't predetermine the artificial iterator in case of C++ random
2808 access iterators as lastprivate, but private. For OMP_LOOP, force
2809 bind expr around simd body and force for_pre_body before the
2810 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
2811 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
2812 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
2813 diff var of C++ random access iterators. Handle
2814 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
2815 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
2816 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
2817 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
2818 * omp-low.c (lower_rec_input_clauses): For
2819 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
2820 variables instead of default constructing them.
2821 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
2822 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
2823 is_taskloop_ctx check from the assert to the guarding condition.
2825 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
2827 * config/riscv/multilib-generator: (canonical_order): New.
2828 (arch_canonicalize): Dito.
2829 Apply arch_canonicalize for alts.
2831 2019-08-05 Martin Sebor <msebor@redhat.com>
2833 * doc/extend.texi (Common Variable Attributes): Document alias
2836 2019-08-05 Marek Polacek <polacek@redhat.com>
2838 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2839 * doc/invoke.texi: Document -Wcomma-subscript.
2841 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2843 * tree-core.h (tree_function_decl): Make function_code an
2844 independent field. Group the remaining bitfields into bytes
2845 and move decl_type so that it contines to be at a byte boundary.
2846 Leave 12 bits for future expansion.
2848 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2850 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
2851 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
2852 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
2855 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2857 * gimple.h (gimple_move_vops): Declare.
2858 * gimple.c (gimple_move_vops): New function
2859 * gimple-fold.c (replace_call_with_call_and_fold)
2860 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
2861 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
2862 (gimple_fold_call): Use it.
2863 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
2864 * tree-call-cdce.c (use_internal_fn): Likewise.
2865 * tree-if-conv.c (predicate_load_or_store): Likewise.
2866 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2867 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2868 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
2869 (update_call_from_tree): Likewise.
2870 * tree-vect-stmts.c (vectorizable_load): Likewise.
2871 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
2873 2019-08-05 Martin Liska <mliska@suse.cz>
2876 * tree-ssa-dce.c (propagate_necessity): Handle new operators
2878 (eliminate_unnecessary_stmts): Likewise.
2880 2019-08-05 Richard Biener <rguenther@suse.de>
2883 * fold-const.c (get_array_ctor_element_at_index): Create
2884 offset_ints according to the sign of the index type and treat
2885 that as signed if it is obviously so.
2887 2019-08-05 Jakub Jelinek <jakub@redhat.com>
2890 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
2891 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
2892 _mm256_storeu2_m128i): New function.
2894 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
2896 * config/riscv/riscv.c (riscv_promote_function_mode): New.
2897 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
2899 2019-08-05 Alan Modra <amodra@gmail.com>
2902 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
2903 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
2905 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
2907 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
2908 bug that was fixed in Tcl 8.6.1.
2910 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
2912 * config/rs6000/future.md: New file.
2913 * config/rs6000/rs6000.md: Include future.md.
2914 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
2916 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2918 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
2919 check to use targetm.slow_unaligned_access instead.
2921 * function.c (assign_param_data_one): Remove unused data members.
2923 2019-08-02 Steve Ellcey <sellcey@marvell.com>
2925 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
2926 build_distinct_type_copy.
2927 (simd_clone_adjust_argument_types): Ditto.
2928 (simd_clone_adjust): Call build_distinct_type_copy here.
2929 (expand_simd_clones): Ditto.
2931 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2934 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
2936 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
2938 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
2939 from 'const void *'.
2940 (sort_locs_in_loop_postorder_cmp): Likewise.
2942 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
2944 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
2945 (hot-bb-count-ws-permille): Likewise.
2946 (hot-bb-frequency-fraction): Likewise.
2947 (unlikely-bb-count-fraction): Likewise.
2948 * params.def (hot-bb-count-fraction): Rework description.
2949 (hot-bb-count-ws-permille): Likewise.
2950 (hot-bb-frequency-fraction): Likewise.
2951 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
2952 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
2954 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2957 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
2960 2019-08-02 Richard Biener <rguenther@suse.de>
2962 * vec.h (vec::sort): Add gcc_qsort_r support.
2963 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
2964 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
2965 to gcc_qsort_r style callback.
2966 (sort_locs_in_loop_postorder_cmp): Likewise.
2967 (analyze_memory_references): Use gcc_sort_r interfaces.
2968 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
2970 2019-08-02 Martin Liska <mliska@suse.cz>
2973 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
2974 to detect working job server.
2975 (driver::detect_jobserver): Test whether jobserver
2976 is active from GCC driver. That will prevent situation where
2977 GCC is invoked from a LD plugin and the linker already uses
2978 file descriptors suggested by make. That leads to a wrong
2980 * gcc.h (driver): Add detect_jobserver.
2981 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
2982 not scanning for --jobserver-auth prefix.
2984 2019-08-02 Jakub Jelinek <jakub@redhat.com>
2986 PR tree-optimization/91201
2987 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
2988 V16QImode extraction without sse4.1 try to use V4SImode lowpart
2991 2019-08-01 Martin Sebor <msebor@redhat.com>
2994 * tree.c (type_initializer_zero_p): Define.
2995 * tree.h (type_initializer_zero_p): New function.
2997 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2999 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
3001 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3003 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
3004 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
3005 * predict.c (maybe_hot_count_p): Likewise.
3006 (maybe_hot_bb_p): Tweak comment.
3007 (maybe_hot_edge_p): Likewise.
3008 (probably_never_executed): Likewise. Minor tweak.
3009 (probably_never_executed_bb_p): Likewise.
3010 (unlikely_executed_edge_p): Likewise.
3011 (probably_never_executed_edge_p): Likewise.
3012 (optimize_function_for_size_p): Likewise.
3013 (optimize_function_for_speed_p): Likewise.
3014 (function_optimization_type): Likewise.
3015 (optimize_bb_for_size_p): Likewise.
3016 (optimize_bb_for_speed_p): Likewise.
3017 (bb_optimization_type): Likewise.
3018 (optimize_edge_for_size_p): Likewise.
3019 (optimize_edge_for_speed_p): Likewise.
3020 (optimize_insn_for_size_p): Likewise.
3021 (optimize_insn_for_speed_p): Likewise.
3022 (optimize_loop_for_size_p): Likewise.
3023 (optimize_loop_for_speed_p): Likewise.
3024 (optimize_loop_nest_for_speed_p): Likewise.
3025 (optimize_loop_nest_for_size_p): Likewise.
3026 (predictable_edge_p): Likewise.
3027 (handle_missing_profiles): Minor tweak.
3029 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
3031 * config/rs6000/predicates.md (pcrel_external_address): Update
3034 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3037 * config/i386/mmx.md (usadv8qi): New expander.
3039 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
3042 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
3043 with reserved names that are in a system header.
3045 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3047 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
3048 (*vec_extractv2si_0_zext_sse4): New insn pattern.
3049 (*vec_extractv2si_0_zext): Ditto.
3050 (*vec_extractv2si_1): Add (rm,x) alternative.
3051 (*vec_extractv2si_1_zext): New insn pattern.
3052 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
3055 2019-08-01 Richard Biener <rguenther@suse.de>
3057 * domwalk.c (bb_postorder): Remove static variable.
3058 (cmp_bb_postorder): Adjust.
3059 (sort_bbs_postorder): Adjust and use gcc_sort_r.
3060 (dom_walker::walk): Adjust.
3062 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
3064 * sort.cc (sort_r_ctx): New struct.
3065 (reorder23): Make templated on context type.
3067 (cmp1): Ditto. Adjust signature.
3070 [CHECKING_P] (cmp2to3): New static function. Use it...
3071 (gcc_qsort) [CHECKING_P]: ...here.
3072 (gcc_sort_r): New function.
3073 * system.h (sort_r_cmp_fn): New function typedef.
3074 (qsort_chk): Adjust signature.
3075 (gcc_sort_r): Declare.
3076 * vec.c (qsort_chk_error): Adjust.
3077 (qsort_chk): Adjust.
3079 2019-08-01 Richard Biener <rguenther@suse.de>
3081 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
3082 (compute_antic): Localize it here.
3084 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
3086 * common/config/riscv/riscv-common.c: Check -march string ends
3089 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
3091 * ipa-devirt.c (type_warning_cmp): Make static.
3092 (decl_warning_cmp): Ditto.
3094 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
3097 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
3098 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3099 use of deleted rs6000_dejagnu_cpu_index variable.
3100 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
3101 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3102 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
3103 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
3104 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
3105 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3107 2019-07-31 Richard Biener <rguenther@suse.de>
3109 PR tree-optimization/91280
3110 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3111 Decompose MEM_REF manually for offset handling.
3113 2019-07-31 Richard Biener <rguenther@suse.de>
3115 PR tree-optimization/91293
3116 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
3119 2019-07-31 Matt Thomas <matt@3am-software.com>
3120 Nick Hudson <nick@nthcliff.demon.co.uk>
3121 Matthew Green <mrg@eterna.com.au>
3122 Maya Rashish <coypu@sdf.org>
3124 * config.gcc (hppa*-*-netbsd*): New target.
3125 * config/pa/pa-netbsd.h: New file.
3126 * config/pa/pa32-netbsd.h: New file.
3128 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3130 PR tree-optimization/91201
3131 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
3133 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
3135 * config/gcn/gcn-valu.md
3136 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
3137 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
3138 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
3139 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
3140 struct ilist. Add nops for delayeduse insns.
3141 * config/gcn/gcn.md (delayeduse): New attribute.
3142 (*movbi): Remove s_waitcnt from stores.
3143 (*mov<mode>_insn): Likewise.
3144 (*movti_insn): Likewise. Add delayeduse attribute.
3145 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
3146 (atomic_store<mode>): Remove or adjust s_waitcnt.
3148 2019-07-31 Richard Biener <rguenther@suse.de>
3150 * vr-values.h (vr_values::swap_vr_value): New.
3151 (vr_values::free_value_range): likewise.
3152 * vr-values.c (vr_values::swap_vr_value): Implement.
3153 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
3154 Do not return a range or take a var.
3155 (evrp_range_analyzer::stack): Change back to recording a non-const
3157 * gimple-ssa-evrp-analyze.c
3158 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
3160 (evrp_range_analyzer::pop_to_marker): Adjust.
3161 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
3162 (evrp_range_analyzer::pop_value_range): Likewise. Free the
3163 no longer needed value-range.
3165 2019-07-31 Martin Liska <mliska@suse.cz>
3167 * tree-ssa-dce.c (propagate_necessity): Delete operator can
3168 have size and (or) alignment as 2nd and later arguments.
3169 Mark all of them as necessary.
3171 2019-07-31 Richard Biener <rguenther@suse.de>
3173 PR tree-optimization/91178
3174 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3177 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3179 PR tree-optimization/91201
3180 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
3181 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
3183 (reduc_plus_scal_<mode>): Improve formatting by introducing
3186 2019-07-31 Sudakshina Das <sudi.das@arm.com>
3188 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3189 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
3190 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
3191 (aarch64_init_tme_builtins): New.
3192 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
3193 (aarch64_expand_builtin_tme): New.
3194 (aarch64_expand_builtin): Handle TME builtins.
3195 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3196 __ARM_FEATURE_TME when enabled.
3197 * config/aarch64/aarch64-option-extensions.def: Add "tme".
3198 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
3200 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
3201 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
3203 (tstart, ttest, tcommit, tcancel): New instructions.
3204 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
3205 (__tcancel, __ttest): New.
3206 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
3207 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
3208 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
3209 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
3210 * config/arm/types.md: Add new tme type attr.
3211 * doc/invoke.texi: Document "tme".
3213 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
3215 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
3216 warn_unused_result attribute.
3217 (cmse_check_address_range): Add warn_unused_result attribute.
3219 2019-07-31 Richard Biener <rguenther@suse.de>
3221 PR tree-optimization/91257
3222 * tree-vrp.c (union_ranges): Unify equality and less tests
3223 by using compare_values. Re-order cheap tests first.
3225 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3228 * gimplify.c (gimplify_omp_for): If for class iterator on
3229 distribute parallel for there is no data sharing clause
3230 on inner_for_stmt, look for private clause on combined
3231 parallel too and if found, move it to inner_for_stmt.
3233 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
3235 * lra-int.h (lra_operand_data): Remove early_clobber field.
3236 (lra_insn_reg): Likewise.
3237 * lra.c (debug_operand_data): Update accordingly.
3238 (setup_operand_alternative): Likewise.
3239 (new_insn_reg): Likewise. Remove early_clobber parameter.
3240 (collect_non_operand_hard_regs): Update call accordingly.
3241 Don't assign to lra_insn_reg::early_clobber.
3242 (add_regs_to_insn_regno_info): Remove early_clobber parameter
3243 and update calls to new_insn_reg.
3244 (lra_update_insn_regno_info): Update calls accordingly.
3245 * lra-constraints.c (update_and_check_small_class_inputs): Take the
3246 alternative number as a parameter and test whether the operand
3247 is earlyclobbered in that particular alternative.
3248 (process_alt_operands): Update call accordingly. Use per-alternative
3249 checks for earyclobber here too.
3250 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
3251 against zero for IRA_UNKNOWN_ALT.
3253 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3255 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
3257 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
3259 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
3260 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3262 2019-07-30 Martin Liska <mliska@suse.cz>
3265 * cgraph.c (cgraph_edge::make_direct): Use
3266 edge->indirect_unknown_callee as edge->resolve_speculation can
3267 deallocate edge which is this pointer.
3269 2019-07-30 Richard Biener <rguenther@suse.de>
3271 PR tree-optimization/91257
3272 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
3274 2019-07-30 Martin Liska <mliska@suse.cz>
3276 * doc/invoke.texi: Document new behavior.
3277 * lto-wrapper.c (cpuset_popcount): New function
3278 is a copy of libgomp/config/linux/proc.c.
3279 (init_num_threads): Likewise.
3280 (run_gcc): Automatically detect core count for -flto.
3281 (jobserver_active_p): New function.
3283 2019-07-30 Richard Biener <rguenther@suse.de>
3285 PR tree-optimization/91257
3286 * bitmap.h (bitmap_ior_into_and_free): Declare.
3287 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
3288 whether to add the unliked element to the freelist.
3289 (bitmap_list_insert_element_after): Add defaulted param for
3290 an already allocated element.
3291 (bitmap_ior_into_and_free): New function.
3292 * tree-ssa-structalias.c (condense_visit): Reduce the
3293 ponts-to and edge bitmaps of the SCC members in a
3294 logarithmic fashion rather than all to one.
3296 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
3298 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
3299 parameter. When nonnull, make sure that the addition or subtraction
3300 has the same condition.
3301 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
3302 for CFN_COND_MUL too.
3304 2019-07-30 Richard Biener <rguenther@suse.de>
3306 PR tree-optimization/91291
3307 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
3310 2019-07-30 Jakub Jelinek <jakub@redhat.com>
3313 * omp-low.c (global_nonaddressable_vars): New variable.
3314 (use_pointer_for_field): For global decls, if they are non-addressable,
3315 remember it in the global_nonaddressable_vars bitmap, if they are
3316 addressable and in the global_nonaddressable_vars bitmap, ignore their
3317 TREE_ADDRESSABLE bit.
3318 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
3319 vars in global_nonaddressable_vars bitmap.
3320 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
3323 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
3324 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
3325 comparison to unsigned HOST_WIDE_INT before shifting it left.
3327 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3329 * config/i386/i386.md (movstrict<mode>): Use register_operand
3330 predicate for operand 0. Add expander condition. Assert that
3331 operand 0 is a SUBREG RTX.
3332 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
3333 Update operand constraints and insn condition.
3334 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
3335 (zero_extendqihi2_and): Do not call gen_movstrictqi.
3336 (*setcc_qi_slp): Use register_operand predicate for operand 0.
3337 Update operand 0 constraints.
3338 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
3340 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3342 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
3343 when -m{code,data}-region are used without -mlarge.
3344 * config/msp430/msp430.c (msp430_option_override): Error when a
3345 non-default code or data region is used without -mlarge.
3346 (msp430_section_attr): Emit a warning and do not add upper/lower/either
3347 attributes when they are used without -mlarge.
3349 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3352 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3354 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3357 * wide-int.h (generic_wide_int::sext_elt): New function.
3358 * inchash.h (hash::add_wide_int): Use it instead of elt.
3360 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3362 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3364 * config/arm/arm.md (<crc_variant>): Rename to...
3365 (arm_<crc_variant>): ... This.
3366 (<cdp>): Rename to...
3367 (arm_<cdp>): ... This.
3368 (<ldc>): Rename to...
3369 (arm_<ldc>): ... This.
3370 (<stc>): Rename to...
3371 (arm_<stc>): ... This.
3372 (<mcr>): Rename to...
3373 (arm_<mcr>): ... This.
3374 (<mrc>): Rename to...
3375 (arm_<mrc>): ... This.
3376 (<mcrr>): Rename to...
3377 (arm_<mcrr>): ... This.
3378 (<mrrc>): Rename to...
3379 (arm_<mrrc>): ... This.
3381 2019-07-29 Richard Biener <rguenther@suse.de>
3383 PR tree-optimization/91257
3384 * tree-ssa-sccvn.h (struct vn_avail): New.
3385 (struct vn_ssa_aux): Add avail member.
3386 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3387 member, add m_avail_freelist one.
3388 (rpo_elim::~rpo_elim): Remove.
3389 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3391 (rpo_elim::eliminate_push_avail): Likewise.
3392 (do_unwind): Likewise.
3393 (do_rpo_vn): Likewise.
3395 2019-07-29 Richard Biener <rguenther@suse.de>
3397 PR tree-optimization/91257
3398 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3399 most cases, instead call compare_values which handles the
3400 symbolic ranges we handle specially.
3401 (compare_values_warnv): Do not call operand_less_p but open-code
3402 the effective fold calls. Avoid converting so much.
3404 2019-07-29 Martin Liska <mliska@suse.cz>
3406 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3407 remove LHS of operator new call. It's handled latter.
3409 2019-07-29 Richard Biener <rguenther@suse.de>
3411 PR tree-optimization/91267
3412 * vr-values.c (vr_values::update_value_range): Add early return
3413 for effectively VARYING lattice entry.
3415 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3418 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3419 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3420 necessary if keep_all_vdefs_p is true.
3421 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3422 that keep_all_vdefs_p is false.
3423 (mark_all_reaching_defs_necessary): Likewise.
3424 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3426 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3428 * common.opt (Og): Change the initial value of flag_dse to 0.
3429 * opts.c (default_options_table): Move OPT_ftree_dse from
3430 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3431 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3432 entry before the OPT_ftree_sra entry.
3433 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3434 of flags disabled by Og.
3436 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3438 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3441 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3443 * doc/sourcebuild.texi (check-function-bodies): Document.
3445 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3447 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3448 VEC_DUPLICATE of a fixed-length vector even if the result
3449 is variable-length. Likewise fold a duplicate of a
3450 variable-length vector if the variable-length vector is
3451 itself a duplicate of a fixed-length sequence.
3452 (test_vector_ops_duplicate): Test more cases.
3454 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3456 * vector-builder.h (vector_builder): Add a shape template parameter.
3457 (vector_builder::new_unary_operation): New function, generalizing
3458 the old tree_vector_builder function.
3459 (vector_builder::new_binary_operation): Likewise.
3460 (vector_builder::binary_encoded_nelts): Likewise.
3461 * int-vector-builder.h (int_vector_builder): Update template
3462 parameters to vector_builder.
3463 (int_vector_builder::shape_nelts): New function.
3464 * rtx-vector-builder.h (rtx_vector_builder): Update template
3465 parameters to vector_builder.
3466 (rtx_vector_builder::shape_nelts): New function.
3467 (rtx_vector_builder::nelts_of): Likewise.
3468 (rtx_vector_builder::npatterns_of): Likewise.
3469 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3470 * tree-vector-builder.h (tree_vector_builder): Update template
3471 parameters to vector_builder.
3472 (tree_vector_builder::shape_nelts): New function.
3473 (tree_vector_builder::nelts_of): Likewise.
3474 (tree_vector_builder::npatterns_of): Likewise.
3475 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3476 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3477 (tree_vector_builder::new_binary_operation): Delete.
3478 (tree_vector_builder::binary_encoded_nelts): Likewise.
3479 * simplify-rtx.c: Include rtx-vector-builder.h.
3480 (distributes_over_addition_p): New function.
3481 (simplify_const_unary_operation)
3482 (simplify_const_binary_operation): Generalize handling of vector
3483 constants to include variable-length vectors.
3484 (test_vector_ops_series): Add more tests.
3486 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3489 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3490 than INDENTIFIER_POINTER.
3492 2019-07-28 Martin Liska <mliska@suse.cz>
3495 * cgraph.c (symbol_table::create_edge): Always allocate
3497 (symbol_table::free_edge): Store summary_id to
3498 edge_released_summary_ids if != -1;
3499 * cgraph.h (NEXT_FREE_NODE): Remove.
3500 (SET_NEXT_FREE_NODE): Likewise.
3501 (NEXT_FREE_EDGE): Likewise.
3502 (symbol_table::release_symbol): Store summary_id to
3503 cgraph_released_summary_ids if != -1;
3504 (symbol_table::allocate_cgraph_symbol): Always allocate
3507 2019-07-28 Alan Modra <amodra@gmail.com>
3509 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3512 2019-07-28 Alan Modra <amodra@gmail.com>
3515 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3517 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3518 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3519 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3521 2019-07-28 Alan Modra <amodra@gmail.com>
3524 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3525 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3526 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3527 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3528 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3529 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3530 in asm_default spec.
3531 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3532 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3534 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3536 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3538 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3541 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3542 * config/aarch64/aarch64-option-extensions.def: Add new comments
3543 and restore easier to read options.
3545 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3547 * convert.c (convert_to_real_1): Move part of conversion code...
3548 * match.pd: ...To here.
3550 2019-07-26 Martin Jambor <mjambor@suse.cz>
3553 * ipa-inline-transform.c (check_speculations_1): New function.
3554 (push_all_edges_in_set_to_vec): Likewise.
3555 (check_speculations): Use check_speculations_1, new parameter
3557 (inline_call): Pass new_edges to check_speculations.
3558 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3560 (speculation_useful_p): Early return true if edge is inlined, remove
3561 later checks for inline_failed.
3563 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3565 PR rtl-optimization/91223
3566 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3567 matching with INOUT operand.
3569 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3571 * stmt.c (expand_case): Try to narrow the index type if it's larger
3572 than a word. Tidy up.
3574 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3576 * cif-code.def (NEVER_CALL): New code.
3577 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3578 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3580 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3582 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3583 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3585 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3587 * ipa-devirt.c (add_type_duplicate): Fix return value.
3589 2019-07-25 Richard Biener <rguenther@suse.de>
3591 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3592 type parameter and use it instead of guessing expression
3593 type from the first operand.
3594 (extract_range_from_binary_expr): Pass expr_type down.
3596 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3598 * config/arm/arm.md (SATrev): Change to code attribute.
3599 (*satsi_<SAT:code>): Adjust for the above.
3600 (*satsi_<SAT:code>_shift): Likewise.
3602 2019-07-25 Richard Biener <rguenther@suse.de>
3604 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3605 Make value_range * temporary const.
3606 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3608 (evrp_range_analyzer::record_ranges_from_): Likewise.
3609 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3610 deal with having recorded a const one.
3611 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3612 Return a const value_range *.
3613 (evrp_range_analyzer::pop_value_range): Likewise.
3614 (evrp_range_analyzer::stack): Record const value_range *s.
3615 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3617 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3618 (format_integer): Likewise.
3619 (sprintf_dom_walker::handle_gimple_call): Likewise.
3620 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3621 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3622 (vrp_prop::get_value_range): Adjust.
3623 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3624 modifying the lattice in-place.
3625 (vrp_prop::visit_stmt): Likewise.
3626 * vr-values.c (vr_values::get_lattice_entry): New private method.
3627 (vr_values::get_value_range): Wrap it and return a const
3629 (vr_values::set_def_to_varying): New.
3630 (vr_values::set_defs_to_varying): Use it.
3631 (vr_values::update_value_range): Likewise.
3632 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3633 (values::op_with_constant_singleton_va): Likewise.
3634 (vr_values::extract_range_for_var_from_co): Likewise.
3635 (vr_values::extract_range_from_ssa_name): Likewise.
3636 (vr_values::extract_range_from_cond_expr): Likewise.
3637 (vr_values::extract_range_basic): Likewise.
3638 (compare_ranges): Take const value_range *, adjust.
3639 (compare_range_with_value): Likewise.
3640 (vrp_valueize): Adjust.
3641 (vrp_valueize_1): Likewise.
3642 (vr_values::get_vr_for_comparison): Return a const value_range *.
3643 (vr_values::compare_name_with_value): Adjust.
3644 (vr_values::compare_names): Likewise.
3645 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3647 (vr_values::vrp_evaluate_conditional): Likewise.
3648 (find_case_label_ranges): Take a const value_range *.
3649 (vr_values::vrp_visit_switch_stmt): Adjust.
3650 (vr_values::extract_range_from_phi_node): Likewise.
3651 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3652 (vr_values::simplify_abs_using_ranges): Likewise.
3653 (test_for_singularity): Take a const value_range *.
3654 (range_fits_type_p): Likewise.
3655 (vr_values::simplify_cond_using_ranges_1): Adjust.
3656 (vr_values::simplify_cond_using_ranges_2): Likewise.
3657 (vr_values::simplify_switch_using_ranges): Likewise.
3658 (vr_values::simplify_float_conversion_usi): Likewise.
3659 (vr_values::two_valued_val_range_p): Likewise.
3660 * vr-values.h (vr_values::get_value_range): Return a const
3662 (vr_values::set_def_to_varying): New.
3663 (vr_values::get_lattice_entry): New private method.
3664 (vr_values::get_vr_for_comparison): Return a const value_range *.
3666 2019-07-25 Martin Liska <mliska@suse.cz>
3667 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3670 * common.opt: Add -fallocation-dce
3671 * gimple.c (gimple_call_operator_delete_p): New.
3672 * gimple.h (gimple_call_operator_delete_p): Likewise.
3673 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3674 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
3675 DECL_IS_OPERATOR_DELETE_P.
3676 (mark_all_reaching_defs_necessary_1): Likewise.
3677 (propagate_necessity): Likewise.
3678 (eliminate_unnecessary_stmts): Handle
3679 gimple_call_operator_delete_p.
3680 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
3681 Add packing of OPERATOR_DELETE.
3682 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
3684 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
3685 (DECL_SET_IS_OPERATOR_DELETE): New.
3686 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
3688 2019-07-25 Martin Liska <mliska@suse.cz>
3690 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
3691 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
3692 * coverage.c (coverage_begin_function): Likewise.
3693 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
3694 * gimple.c (gimple_call_nonnull_result_p): Likewise.
3695 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
3696 (sem_item::hash_referenced_symbol_properties): Likewise.
3697 * lto-streamer-out.c (hash_tree): Likewise.
3698 * predict.c (expr_expected_value_1): Likewise.
3699 * tree-inline.c (expand_call_inline): Likewise.
3700 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3701 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3702 * tree-core.h (enum function_decl_type): New enum.
3703 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
3704 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
3705 (set_function_decl_type): Likewise.
3706 (DECL_IS_OPERATOR_NEW_P): New.
3707 (DECL_SET_IS_OPERATOR_NEW): Likewise.
3708 (DECL_LAMBDA_FUNCTION): Likewise.
3709 (DECL_LAMBDA_FUNCTION_P): Likewise.
3710 (DECL_IS_OPERATOR_NEW): Remove.
3711 (DECL_SET_LAMBDA_FUNCTION): Likewise.
3713 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
3715 * ipa-profile.c (get_most_common_single_value): Use
3716 get_nth_most_common_value.
3717 * profile.c (sort_hist_value): New function.
3718 (compute_value_histograms): Call sort_hist_value to sort the
3719 values after loading from disk.
3720 * value-prof.c (get_most_common_single_value): Rename to ...
3721 get_nth_most_common_value. Add input params n, return
3722 the n_th value and count.
3723 (gimple_divmod_fixed_value_transform): Use
3724 get_nth_most_common_value.
3725 (gimple_ic_transform): Likewise.
3726 (gimple_stringops_transform): Likewise.
3727 * value-prof.h (get_most_common_single_value): Add input params
3730 2019-07-25 Richard Biener <rguenther@suse.de>
3732 PR tree-optimization/91236
3733 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3734 size of CONSTRUCTOR write. Fix buffer size we pass to
3737 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3739 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
3740 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
3743 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3745 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
3746 explicitly disabled with --disable-initfini-array.
3748 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3750 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
3753 2019-07-24 Martin Sebor <msebor@redhat.com>
3755 PR tree-optimization/91183
3756 PR tree-optimization/86688
3757 * builtins.c (compute_objsize): Handle MEM_REF.
3758 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
3759 (get_min_string_length): Remove.
3760 (count_nonzero_bytes): New function.
3761 (handle_char_store): Rename...
3762 (handle_store): to this. Handle multibyte stores via integer types.
3763 (strlen_check_and_optimize_stmt): Adjust conditional and the called
3766 2019-07-24 Martin Sebor <msebor@redhat.com>
3769 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
3770 (diagnostic_report_diagnostic): Same.
3771 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
3772 (diagnostic_context::lang_mask): New data member.
3773 * ipa-pure-const.c (suggest_attribute): Use
3774 lang_hooks.option_lang_mask ().
3775 * opts-common.c (option_enabled): Handle new argument.
3776 (get_option_state): Pass an additional argument.
3777 * opts.c (print_filtered_help): Print supported languages for
3778 unsupported options. Adjust printing of current state.
3779 * opts.h (option_enabled): Add argument.
3780 * toplev.c (print_switch_values): Use lang_mask.
3781 (general_init): Set global_dc->lang_mask.
3783 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3786 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
3788 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
3790 * cgraphunit.c (symbol_table::compile): Start and stop
3791 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
3792 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
3794 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
3796 * gimplify.c (flag_instrument_functions_exclude_p): Include
3797 namespace/class information in the printable name.
3798 * opts.c (add_comma_separated_to_vector): Add NUL terminator
3799 to tokens entered into the vector.
3801 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
3803 * tree-nested.c (build_simple_mem_ref_notrap): New function.
3804 (get_static_chain): Call it instead of build_simple_mem_ref.
3805 (get_frame_field): Likewise.
3806 (get_nonlocal_debug_decl): Likewise.
3807 (convert_nonlocal_reference_op): Likewise.
3809 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
3811 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
3813 (arc_compute_frame_size): Millicode is disabled when compiling
3815 (arc_return_address_register): Likewise.
3816 (arc_compute_function_type): Likewise.
3817 (arc_compute_frame_size): Likewise.
3818 (secondary_reload_info): Likewise.
3819 (arc_get_unalign): Likewise.
3820 (arc_can_use_return_insn): Declare.
3821 * config/arc/arc.c (AUX_LP_START): Define
3822 (AUX_LP_END): Likewise.
3823 (arc_frame_info): Update gmask member to 64-bit datum.
3824 (GMASK_LEN): Update.
3825 (arc_compute_function_type): Make it static, move it forward.
3826 (arc_must_save_register): Update, consider the extra regs.
3827 (arc_compute_millicode_save_restore_regs): Update to use the 64
3829 (arc_compute_frame_size): Likewise.
3830 (arc_enter_leave_p): Likewise.
3831 (arc_save_callee_saves): Likewise.
3832 (arc_restore_callee_saves): Likewise.
3833 (arc_save_callee_enter): Likewise.
3834 (arc_restore_callee_leave): Likewise.
3835 (arc_save_callee_milli): Likewise.
3836 (arc_restore_callee_milli): Likewise.
3837 (arc_expand_prologue): Add new interrupt handling.
3838 (arc_return_address_register): Make it static, move it forward.
3839 (arc_expand_epilogue): Add new interrupt handling.
3840 (arc_get_unalign): Delete.
3841 (arc_epilogue_uses): Make sure we do not remove the extra
3842 saved/restored registers when interrupt.
3843 (arc_can_use_return_insn): New function.
3844 (push_reg): Likewise.
3845 (pop_reg): Likewise.
3846 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
3848 (arc_restore_callee_saves): Likewise, but restoring.
3849 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
3850 (R33_REG): Likewise.
3851 (R34_REG): Likewise.
3852 (R35_REG): Likewise.
3853 (R36_REG): Likewise.
3854 (R37_REG): Likewise.
3855 (R38_REG): Likewise.
3856 (R39_REG): Likewise.
3857 (R45_REG): Likewise.
3858 (R46_REG): Likewise.
3859 (R47_REG): Likewise.
3860 (R48_REG): Likewise.
3861 (R49_REG): Likewise.
3862 (R50_REG): Likewise.
3863 (R51_REG): Likewise.
3864 (R52_REG): Likewise.
3865 (R53_REG): Likewise.
3866 (R54_REG): Likewise.
3867 (R55_REG): Likewise.
3868 (R56_REG): Likewise.
3869 (R58_REG): Likewise.
3870 (type): Add rtie attribute.
3871 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
3872 (movsi_insn): Accept moves to lp_count.
3873 (rtie): Update pattern.
3874 (simple_return): Simplify it, don't use this pattern as a return
3876 (arc600_rtie): New pattern.
3877 (p_return_i): Clean up.
3879 * config/arc/builtins.def (rtie): Only available for non ARC6xx
3881 * config/arc/predicates.md (move_src_operand): Consider lp_count
3884 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
3886 * config/s390/predicates.md (addv_const_operand): New predicate.
3887 * config/s390/s390-modes.def (CCO): New condition code mode.
3888 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
3889 (s390_branch_condition_mask): Likewise.
3890 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
3891 ("mulv<mode>4"): New expanders.
3892 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
3893 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
3894 pattern definitions.
3896 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3899 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
3900 (define_predicates): Add entry for uniform_vector_p.
3901 (vec_same_elem_p): New match pattern.
3903 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3906 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
3907 * config/i386/darwin32-biarch.h .. to here.
3908 * config/i386/darwin64-biarch.h: Adjust comments.
3909 * config/rs6000/darwin32-biarch.h: Likewise.
3910 * config/rs6000/darwin64-biarch.h: Likewise.
3911 * config.gcc: Missed commit from r273746
3912 (*-*-darwin*): Don't include CPU t-darwin here.
3913 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3914 an error message if i686-darwin configuration is attempted for
3917 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
3920 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
3921 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3922 an error message if i686-darwin configuration is attempted for
3924 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
3925 (powerpc-*-darwin*): Use biarch files where needed.
3926 (powerpc64-*-darwin*): Likewise.
3927 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
3928 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3930 * config/i386/darwin32-biarch.h: New.
3931 * config/i386/darwin64.h: Rename.
3932 * config/i386/darwin64-biarch.h: To this.
3933 * config/i386/t-darwin: Rename.
3934 * config/i386/t-darwin32-biarch: To this.
3935 * config/i386/t-darwin64: Rename.
3936 * config/i386/t-darwin64-biarch: To this.
3937 * config/rs6000/darwin32-biarch.h: New.
3938 * config/rs6000/darwin64.h: Rename.
3939 * config/rs6000/darwin64-biarch.h: To this.
3940 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3942 * config/rs6000/t-darwin8: Rename.
3943 * config/rs6000/t-darwin32-biarch: To this.
3944 * config/rs6000/t-darwin64 Rename.
3945 * config/rs6000/t-darwin64-biarch: To this.
3947 2019-07-23 Martin Sebor <msebor@redhat.com>
3949 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
3951 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3953 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
3954 (rh): New alias for it.
3956 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3958 * gdbhooks.py: Pass replace=True to
3959 gdb.printing.register_pretty_printer.
3961 2019-07-23 Richard Biener <rguenther@suse.de>
3964 * lto-streamer-in.c (input_function): Drop inline-entry markers
3965 that ended up with an unknown location block.
3967 2019-07-23 Richard Biener <rguenther@suse.de>
3969 PR tree-optimization/83518
3970 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
3971 init from a constant even when partial defs are already recorded.
3973 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3975 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
3976 * config/i386/znver1.md: Enable patterns for znver2 and add store
3977 variants which use extra AGU unit.
3979 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3981 * config/i386/i386-options.c (ix86_option_override_internal): Default
3982 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
3983 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
3986 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3988 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
3989 (znver2_costs): Update 256 bit SSE costs and multiplication.
3991 2019-07-23 Jan Beulich <jbeulich@suse.com>
3993 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
3994 Require only AVX512F.
3995 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
3996 alternative expanding to vpternlog.
3998 2019-07-23 Martin Liska <mliska@suse.cz>
4000 * dwarf2out.c (gen_producer_string): Canonize -flto=N
4001 to -flto in dwarf producer string.
4003 2019-07-23 Richard Biener <rguenther@suse.de>
4005 * tree-cfg.c (label_for_bb): Remove global var.
4006 (main_block_label): Take label_for_bb as argument.
4007 (cleanup_dead_labels_eh): Likewise, adjust.
4008 (cleanup_dead_labels): Adjust.
4010 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4012 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
4013 Configurations): Add documentation for __builtin_mtfsf.
4015 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
4017 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
4018 * config/riscv/riscv.c (riscv_constant_alignment): Use
4019 riscv_align_data_type.
4020 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
4021 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4022 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4023 * config/riscv/riscv.opt (malign-data): New.
4024 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
4026 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
4028 * cgraph.c (dump_graphviz): New function.
4029 * cgraph.h (dump_graphviz): New function.
4030 * symtab.c (dump_graphviz): New function.
4032 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
4034 * config/aarch64/aarch64-simd.md
4035 (*aarch64_simd_sra<mode>): New.
4036 * config/aarch64/iterators.md
4037 (SHIFTRT): New iterator.
4038 (sra_op): New attribute.
4040 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4042 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
4043 callee-saved regs R4->R10 in an interrupt function that calls another
4046 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4048 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
4049 (_mm_blendv_epi8): New.
4051 2019-07-22 Richard Biener <rguenther@suse.de>
4053 PR tree-optimization/91221
4054 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
4055 restrict partial-def handling of empty constructors and
4056 memset to refs with known offset.
4058 2019-07-22 Jan Beulich <jbeulich@suse.com>
4060 * config/i386/sse.md (ternlogsuffix): New.
4061 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
4063 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
4065 2019-07-22 Martin Liska <mliska@suse.cz>
4067 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
4069 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
4071 2019-07-22 Martin Liska <mliska@suse.cz>
4073 * lto-section-in.c (lto_get_section_data):
4074 Use new function get_compression.
4075 * lto-streamer-out.c (produce_lto_section): Use
4076 set_compression to encode compression algorithm.
4077 * lto-streamer.h (struct lto_section): Do not
4078 use bitfields in the format.
4080 2019-07-22 Martin Liska <mliska@suse.cz>
4083 * opts-common.c (decode_cmdline_option): Decode
4084 argument of -Werror and check it for a wrong language.
4085 * opts-global.c (complain_wrong_lang): Remove such case.
4087 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
4089 * config/arc/arc.c (prepare_move_operands): Always use an
4090 intermediate register when storing a TLS symbols.
4092 2019-07-22 Stafford Horne <shorne@gmail.com>
4094 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
4097 2019-07-22 Stafford Horne <shorne@gmail.com>
4099 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
4100 and munordered-float validations.
4101 * config/or1k/constraints.md (d): New register constraint.
4102 * config/or1k/predicates.md (fp_comparison_operator): New.
4103 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
4105 (or1k_expand_compare): Normalize unordered comparisons.
4106 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
4107 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
4108 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
4109 * config/or1k/or1k.md (type): Add fpu.
4110 (fpu): New instruction reservation.
4111 (F, f, fr, fi, FI, FOP, fop): New.
4112 (<fop><F:mode>3): New ALU instruction definition.
4113 (float<fi><F:mode>2): New conversion instruction definition.
4114 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
4115 (fpcmpcc): New code iterator.
4116 (*sf_fp_insn): New instruction definition.
4117 (cstore<F:mode>4): New expand definition.
4118 (cbranch<F:mode>4): New expand definition.
4119 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
4120 munordered-float): New options.
4121 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
4124 2019-07-22 Stafford Horne <shorne@gmail.com>
4126 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
4127 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
4128 documenation to be more clear.
4129 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
4131 * config/or1k/or1k.opt (mrori): New option.
4132 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
4133 msfimm, mshftimm): Rewrite documentation to be more clear.
4134 * config/or1k/or1k.md (insn_support): Add ror and rori.
4135 (enabled): Add conditions for ror and rori.
4136 (rotrsi3): Replace condition for shftimm with ror and rori.
4138 2019-07-22 Stafford Horne <shorne@gmail.com>
4141 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
4142 (extend<mode>si2): Update predicate.
4143 * config/or1k/predicates.md (volatile_mem_operand): New.
4144 (reg_or_mem_operand): New.
4146 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
4148 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
4149 * config/rs6000/rs6000-call.c: ... to here.
4151 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4153 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
4156 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4158 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
4160 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4162 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
4164 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4166 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
4167 (any_memory_operand): New predicate.
4168 (reg_or_mem_operand): Use it.
4170 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4173 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
4175 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
4177 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
4178 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
4180 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4182 * tree.def (OMP_LOOP): New tree code.
4183 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
4184 (enum omp_clause_bind_kind): New enum.
4185 (struct tree_omp_clause): Add subcode.bind_kind.
4186 * tree.h (OMP_LOOP_CHECK): Rename to ...
4187 (OMP_LOOPING_CHECK): ... this.
4188 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
4189 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
4190 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
4191 (OMP_CLAUSE_BIND_KIND): Define.
4192 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4193 bind clause entries.
4194 (walk_tree_1): Handle OMP_CLAUSE_BIND.
4195 * tree-pretty-print.c (dump_omp_clause): Likewise.
4196 (dump_generic_node): Handle OMP_LOOP.
4197 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
4198 (in_omp_construct): New variable.
4199 (is_gimple_stmt): Handle OMP_LOOP.
4200 (gimplify_scan_omp_clauses): For lastprivate don't set
4201 check_non_private if code == OMP_LOOP. For reduction clause
4202 on OMP_LOOP combined with parallel or teams propagate as shared
4203 on the combined construct. Handle OMP_CLAUSE_BIND.
4204 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
4205 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
4206 for constructs from a loop construct to gimplify_scan_omp_clauses.
4207 Don't predetermine iterator linear on OMP_SIMD from loop construct.
4208 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
4209 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
4210 to match the implicit ORT_TARGET construct around whole body.
4211 Temporarily clear in_omp_construct when processing body.
4212 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
4213 etc. temporarily set in_omp_construct when processing body.
4214 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
4215 * omp-low.c (struct omp_context): Add loop_p.
4216 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
4217 in that the original var might be private.
4218 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
4219 (check_omp_nesting_restrictions): Adjust nesting restrictions for
4220 addition of loop construct.
4221 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
4223 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
4224 lastprivate non-addressable iterator of a collapse(1) simd.
4226 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
4228 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
4231 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
4233 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
4234 refer to default conditions. Warn for the 'y' spec which is ignored
4237 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
4239 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
4240 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4241 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4242 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4243 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4244 init_cumulative_args, rs6000_promote_function_mode,
4245 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4246 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4247 rs6000_function_arg_boundary, rs6000_parm_offset,
4248 rs6000_parm_start, rs6000_arg_size,
4249 rs6000_darwin64_record_arg_advance_flush,
4250 rs6000_darwin64_record_arg_advance_recurse,
4251 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4252 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4253 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4254 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4255 rs6000_finish_function_arg, rs6000_function_arg,
4256 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4257 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4258 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4259 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4260 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4261 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4262 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4263 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4264 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4265 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4266 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4267 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4268 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4269 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4270 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4271 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4272 get_element_number, altivec_expand_vec_set_builtin,
4273 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4274 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4275 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4276 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4277 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4278 rs6000_expand_builtin, rs6000_vector_type,
4279 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4280 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4281 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
4283 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
4284 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4285 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4286 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4287 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4288 init_cumulative_args, rs6000_promote_function_mode,
4289 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4290 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4291 rs6000_function_arg_boundary, rs6000_parm_offset,
4292 rs6000_parm_start, rs6000_arg_size,
4293 rs6000_darwin64_record_arg_advance_flush,
4294 rs6000_darwin64_record_arg_advance_recurse,
4295 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4296 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4297 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4298 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4299 rs6000_finish_function_arg, rs6000_function_arg,
4300 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4301 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4302 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4303 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4304 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4305 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4306 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4307 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4308 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4309 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4310 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4311 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4312 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4313 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4314 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4315 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4316 get_element_number, altivec_expand_vec_set_builtin,
4317 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4318 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4319 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4320 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4321 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4322 rs6000_expand_builtin, rs6000_vector_type,
4323 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4324 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4325 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
4326 to here from rs6000.c.
4327 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
4328 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
4329 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
4330 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
4331 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
4332 rs6000_return_in_memory, rs6000_return_in_msb,
4333 rs6000_pass_by_reference, setup_incoming_varargs,
4334 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
4335 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
4336 rs6000_function_arg_padding, rs6000_function_arg,
4337 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
4338 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
4339 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
4340 rs6000_passes_long_double, rs6000_passes_vector,
4341 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
4342 altivec_builtin_mask_for_load) Add declarations.
4343 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
4344 * config/config.gcc: Add new source file rs6000-call.c to garbage
4345 collector and extra_objs.
4347 2019-07-19 Jeff Law <law@redhat.com>
4349 PR tree-optimization/86061
4350 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4351 strncpy. Drop some trivial dead code.
4352 (maybe_trim_memstar_call): Handle strncpy.
4354 2019-07-19 Richard Biener <rguenther@suse.de>
4356 PR tree-optimization/91211
4357 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4358 memset encoding size.
4360 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4363 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4365 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4368 * ipa-inline.c (recursive_inlining): Fix limits check.
4370 2019-07-19 Richard Biener <rguenther@suse.de>
4372 PR tree-optimization/91200
4373 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4374 no PHI nodes in middle-bb.
4376 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4378 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4380 * config/aarch64/aarch64-option-extensions.def: Likewise.
4382 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4385 * function.c (insert_temp_slot_address): Store into the hash table
4386 a copy of address to avoid RTL sharing issues.
4388 2019-07-19 Richard Biener <rguenther@suse.de>
4390 PR tree-optimization/91207
4392 2019-07-17 Richard Biener <rguenther@suse.de>
4394 PR tree-optimization/91178
4395 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4396 loads with a gap larger than the vector size always use
4398 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4399 avoid loading vectors that are only contained in the gap
4400 and thus are not needed.
4402 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4404 * config/i386/i386.md (*addqi_2_slp): Remove.
4405 (*<code>qi_2_slp): Ditto.
4407 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4409 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4410 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4411 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4412 Rename function from rs6000_prefixed_address.
4413 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4415 (TARGET_TOC): Likewise.
4416 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4418 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4420 (TARGET_TOC): Likewise.
4421 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4423 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4425 (TARGET_TOC): Likewise.
4426 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4427 check to require -mcmodel=medium for pc-relative addressing.
4428 (create_TOC_reference): Add assertion for TARGET_TOC.
4429 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4431 (rs6000_emit_move): Likewise.
4432 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4434 (get_TOC_alias_set): Likewise.
4435 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4437 (rs6000_can_eliminate): Likewise.
4438 (rs6000_prefixed_address_mode_p): Rename function from
4439 rs6000_prefixed_address.
4440 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4441 TARGET_HAS_TOC and not pc-relative.
4442 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4443 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4445 (TARGET_TOC): Likewise.
4446 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4449 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4452 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4453 for operand 0. Do not use (match_dup) to match operand 1 with
4454 operand 0. Add check in insn constraint that either input operand
4455 matches operand 0. Use SWI12 mode iterator to also handle
4457 (*and<mode>_1_slp): Ditto.
4458 (*<code>qi_1_slp): Ditto.
4459 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4460 Do not use (match_dup) to match operand 1 with operand 0. Add
4461 check in insn constraint that operand 1 matches operand 0.
4462 Use SWI12 mode iterator to also handle HImode operands.
4463 (*ashl<mode>3_1_slp): Ditto.
4464 (*<shift_insn><mode>3_1_slp): Ditto.
4465 (*<rotate_insn><mode>3_1_slp): Ditto.
4467 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4469 * config/arm/arm-builtins.c
4470 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4471 (arm_expand_unop_builtin): Likewise.
4472 * config/arm/crypto.md
4473 (crypto_sha1h): Convert from define_insn to define_expand.
4474 (crypto_<crypto_pattern>): Likewise.
4475 (crypto_sha1h_lb): New define_insn.
4476 (crypto_<crypto_pattern>_lb): Likewise.
4478 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4481 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4482 (vsha1cq_u32): Likewise.
4483 (vsha1pq_u32): Likewise.
4484 (vsha1mq_u32): Likewise.
4485 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4487 (crypto_sha1c): Correct vec select.
4488 (crypto_sha1m): Likewise.
4489 (crypto_sha1p): Likewise.
4491 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4493 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4494 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4495 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4496 (subdi_zesidi_zesidi): Likewise.
4497 (negdi2_compare, negdi2_insn): Likewise.
4498 (negdi_extensidi): Likewise.
4499 (negdi_zero_extendsidi): Likewise.
4500 (arm_cmpdi_insn): Likewise.
4501 (subsi3_carryin): Use arm_borrow_operation.
4502 (subsi3_carryin_const): Likewise.
4503 (subsi3_carryin_const0): Likewise.
4504 (subsi3_carryin_compare): Likewise.
4505 (subsi3_carryin_compare_const): Likewise.
4506 (subsi3_carryin_compare_const0): Likewise.
4507 (subsi3_carryin_shift): Likewise.
4508 (rsbsi3_carryin_shift): Likewise.
4509 (negsi2_carryin_compare): Likewise.
4511 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4513 PR tree-optimization/91137
4514 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4515 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4516 Init, use and fini the above new field.
4517 (determine_base_object_1): New function.
4518 (determine_base_object): Reimplement using walk_tree.
4520 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4522 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4523 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4524 CLEANUP_FORCE_FAST_DCE is set.
4525 * ifcvt.c (rest_of_handle_if_conversion): Pass
4526 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4527 if-conversion succeeded.
4529 2019-07-18 Richard Biener <rguenther@suse.de>
4531 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4532 branches to make code less indented.
4534 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4537 * attribs.c (decls_mismatched_attributes): Simplify the logic
4538 that avoids duplicates and false positives.
4540 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4542 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4543 data into data section when generating PIC code.
4544 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4545 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4546 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4547 return 2 for SOM and 0 for other targets.
4549 2019-07-17 Jeff Law <law@redhat.com>
4551 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4552 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4553 avoid unexpected switch statement fallthru.
4555 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4557 * config/i386/i386.md (*add<dwi>3_doubleword):
4558 Remove redundant constraints.
4559 (*add<mode>_1): Ditto.
4562 (*addqi_1_slp): Ditto.
4563 (*add<mode>_2): Ditto.
4564 (*addv<mode>4): Ditto.
4565 (*sub<dwi>3_doubleword): Ditto.
4566 (*sub<mode>_1): Ditto.
4567 (*subqi_1_slp): Ditto.
4568 (*sub<mode>_2): Ditto.
4569 (*subv<mode>4): Ditto.
4570 (*sub<mode>_3): Ditto.
4571 (@add<mode>3_carry): Ditto.
4572 (@sub<mode>3_carry): Ditto.
4573 (*add<mode>3_cc_overflow_1): Ditto.
4574 (*add<mode>3_zext_cc_overflow_2): Ditto.
4576 (*and<mode>_1): Ditto.
4578 (*andqi_1_slp): Ditto.
4580 (*andqi_2_maybe_si): Ditto.
4581 (*and<mode>_2): Ditto.
4582 (*andqi_2_slp): Ditto.
4583 (*<code><mode>_1): Ditto.
4584 (*<code>qi_1): Ditto.
4585 (*<code>qi_1_slp): Ditto.
4586 (*<code><mode>_2): Ditto.
4587 (*<code>qi_2_slp): Ditto.
4589 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4591 * alias.c (record_component_aliases): Do not simplify pointed-to
4594 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4596 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4597 partial reg stall on alternative 2.
4599 2019-07-17 Richard Biener <rguenther@suse.de>
4601 PR tree-optimization/91178
4602 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4603 lower SSA names to avoid quadratic behavior in the common case.
4604 * tree-data-ref.c (split_constant_offset): Add limit argument
4605 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4606 (split_constant_offset_1): Add limit argument and use it to
4607 limit SSA def walking. Optimize the common plus/minus case.
4609 2019-07-17 Richard Biener <rguenther@suse.de>
4611 PR tree-optimization/91178
4612 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4613 loads with a gap larger than the vector size always use
4615 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4616 avoid loading vectors that are only contained in the gap
4617 and thus are not needed.
4619 2019-07-17 Richard Biener <rguenther@suse.de>
4621 PR tree-optimization/91180
4622 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4623 computation for memset partial defs.
4625 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4627 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4628 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4629 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4630 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4631 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4632 * omp-grid.c (grid_process_grid_body,
4633 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4634 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4635 == GF_OMP_FOR_KIND_SIMD.
4636 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4637 check_omp_nesting_restrictions, scan_omp_1_stmt,
4638 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4639 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4640 omp_find_scan): Likewise.
4641 * omp-expand.c (expand_omp_for): Likewise.
4642 * omp-general.c (omp_extract_for_data): Likewise.
4644 PR tree-optimization/91157
4645 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4646 a vector boolean with scalar mode.
4647 (expand_vector_condition): Handle first operand being a vector boolean
4649 (expand_vector_operations_1): For comparisons, don't bail out early
4650 if the return type is vector boolean with scalar mode, but comparison
4651 operand type is not.
4653 2019-07-17 Richard Biener <rguenther@suse.de>
4655 PR tree-optimization/91181
4656 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4659 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4661 * config/i386/i386.md (*testdi_1): Match CCZmode for
4662 constants that might have the SImode sign bit set.
4663 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4664 Use correct constraints for pentium pairing.
4665 (*test<mode>_1): Ditto.
4667 2019-07-16 Jeff Law <law@redhat.com>
4669 PR rtl-optimization/91173
4670 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4671 SSA_NAME with a constant value, fold its value into the offset
4672 and clear the base before calling gen_addr_rtx.
4674 2019-07-16 Jakub Jelinek <jakub@redhat.com>
4676 PR rtl-optimization/91164
4677 * dse.c (rest_of_handle_dse): If dead edges have been purged,
4678 invalidate dominance info.
4680 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4682 * read-md.h (md_reader::record_potential_iterator_use): Add a
4683 file_location parameter.
4684 * read-rtl.c (attribute_use::loc): New field.
4685 (map_attr_string): Take a file_location parameter. Report cases
4686 in which attributes map to multiple distinct values.
4687 (apply_attribute_uses): Update call accordingly.
4688 (md_reader::handle_overloaded_name): Likewise.
4689 (md_reader::apply_iterator_to_string): Likewise. Skip empty
4691 (record_attribute_use): Take a file_location parameter.
4692 Initialize attribute_use::loc.
4693 (md_reader::record_potential_iterator_use): Take a file_location
4694 parameter. Update call to record_attribute_use.
4695 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
4696 (rtx_reader::read_rtx_code): Likewise.
4697 (rtx_reader::read_rtx_operand): Likewise. Record a location
4698 for implicitly-expanded empty strings.
4700 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4702 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
4703 Use file_location instead of separate fields.
4704 (md_reader::set_md_ptr_loc): Take a file_location instead of a
4705 separate filename and line number.
4706 * read-md.c (ptr_loc): As above.
4707 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
4708 (md_reader::fprint_md_ptr_loc): Likewise.
4709 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
4710 instead of a separate filename and line number.
4711 (md_reader::read_string): Update call accordingly.
4713 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4715 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4716 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
4717 leaving the choice between SFDF and P implicit.
4718 (*mov<mode>_update2): Likewise.
4719 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
4720 rather than leaving the choice betweem IBM128 and GPR implicit.
4721 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
4722 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
4724 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
4725 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
4726 * config/rs6000/vsx.md
4727 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
4728 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
4729 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
4730 and VSX_EXTRACT_I implicit.
4732 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4734 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
4735 Explicitly use <MOVEP1:MODE> for the mode attribute.
4737 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
4740 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
4742 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
4745 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
4748 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
4750 * config/i386/i386.md (@test<mode>_ccno_1):
4751 Rename from test<mode>_ccno_1.
4752 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
4753 (*testqi_1_maybe_si): Remove modrm attribute.
4754 (*test<mode>_1): Ditto.
4755 * config/i386/i386-expand.c (ix86_split_idivmod): Use
4756 gen_test_ccno_1 and gen_extend_insn.
4758 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
4760 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
4763 2019-07-15 Richard Biener <rguenther@suse.de>
4766 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
4767 node make sure to replace all uses with something valid.
4769 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
4771 PR tree-optimization/88497
4772 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
4773 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
4774 function undistribute_bitref_for_vector.
4775 (undistribute_bitref_for_vector): New function.
4776 (cleanup_vinfo_map): Likewise.
4777 (sort_by_mach_mode): Likewise.
4779 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
4781 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
4782 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
4783 and testdi_ccno_1 using SWI48 mode attribute.
4784 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
4785 x86_64_szext_general_operand.
4786 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
4787 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
4788 instead of genera_operand mode attribute.
4790 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
4792 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
4793 fopen and fclose to their respective types.
4794 (DotFn.invoke): Ditto.
4796 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
4798 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
4799 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
4800 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
4801 (array_index_predicate): Remove.
4802 (analyze_function_body): Account cost for variable ofsetted array
4804 (estimate_node_size_and_time): Do not compute array index hint.
4805 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
4806 (inline_read_section): Do not read array index hint.
4807 (ipa_fn_summary_write): Do not write array index hint.
4808 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
4809 * ipa-cp.c (hint_time_bonus): Remove.
4810 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
4811 (ipa_fnsummary): Remove array_index.
4812 * ipa-inline.c (want_inline_small_function_p): Do not use
4814 (edge_badness): Likewise.
4815 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
4817 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
4820 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
4821 superfluous "builtin function" phrasing.
4823 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
4825 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
4827 (aliasing_component_refs_walk): Break out from ...
4828 (aliasing_component_refs_p): ... here.
4830 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
4833 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
4834 "builtin function" phrasing.
4836 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4839 * recog.h (temporary_volatile_ok): New class.
4840 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
4841 volatile_ok temporarily to true using temporary_volatile_ok.
4842 * expr.c (emit_block_move_via_cpymem): Likewise.
4843 * optabs.c (maybe_legitimize_operand): Likewise.
4845 2019-07-13 Jakub Jelinek <jakub@redhat.com>
4847 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
4848 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
4849 uses inside of order(concurrent) constructs.
4850 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
4851 OMP_CLAUSE_ORDER is seen.
4852 * omp-low.c (struct omp_context): Add order_concurrent member.
4853 (scan_sharing_clauses): Set ctx->order_concurrent if
4854 OMP_CLAUSE_ORDER is seen.
4855 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
4856 of simd order(concurrent). Diagnose constructs not allowed inside of
4857 for order(concurrent).
4858 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
4859 complaining about static double setjmp (double); or class static
4860 methods or non-global namespace setjmps.
4861 (omp_runtime_api_call): New function.
4862 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
4863 order(concurrent) loops.
4865 2019-07-12 Martin Sebor <msebor@redhat.com>
4867 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
4868 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
4869 * tree-vrp.c (vrp_prop::check_mem_ref): Use
4870 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4872 2019-07-12 Jan Hubicka <jh@suse.cz>
4874 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
4875 (indirect_refs_may_alias_p): ... here.
4876 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
4877 mem refs in the access paths.
4879 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
4881 PR tree-optimization/89430
4882 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
4883 store elimination for local variable without address escape.
4885 2019-07-12 Jeff Law <law@redhat.com>
4887 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
4888 for the ".far" section.
4890 2019-07-12 Richard Biener <rguenther@suse.de>
4892 PR tree-optimization/91145
4893 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
4896 2019-07-12 Alexandre Oliva <oliva@adacore.com>
4898 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
4899 rather than this_state as the lowering context for the ELSE
4900 seq in a GIMPLE_EH_ELSE.
4902 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4904 * vector-builder.h (vector_builder::elt): Allow already-supplied
4905 elements to be read back before building is complete.
4907 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4909 PR rtl-optimization/91136
4910 * df-core.c (ACCESSING REFS): Fix typos in comment.
4911 * resource.c (mark_target_live_reg): Add artificial defs that occur at
4912 the beginning of the block to the initial set of live registers.
4914 2019-07-12 Richard Biener <rguenther@suse.de>
4916 * fold-const.h (get_array_ctor_element_at_index): Adjust.
4917 * fold-const.c (get_array_ctor_element_at_index): Add
4918 ctor_idx output parameter informing the caller where in
4919 the constructor the element was (not) found. Add early exit
4920 for when the ctor is sorted.
4921 * gimple-fold.c (fold_array_ctor_reference): Support constant
4922 folding across multiple array elements.
4924 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4926 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
4927 doesn't have location, set the current location to the function's end.
4929 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4931 * config/aarch64/aarch64.md (*compare_condjump<mode>)
4932 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
4933 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
4934 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
4935 * config/aarch64/aarch64-simd.md
4936 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
4937 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
4938 * config/aarch64/aarch64-sve.md
4939 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
4940 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
4942 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4944 * doc/md.texi: Document that @ patterns can have different
4945 numbers of operands.
4946 * genemit.c (handle_overloaded_gen): Handle this case.
4947 * genopinit.c (handle_overloaded_gen): Likewise.
4948 * gensupport.c (replace_operands_with_dups): Iterate over
4949 the new rtx's format rather than the old one's.
4951 2019-07-12 Jakub Jelinek <jakub@redhat.com>
4953 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
4954 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4955 order clause entries.
4956 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
4957 * tree-pretty-print.c (dump_omp_clause): Likewise.
4958 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4960 * omp-low.c (scan_sharing_clauses): Likewise.
4961 * tree-nested.c (convert_nonlocal_omp_clauses,
4962 convert_local_omp_clauses): Likewise.
4964 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
4966 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
4967 fallthrough target of current basic block isn't the placed
4970 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
4973 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
4974 (_mm512_storeu_epi64): Likewise.
4975 (_mm512_loadu_epi32): Likewise.
4976 (_mm512_storeu_epi32): Likewise.
4977 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
4978 (_mm_storeu_epi64): Likewise.
4979 (_mm256_storeu_epi32): Likewise.
4980 (_mm_storeu_epi32): Likewise.
4982 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4984 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
4986 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4988 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
4991 2019-07-11 Jakub Jelinek <jakub@redhat.com>
4994 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
4995 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4996 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
4997 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
4998 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
4999 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
5001 (ufix_truncv2dfv2si2<mask_name>): Change into ...
5002 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
5003 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
5005 (sse2_cvttpd2dq<mask_name>): Change into ...
5006 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
5007 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
5008 (*sse2_cvtpd2dq<mask_name>): Change into ...
5009 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5010 Add "C" constraint to const0_operand.
5011 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
5012 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
5016 * config/i386/i386-builtin-types.def
5017 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
5018 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
5019 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
5020 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
5021 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
5022 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
5023 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
5024 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
5025 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
5026 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
5027 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
5028 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
5029 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
5030 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
5031 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
5032 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
5033 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
5034 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
5035 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
5036 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
5037 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
5038 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
5039 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
5040 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
5041 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
5042 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
5043 __builtin_ia32_vpdpbusd_v4si_maskz,
5044 __builtin_ia32_vpdpbusds_v16si_mask,
5045 __builtin_ia32_vpdpbusds_v16si_maskz,
5046 __builtin_ia32_vpdpbusds_v8si_mask,
5047 __builtin_ia32_vpdpbusds_v8si_maskz,
5048 __builtin_ia32_vpdpbusds_v4si_mask,
5049 __builtin_ia32_vpdpbusds_v4si_maskz,
5050 __builtin_ia32_vpdpwssd_v16si_mask,
5051 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
5052 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
5053 __builtin_ia32_vpdpwssd_v4si_maskz,
5054 __builtin_ia32_vpdpwssds_v16si_mask,
5055 __builtin_ia32_vpdpwssds_v16si_maskz,
5056 __builtin_ia32_vpdpwssds_v8si_mask,
5057 __builtin_ia32_vpdpwssds_v8si_maskz,
5058 __builtin_ia32_vpdpwssds_v4si_mask,
5059 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
5060 suffixed types rather than *_INT.
5061 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
5062 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
5063 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
5064 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
5065 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
5066 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
5068 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
5070 * tree-vrp.c (intersect_ranges): If we know the intersection is
5071 empty, there is no need to conservatively add anything else to
5074 2019-07-11 Richard Biener <rguenther@suse.de>
5077 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
5078 when the object is volatile and we have not cleared it even though
5079 there are no nonzero elements.
5081 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
5083 * config/rs6000/predicates.md (cint34_operand): Update
5084 SIGNED_34BIT_OFFSET_P call.
5085 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
5086 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
5087 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
5088 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
5089 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
5091 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
5092 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
5093 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
5094 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
5095 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
5097 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
5099 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
5100 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
5101 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
5102 (DEF_MIN_OSX_VERSION): New.
5104 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5106 * fold-const.c (fold_relational_const): Fix folding of
5107 vector-to-scalar NE_EXPRs.
5108 (test_vector_folding): Add more tests.
5110 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5113 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
5114 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
5115 (vec_setv2di_internal): Reexpress as...
5116 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
5117 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
5118 rather than gen_neon_vset_lane<mode>.
5120 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
5123 * lra-constraints.c (process_alt_operands): Don't match user
5124 defined regs only if they are early clobbers.
5126 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
5128 * wide-int.h (wi::lshift): Reject negative values for the fast path.
5130 2019-07-10 Richard Biener <rguenther@suse.de>
5132 PR tree-optimization/91126
5133 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
5134 native encoding offset for BYTES_BIG_ENDIAN.
5135 (vn_reference_lookup_3): Likewise.
5137 2019-07-10 Richard Biener <rguenther@suse.de>
5139 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
5140 LHS whenever possible.
5142 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
5144 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
5145 from ...; work also on duplicated types.
5146 (nonoverlapping_component_refs_since_match): ... here
5147 (ncr_type_uid): Break out from ...
5148 (ncr_compar): ... here; look for TYPE_UID of canonical type if
5150 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
5151 the types and nonoverlapping_component_refs_p_1 to disambiguate.
5153 2019-07-09 Martin Sebor <msebor@redhat.com>
5155 PR tree-optimization/90989
5156 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
5157 optimization to just single character stores.
5159 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
5161 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
5162 Swap operands only once.
5164 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
5166 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
5167 for both call instructions.
5169 2019-07-09 John Darrington <john@darrington.wattle.id.au>
5171 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
5172 rather than GET_MODE_BITSIZE to better handle partial integer modes.
5174 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
5176 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
5177 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
5178 function from rs6000-logue.c back to rs6000.c.
5179 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
5181 2019-07-09 Martin Sebor <msebor@redhat.com>
5184 * auto-profile.c: Change class-key of PODs to struct and others
5186 * basic-block.h: Same.
5187 * bitmap.c (bitmap_alloc): Same.
5189 * builtins.c (expand_builtin_prefetch): Same.
5190 (expand_builtin_interclass_mathfn): Same.
5191 (expand_builtin_strlen): Same.
5192 (expand_builtin_mempcpy_args): Same.
5193 (expand_cmpstr): Same.
5194 (expand_builtin___clear_cache): Same.
5195 (expand_ifn_atomic_bit_test_and): Same.
5196 (expand_builtin_thread_pointer): Same.
5197 (expand_builtin_set_thread_pointer): Same.
5198 * caller-save.c (setup_save_areas): Same.
5199 (replace_reg_with_saved_mem): Same.
5200 (insert_restore): Same.
5201 (insert_save): Same.
5202 (add_used_regs): Same.
5203 * cfg.c (get_bb_copy): Same.
5204 (set_loop_copy): Same.
5207 * cfgexpand.c (alloc_stack_frame_space): Same.
5208 (add_stack_var): Same.
5209 (add_stack_var_conflict): Same.
5210 (add_scope_conflicts_1): Same.
5211 (update_alias_info_with_stack_vars): Same.
5212 (expand_used_vars): Same.
5213 * cfghooks.c (redirect_edge_and_branch_force): Same.
5214 (delete_basic_block): Same.
5216 (make_forwarder_block): Same.
5217 (force_nonfallthru): Same.
5218 (duplicate_block): Same.
5219 (lv_flush_pending_stmts): Same.
5221 * cfgloop.c (flow_loops_cfg_dump): Same.
5222 (flow_loop_nested_p): Same.
5223 (superloop_at_depth): Same.
5224 (get_loop_latch_edges): Same.
5225 (flow_loop_dump): Same.
5226 (flow_loops_dump): Same.
5227 (flow_loops_free): Same.
5228 (flow_loop_nodes_find): Same.
5229 (establish_preds): Same.
5230 (flow_loop_tree_node_add): Same.
5231 (flow_loop_tree_node_remove): Same.
5232 (flow_loops_find): Same.
5233 (find_subloop_latch_edge_by_profile): Same.
5234 (find_subloop_latch_edge_by_ivs): Same.
5235 (mfb_redirect_edges_in_set): Same.
5236 (form_subloop): Same.
5237 (merge_latch_edges): Same.
5238 (disambiguate_multiple_latches): Same.
5239 (disambiguate_loops_with_multiple_latches): Same.
5240 (flow_bb_inside_loop_p): Same.
5242 (get_loop_body_with_size): Same.
5243 (get_loop_body): Same.
5244 (fill_sons_in_loop): Same.
5245 (get_loop_body_in_dom_order): Same.
5246 (get_loop_body_in_custom_order): Same.
5247 (release_recorded_exits): Same.
5248 (get_loop_exit_edges): Same.
5249 (num_loop_branches): Same.
5250 (remove_bb_from_loops): Same.
5251 (find_common_loop): Same.
5252 (delete_loop): Same.
5253 (cancel_loop): Same.
5254 (verify_loop_structure): Same.
5255 (loop_preheader_edge): Same.
5256 (loop_exit_edge_p): Same.
5257 (single_exit): Same.
5258 (loop_exits_to_bb_p): Same.
5259 (loop_exits_from_bb_p): Same.
5260 (get_loop_location): Same.
5261 (record_niter_bound): Same.
5262 (get_estimated_loop_iterations_int): Same.
5263 (max_stmt_executions_int): Same.
5264 (likely_max_stmt_executions_int): Same.
5265 (get_estimated_loop_iterations): Same.
5266 (get_max_loop_iterations): Same.
5267 (get_max_loop_iterations_int): Same.
5268 (get_likely_max_loop_iterations): Same.
5269 * cfgloop.h (simple_loop_desc): Same.
5273 (loop_iterator::next): Same.
5274 (loop_outermost): Same.
5275 * cfgloopanal.c (mark_irreducible_loops): Same.
5276 (num_loop_insns): Same.
5277 (average_num_loop_insns): Same.
5278 (expected_loop_iterations_unbounded): Same.
5279 (expected_loop_iterations): Same.
5280 (mark_loop_exit_edges): Same.
5281 (single_likely_exit): Same.
5282 * cfgloopmanip.c (fix_bb_placement): Same.
5283 (fix_bb_placements): Same.
5284 (remove_path): Same.
5285 (place_new_loop): Same.
5287 (scale_loop_frequencies): Same.
5288 (scale_loop_profile): Same.
5289 (create_empty_if_region_on_edge): Same.
5290 (create_empty_loop_on_edge): Same.
5293 (fix_loop_placements): Same.
5294 (copy_loop_info): Same.
5295 (duplicate_loop): Same.
5296 (duplicate_subloops): Same.
5297 (loop_redirect_edge): Same.
5298 (can_duplicate_loop_p): Same.
5299 (duplicate_loop_to_header_edge): Same.
5300 (mfb_keep_just): Same.
5301 (has_preds_from_loop): Same.
5302 (create_preheader): Same.
5303 (create_preheaders): Same.
5304 (lv_adjust_loop_entry_edge): Same.
5305 (loop_version): Same.
5306 * cfgloopmanip.h: Same.
5308 * cgraphbuild.c: Same.
5309 * combine.c (make_extraction): Same.
5310 * config/i386/i386-features.c: Same.
5311 * config/i386/i386-features.h: Same.
5312 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
5313 (ix86_emit_outlined_ms2sysv_restore): Same.
5314 (ix86_noce_conversion_profitable_p): Same.
5315 (ix86_init_cost): Same.
5316 (ix86_simd_clone_usable): Same.
5317 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
5319 * coretypes.h: Same.
5320 * data-streamer-in.c (string_for_index): Change class-key of PODs
5321 to struct and others to class.
5322 (streamer_read_indexed_string): Same.
5323 (streamer_read_string): Same.
5324 (bp_unpack_indexed_string): Same.
5325 (bp_unpack_string): Same.
5326 (streamer_read_uhwi): Same.
5327 (streamer_read_hwi): Same.
5328 (streamer_read_gcov_count): Same.
5329 (streamer_read_wide_int): Same.
5330 * data-streamer.h (streamer_write_bitpack): Same.
5331 (bp_unpack_value): Same.
5332 (streamer_write_char_stream): Same.
5333 (streamer_write_hwi_in_range): Same.
5334 (streamer_write_record_start): Same.
5335 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
5336 (add_cross_iteration_register_deps): Same.
5337 (build_intra_loop_deps): Same.
5338 * df-core.c (df_analyze): Same.
5339 (loop_post_order_compute): Same.
5340 (loop_inverted_post_order_compute): Same.
5341 * df-problems.c (df_rd_alloc): Same.
5342 (df_rd_simulate_one_insn): Same.
5343 (df_rd_local_compute): Same.
5344 (df_rd_init_solution): Same.
5345 (df_rd_confluence_n): Same.
5346 (df_rd_transfer_function): Same.
5348 (df_rd_dump_defs_set): Same.
5349 (df_rd_top_dump): Same.
5350 (df_lr_alloc): Same.
5351 (df_lr_reset): Same.
5352 (df_lr_local_compute): Same.
5354 (df_lr_confluence_n): Same.
5356 (df_lr_top_dump): Same.
5357 (df_lr_verify_transfer_functions): Same.
5358 (df_live_alloc): Same.
5359 (df_live_reset): Same.
5360 (df_live_init): Same.
5361 (df_live_confluence_n): Same.
5362 (df_live_finalize): Same.
5363 (df_live_free): Same.
5364 (df_live_top_dump): Same.
5365 (df_live_verify_transfer_functions): Same.
5366 (df_mir_alloc): Same.
5367 (df_mir_reset): Same.
5368 (df_mir_init): Same.
5369 (df_mir_confluence_n): Same.
5370 (df_mir_free): Same.
5371 (df_mir_top_dump): Same.
5372 (df_word_lr_alloc): Same.
5373 (df_word_lr_reset): Same.
5374 (df_word_lr_init): Same.
5375 (df_word_lr_confluence_n): Same.
5376 (df_word_lr_free): Same.
5377 (df_word_lr_top_dump): Same.
5378 (df_md_alloc): Same.
5379 (df_md_simulate_one_insn): Same.
5380 (df_md_reset): Same.
5383 (df_md_top_dump): Same.
5384 * df-scan.c (df_insn_delete): Same.
5385 (df_insn_rescan): Same.
5386 (df_notes_rescan): Same.
5387 (df_sort_and_compress_mws): Same.
5388 (df_install_mws): Same.
5389 (df_refs_add_to_chains): Same.
5390 (df_ref_create_structure): Same.
5391 (df_ref_record): Same.
5392 (df_def_record_1): Same.
5393 (df_find_hard_reg_defs): Same.
5394 (df_uses_record): Same.
5395 (df_get_conditional_uses): Same.
5396 (df_get_call_refs): Same.
5397 (df_recompute_luids): Same.
5398 (df_get_entry_block_def_set): Same.
5399 (df_entry_block_defs_collect): Same.
5400 (df_get_exit_block_use_set): Same.
5401 (df_exit_block_uses_collect): Same.
5402 (df_mws_verify): Same.
5403 (df_bb_verify): Same.
5404 * df.h (df_scan_get_bb_info): Same.
5405 * doc/tm.texi: Same.
5406 * dse.c (record_store): Same.
5408 * emit-rtl.c (const_fixed_hasher::equal): Same.
5409 (set_mem_attributes_minus_bitpos): Same.
5410 (change_address): Same.
5411 (adjust_address_1): Same.
5412 (offset_address): Same.
5414 * except.c (dw2_build_landing_pads): Same.
5415 (sjlj_emit_dispatch_table): Same.
5416 * explow.c (allocate_dynamic_stack_space): Same.
5417 (emit_stack_probe): Same.
5418 (probe_stack_range): Same.
5419 * expmed.c (store_bit_field_using_insv): Same.
5420 (store_bit_field_1): Same.
5421 (store_integral_bit_field): Same.
5422 (extract_bit_field_using_extv): Same.
5423 (extract_bit_field_1): Same.
5424 (emit_cstore): Same.
5425 * expr.c (emit_block_move_via_cpymem): Same.
5426 (expand_cmpstrn_or_cmpmem): Same.
5427 (set_storage_via_setmem): Same.
5428 (emit_single_push_insn_1): Same.
5429 (expand_assignment): Same.
5430 (store_constructor): Same.
5431 (expand_expr_real_2): Same.
5432 (expand_expr_real_1): Same.
5435 * function.c (try_fit_stack_local): Same.
5436 (assign_stack_local_1): Same.
5437 (assign_stack_local): Same.
5438 (cut_slot_from_list): Same.
5439 (insert_slot_to_list): Same.
5440 (max_slot_level): Same.
5441 (move_slot_to_level): Same.
5442 (temp_address_hasher::equal): Same.
5443 (remove_unused_temp_slot_addresses): Same.
5444 (assign_temp): Same.
5445 (combine_temp_slots): Same.
5446 (update_temp_slot_address): Same.
5447 (preserve_temp_slots): Same.
5450 * gcc-rich-location.h: Same.
5452 * genattrtab.c (check_attr_test): Same.
5453 (check_attr_value): Same.
5454 (convert_set_attr_alternative): Same.
5455 (convert_set_attr): Same.
5457 (copy_boolean): Same.
5458 (get_attr_value): Same.
5459 (expand_delays): Same.
5460 (make_length_attrs): Same.
5462 (make_alternative_compare): Same.
5463 (simplify_test_exp): Same.
5464 (tests_attr_p): Same.
5465 (get_attr_order): Same.
5466 (clear_struct_flag): Same.
5468 (compares_alternatives_p): Same.
5471 (find_attrs_to_cache): Same.
5472 (write_test_expr): Same.
5473 (walk_attr_value): Same.
5474 (write_attr_get): Same.
5475 (eliminate_known_true): Same.
5476 (write_insn_cases): Same.
5477 (write_attr_case): Same.
5478 (write_attr_valueq): Same.
5479 (write_attr_value): Same.
5480 (write_dummy_eligible_delay): Same.
5481 (next_comma_elt): Same.
5483 (make_internal_attr): Same.
5484 (copy_rtx_unchanging): Same.
5485 (gen_insn_reserv): Same.
5486 (check_tune_attr): Same.
5487 (make_automaton_attrs): Same.
5489 * genextract.c (gen_insn): Same.
5490 (VEC_char_to_string): Same.
5491 * genmatch.c (print_operand): Same.
5493 (parser::parse_operation): Same.
5494 (parser::parse_capture): Same.
5495 (parser::parse_c_expr): Same.
5496 (parser::parse_simplify): Same.
5498 * genoutput.c (output_operand_data): Same.
5499 (output_get_insn_name): Same.
5500 (compare_operands): Same.
5501 (place_operands): Same.
5502 (process_template): Same.
5503 (validate_insn_alternatives): Same.
5504 (validate_insn_operands): Same.
5506 (note_constraint): Same.
5507 * genpreds.c (write_one_predicate_function): Same.
5508 (add_constraint): Same.
5509 (process_define_register_constraint): Same.
5510 (write_lookup_constraint_1): Same.
5511 (write_lookup_constraint_array): Same.
5512 (write_insn_constraint_len): Same.
5513 (write_reg_class_for_constraint_1): Same.
5514 (write_constraint_satisfied_p_array): Same.
5515 * genrecog.c (optimize_subroutine_group): Same.
5516 * gensupport.c (process_define_predicate): Same.
5517 (queue_pattern): Same.
5518 (remove_from_queue): Same.
5519 (process_rtx): Same.
5520 (is_predicable): Same.
5521 (change_subst_attribute): Same.
5522 (subst_pattern_match): Same.
5523 (alter_constraints): Same.
5524 (alter_attrs_for_insn): Same.
5525 (shift_output_template): Same.
5526 (alter_output_for_subst_insn): Same.
5527 (process_one_cond_exec): Same.
5529 (process_define_cond_exec): Same.
5530 (mnemonic_htab_callback): Same.
5531 (gen_mnemonic_attr): Same.
5532 (read_md_rtx): Same.
5534 * gimple-loop-interchange.cc (dump_reduction): Same.
5535 (dump_induction): Same.
5536 (loop_cand::~loop_cand): Same.
5537 (free_data_refs_with_aux): Same.
5538 (tree_loop_interchange::interchange_loops): Same.
5539 (tree_loop_interchange::map_inductions_to_loop): Same.
5540 (tree_loop_interchange::move_code_to_inner_loop): Same.
5541 (compute_access_stride): Same.
5542 (compute_access_strides): Same.
5543 (proper_loop_form_for_interchange): Same.
5544 (tree_loop_interchange_compute_ddrs): Same.
5545 (prune_datarefs_not_in_loop): Same.
5546 (prepare_data_references): Same.
5547 (pass_linterchange::execute): Same.
5548 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5549 (unroll_jam_possible_p): Same.
5551 (adjust_unroll_factor): Same.
5552 (tree_loop_unroll_and_jam): Same.
5553 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5554 (loop_versioning::expensive_stmt_p): Same.
5555 (loop_versioning::version_for_unity): Same.
5556 (loop_versioning::dump_inner_likelihood): Same.
5557 (loop_versioning::find_per_loop_multiplication): Same.
5558 (loop_versioning::analyze_term_using_scevs): Same.
5559 (loop_versioning::record_address_fragment): Same.
5560 (loop_versioning::analyze_expr): Same.
5561 (loop_versioning::analyze_blocks): Same.
5562 (loop_versioning::prune_conditions): Same.
5563 (loop_versioning::merge_loop_info): Same.
5564 (loop_versioning::add_loop_to_queue): Same.
5565 (loop_versioning::decide_whether_loop_is_versionable): Same.
5566 (loop_versioning::make_versioning_decisions): Same.
5567 (loop_versioning::implement_versioning_decisions): Same.
5568 * gimple-ssa-evrp-analyze.c
5569 (evrp_range_analyzer::record_ranges_from_phis): Same.
5570 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5571 (count_multiple_uses): Same.
5572 (split_group): Same.
5573 (imm_store_chain_info::output_merged_store): Same.
5574 (pass_store_merging::process_store): Same.
5575 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5576 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5578 (alloca_call_type): Same.
5579 (pass_walloca::execute): Same.
5580 * gimple-streamer-in.c (input_phi): Same.
5581 (input_gimple_stmt): Same.
5582 * gimple-streamer.h: Same.
5583 * godump.c (go_force_record_alignment): Same.
5584 (go_format_type): Same.
5585 (go_output_type): Same.
5586 (go_output_fndecl): Same.
5587 (go_output_typedef): Same.
5588 (keyword_hash_init): Same.
5589 (find_dummy_types): Same.
5590 * graph.c (draw_cfg_nodes_no_loops): Same.
5591 (draw_cfg_nodes_for_loop): Same.
5592 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5594 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5595 * hsa-dump.c (dump_hsa_cfun): Same.
5596 * hsa-gen.c (gen_function_def_parameters): Same.
5597 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5598 * input.c (dump_line_table_statistics): Same.
5601 * internal-fn.c (get_multi_vector_move): Same.
5602 (expand_load_lanes_optab_fn): Same.
5603 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5604 (expand_GOMP_SIMT_EXIT): Same.
5605 (expand_GOMP_SIMT_LAST_LANE): Same.
5606 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5607 (expand_GOMP_SIMT_VOTE_ANY): Same.
5608 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5609 (expand_GOMP_SIMT_XCHG_IDX): Same.
5610 (expand_addsub_overflow): Same.
5611 (expand_neg_overflow): Same.
5612 (expand_mul_overflow): Same.
5613 (expand_call_mem_ref): Same.
5614 (expand_mask_load_optab_fn): Same.
5615 (expand_scatter_store_optab_fn): Same.
5616 (expand_gather_load_optab_fn): Same.
5617 * ipa-cp.c (ipa_get_parm_lattices): Same.
5618 (print_all_lattices): Same.
5619 (ignore_edge_p): Same.
5620 (build_toporder_info): Same.
5621 (free_toporder_info): Same.
5622 (push_node_to_stack): Same.
5623 (ipcp_lattice<valtype>::set_contains_variable): Same.
5624 (set_agg_lats_to_bottom): Same.
5625 (ipcp_bits_lattice::meet_with): Same.
5626 (set_single_call_flag): Same.
5627 (initialize_node_lattices): Same.
5628 (ipa_get_jf_ancestor_result): Same.
5629 (ipcp_verify_propagated_values): Same.
5630 (propagate_scalar_across_jump_function): Same.
5631 (propagate_context_across_jump_function): Same.
5632 (propagate_bits_across_jump_function): Same.
5633 (ipa_vr_operation_and_type_effects): Same.
5634 (propagate_vr_across_jump_function): Same.
5635 (set_check_aggs_by_ref): Same.
5636 (set_chain_of_aglats_contains_variable): Same.
5637 (merge_aggregate_lattices): Same.
5638 (agg_pass_through_permissible_p): Same.
5639 (propagate_aggs_across_jump_function): Same.
5640 (call_passes_through_thunk_p): Same.
5641 (propagate_constants_across_call): Same.
5642 (devirtualization_time_bonus): Same.
5643 (good_cloning_opportunity_p): Same.
5644 (context_independent_aggregate_values): Same.
5645 (gather_context_independent_values): Same.
5646 (perform_estimation_of_a_value): Same.
5647 (estimate_local_effects): Same.
5648 (value_topo_info<valtype>::add_val): Same.
5649 (add_all_node_vals_to_toposort): Same.
5650 (value_topo_info<valtype>::propagate_effects): Same.
5651 (ipcp_propagate_stage): Same.
5652 (ipcp_discover_new_direct_edges): Same.
5653 (same_node_or_its_all_contexts_clone_p): Same.
5654 (cgraph_edge_brings_value_p): Same.
5655 (gather_edges_for_value): Same.
5656 (create_specialized_node): Same.
5657 (find_more_scalar_values_for_callers_subset): Same.
5658 (find_more_contexts_for_caller_subset): Same.
5659 (copy_plats_to_inter): Same.
5660 (intersect_aggregates_with_edge): Same.
5661 (find_aggregate_values_for_callers_subset): Same.
5662 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5663 (decide_about_value): Same.
5664 (decide_whether_version_node): Same.
5665 (spread_undeadness): Same.
5666 (identify_dead_nodes): Same.
5667 (ipcp_store_vr_results): Same.
5668 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5669 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5670 (redirect_to_unreachable): Same.
5671 (edge_set_predicate): Same.
5672 (evaluate_conditions_for_known_args): Same.
5673 (evaluate_properties_for_edge): Same.
5674 (ipa_fn_summary_t::duplicate): Same.
5675 (ipa_call_summary_t::duplicate): Same.
5676 (dump_ipa_call_summary): Same.
5677 (ipa_dump_fn_summary): Same.
5678 (eliminated_by_inlining_prob): Same.
5679 (set_cond_stmt_execution_predicate): Same.
5680 (set_switch_stmt_execution_predicate): Same.
5681 (compute_bb_predicates): Same.
5682 (will_be_nonconstant_expr_predicate): Same.
5683 (phi_result_unknown_predicate): Same.
5684 (analyze_function_body): Same.
5685 (compute_fn_summary): Same.
5686 (estimate_edge_devirt_benefit): Same.
5687 (estimate_edge_size_and_time): Same.
5688 (estimate_calls_size_and_time): Same.
5689 (estimate_node_size_and_time): Same.
5690 (remap_edge_change_prob): Same.
5691 (remap_edge_summaries): Same.
5692 (ipa_merge_fn_summary_after_inlining): Same.
5693 (ipa_fn_summary_generate): Same.
5694 (inline_read_section): Same.
5695 (ipa_fn_summary_read): Same.
5696 (ipa_fn_summary_write): Same.
5697 * ipa-fnsummary.h: Same.
5698 * ipa-hsa.c (ipa_hsa_read_section): Same.
5699 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
5700 * ipa-icf.c (sem_function::param_used_p): Same.
5701 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
5702 * ipa-inline.c (edge_badness): Same.
5703 (inline_small_functions): Same.
5704 * ipa-polymorphic-call.c
5705 (ipa_polymorphic_call_context::stream_out): Same.
5706 * ipa-predicate.c (predicate::remap_after_duplication): Same.
5707 (predicate::remap_after_inlining): Same.
5708 (predicate::stream_out): Same.
5709 * ipa-predicate.h: Same.
5710 * ipa-profile.c (ipa_profile_read_summary): Same.
5711 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
5712 (count_formal_params): Same.
5713 (ipa_dump_param): Same.
5714 (ipa_alloc_node_params): Same.
5715 (ipa_print_node_jump_functions_for_edge): Same.
5716 (ipa_print_node_jump_functions): Same.
5717 (ipa_load_from_parm_agg): Same.
5718 (get_ancestor_addr_info): Same.
5719 (ipa_compute_jump_functions_for_edge): Same.
5720 (ipa_analyze_virtual_call_uses): Same.
5721 (ipa_analyze_stmt_uses): Same.
5722 (ipa_analyze_params_uses_in_bb): Same.
5723 (update_jump_functions_after_inlining): Same.
5724 (try_decrement_rdesc_refcount): Same.
5725 (ipa_impossible_devirt_target): Same.
5726 (update_indirect_edges_after_inlining): Same.
5727 (combine_controlled_uses_counters): Same.
5728 (ipa_edge_args_sum_t::duplicate): Same.
5729 (ipa_write_jump_function): Same.
5730 (ipa_write_indirect_edge_info): Same.
5731 (ipa_write_node_info): Same.
5732 (ipa_read_edge_info): Same.
5733 (ipa_prop_read_section): Same.
5734 (read_replacements_section): Same.
5735 * ipa-prop.h (ipa_get_param_count): Same.
5736 (ipa_get_param): Same.
5737 (ipa_get_type): Same.
5738 (ipa_get_param_move_cost): Same.
5739 (ipa_set_param_used): Same.
5740 (ipa_get_controlled_uses): Same.
5741 (ipa_set_controlled_uses): Same.
5742 (ipa_get_cs_argument_count): Same.
5743 * ipa-pure-const.c (analyze_function): Same.
5744 (pure_const_read_summary): Same.
5746 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
5747 * ipa-split.c (test_nonssa_use): Same.
5748 (dump_split_point): Same.
5749 (dominated_by_forbidden): Same.
5750 (split_part_set_ssa_name_p): Same.
5751 (find_split_points): Same.
5752 * ira-build.c (finish_loop_tree_nodes): Same.
5753 (low_pressure_loop_node_p): Same.
5754 * ira-color.c (ira_reuse_stack_slot): Same.
5756 * ira.c (setup_reg_equiv): Same.
5757 (print_insn_chain): Same.
5759 * loop-doloop.c (doloop_condition_get): Same.
5761 (record_reg_sets): Same.
5762 (doloop_optimize): Same.
5763 * loop-init.c (loop_optimizer_init): Same.
5764 (fix_loop_structure): Same.
5765 * loop-invariant.c (merge_identical_invariants): Same.
5766 (compute_always_reached): Same.
5768 (may_assign_reg_p): Same.
5769 (find_invariants_bb): Same.
5770 (find_invariants_body): Same.
5771 (replace_uses): Same.
5772 (can_move_invariant_reg): Same.
5773 (free_inv_motion_data): Same.
5774 (move_single_loop_invariants): Same.
5775 (change_pressure): Same.
5776 (mark_ref_regs): Same.
5777 (calculate_loop_reg_pressure): Same.
5778 * loop-iv.c (biv_entry_hasher::equal): Same.
5779 (iv_extend_to_rtx_code): Same.
5780 (check_iv_ref_table_size): Same.
5781 (clear_iv_info): Same.
5782 (latch_dominating_def): Same.
5783 (iv_get_reaching_def): Same.
5784 (iv_constant): Same.
5790 (get_biv_step): Same.
5792 (analyzed_for_bivness_p): Same.
5794 (iv_analyze_biv): Same.
5795 (iv_analyze_expr): Same.
5796 (iv_analyze_def): Same.
5797 (iv_analyze_op): Same.
5799 (iv_analyze_result): Same.
5801 (eliminate_implied_conditions): Same.
5802 (simplify_using_initial_values): Same.
5803 (shorten_into_mode): Same.
5804 (canonicalize_iv_subregs): Same.
5805 (determine_max_iter): Same.
5806 (check_simple_exit): Same.
5807 (find_simple_exit): Same.
5808 (get_simple_loop_desc): Same.
5809 * loop-unroll.c (report_unroll): Same.
5810 (decide_unrolling): Same.
5811 (unroll_loops): Same.
5812 (loop_exit_at_end_p): Same.
5813 (decide_unroll_constant_iterations): Same.
5814 (unroll_loop_constant_iterations): Same.
5815 (compare_and_jump_seq): Same.
5816 (unroll_loop_runtime_iterations): Same.
5817 (decide_unroll_stupid): Same.
5818 (unroll_loop_stupid): Same.
5819 (referenced_in_one_insn_in_loop_p): Same.
5820 (reset_debug_uses_in_loop): Same.
5821 (analyze_iv_to_split_insn): Same.
5822 * lra-eliminations.c (lra_debug_elim_table): Same.
5823 (setup_can_eliminate): Same.
5825 (lra_get_elimination_hard_regno): Same.
5826 (lra_eliminate_regs_1): Same.
5827 (eliminate_regs_in_insn): Same.
5828 (update_reg_eliminate): Same.
5829 (init_elimination): Same.
5830 (lra_eliminate): Same.
5832 * lra-lives.c (initiate_live_solver): Same.
5833 * lra-remat.c (create_remat_bb_data): Same.
5834 * lra-spills.c (lra_spill): Same.
5835 * lra.c (lra_set_insn_recog_data): Same.
5836 (lra_set_used_insn_alternative_by_uid): Same.
5837 (init_reg_info): Same.
5838 (expand_reg_info): Same.
5839 * lto-cgraph.c (output_symtab): Same.
5840 (read_identifier): Same.
5841 (get_alias_symbol): Same.
5843 (input_varpool_node): Same.
5846 (input_cgraph_1): Same.
5848 (input_symtab): Same.
5849 (input_offload_tables): Same.
5850 (output_cgraph_opt_summary): Same.
5851 (input_edge_opt_summary): Same.
5852 (input_cgraph_opt_section): Same.
5853 * lto-section-in.c (lto_free_raw_section_data): Same.
5854 (lto_create_simple_input_block): Same.
5855 (lto_free_function_in_decl_state_for_node): Same.
5856 * lto-streamer-in.c (lto_tag_check_set): Same.
5857 (lto_location_cache::revert_location_cache): Same.
5858 (lto_location_cache::input_location): Same.
5859 (lto_input_location): Same.
5860 (stream_input_location_now): Same.
5861 (lto_input_tree_ref): Same.
5862 (lto_input_eh_catch_list): Same.
5863 (input_eh_region): Same.
5864 (lto_init_eh): Same.
5865 (make_new_block): Same.
5867 (fixup_call_stmt_edges): Same.
5868 (input_struct_function_base): Same.
5869 (input_function): Same.
5870 (lto_read_body_or_constructor): Same.
5871 (lto_read_tree_1): Same.
5872 (lto_read_tree): Same.
5873 (lto_input_scc): Same.
5874 (lto_input_tree_1): Same.
5875 (lto_input_toplevel_asms): Same.
5876 (lto_input_mode_table): Same.
5877 (lto_reader_init): Same.
5878 (lto_data_in_create): Same.
5879 * lto-streamer-out.c (output_cfg): Same.
5880 * lto-streamer.h: Same.
5881 * modulo-sched.c (duplicate_insns_of_cycles): Same.
5882 (generate_prolog_epilog): Same.
5883 (mark_loop_unsched): Same.
5884 (dump_insn_location): Same.
5885 (loop_canon_p): Same.
5886 (sms_schedule): Same.
5887 * omp-expand.c (expand_omp_for_ordered_loops): Same.
5888 (expand_omp_for_generic): Same.
5889 (expand_omp_for_static_nochunk): Same.
5890 (expand_omp_for_static_chunk): Same.
5891 (expand_omp_simd): Same.
5892 (expand_omp_taskloop_for_inner): Same.
5893 (expand_oacc_for): Same.
5894 (expand_omp_atomic_pipeline): Same.
5895 (mark_loops_in_oacc_kernels_region): Same.
5896 * omp-offload.c (oacc_xform_loop): Same.
5897 * omp-simd-clone.c (simd_clone_adjust): Same.
5898 * optabs-query.c (get_traditional_extraction_insn): Same.
5899 * optabs.c (expand_vector_broadcast): Same.
5900 (expand_binop_directly): Same.
5901 (expand_twoval_unop): Same.
5902 (expand_twoval_binop): Same.
5903 (expand_unop_direct): Same.
5904 (emit_indirect_jump): Same.
5905 (emit_conditional_move): Same.
5906 (emit_conditional_neg_or_complement): Same.
5907 (emit_conditional_add): Same.
5908 (vector_compare_rtx): Same.
5909 (expand_vec_perm_1): Same.
5910 (expand_vec_perm_const): Same.
5911 (expand_vec_cond_expr): Same.
5912 (expand_vec_series_expr): Same.
5913 (maybe_emit_atomic_exchange): Same.
5914 (maybe_emit_sync_lock_test_and_set): Same.
5915 (expand_atomic_compare_and_swap): Same.
5916 (expand_atomic_load): Same.
5917 (expand_atomic_store): Same.
5918 (maybe_emit_op): Same.
5919 (valid_multiword_target_p): Same.
5920 (create_integer_operand): Same.
5921 (maybe_legitimize_operand_same_code): Same.
5922 (maybe_legitimize_operand): Same.
5923 (create_convert_operand_from_type): Same.
5924 (can_reuse_operands_p): Same.
5925 (maybe_legitimize_operands): Same.
5926 (maybe_gen_insn): Same.
5927 (maybe_expand_insn): Same.
5928 (maybe_expand_jump_insn): Same.
5929 (expand_insn): Same.
5930 * optabs.h (create_expand_operand): Same.
5931 (create_fixed_operand): Same.
5932 (create_output_operand): Same.
5933 (create_input_operand): Same.
5934 (create_convert_operand_to): Same.
5935 (create_convert_operand_from): Same.
5938 * predict.c (optimize_insn_for_speed_p): Same.
5939 (optimize_loop_for_size_p): Same.
5940 (optimize_loop_for_speed_p): Same.
5941 (optimize_loop_nest_for_speed_p): Same.
5942 (get_base_value): Same.
5943 (predicted_by_loop_heuristics_p): Same.
5944 (predict_extra_loop_exits): Same.
5945 (predict_loops): Same.
5946 (predict_paths_for_bb): Same.
5947 (predict_paths_leading_to): Same.
5948 (propagate_freq): Same.
5949 (pass_profile::execute): Same.
5951 * profile-count.c (profile_count::differs_from_p): Same.
5952 (profile_probability::differs_lot_from_p): Same.
5953 * profile-count.h: Same.
5954 * profile.c (branch_prob): Same.
5955 * regrename.c (free_chain_data): Same.
5956 (mark_conflict): Same.
5957 (create_new_chain): Same.
5958 (merge_overlapping_regs): Same.
5959 (init_rename_info): Same.
5960 (merge_chains): Same.
5961 (regrename_analyze): Same.
5962 (regrename_do_replace): Same.
5963 (scan_rtx_reg): Same.
5964 (record_out_operands): Same.
5965 (build_def_use): Same.
5966 * regrename.h: Same.
5968 * reload1.c (init_reload): Same.
5969 (maybe_fix_stack_asms): Same.
5970 (copy_reloads): Same.
5971 (count_pseudo): Same.
5972 (count_spilled_pseudo): Same.
5974 (find_reload_regs): Same.
5975 (select_reload_regs): Same.
5976 (spill_hard_reg): Same.
5977 (fixup_eh_region_note): Same.
5978 (set_reload_reg): Same.
5979 (allocate_reload_reg): Same.
5980 (compute_reload_subreg_offset): Same.
5981 (reload_adjust_reg_for_icode): Same.
5982 (emit_input_reload_insns): Same.
5983 (emit_output_reload_insns): Same.
5984 (do_input_reload): Same.
5985 (inherit_piecemeal_p): Same.
5987 * sanopt.c (maybe_get_dominating_check): Same.
5988 (maybe_optimize_ubsan_ptr_ifn): Same.
5989 (can_remove_asan_check): Same.
5990 (maybe_optimize_asan_check_ifn): Same.
5991 (sanopt_optimize_walker): Same.
5992 * sched-deps.c (add_dependence_list): Same.
5993 (chain_to_prev_insn): Same.
5994 (add_insn_mem_dependence): Same.
5995 (create_insn_reg_set): Same.
5996 (maybe_extend_reg_info_p): Same.
5997 (sched_analyze_reg): Same.
5998 (sched_analyze_1): Same.
5999 (get_implicit_reg_pending_clobbers): Same.
6000 (chain_to_prev_insn_p): Same.
6001 (deps_analyze_insn): Same.
6002 (deps_start_bb): Same.
6003 (sched_free_deps): Same.
6005 (init_deps_reg_last): Same.
6007 * sched-ebb.c: Same.
6008 * sched-int.h: Same.
6009 * sched-rgn.c (add_branch_dependences): Same.
6010 (concat_insn_mem_list): Same.
6012 (sched_rgn_compute_dependencies): Same.
6013 * sel-sched-ir.c (reset_target_context): Same.
6014 (copy_deps_context): Same.
6015 (init_id_from_df): Same.
6016 (has_dependence_p): Same.
6017 (change_loops_latches): Same.
6018 (bb_top_order_comparator): Same.
6019 (make_region_from_loop_preheader): Same.
6020 (sel_init_pipelining): Same.
6021 (get_loop_nest_for_rgn): Same.
6022 (make_regions_from_the_rest): Same.
6023 (sel_is_loop_preheader_p): Same.
6024 * sel-sched-ir.h (inner_loop_header_p): Same.
6025 (get_all_loop_exits): Same.
6027 * sese.c (sese_build_liveouts): Same.
6028 (sese_insert_phis_for_liveouts): Same.
6029 * sese.h (defined_in_sese_p): Same.
6030 * sreal.c (sreal::stream_out): Same.
6032 * streamer-hooks.h: Same.
6033 * target-globals.c (save_target_globals): Same.
6034 * target-globals.h: Same.
6037 * targhooks.c (default_has_ifunc_p): Same.
6038 (default_empty_mask_is_expensive): Same.
6039 (default_init_cost): Same.
6040 * targhooks.h: Same.
6042 * tree-affine.c (aff_combination_mult): Same.
6043 (aff_combination_expand): Same.
6044 (aff_combination_constant_multiple_p): Same.
6045 * tree-affine.h: Same.
6046 * tree-cfg.c (build_gimple_cfg): Same.
6047 (replace_loop_annotate_in_block): Same.
6048 (replace_uses_by): Same.
6050 (dump_cfg_stats): Same.
6051 (gimple_duplicate_sese_region): Same.
6052 (gimple_duplicate_sese_tail): Same.
6053 (move_block_to_fn): Same.
6054 (replace_block_vars_by_duplicates): Same.
6055 (move_sese_region_to_fn): Same.
6056 (print_loops_bb): Same.
6058 (print_loops): Same.
6060 (debug_loops): Same.
6062 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
6063 (chrec_fold_multiply_poly_poly): Same.
6064 (chrec_evaluate): Same.
6065 (chrec_component_in_loop_num): Same.
6066 (reset_evolution_in_loop): Same.
6067 (is_multivariate_chrec): Same.
6068 (chrec_contains_symbols): Same.
6069 (nb_vars_in_chrec): Same.
6070 (chrec_convert_1): Same.
6071 (chrec_convert_aggressive): Same.
6072 * tree-chrec.h: Same.
6073 * tree-core.h: Same.
6074 * tree-data-ref.c (dump_data_dependence_relation): Same.
6075 (canonicalize_base_object_address): Same.
6076 (data_ref_compare_tree): Same.
6077 (prune_runtime_alias_test_list): Same.
6078 (get_segment_min_max): Same.
6079 (create_intersect_range_checks): Same.
6080 (conflict_fn_no_dependence): Same.
6081 (object_address_invariant_in_loop_p): Same.
6082 (analyze_ziv_subscript): Same.
6083 (analyze_siv_subscript_cst_affine): Same.
6084 (analyze_miv_subscript): Same.
6085 (analyze_overlapping_iterations): Same.
6086 (build_classic_dist_vector_1): Same.
6087 (add_other_self_distances): Same.
6088 (same_access_functions): Same.
6089 (build_classic_dir_vector): Same.
6090 (subscript_dependence_tester_1): Same.
6091 (subscript_dependence_tester): Same.
6092 (access_functions_are_affine_or_constant_p): Same.
6093 (get_references_in_stmt): Same.
6094 (loop_nest_has_data_refs): Same.
6095 (graphite_find_data_references_in_stmt): Same.
6096 (find_data_references_in_bb): Same.
6097 (get_base_for_alignment): Same.
6098 (find_loop_nest_1): Same.
6099 (find_loop_nest): Same.
6100 * tree-data-ref.h (dr_alignment): Same.
6101 (ddr_dependence_level): Same.
6102 * tree-if-conv.c (fold_build_cond_expr): Same.
6103 (add_to_predicate_list): Same.
6104 (add_to_dst_predicate_list): Same.
6105 (phi_convertible_by_degenerating_args): Same.
6106 (idx_within_array_bound): Same.
6107 (all_preds_critical_p): Same.
6108 (pred_blocks_visited_p): Same.
6109 (predicate_bbs): Same.
6110 (build_region): Same.
6111 (if_convertible_loop_p_1): Same.
6112 (is_cond_scalar_reduction): Same.
6113 (predicate_scalar_phi): Same.
6114 (remove_conditions_and_labels): Same.
6115 (combine_blocks): Same.
6116 (version_loop_for_if_conversion): Same.
6117 (versionable_outer_loop_p): Same.
6118 (ifcvt_local_dce): Same.
6119 (tree_if_conversion): Same.
6120 (pass_if_conversion::gate): Same.
6121 * tree-if-conv.h: Same.
6122 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
6123 * tree-loop-distribution.c (bb_top_order_cmp): Same.
6125 (stmt_has_scalar_dependences_outside_loop): Same.
6126 (copy_loop_before): Same.
6127 (create_bb_after_loop): Same.
6128 (const_with_all_bytes_same): Same.
6129 (generate_memset_builtin): Same.
6130 (generate_memcpy_builtin): Same.
6131 (destroy_loop): Same.
6132 (build_rdg_partition_for_vertex): Same.
6133 (compute_access_range): Same.
6134 (data_ref_segment_size): Same.
6135 (latch_dominated_by_data_ref): Same.
6136 (compute_alias_check_pairs): Same.
6137 (fuse_memset_builtins): Same.
6138 (finalize_partitions): Same.
6139 (find_seed_stmts_for_distribution): Same.
6140 (prepare_perfect_loop_nest): Same.
6141 * tree-parloops.c (lambda_transform_legal_p): Same.
6142 (loop_parallel_p): Same.
6143 (reduc_stmt_res): Same.
6144 (add_field_for_name): Same.
6145 (create_call_for_reduction_1): Same.
6146 (replace_uses_in_bb_by): Same.
6147 (transform_to_exit_first_loop_alt): Same.
6148 (try_transform_to_exit_first_loop_alt): Same.
6149 (transform_to_exit_first_loop): Same.
6151 (gen_parallel_loop): Same.
6152 (gather_scalar_reductions): Same.
6153 (get_omp_data_i_param): Same.
6154 (try_create_reduction_list): Same.
6155 (oacc_entry_exit_single_gang): Same.
6156 (parallelize_loops): Same.
6157 * tree-pass.h: Same.
6158 * tree-predcom.c (determine_offset): Same.
6159 (last_always_executed_block): Same.
6160 (split_data_refs_to_components): Same.
6161 (suitable_component_p): Same.
6162 (valid_initializer_p): Same.
6163 (find_looparound_phi): Same.
6164 (insert_looparound_copy): Same.
6165 (add_looparound_copies): Same.
6166 (determine_roots_comp): Same.
6167 (predcom_tmp_var): Same.
6168 (initialize_root_vars): Same.
6169 (initialize_root_vars_store_elim_1): Same.
6170 (initialize_root_vars_store_elim_2): Same.
6171 (finalize_eliminated_stores): Same.
6172 (initialize_root_vars_lm): Same.
6173 (remove_stmt): Same.
6174 (determine_unroll_factor): Same.
6175 (execute_pred_commoning_cbck): Same.
6176 (base_names_in_chain_on): Same.
6177 (combine_chains): Same.
6178 (pcom_stmt_dominates_stmt_p): Same.
6179 (try_combine_chains): Same.
6180 (prepare_initializers_chain_store_elim): Same.
6181 (prepare_initializers_chain): Same.
6182 (prepare_initializers): Same.
6183 (prepare_finalizers_chain): Same.
6184 (prepare_finalizers): Same.
6185 (insert_init_seqs): Same.
6186 * tree-scalar-evolution.c (loop_phi_node_p): Same.
6187 (compute_overall_effect_of_inner_loop): Same.
6188 (add_to_evolution_1): Same.
6189 (add_to_evolution): Same.
6190 (follow_ssa_edge_binary): Same.
6191 (follow_ssa_edge_expr): Same.
6192 (backedge_phi_arg_p): Same.
6193 (follow_ssa_edge_in_condition_phi_branch): Same.
6194 (follow_ssa_edge_in_condition_phi): Same.
6195 (follow_ssa_edge_inner_loop_phi): Same.
6196 (follow_ssa_edge): Same.
6197 (analyze_evolution_in_loop): Same.
6198 (analyze_initial_condition): Same.
6199 (interpret_loop_phi): Same.
6200 (interpret_condition_phi): Same.
6201 (interpret_rhs_expr): Same.
6202 (interpret_expr): Same.
6203 (interpret_gimple_assign): Same.
6204 (analyze_scalar_evolution_1): Same.
6205 (analyze_scalar_evolution): Same.
6206 (analyze_scalar_evolution_for_address_of): Same.
6207 (get_instantiated_value_entry): Same.
6208 (loop_closed_phi_def): Same.
6209 (instantiate_scev_name): Same.
6210 (instantiate_scev_poly): Same.
6211 (instantiate_scev_binary): Same.
6212 (instantiate_scev_convert): Same.
6213 (instantiate_scev_not): Same.
6214 (instantiate_scev_r): Same.
6215 (instantiate_scev): Same.
6216 (resolve_mixers): Same.
6217 (initialize_scalar_evolutions_analyzer): Same.
6218 (scev_reset_htab): Same.
6220 (derive_simple_iv_with_niters): Same.
6221 (simple_iv_with_niters): Same.
6222 (expression_expensive_p): Same.
6223 (final_value_replacement_loop): Same.
6224 * tree-scalar-evolution.h (block_before_loop): Same.
6225 * tree-ssa-address.h: Same.
6226 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
6227 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
6228 (record_edge_info): Same.
6229 * tree-ssa-live.c (var_map_base_fini): Same.
6230 (remove_unused_locals): Same.
6231 * tree-ssa-live.h: Same.
6232 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
6233 (pass_ch_vect::execute): Same.
6234 (pass_ch::process_loop_p): Same.
6235 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
6236 (movement_possibility): Same.
6237 (outermost_invariant_loop): Same.
6239 (determine_max_movement): Same.
6240 (invariantness_dom_walker::before_dom_children): Same.
6241 (move_computations): Same.
6242 (may_move_till): Same.
6243 (force_move_till_op): Same.
6244 (force_move_till): Same.
6245 (memref_free): Same.
6246 (record_mem_ref_loc): Same.
6247 (set_ref_stored_in_loop): Same.
6248 (mark_ref_stored): Same.
6249 (sort_bbs_in_loop_postorder_cmp): Same.
6250 (sort_locs_in_loop_postorder_cmp): Same.
6251 (analyze_memory_references): Same.
6252 (mem_refs_may_alias_p): Same.
6253 (find_ref_loc_in_loop_cmp): Same.
6254 (rewrite_mem_ref_loc::operator): Same.
6255 (first_mem_ref_loc_1::operator): Same.
6256 (sm_set_flag_if_changed::operator): Same.
6257 (execute_sm_if_changed_flag_set): Same.
6259 (hoist_memory_references): Same.
6260 (ref_always_accessed::operator): Same.
6261 (refs_independent_p): Same.
6262 (record_dep_loop): Same.
6263 (ref_indep_loop_p_1): Same.
6264 (ref_indep_loop_p): Same.
6265 (can_sm_ref_p): Same.
6266 (find_refs_for_sm): Same.
6267 (loop_suitable_for_sm): Same.
6268 (store_motion_loop): Same.
6269 (store_motion): Same.
6270 (fill_always_executed_in): Same.
6271 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
6272 (estimated_unrolled_size): Same.
6273 (loop_edge_to_cancel): Same.
6274 (remove_exits_and_undefined_stmts): Same.
6275 (remove_redundant_iv_tests): Same.
6276 (unloop_loops): Same.
6277 (estimated_peeled_sequence_size): Same.
6278 (try_peel_loop): Same.
6279 (canonicalize_loop_induction_variables): Same.
6280 (canonicalize_induction_variables): Same.
6281 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
6283 (stmt_after_inc_pos): Same.
6284 (contains_abnormal_ssa_name_p): Same.
6285 (niter_for_exit): Same.
6288 (find_givs_in_bb): Same.
6289 (find_induction_variables): Same.
6290 (find_interesting_uses_cond): Same.
6291 (outermost_invariant_loop_for_expr): Same.
6292 (idx_find_step): Same.
6293 (add_candidate_1): Same.
6294 (add_iv_candidate_derived_from_uses): Same.
6295 (alloc_use_cost_map): Same.
6296 (prepare_decl_rtl): Same.
6297 (generic_predict_doloop_p): Same.
6298 (computation_cost): Same.
6299 (determine_common_wider_type): Same.
6300 (get_computation_aff_1): Same.
6301 (get_use_type): Same.
6302 (determine_group_iv_cost_address): Same.
6304 (difference_cannot_overflow_p): Same.
6305 (may_eliminate_iv): Same.
6306 (determine_set_costs): Same.
6307 (cheaper_cost_pair): Same.
6308 (compare_cost_pair): Same.
6309 (iv_ca_cand_for_group): Same.
6310 (iv_ca_recount_cost): Same.
6311 (iv_ca_set_remove_invs): Same.
6312 (iv_ca_set_no_cp): Same.
6313 (iv_ca_set_add_invs): Same.
6314 (iv_ca_set_cp): Same.
6315 (iv_ca_add_group): Same.
6317 (iv_ca_compare_deps): Same.
6318 (iv_ca_delta_reverse): Same.
6319 (iv_ca_delta_commit): Same.
6320 (iv_ca_cand_used_p): Same.
6321 (iv_ca_delta_free): Same.
6325 (iv_ca_extend): Same.
6326 (iv_ca_narrow): Same.
6327 (iv_ca_prune): Same.
6328 (cheaper_cost_with_cand): Same.
6329 (iv_ca_replace): Same.
6330 (try_add_cand_for): Same.
6331 (get_initial_solution): Same.
6332 (try_improve_iv_set): Same.
6333 (find_optimal_iv_set_1): Same.
6334 (create_new_iv): Same.
6335 (rewrite_use_compare): Same.
6336 (remove_unused_ivs): Same.
6337 (determine_scaling_factor): Same.
6338 * tree-ssa-loop-ivopts.h: Same.
6339 * tree-ssa-loop-manip.c (create_iv): Same.
6340 (compute_live_loop_exits): Same.
6341 (add_exit_phi): Same.
6342 (add_exit_phis): Same.
6343 (find_uses_to_rename_use): Same.
6344 (find_uses_to_rename_def): Same.
6345 (find_uses_to_rename_in_loop): Same.
6346 (rewrite_into_loop_closed_ssa): Same.
6347 (check_loop_closed_ssa_bb): Same.
6348 (split_loop_exit_edge): Same.
6350 (ip_normal_pos): Same.
6351 (copy_phi_node_args): Same.
6352 (gimple_duplicate_loop_to_header_edge): Same.
6353 (can_unroll_loop_p): Same.
6354 (determine_exit_conditions): Same.
6355 (scale_dominated_blocks_in_loop): Same.
6356 (niter_for_unrolled_loop): Same.
6357 (tree_transform_and_unroll_loop): Same.
6358 (rewrite_all_phi_nodes_with_iv): Same.
6359 * tree-ssa-loop-manip.h: Same.
6360 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6361 (number_of_iterations_ne): Same.
6362 (assert_no_overflow_lt): Same.
6363 (assert_loop_rolls_lt): Same.
6364 (number_of_iterations_lt): Same.
6365 (adjust_cond_for_loop_until_wrap): Same.
6366 (tree_simplify_using_condition): Same.
6367 (simplify_using_initial_conditions): Same.
6368 (simplify_using_outer_evolutions): Same.
6369 (loop_only_exit_p): Same.
6370 (ssa_defined_by_minus_one_stmt_p): Same.
6371 (number_of_iterations_popcount): Same.
6372 (number_of_iterations_exit): Same.
6373 (find_loop_niter): Same.
6374 (finite_loop_p): Same.
6375 (chain_of_csts_start): Same.
6376 (get_val_for): Same.
6377 (loop_niter_by_eval): Same.
6378 (derive_constant_upper_bound_ops): Same.
6379 (do_warn_aggressive_loop_optimizations): Same.
6380 (record_estimate): Same.
6381 (get_cst_init_from_scev): Same.
6382 (record_nonwrapping_iv): Same.
6383 (idx_infer_loop_bounds): Same.
6384 (infer_loop_bounds_from_ref): Same.
6385 (infer_loop_bounds_from_array): Same.
6386 (infer_loop_bounds_from_pointer_arith): Same.
6387 (infer_loop_bounds_from_signedness): Same.
6388 (bound_index): Same.
6389 (discover_iteration_bound_by_body_walk): Same.
6390 (maybe_lower_iteration_bound): Same.
6391 (estimate_numbers_of_iterations): Same.
6392 (estimated_loop_iterations): Same.
6393 (estimated_loop_iterations_int): Same.
6394 (max_loop_iterations): Same.
6395 (max_loop_iterations_int): Same.
6396 (likely_max_loop_iterations): Same.
6397 (likely_max_loop_iterations_int): Same.
6398 (estimated_stmt_executions_int): Same.
6399 (max_stmt_executions): Same.
6400 (likely_max_stmt_executions): Same.
6401 (estimated_stmt_executions): Same.
6402 (stmt_dominates_stmt_p): Same.
6403 (nowrap_type_p): Same.
6404 (loop_exits_before_overflow): Same.
6405 (scev_var_range_cant_overflow): Same.
6406 (scev_probably_wraps_p): Same.
6407 (free_numbers_of_iterations_estimates): Same.
6408 * tree-ssa-loop-niter.h: Same.
6409 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6410 (idx_analyze_ref): Same.
6411 (analyze_ref): Same.
6412 (gather_memory_references_ref): Same.
6413 (mark_nontemporal_store): Same.
6414 (emit_mfence_after_loop): Same.
6415 (may_use_storent_in_loop_p): Same.
6416 (mark_nontemporal_stores): Same.
6417 (should_unroll_loop_p): Same.
6418 (volume_of_dist_vector): Same.
6419 (add_subscript_strides): Same.
6420 (self_reuse_distance): Same.
6421 (insn_to_prefetch_ratio_too_small_p): Same.
6422 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6423 (patch_loop_exit): Same.
6424 (find_or_create_guard_phi): Same.
6425 (easy_exit_values): Same.
6426 (connect_loop_phis): Same.
6427 (connect_loops): Same.
6428 (compute_new_first_bound): Same.
6430 (tree_ssa_split_loops): Same.
6431 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6432 (is_maybe_undefined): Same.
6433 (tree_may_unswitch_on): Same.
6434 (simplify_using_entry_checks): Same.
6435 (tree_unswitch_single_loop): Same.
6436 (tree_unswitch_loop): Same.
6437 (tree_unswitch_outer_loop): Same.
6438 (empty_bb_without_guard_p): Same.
6439 (used_outside_loop_p): Same.
6440 (get_vop_from_header): Same.
6441 (hoist_guard): Same.
6442 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6443 (get_lsm_tmp_name): Same.
6444 * tree-ssa-loop.h: Same.
6445 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6446 (build_and_add_sum): Same.
6447 (no_side_effect_bb): Same.
6449 (linearize_expr): Same.
6450 (should_break_up_subtract): Same.
6451 (linearize_expr_tree): Same.
6452 * tree-ssa-scopedtables.c: Same.
6453 * tree-ssa-scopedtables.h: Same.
6454 * tree-ssa-structalias.c (condense_visit): Same.
6455 (label_visit): Same.
6456 (dump_pred_graph): Same.
6457 (perform_var_substitution): Same.
6458 (move_complex_constraints): Same.
6459 (remove_preds_and_fake_succs): Same.
6460 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6461 (determine_bb_domination_status): Same.
6462 (duplicate_thread_path): Same.
6463 (thread_through_all_blocks): Same.
6464 * tree-ssa-threadupdate.h: Same.
6465 * tree-streamer-in.c (streamer_read_string_cst): Same.
6466 (input_identifier): Same.
6467 (unpack_ts_type_common_value_fields): Same.
6468 (unpack_ts_block_value_fields): Same.
6469 (unpack_ts_translation_unit_decl_value_fields): Same.
6470 (unpack_ts_omp_clause_value_fields): Same.
6471 (streamer_read_tree_bitfields): Same.
6472 (streamer_alloc_tree): Same.
6473 (lto_input_ts_common_tree_pointers): Same.
6474 (lto_input_ts_vector_tree_pointers): Same.
6475 (lto_input_ts_poly_tree_pointers): Same.
6476 (lto_input_ts_complex_tree_pointers): Same.
6477 (lto_input_ts_decl_minimal_tree_pointers): Same.
6478 (lto_input_ts_decl_common_tree_pointers): Same.
6479 (lto_input_ts_decl_non_common_tree_pointers): Same.
6480 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6481 (lto_input_ts_field_decl_tree_pointers): Same.
6482 (lto_input_ts_function_decl_tree_pointers): Same.
6483 (lto_input_ts_type_common_tree_pointers): Same.
6484 (lto_input_ts_type_non_common_tree_pointers): Same.
6485 (lto_input_ts_list_tree_pointers): Same.
6486 (lto_input_ts_vec_tree_pointers): Same.
6487 (lto_input_ts_exp_tree_pointers): Same.
6488 (lto_input_ts_block_tree_pointers): Same.
6489 (lto_input_ts_binfo_tree_pointers): Same.
6490 (lto_input_ts_constructor_tree_pointers): Same.
6491 (lto_input_ts_omp_clause_tree_pointers): Same.
6492 (streamer_read_tree_body): Same.
6493 * tree-streamer.h: Same.
6494 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6495 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6496 (vect_analyze_possibly_independent_ddr): Same.
6497 (vect_analyze_data_ref_dependence): Same.
6498 (vect_compute_data_ref_alignment): Same.
6499 (vect_enhance_data_refs_alignment): Same.
6500 (vect_analyze_data_ref_access): Same.
6501 (vect_check_gather_scatter): Same.
6502 (vect_find_stmt_data_reference): Same.
6503 (vect_create_addr_base_for_vector_ref): Same.
6504 (vect_setup_realignment): Same.
6505 (vect_supportable_dr_alignment): Same.
6506 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6507 (adjust_phi_and_debug_stmts): Same.
6508 (vect_set_loop_mask): Same.
6509 (add_preheader_seq): Same.
6510 (vect_maybe_permute_loop_masks): Same.
6511 (vect_set_loop_masks_directly): Same.
6512 (vect_set_loop_condition_masked): Same.
6513 (vect_set_loop_condition_unmasked): Same.
6514 (slpeel_duplicate_current_defs_from_edges): Same.
6515 (slpeel_add_loop_guard): Same.
6516 (slpeel_can_duplicate_loop_p): Same.
6517 (create_lcssa_for_virtual_phi): Same.
6519 (vect_update_ivs_after_vectorizer): Same.
6520 (vect_gen_vector_loop_niters_mult_vf): Same.
6521 (slpeel_update_phi_nodes_for_loops): Same.
6522 (slpeel_update_phi_nodes_for_guard1): Same.
6523 (find_guard_arg): Same.
6524 (slpeel_update_phi_nodes_for_guard2): Same.
6525 (slpeel_update_phi_nodes_for_lcssa): Same.
6526 (vect_do_peeling): Same.
6527 (vect_create_cond_for_alias_checks): Same.
6528 (vect_loop_versioning): Same.
6529 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6530 (vect_inner_phi_in_double_reduction_p): Same.
6531 (vect_analyze_scalar_cycles_1): Same.
6532 (vect_fixup_scalar_cycles_with_patterns): Same.
6533 (vect_get_loop_niters): Same.
6534 (bb_in_loop_p): Same.
6535 (vect_get_max_nscalars_per_iter): Same.
6536 (vect_verify_full_masking): Same.
6537 (vect_compute_single_scalar_iteration_cost): Same.
6538 (vect_analyze_loop_form_1): Same.
6539 (vect_analyze_loop_form): Same.
6540 (vect_active_double_reduction_p): Same.
6541 (vect_analyze_loop_operations): Same.
6542 (neutral_op_for_slp_reduction): Same.
6543 (vect_is_simple_reduction): Same.
6544 (vect_model_reduction_cost): Same.
6545 (get_initial_def_for_reduction): Same.
6546 (get_initial_defs_for_reduction): Same.
6547 (vect_create_epilog_for_reduction): Same.
6548 (vectorize_fold_left_reduction): Same.
6549 (vectorizable_reduction): Same.
6550 (vectorizable_induction): Same.
6551 (vectorizable_live_operation): Same.
6552 (loop_niters_no_overflow): Same.
6553 (vect_get_loop_mask): Same.
6554 (vect_transform_loop_stmt): Same.
6555 (vect_transform_loop): Same.
6556 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6557 (vect_determine_precisions): Same.
6558 (vect_pattern_recog_1): Same.
6559 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6560 * tree-vect-stmts.c (stmt_vectype): Same.
6561 (process_use): Same.
6562 (vect_init_vector_1): Same.
6563 (vect_truncate_gather_scatter_offset): Same.
6564 (get_group_load_store_type): Same.
6565 (vect_build_gather_load_calls): Same.
6566 (vect_get_strided_load_store_ops): Same.
6567 (vectorizable_simd_clone_call): Same.
6568 (vectorizable_store): Same.
6569 (permute_vec_elements): Same.
6570 (vectorizable_load): Same.
6571 (vect_transform_stmt): Same.
6572 (supportable_widening_operation): Same.
6573 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6574 (vec_info::free_stmt_vec_info): Same.
6575 (vect_free_loop_info_assumptions): Same.
6576 (vect_loop_vectorized_call): Same.
6577 (set_uid_loop_bbs): Same.
6578 (vectorize_loops): Same.
6579 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6580 * tree.c (add_tree_to_fld_list): Same.
6581 (fld_type_variant_equal_p): Same.
6582 (fld_decl_context): Same.
6583 (fld_incomplete_type_of): Same.
6584 (free_lang_data_in_binfo): Same.
6585 (need_assembler_name_p): Same.
6586 (find_decls_types_r): Same.
6587 (get_eh_types_for_runtime): Same.
6588 (find_decls_types_in_eh_region): Same.
6589 (find_decls_types_in_node): Same.
6590 (assign_assembler_name_if_needed): Same.
6591 * value-prof.c (stream_out_histogram_value): Same.
6592 * value-prof.h: Same.
6593 * var-tracking.c (use_narrower_mode): Same.
6594 (prepare_call_arguments): Same.
6595 (vt_expand_loc_callback): Same.
6596 (resolve_expansions_pending_recursion): Same.
6597 (vt_expand_loc): Same.
6598 * varasm.c (const_hash_1): Same.
6599 (compare_constant): Same.
6600 (tree_output_constant_def): Same.
6601 (simplify_subtraction): Same.
6602 (get_pool_constant): Same.
6603 (output_constant_pool_2): Same.
6604 (output_constant_pool_1): Same.
6605 (mark_constants_in_pattern): Same.
6606 (mark_constant_pool): Same.
6607 (get_section_anchor): Same.
6608 * vr-values.c (compare_range_with_value): Same.
6609 (vr_values::extract_range_from_phi_node): Same.
6610 * vr-values.h: Same.
6611 * web.c (unionfind_union): Same.
6614 2019-07-09 Martin Sebor <msebor@redhat.com>
6617 * align.h: Change class-key from class to struct and vice versa
6618 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6619 * alloc-pool.h: Same.
6620 * asan.c (shadow_mem_size): Same.
6621 * auto-profile.c: Same.
6622 * basic-block.h: Same.
6624 * cfgexpand.c (set_rtl): Same.
6625 (expand_one_stack_var_at): Same.
6629 * config/i386/i386.h: Same.
6630 * df-problems.c (df_print_bb_index): Same.
6632 * df.h (df_single_use): Same.
6633 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6634 (layout::annotation_line_showed_range_p): Same.
6635 (get_printed_columns): Same.
6636 (correction::ensure_terminated): Same.
6637 (line_corrections::~line_corrections): Same.
6640 * dump-context.h: Same.
6642 * dwarf2out.c: Same.
6643 * edit-context.c: Same.
6644 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6646 * function.c (assign_stack_local): Same.
6649 * gcov.c (block_info::block_info): Same.
6650 * genattrtab.c: Same.
6651 * genextract.c: Same.
6652 * genmatch.c (comparison_code_p): Same.
6653 (id_base::id_base): Same.
6654 (decision_tree::print): Same.
6655 * genoutput.c: Same.
6656 * genpreds.c (write_one_predicate_function): Same.
6657 * genrecog.c (validate_pattern): Same.
6658 (find_operand_positions): Same.
6659 (optimize_subroutine_group): Same.
6660 (merge_pattern_transition::merge_pattern_transition): Same.
6661 (merge_pattern_info::merge_pattern_info): Same.
6662 (merge_state_result::merge_state_result): Same.
6663 (merge_into_state): Same.
6664 * gensupport.c: Same.
6665 * gensupport.h: Same.
6666 * ggc-common.c (init_ggc_heuristics): Same.
6667 * ggc-tests.c (test_union): Same.
6668 * gimple-loop-interchange.cc (dump_induction): Same.
6669 * gimple-loop-versioning.cc: Same.
6670 * gimple-match.h (gimple_match_cond::any_else): Same.
6671 * gimple-ssa-backprop.c: Same.
6672 * gimple-ssa-sprintf.c: Same.
6673 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6675 (store_immediate_info::store_immediate_info): Same.
6676 (merged_store_group::apply_stores): Same.
6677 (get_location_for_stmts): Same.
6678 * gimple-ssa-strength-reduction.c: Same.
6679 * gimple-ssa-warn-alloca.c: Same.
6680 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
6681 * godump.c (go_type_decl): Same.
6682 * hash-map-tests.c (test_map_of_strings_to_int): Same.
6684 * hash-set-tests.c (test_set_of_strings): Same.
6686 * hsa-common.h: Same.
6687 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
6688 * input.c (assert_loceq): Same.
6691 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
6692 * ipa-fnsummary.h: Same.
6693 * ipa-inline.h: Same.
6695 * ipa-split.c (visit_bb): Same.
6696 * ira-int.h (minmax_set_iter_next): Same.
6697 * loop-invariant.c: Same.
6699 * lra-eliminations.c: Same.
6701 * lra-lives.c (mark_regno_dead): Same.
6702 * lra-remat.c: Same.
6703 * lra-spills.c: Same.
6704 * lto-streamer.h: Same.
6705 * mem-stats.h: Same.
6706 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
6707 * omp-low.c (omp_clause_aligned_alignment): Same.
6708 * optabs-query.h (get_vcond_eq_icode): Same.
6710 * opts.c (wrap_help): Same.
6712 * predict.c (predict_paths_leading_to_edge): Same.
6713 * pretty-print.h: Same.
6714 * profile-count.h: Same.
6716 * read-rtl-function.c: Same.
6719 * regrename.c: Same.
6720 * regrename.h: Same.
6723 * rtl.h (costs_add_n_insns): Same.
6725 * sched-int.h: Same.
6726 * sel-sched-ir.h: Same.
6728 * sese.h (vec_find): Same.
6730 * target-globals.h: Same.
6731 * tree-affine.c (aff_combination_find_elt): Same.
6732 * tree-affine.h: Same.
6733 * tree-data-ref.h: Same.
6734 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
6735 * tree-predcom.c: Same.
6736 * tree-scalar-evolution.c (find_var_scev_info): Same.
6737 * tree-ssa-alias.h: Same.
6738 * tree-ssa-ccp.c: Same.
6739 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
6740 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
6741 (rewrite_mem_refs): Same.
6742 (execute_sm_if_changed): Same.
6743 (hoist_memory_references): Same.
6744 * tree-ssa-loop-ivopts.c (operator<=): Same.
6745 * tree-ssa-loop.h: Same.
6746 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
6747 * tree-ssa-structalias.c: Same.
6748 * tree-switch-conversion.h (cluster::cluster): Same.
6749 (simple_cluster::simple_cluster): Same.
6750 * tree-vect-patterns.c (type_conversion_p): Same.
6751 * tree-vectorizer.c (dump_stmt_cost): Same.
6752 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
6753 * tree.c (protected_set_expr_location): Same.
6754 * tree.h (desired_pro_or_demotion_p): Same.
6755 (fndecl_built_in_p): Same.
6756 * unique-ptr-tests.cc: Same.
6757 * var-tracking.c (delete_variable_part): Same.
6758 * varasm.c (assemble_real): Same.
6759 (tree_output_constant_def): Same.
6761 * wide-int-bitmask.h: Same.
6762 * wide-int.h (decompose): Same.
6764 2019-07-09 Richard Biener <rguenther@suse.de>
6766 PR tree-optimization/91114
6767 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
6768 find a vector type isn't fatal.
6770 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6772 * config/aarch64/aarch64-simd.md
6773 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
6774 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
6775 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
6776 (*aarch64_crypto_aese_fused,
6777 *aarch64_crypto_aesd_fused): Update to new definition.
6778 * config/aarch64/aarch64.c
6779 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
6781 2019-07-09 Richard Biener <rguenther@suse.de>
6783 * gimple-match.h (gimple_match_op::resimplify): New.
6784 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
6785 gimple_resimplify4, gimple_resimplify5): Remove.
6786 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
6787 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
6789 (gimple_match_op::resimplify): New.
6790 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
6791 according to availability. Use gimple_match_op::resimplify.
6793 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
6795 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
6797 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6799 * config/arm/crypto.md:
6800 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
6801 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
6802 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
6803 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
6805 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
6806 * config/arm/aarch-common-protos.h
6807 (aarch_crypto_can_dual_issue): Remove.
6808 * config/arm/aarch-common.c
6809 (aarch_crypto_can_dual_issue): Likewise.
6810 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
6811 * config/arm/cortex-a53.md: Likewise.
6812 * config/arm/cortex-a57.md: Likewise.
6813 * config/arm/iterators.md:
6814 (CRYPTO_BINARY): Redefine.
6815 (CRYPTO_UNARY): Removed.
6816 (CRYPTO_AES, CRYPTO_AESMC): New.
6818 2019-07-09 Richard Biener <rguenther@suse.de>
6820 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
6821 (vn_reference_lookup_3): If the main ref has no access path recorded
6822 but orig_ref has use it to do access-path based disambiguation.
6823 (vn_reference_lookup_pieces): Adjust.
6824 (vn_reference_lookup): Pass down original ref if we valueized.
6826 2019-07-09 Martin Liska <mliska@suse.cz>
6828 * doc/extend.texi: Document influence on loop
6831 2019-07-09 Martin Liska <mliska@suse.cz>
6833 * lto-compress.c (lto_normalized_zstd_level): Do not use
6834 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
6835 of libzstd. One can use 0 as a default compression level.
6837 2019-07-09 Martin Liska <mliska@suse.cz>
6839 * doc/invoke.texi: Add link from -fprofile-dir option.
6840 Use better wording for 'gcno filename'.
6842 2019-07-08 Martin Sebor <msebor@redhat.com>
6846 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
6848 (args_loc_t): New type.
6849 (args_loc_t, locmap_t): same.
6850 (diag_returned_locals): New function.
6851 (is_addr_local): Same.
6852 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
6853 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
6854 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
6856 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6858 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
6859 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
6860 and casts in offset when different, both through gimple stmts
6861 and through trees. Rewritten using loops to minimize code duplication
6864 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
6866 * emit-rtl.c (set_insn_locations): New function moved from...
6867 * function.c (set_insn_locations): ...here.
6868 * ira-emit.c (emit_moves): Propagate location of the first instruction
6869 to the inserted move instructions.
6870 * reg-stack.c (compensate_edge): Set the location if the sequence is
6871 inserted on the edge.
6872 * rtl.h (set_insn_locations): Declare.
6874 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6876 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
6877 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
6880 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6882 PR rtl-optimization/88233
6883 * common.opt (fsplit-wide-types-early): New option.
6884 * common/config/rs6000/rs6000-common.c
6885 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
6887 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
6888 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
6889 flag_split_wide_types_early.
6890 (pass_data_lower_subreg3): New.
6891 (pass_lower_subreg3): New.
6892 (make_pass_lower_subreg3): New.
6893 * passes.def (pass_lower_subreg2): Move after the loop passes.
6894 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
6895 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
6896 the pass pipeline; its previous place is taken by ...
6897 (make_pass_lower_subreg3): ... this.
6899 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6901 * config/s390/s390.c (s390_shift_truncation_mask): Define.
6902 (TARGET_SHIFT_TRUNCATION_MASK): Define.
6904 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6906 * config/s390/constraints.md: Add new jsc constraint.
6907 * config/s390/predicates.md: New predicates.
6908 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
6909 * config/s390/s390.c (s390_valid_shift_count): New function.
6910 (print_shift_count_operand): Use s390_valid_shift_count.
6911 (print_operand): Likewise.
6912 * config/s390/s390.md: Use new predicate.
6913 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
6914 * config/s390/vector.md: Use new predicate.
6916 2019-07-08 Andrew Waterman <andrew@sifive.com>
6917 Jim Wilson <jimw@sifive.com>
6919 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
6920 bitsize instead of BITS_PER_WORD.
6922 2019-07-08 Martin Liska <mliska@suse.cz>
6924 * collect2.c (defined): Revert to before r254460.
6925 (scan_prog_file): Revert to before r254460.
6927 2019-07-08 Richard Biener <rguenther@suse.de>
6929 PR tree-optimization/83518
6930 * tree-ssa-sccvn.c: Include splay-tree.h.
6931 (struct pd_range, struct pd_data): New.
6932 (struct vn_walk_cb_data): Add data to track partial definitions.
6933 (vn_walk_cb_data::~vn_walk_cb_data): New.
6934 (vn_walk_cb_data::push_partial_def): New.
6935 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
6936 (vn_reference_lookup_2): When partial defs are registered give up.
6937 (vn_reference_lookup_3): Track partial defs for memset and
6938 constructor zeroing and for defs from constants.
6940 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6942 * doc/install.texi (bootstrap-Og): Document.
6944 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6946 * config/riscv/pic.md (*local_pic_load_s<mode>)
6947 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
6948 referenced by <mode>, giving...
6949 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
6950 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
6951 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
6952 use <X:MODE> for the mode attribute.
6954 2019-07-07 Jeff Law <law@redhat.com>
6956 PR tree-optimization/91090
6957 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
6958 in handling of ranges to simplify switch statements.
6960 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6962 * config/darwin.c (darwin_override_options): Make a final check on PIC
6965 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6967 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
6970 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6973 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
6974 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
6975 instead of matching them to "l" output operands.
6977 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6979 * config/mips/mips.c (mips_split_move): Zero-initialize addr
6980 and check whether addr.reg is nonnull before using it.
6982 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6984 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
6985 ctx->for_simd_scan_phase simd copy the outer var to the privatized
6986 variable(s). For conditional lastprivate look through outer
6987 GIMPLE_OMP_SCAN context.
6988 (lower_omp_1): For conditional lastprivate look through outer
6989 GIMPLE_OMP_SCAN context.
6991 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
6992 member to combined_into_simd_safelen1.
6993 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
6994 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
6995 clauses if ctx->combined_into_simd_safelen1 put statements after the
6996 predicate conditionalized block rather than into it.
6998 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7000 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
7002 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
7003 Make the choice of <mode> explicit, giving...
7004 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
7006 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7008 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
7009 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
7011 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
7012 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
7013 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
7014 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
7015 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
7016 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
7017 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
7018 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
7019 (*avx512f_scatterdi<mode>): Likewise.
7020 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
7022 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7024 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
7025 specify the mode iterator referenced by <mode>, giving...
7026 (*push1_h8300hs_<QHI:mode>): ...this.
7028 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7030 * config/gcn/gcn-valu.md
7031 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
7032 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
7033 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
7034 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
7035 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
7036 but using the _exec comparison patterns.
7037 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
7038 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
7039 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
7040 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
7041 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
7042 but using the _exec comparison patterns.
7044 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7046 * config/arm/sync.md
7047 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
7048 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
7049 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
7050 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
7053 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7055 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
7056 (maybe_lookup_ctx): Add forward declaration.
7057 (omp_find_scan): Likewise. Walk into body of simd if composited
7058 with worksharing loop.
7059 (scan_omp_simd_scan): New function.
7060 (scan_omp_1_stmt): Call it.
7061 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
7062 ctx->for_simd_scan_phase.
7063 (lower_rec_input_clauses): Do much less work for inscan reductions
7064 in ctx->for_simd_scan_phase is_simd regions.
7065 (lower_omp_scan): Set is_simd also on simd constructs composited
7066 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
7067 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
7068 emit their body after in simd constructs composited with worksharing
7070 (lower_omp_for_scan): Handle worksharing loop composited with simd.
7072 * omp-low.c (omp_find_scan): Make static.
7073 (lower_omp_for_scan): Fix order of merge arguments in input phase of
7074 the second loop, var2 represents the first partial sum and so needs
7075 to go before rprivb[ivar].
7077 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
7079 * config/rs6000/rs6000-logue.c: Remove unused code.
7081 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7083 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
7085 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
7088 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
7089 check with a frame laid out check.
7091 2019-07-05 Richard Biener <rguenther@suse.de>
7093 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
7094 when comparing against a store with possibly the same value.
7096 2019-07-05 Richard Biener <rguenther@suse.de>
7098 PR tree-optimization/91091
7099 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
7100 (walk_non_aliased_vuses): Likewise.
7101 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
7102 (get_continuation_for_phi): New tbaa_p parameter and pass
7104 (walk_non_aliased_vuses): Likewise.
7105 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
7106 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
7107 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7109 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
7110 (adjust_offsets_for_equal_base_address): New function.
7111 (vn_reference_lookup_3): Use it to catch more base equivalences.
7112 Handle and pass down tbaa_p flag.
7113 (vn_reference_lookup_pieces): Adjust.
7114 (vn_reference_lookup): Remove alias-set altering, instead pass
7115 down false as tbaa_p.
7117 2019-07-05 Richard Biener <rguenther@suse.de>
7119 PR tree-optimization/91091
7120 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
7121 accesses can happen with -fno-strict-aliasing.
7123 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
7125 * tree-ssa-alias.c (alias_stats): Add
7126 nonoverlapping_component_refs_since_match_p_must_overlap.
7127 (dump_alias_stats): Print it.
7128 (nonoverlapping_component_refs_since_match_p): Add early exit.
7129 (nonoverlapping_component_refs_p): Do not account early exit.
7131 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7133 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
7134 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
7135 (emit_eh_dispatch): Delete.
7136 (lower_catch): Emit the eh_dispatch manually and set the location of
7137 the first catch statement onto it.
7138 (lower_eh_filter): Emit the eh_dispatch manually and set location.
7139 (lower_eh_dispatch): Propagate location.
7140 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
7141 (eliminate_build): Likewise.
7143 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7145 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
7146 phi nodes if possible.
7147 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
7148 location info on the newly created statement.
7149 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
7150 newly created increment if needed.
7152 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7155 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
7156 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
7157 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
7158 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
7159 ctx->add_safelen1 is set.
7161 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
7162 GOMP_loop_start at the start of second worksharing loop in a scan.
7163 For nowait, don't emit GOMP_loop_end_nowait at the end of first
7164 worksharing loop in a scan even if there are conditional lastprivates,
7165 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
7167 2019-07-04 Jan Hubicka <jh@suse.cz>
7169 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7170 Fix check for match in the ref walk.
7172 2019-07-04 Martin Liska <mliska@suse.cz>
7174 * tree-ssa-loop-niter.c
7175 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
7176 (estimate_numbers_of_iterations):
7177 Support __builtin_expect_with_probability for analysis
7178 of # of loop iterations.
7180 2019-07-04 Alexandre Oliva <oliva@adacore.com>
7182 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
7183 * except.c: Likewise.
7184 * expr.c (expand_expr_real_1): Reject it.
7185 * gimplify.c (gimplify_expr): Gimplify it, within
7187 * tree-dump.c (dequeue_and_dump): Dump it.
7188 * tree-pretty-print.c (dump_generic_node): Likewise.
7189 * tree.c (block_may_fallthru): Handle it.
7190 * tree.def (EH_ELSE_EXPR): Introduce it.
7191 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
7192 with GIMPLE_EH_ELSE as try/finally/else.
7194 2019-07-04 Richard Biener <rguenther@suse.de>
7197 * tree-pass.h (execute_all_ipa_transforms): Add a flag
7198 parameter whether to disable GC collection.
7199 * passes.c (execute_one_ipa_transform_pass): Likewise, and
7201 (execute_all_ipa_transforms): Likewise and pass it down.
7202 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
7203 collection from applying IPA transforms.
7204 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
7205 from applying IPA transforms.
7207 2019-07-04 Richard Biener <rguenther@suse.de>
7209 PR tree-optimization/90911
7210 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
7211 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
7212 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7213 scalar_loop_scaling.
7214 (vect_transform_loop): Scale scalar loop profile if needed.
7215 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
7216 the loop copy from if-conversion adjust edge probabilities
7217 and scale the vectorized loop body profile, queue the scalar
7218 profile for updating after peeling.
7220 2019-07-04 Jan Hubicka <jh@suse.cz>
7222 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
7223 parameters; return early for must-alias.
7224 (indirect_ref_may_alias_decl_p): Likewise; when establishing
7225 outer types match, try nonoverlapping_component_refs
7226 if must-alias is not obvious.
7227 (indirect_refs_may_alias_p): Likewise.
7228 (refs_may_alias_p_2): Likewise.
7230 2019-07-04 Richard Biener <rguenther@suse.de>
7232 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
7234 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
7236 (struct vn_walk_cb_data): New callback data struct.
7237 (vn_reference_lookup_2): Adjust.
7238 (vn_reference_lookup_3): Likewise.
7239 (vn_reference_lookup_pieces): Likewise.
7240 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
7241 (visit_reference_op_load): Adjust.
7243 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7245 PR tree-optimization/91063
7246 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
7247 stmt from stmts sequence before calling vect_init_vector_1.
7250 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7253 * fwprop.c (reg_single_def_p): New function.
7254 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
7255 (forward_propagate_into): New parameter reg_prop_only
7256 with default value false.
7257 Propagate def's src into loop only if SET_SRC and SET_DEST
7258 of def_set have single definitions.
7259 Likewise if reg_prop_only is set to true.
7260 (fwprop): New param fwprop_addr_p.
7261 Integrate fwprop_addr into fwprop.
7262 (fwprop_addr): Remove.
7263 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
7265 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
7266 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
7267 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
7269 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7271 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
7272 in worksharing loop scans.
7274 PR tree-optimization/91074
7275 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
7278 PR rtl-optimization/90756
7279 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
7282 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
7284 * config/aarch64/aarch64.md: Remove redundant constraints from
7285 define_expand but keep some patterns untouched if they are
7286 specially selected by TARGET_SECONDARY_RELOAD hook.
7287 * config/aarch64/aarch64-sve.md: Likewise.
7288 * config/aarch64/atomics.md: Remove redundant constraints from
7290 * config/aarch64/aarch64-simd.md: Likewise.
7292 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7294 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
7295 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
7296 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
7298 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
7301 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7303 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
7304 (STARTFILE_SPEC): Split crt3 into a separate spec.
7305 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
7306 (DARWIN_CRT2_SPEC): New.
7307 (DARWIN_CRT3_SPEC): New.
7308 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
7309 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
7310 (DARWIN_CRT3_SPEC): New.
7312 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
7314 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
7315 Change the RTL attribute "length" from "4" to "*" to allow the
7316 length attribute to be adjusted automatically for prefixed load,
7317 store, and add immediate instructions.
7318 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
7320 (extendsi<mode>2, EXTSI iterator): Likewise.
7321 (movsi_internal1): Likewise.
7322 (movsi_from_sf): Likewise.
7323 (movdi_from_sf_zero_ext): Likewise.
7324 (mov<mode>_internal): Likewise.
7325 (movcc_internal1, QHI iterator): Likewise.
7326 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
7327 (movsf_from_si): Likewise.
7328 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
7329 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
7330 (mov<mode>, FMOVE128 iterator): Likewise.
7331 (movdi_internal64): Likewise.
7332 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
7334 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
7335 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
7336 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
7337 (vsx_splat_v4sf): Likewise.
7339 2019-07-03 Mark Wielaard <mark@klomp.org>
7342 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
7343 DW_AT_addr_base if there is actually a .debug_addr section with
7345 (output_addr_table): Add DWARF5 table header generation here after
7346 checking there are actually any addresses from...
7347 (dwarf2out_finish): ...here.
7349 2019-07-03 Richard Biener <rguenther@suse.de>
7352 * match.pd (vec_perm -> bit_insert): Fix element read from
7355 2019-07-03 Martin Liska <mliska@suse.cz>
7357 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7358 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7360 * generic-match-head.c: Include dbgcnt.h.
7361 * gimple-match-head.c: Likewise.
7363 2019-07-03 Martin Liska <mliska@suse.cz>
7365 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7366 (GCOV_COUNTER_V_TOPN): New.
7367 (GCOV_COUNTER_V_INDIR): Use _topn.
7368 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7369 (GCOV_TOPN_VALUES): New.
7370 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7371 (GCOV_TOPN_VALUES_COUNTERS): New.
7372 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7374 (gimple_init_gcov_profiler): Rename variables from one_value
7376 (gimple_gen_one_value_profiler): Remove.
7377 (gimple_gen_topn_values_profiler): New function.
7378 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7379 names instead of SINGLE_VALUE.
7380 (stream_out_histogram_value): Likewise.
7381 (stream_in_histogram_value): Likewise.
7382 (get_most_common_single_value): Likewise.
7383 (gimple_divmod_fixed_value_transform): Likewise.
7384 (gimple_stringops_transform): Likewise.
7385 (gimple_divmod_values_to_profile): Likewise.
7386 (gimple_stringops_values_to_profile): Likewise.
7387 (gimple_find_values_to_profile): Likewise.
7388 * value-prof.h (enum hist_type): Rename to TOPN.
7389 (gimple_gen_one_value_profiler): Remove.
7390 (gimple_gen_topn_values_profiler): New.
7392 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7394 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7395 if it has the DW_AT_data_member_location attribute.
7397 2019-07-03 Richard Biener <rguenther@suse.de>
7399 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7402 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7404 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7405 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7406 (tlsdesc_small_sve_<mode>): Likewise.
7408 2019-07-03 Martin Liska <mliska@suse.cz>
7410 * Makefile.in: Define ZSTD_LIB.
7411 * common.opt: Adjust compression level
7412 to support also zstd levels.
7413 * config.in: Regenerate.
7414 * configure: Likewise.
7415 * configure.ac: Add --with-zstd and --with-zstd-include options
7417 * doc/install.texi: Mention zstd dependency.
7418 * gcc.c: Print supported LTO compression algorithms.
7419 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7420 (lto_compression_zstd): Likewise.
7421 (lto_uncompression_zstd): Likewise.
7422 (lto_end_compression): Dispatch in between zlib and zstd.
7423 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7424 (lto_uncompression_zlib): Make it static.
7425 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7426 * lto-section-in.c (lto_get_section_data): Pass info
7427 about used compression.
7428 * lto-streamer-out.c: By default use zstd when possible.
7429 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7430 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7432 2019-07-03 Martin Liska <mliska@suse.cz>
7434 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7435 * lto-section-out.c (lto_destroy_simple_output_block): Never
7436 compress LTO_section_lto section.
7437 * lto-streamer-out.c (produce_asm): Do not set major_version
7439 (lto_output_toplevel_asms): Likewise.
7440 (produce_lto_section): New function.
7441 (lto_output): Call produce_lto_section.
7442 (lto_write_mode_table): Do not set major_version and
7444 (produce_asm_for_decls): Likewise.
7445 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7447 (struct lto_header): Remove.
7448 (struct lto_section): New struct.
7449 (struct lto_simple_header): Do not inherit from lto_header.
7450 (struct lto_file_decl_data): Add lto_section_header field.
7452 2019-07-03 Martin Liska <mliska@suse.cz>
7454 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7456 * reg-stack.c (check_asm_stack_operands): Likewise.
7457 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7458 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7459 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7462 2019-07-03 Martin Liska <mliska@suse.cz>
7464 PR tree-optimization/90892
7465 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7466 in string constants.
7468 2019-07-03 Martin Liska <mliska@suse.cz>
7471 * multiple_target.c (create_dispatcher_calls): Add to comdat
7472 group only if set for ifunc.
7474 2019-07-03 Martin Liska <mliska@suse.cz>
7477 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7478 Define local_object_name in outer scope in order to handle
7479 use-after-scope issue.
7481 2019-07-03 Martin Liska <mliska@suse.cz>
7483 * common.opt: Add fprofile-note.
7484 * coverage.c (coverage_init): Append the option
7486 * doc/invoke.texi: Document -fprofile-note.
7488 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7490 PR tree-optimization/91033
7491 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7492 vect_analyze_data_refs): Add bool * arguments.
7493 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7494 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7495 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7496 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7497 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7498 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7499 vect_analyze_data_refs caller.
7501 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7503 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7504 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7505 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7506 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7507 OMP_CLAUSE__SCANTEMP_ entry.
7508 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7509 * tree-pretty-print.c (dump_omp_clause): Likewise.
7510 * tree-nested.c (convert_nonlocal_omp_clauses,
7511 convert_local_omp_clauses): Likewise.
7512 * omp-general.h (struct omp_for_data): Add have_scantemp and
7513 have_nonctrl_scantemp members.
7514 * omp-general.c (omp_extract_for_data): Initialize them.
7515 * omp-low.c (struct omp_context): Add scan_exclusive member.
7516 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7517 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7518 ctx->scan_exclusive.
7519 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7520 of !ctx->scan_inclusive.
7521 (lower_rec_input_clauses): Simplify gimplification of dtors using
7522 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7523 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7524 loops. Don't add barrier for reduction_omp_orig_ref if
7525 ctx->scan_??xclusive.
7526 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7527 (lower_omp_scan): Use ctx->scan_exclusive instead
7528 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7529 reductions. Use new_vard != new_var instead of repeated
7530 omp_is_reference calls.
7531 (omp_find_scan, lower_omp_for_scan): New functions.
7532 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7534 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7535 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7536 and fd->have_scantemp.
7538 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7539 on worksharing loop propagate it as shared clause to containing
7542 * omp-expand.c (expand_omp_for_static_nochunk,
7543 expand_omp_for_static_chunk): For nowait worksharing loop with
7544 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7547 2019-07-02 qing zhao <qing.zhao@oracle.com>
7549 PR preprocessor/90581
7550 * doc/cppopts.texi: Add document for -fmax-include-depth.
7551 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7553 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7555 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7556 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7557 (mmx_packssdw): Ditto.
7558 (mmx_punpckhbw): Ditto.
7559 (mmx_punpcklbw): Ditto.
7560 (mmx_punpckhwd): Ditto.
7561 (mmx_punpcklwd): Ditto.
7562 (mmx_punpckhdq): Ditto.
7563 (mmx_punpckldq): Ditto.
7564 (*vec_dupv4hi): Ditto.
7565 (*vec_dupv2si): Ditto.
7566 (mmx_pmovmskb): Ditto.
7567 * config/i386/sse.md (sse_cvtpi2ps): Use
7568 TARGET_SSE2 && SSE_REG_P in split condition.
7569 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7570 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7571 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7572 (ssse3_pshufbv8qi3): Ditto.
7573 (ssse3_palignrdi): Ditto.
7575 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7577 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7578 with inlined save and restore.
7580 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7582 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7583 to be inserted on single successor edge of the entry block. Then call
7584 commit_edge_insertions instead of inserting the instructions manually.
7585 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7586 RTL expansion and rebuild jump labels chain.
7588 2019-07-02 Richard Biener <rguenther@suse.de>
7590 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7592 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7594 * tree.c (build_common_tree_nodes): Initialize them.
7595 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7596 Make declarations comments.
7597 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7598 chrec_known): Remove definitions.
7599 (initialize_scalar_evolutions_analyzer): Remove.
7600 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7601 * tree-streamer.c (preload_common_nodes): Do not preload
7602 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7604 2019-07-02 Jan Hubicka <jh@suse.cz>
7606 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7609 2019-07-02 Jan Hubicka <jh@suse.cz>
7611 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7613 (nonoverlapping_component_refs_since_match_p): ... this one;
7614 handle also non-decl bases; return -1 if search gave up.
7615 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7616 nonoverlapping_component_refs_of_decl_p_no_alias to
7617 nonoverlapping_component_refs_since_match_p_may_alias,
7618 nonoverlapping_component_refs_since_match_p_no_alias.
7619 (dump_alias_stats): Update dumping.
7620 (aliasing_matching_component_refs_p): Break out from ...;
7621 dispatch to nonoverlapping_component_refs_for_decl_p
7622 and nonoverlapping_component_refs_since_match_p.
7623 (aliasing_component_refs_p): ... here; call
7624 nonoverlapping_component_refs_p in scenarios where we can not
7625 precisely determine base match.
7626 (decl_refs_may_alias_p): Use
7627 nonoverlapping_component_refs_since_match_p.
7628 (indirect_ref_may_alias_decl_p): Do not call
7629 nonoverlapping_component_refs_p.
7630 (indirect_refs_may_alias_p): Likewise.
7632 2019-07-02 Jan Hubicka <jh@suse.cz>
7634 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7635 to clobber of return value.
7637 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7639 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7640 for is_neon_type instructions that have not already been categorized.
7642 2019-07-02 Richard Biener <rguenther@suse.de>
7644 PR tree-optimization/58483
7645 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7646 for MEM_REF base hashing.
7647 (equal_mem_array_ref_p): Likewise for base comparison.
7649 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7651 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7653 (signbit<mode>2): Use that name. Simplify.
7655 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7658 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7659 Tune heuristic from PR71016 to allow MIN / MAX.
7661 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7663 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7665 (abs<mode>2): Use that name. Simplify.
7667 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7669 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7671 (neg<mode>2): Use that name. Simplify.
7673 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7675 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
7677 (abs<mode>2): Use that name. Simplify.
7679 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7681 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
7683 (neg<mode>2): Use that name. Simplify.
7685 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
7687 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
7688 ("enabled" attribute): Handle sse_noavx isa attribute.
7689 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
7690 Use TARGET_SSE && SSE_REGNO_P in split condition.
7691 (*vec_dupv2sf): Ditto.
7693 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7695 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
7697 (floatsi<mode>2): Use that name. Simplify.
7699 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7701 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
7703 (extenddf<mode>2_vsx): Make this a parameterized name.
7704 (extenddf<mode>2): Use those names. Simplify.
7706 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7708 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
7710 (eh_return): Use that name. Simplify.
7712 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7714 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
7715 (doloop_end): Use that name. Simplify.
7717 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7719 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
7721 (indirect_jump): Use that name. Simplify.
7723 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7725 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
7727 (abs<mode>2): Use that name. Simplify.
7729 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7731 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
7733 (fix_trunc<mode>si2): Use that name. Simplify.
7735 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7737 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
7738 (allocate_stack): Use that name. Simplify.
7740 2019-07-01 Martin Sebor <msebor@redhat.com>
7743 * hash-map.h (hash_map::put): On insertion invoke element ctor.
7744 (hash_map::get_or_insert): Same. Reformat comment.
7745 * hash-set.h (hash_set::add): On insertion invoke element ctor.
7746 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7747 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7748 * hash-table.h (hash_table::operator=): Prevent copy assignment.
7749 (hash_table::hash_table (const hash_table&)): Use copy ctor
7750 instead of assignment to copy elements.
7752 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
7753 John David Anglin <danglin@gcc.gnu.org>
7756 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
7757 using saved frame pointer.
7759 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
7762 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
7763 Add frame clobber and schedule blockage.
7765 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
7767 * doc/invoke.texi (Link Options): Further editorial changes to
7768 -flinker-output docs.
7770 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7772 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
7773 Load both operands of a PLUS into registers separately.
7775 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
7777 * config/s390/vector.md: Fix shift count operand printing.
7779 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7781 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
7783 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7785 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
7786 Use recog_data to test for an output operand.
7788 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7790 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
7791 exclude any others that are disparaged or that are bound to need
7793 (ira_get_dup_out_num): Expand comment.
7795 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7797 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
7798 constraint string for each operand/alternative combo. Only handle
7799 '%' at the start of constraint strings, and look for it outside
7802 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7804 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
7805 alternative_mask instead of HARD_REG_SET to represent a
7806 bitmask of alternatives.
7807 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7808 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
7810 2019-07-01 Martin Liska <mliska@suse.cz>
7812 * edit-context.c (test_applying_fixits_unreadable_file): Do not
7813 use () for a constructor call.
7814 (test_applying_fixits_line_out_of_range): Likewise.
7815 * ggc-page.c (alloc_page): Use (void *) for %p printf format
7817 (free_page): Likewise.
7819 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
7821 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
7822 parameter names to match usage (no functional change).
7823 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
7825 2019-07-01 Richard Biener <rguenther@suse.de>
7827 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
7829 (pass_fre::execute): Honor it.
7830 * passes.def: Adjust pass_fre invocations to allow iterating,
7831 add non-iterating pass_fre before late threading/dom.
7833 2019-07-01 Richard Biener <rguenther@suse.de>
7835 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
7836 TARGET_MEM_REF handling to also handle address-taken ones.
7838 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
7840 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7841 hardware attributes): Document avx512vp2intersect.
7843 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7845 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
7846 (abs<mode>2): New expander.
7847 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
7848 Use CODE_FOR_ssse3_absv8qi2.
7849 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
7850 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
7852 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7854 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
7855 to sse, sse_noavx and avx. Update all uses.
7857 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7859 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
7860 (*mmx_<plusminus_insn><mode>3): Ditto.
7861 (*mmx_mulv4hi3"): Ditto.
7862 (*mmx_smulv4hi3_highpart): Ditto.
7863 (*mmx_umulv4hi3_highpart): Ditto.
7864 (*mmx_pmaddwd): Ditto.
7865 (*sse2_umulv1siv1di3): Ditto.
7866 (*mmx_<code>v4hi3): Ditto.
7867 (*mmx_<code>v8qi3): Ditto.
7868 (mmx_ashr<mode>3): Ditto.
7869 ("mmx_<shift_insn><mode>3): Ditto.
7870 (*mmx_eq<mode>3): Ditto.
7871 (mmx_gt<mode>3): Ditto.
7872 (mmx_andnot<mode>3): Ditto.
7873 (*mmx_<code><mode>3): Ditto.
7874 (*mmx_pinsrw): Ditto.
7875 (*mmx_pextrw): Ditto.
7876 (mmx_pshufw_1): Ditto.
7877 (*mmx_uavgv8qi3): Ditto.
7878 (*mmx_uavgv4hi3): Ditto.
7879 ("mmx_psadbw): Ditto.
7880 * config/i386/sse.md (sse_cvtps2pi): Ditto.
7881 (sse_cvttps2pi): Ditto.
7882 (ssse3_pmaddubsw): Ditto.
7883 (*ssse3_pmulhrswv4hi3): Ditto.
7884 (ssse3_psign<mode>3): Ditto.
7886 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
7888 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
7889 adjustment for bit-fields to all aggregate types.
7891 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
7893 * config/rs6000/predicates.md (pcrel_address): Use
7894 SYMBOL_REF_LOCAL_P to determine if a label is local.
7895 (pcrel_external_address): New predicate.
7896 (non_prefixed_mem_operand): Delete, predicate not used.
7897 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
7898 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
7900 (SYMBOL_REF_PCREL_P): Likewise.
7903 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
7905 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
7906 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
7907 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
7909 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7911 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
7912 override on extra_headers.
7914 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7916 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
7917 * config/darwin-driver.c (darwin_default_min_version): Remove newline
7919 (darwin_driver_init): Likewise.
7921 2019-06-28 Jan Beulich <jbeulich@suse.com>
7923 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7924 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
7925 Eliminate redundant alternative.
7927 2019-06-28 Jan Beulich <jbeulich@suse.com>
7929 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7930 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
7933 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
7935 * config/arc/arc.c (arc_rtx_costs): All short instructions are
7936 having a lower cost regardless of the speed option.
7938 2019-06-28 Jan Beulich <jbeulich@suse.com>
7940 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
7941 vector_operand plus, on both alternatives, "Bm" constraint.
7943 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
7945 * config/arm/arm.md: Remove redundant constraints from
7946 define_expand but leave reload_inm and reload_outm patterns
7947 untouched since they need special constraints to work.
7948 * config/arm/arm-fixed.md: Remove redundant constraints from
7950 * config/arm/iwmmxt.md: Likewise.
7951 * config/arm/neon.md: Likewise.
7952 * config/arm/sync.md: Likewise.
7953 * config/arm/thumb1.md: Likewise.
7954 * config/arm/vec-common.md: Likewise.
7956 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
7958 * doc/install.texi: Document --disable-tm-clone-registry.
7960 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7963 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
7966 PR tree-optimization/91010
7967 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
7968 return true. Otherwise, don't call operand_equal_p if offset1 or
7969 offset2 is NULL and just return false.
7971 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7973 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
7974 user-specified float mode choice for kernel mode code.
7976 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7978 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
7981 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7983 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
7984 use longcall for 64b code.
7986 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
7988 * builtins.c (get_memory_rtx): Fix comment.
7989 * optabs.def (movmem_optab): Change to cpymem_optab.
7990 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
7991 (emit_block_move_hints): Change movmem to cpymem.
7992 * defaults.h: Change movmem to cpymem.
7993 * targhooks.c (get_move_ratio): Change movmem to cpymem.
7994 (default_use_by_pieces_infrastructure_p): Ditto.
7995 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
7996 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
7998 * config/aarch64/aarch64.h: Change movmem to cpymem.
7999 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
8000 * config/alpha/alpha.h: Change movmem to cpymem in comment.
8001 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
8003 * config/arc/arc-protos.h: Change movmem to cpymem.
8004 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
8005 * config/arc/arc.h: Change movmem to cpymem in comment.
8006 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
8007 * config/arm/arm-protos.h: Change movmem to cpymem in names.
8008 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
8009 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
8010 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
8011 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
8012 * config/avr/avr-protos.h: Change movmem to cpymem.
8013 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
8014 avr_out_movmem): Change movmem to cpymem.
8015 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
8016 Change movmem to cpymem.
8017 * config/bfin/bfin-protos.h: Change movmem to cpymem.
8018 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
8019 Change movmem to cpymem.
8020 * config/bfin/bfin.h: Change movmem to cpymem in comment.
8021 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
8022 * config/c6x/c6x-protos.h: Change movmem to cpymem.
8023 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
8024 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
8025 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
8026 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
8027 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
8028 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
8029 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
8030 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
8031 expand_small_cpymem_or_setmem,
8032 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
8033 expand_set_or_cpymem_constant_prologue,
8034 ix86_expand_set_or_cpymem): Change movmem to cpymem.
8035 * config/i386/i386-protos.h: Change movmem to cpymem.
8036 * config/i386/i386.h: Change movmem to cpymem in comment.
8037 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
8038 (setmem<mode>): Change expansion function name.
8039 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
8040 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
8041 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
8042 * config/m32c/m32c-protos.h: Change movmem to cpymem.
8043 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
8044 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
8045 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
8047 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
8048 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
8049 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
8050 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
8051 Change movmem to cpymem.
8052 * config/mips/mips.h: Change movmem to cpymem.
8053 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
8054 * config/nds32/nds32-memory-manipulation.c
8055 (nds32_expand_movmemsi_loop_unknown_size,
8056 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
8057 nds32_expand_movmemsi_unroll,
8058 nds32_expand_movmemsi): Change movmem to cpymem.
8059 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
8060 * config/nds32/nds32-protos.h: Change movmem to cpymem.
8061 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
8062 (pa_adjust_insn_length): Change call to compute_movmem_length.
8063 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
8064 movmemdi, movmemdi_prereload,
8065 movmemdi_postreload): Change movmem to cpymem.
8066 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
8067 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
8068 * config/riscv/riscv.c: Change movmem to cpymem in comment.
8069 * config/riscv/riscv.h: Change movmem to cpymem.
8070 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
8071 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
8072 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
8074 * config/s390/s390-protos.h: Change movmem to cpymem.
8075 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
8076 s390_expand_insv): Change movmem to cpymem.
8077 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
8078 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
8079 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
8080 * config/sparc/sparc.h: Change movmem to cpymem in comment.
8081 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
8082 for nonexistent function.
8083 * config/vax/vax.h: Change movmem to cpymem in comment.
8084 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
8085 * config/visium/visium.h: Change movmem to cpymem in comment.
8086 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
8087 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
8088 * doc/md.texi: Change movmem to cpymem and update description to match.
8089 * doc/rtl.texi: Change movmem to cpymem.
8090 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
8091 * doc/tm.texi: Regenerate.
8093 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
8095 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
8096 -fvariable-expansion-in-unroller by default.
8097 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
8100 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
8103 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8104 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8106 * config.gcc(rs6000-*-*): Define target_gtfiles.
8108 2019-06-27 Jan Hubicka <jh@suse.cz>
8110 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
8111 (add_type_duplicate): When odr hash is not allocated, to nothing.
8112 (odr_based_tbaa_p): New function.
8113 (set_type_canonical_for_odr_type): New function.
8114 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
8115 set_type_canonical_for_odr_type): New.
8116 * tree.c (gimple_canonical_types_compatible_p): ODR types with
8117 ODR based TBAA are not equivalent to non-ODR types.
8119 2019-06-27 Martin Liska <mliska@suse.cz>
8121 PR tree-optimization/90974
8122 PR rtl-optimization/90975
8123 PR rtl-optimization/90976
8125 PR tree-optimization/91017
8126 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
8128 * lra.c (lra_set_insn_recog_data): Remove a leftover from
8129 initial commit of IRA.
8130 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
8132 * tree-vect-loop.c (vect_create_epilog_for_reduction):
8133 Remove unused mode1.
8134 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
8137 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8140 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
8141 instead of register_operand for operands[1], add m to its constraints
8142 if operands[2] uses "C" constraint. Ensure in condition that if
8143 operands[2] is not 0, then operands[1] is not a MEM. For last two
8144 alternatives, use unaligned loads instead of aligned if operands[1] is
8147 2019-06-27 Martin Liska <mliska@suse.cz>
8149 * asan.c (asan_emit_allocas_unpoison): Remove obviously
8151 * bt-load.c (move_btr_def): Likewise.
8152 * builtins.c (expand_builtin_apply_args_1): Likewise.
8153 (expand_builtin_apply): Likewise.
8154 * cfgexpand.c (expand_asm_stmt): Likewise.
8155 (construct_init_block): Likewise.
8156 * cfghooks.c (verify_flow_info): Likewise.
8157 * cfgloopmanip.c (remove_path): Likewise.
8158 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
8159 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
8160 * combine.c (simplify_if_then_else): Likewise.
8161 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8162 (choose_basereg): Likewise.
8163 (ix86_expand_prologue): Likewise.
8164 (ix86_preferred_output_reload_class): Likewise.
8165 * cselib.c (cselib_record_sets): Likewise.
8166 * df-scan.c (df_scan_alloc): Likewise.
8167 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
8168 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
8169 * emit-rtl.c (try_split): Likewise.
8170 * graphite-scop-detection.c (assign_parameter_index_in_region):
8172 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
8173 * ira-color.c (setup_profitable_hard_regs): Likewise.
8174 * ira.c (rtx_moveable_p): Likewise.
8175 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8176 * read-rtl.c (read_subst_mapping): Likewise.
8177 * regrename.c (scan_rtx): Likewise.
8178 * reorg.c (fill_slots_from_thread): Likewise.
8179 * tree-inline.c (tree_function_versioning): Likewise.
8180 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
8181 * tree-ssa-sink.c (statement_sink_location): Likewise.
8182 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8183 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
8184 (vect_create_epilog_for_reduction): Likewise.
8185 * tree.c (build_nonstandard_integer_type): Likewise.
8187 2019-06-27 Richard Biener <rguenther@suse.de>
8189 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
8191 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
8193 PR tree-optimization/89772
8194 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
8195 out-of-bound accesses checking.
8197 2019-06-27 Martin Liska <mliska@suse.cz>
8199 PR tree-optimization/91014
8200 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
8201 when LHS is NULL_TREE.
8203 2019-06-27 Martin Liska <mliska@suse.cz>
8205 * symbol-summary.h (traverse): Pass
8206 argument a to the call of callback.
8207 (gt_ggc_mx): Mark arguments as unused.
8208 (gt_pch_nx): Likewise.
8210 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
8213 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
8216 2019-06-26 Jeff Law <law@redhat.com>
8218 PR tree-optimization/90883
8219 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
8220 (delete_dead_or_redundant_assignment): Likewise.
8222 PR tree-optimization/90883
8223 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
8224 * tree-ssa-dse.c: Update various comments to distinguish between
8225 dead and redundant stores.
8226 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
8227 (dse_optimize_redundant_stores): New function.
8228 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
8229 Distinguish between dead and redundant calls in dump output. All
8231 (delete_dead_or_redundant_assignment): Similarly for assignments.
8232 (dse_optimize_stmt): Handle _CHK variants. For statements which
8233 store 0 into multiple memory locations, try to prove a subsequent
8236 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
8239 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
8240 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
8242 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8244 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
8245 (branch_islands): New extern.
8246 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
8247 * config/rs6000/rs6000.c: .. here.
8249 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8251 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
8252 (powerpc*-*-*) ... to here.
8254 2019-06-26 Jeff Law <law@redhat.com>
8256 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
8257 memcpy, memmove and memset builtins.
8258 (maybe_trim_memstar_call): Likewise.
8260 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8262 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
8264 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8266 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8268 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8270 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
8272 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
8274 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
8277 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8279 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
8281 2019-06-26 Richard Biener <rguenther@suse.de>
8284 * tree-inline.c (remap_ssa_name): Copy SSA range info.
8286 2019-06-26 Richard Biener <rguenther@suse.de>
8288 * lto-streamer.h (lto_bitmap_alloc): Remove.
8289 (lto_bitmap_free): Likewise.
8290 * lto-streamer.c (lto_bitmap_alloc): Remove.
8291 (lto_bitmap_free): Likewise.
8292 (lto_obstack): Likewise.
8293 (lto_obstack_initialized): Likewise.
8294 * lto-streamer-out.c (lto_output): Use own obstack for local
8295 bitmap, free it consistently.
8297 2019-06-26 Jakub Jelinek <jakub@redhat.com>
8300 * config/i386/sse.md
8301 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
8302 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
8303 insns if operands[2] is misaligned_operand.
8305 2019-06-26 Li Jia He <helijia@linux.ibm.com>
8307 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
8309 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
8312 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8314 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
8316 2019-06-26 Martin Liska <mliska@suse.cz>
8318 PR tree-optimization/90973
8319 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
8320 epilogue_cost_vec instead of prologue_cost_vec for
8323 2019-06-26 Martin Liska <mliska@suse.cz>
8325 * bb-reorder.c (connect_better_edge_p): Add missing else
8326 statement in the middle of if-else statements.
8328 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
8329 H.J. Lu <hongjiu.lu@intel.com>
8330 Olga Makhotina <olga.makhotina@intel.com>
8332 * common/config/i386/i386-common.c
8333 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
8334 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
8335 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
8336 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
8337 (ix86_handle_option): Handle -mavx512vp2intersect.
8338 * config/i386/avx512vp2intersectintrin.h: New.
8339 * config/i386/avx512vp2intersectvlintrin.h: New.
8340 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
8341 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8343 * config/i386/i386-builtin-types.def: Add new types.
8344 * config/i386/i386-builtin.def: Add new builtins.
8345 * config/i386/i386-builtins.c: (enum processor_features): Add
8346 F_AVX512VP2INTERSECT.
8347 (static const _isa_names_table isa_names_table): Ditto.
8348 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8349 __AVX512VP2INTERSECT__.
8350 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8351 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8352 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8353 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8354 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8355 * config/i386/i386-options.c (ix86_target_string): Add
8356 -mavx512vp2intersect.
8357 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8358 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8359 P2HImode and P2QImode.
8360 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8361 number for P2QImode and P2HImode.
8362 (ix86_regmode_natural_size): New function.
8363 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8364 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8365 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8366 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8367 * config/i386/i386.opt: Add -mavx512vp2intersect.
8368 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8369 avx512vp2intersectvlintrin.h.
8370 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8371 (define_mode_iterator VI48_AVX512VP2VL): New.
8372 (avx512vp2intersect_2intersect<mode>,
8373 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8374 * config.gcc: Add avx512vp2intersectvlintrin.h and
8375 avx512vp2intersectintrin.h to extra_headers.
8376 * doc/invoke.texi: Document -mavx512vp2intersect.
8378 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8380 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8382 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8384 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8385 savres_routine_syms, savres_routine_name, morestack_ref,
8386 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8387 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8388 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8389 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8390 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8391 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8392 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8393 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8394 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8395 get_stack_clash_protection_probe_interval,
8396 get_stack_clash_protection_guard_size,
8397 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8398 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8399 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8400 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8401 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8402 gen_frame_mem_offset, rs6000_savres_routine_name,
8403 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8404 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8405 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8406 rs6000_global_entry_point_prologue_needed_p,
8407 rs6000_get_separate_components, rs6000_components_for_bb,
8408 rs6000_disqualify_components, rs6000_emit_prologue_components,
8409 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8410 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8411 rs6000_output_savres_externs, rs6000_output_function_prologue,
8412 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8413 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8414 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8415 rs6000_output_function_epilogue, gen_add3_const,
8416 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8417 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8419 (machine_function): Moved to rs6000.h.
8420 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8422 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
8423 savres_routine_syms, savres_routine_name, morestack_ref,
8424 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8425 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8426 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8427 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8428 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8429 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8430 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8431 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8432 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8433 get_stack_clash_protection_probe_interval,
8434 get_stack_clash_protection_guard_size,
8435 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8436 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8437 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8438 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8439 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8440 gen_frame_mem_offset, rs6000_savres_routine_name,
8441 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8442 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8443 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8444 rs6000_global_entry_point_prologue_needed_p,
8445 rs6000_get_separate_components, rs6000_components_for_bb,
8446 rs6000_disqualify_components, rs6000_emit_prologue_components,
8447 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8448 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8449 rs6000_output_savres_externs, rs6000_output_function_prologue,
8450 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8451 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8452 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8453 rs6000_output_function_epilogue, gen_add3_const,
8454 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8455 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8456 to here from rs6000.c.
8457 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8458 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8459 quad_address_offset_p) Moved to here from rs6000.c.
8460 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8461 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8464 2019-06-25 Martin Liska <mliska@suse.cz>
8466 * hash-table.c (hashtab_chk_error): Move here from ...
8467 * hash-table.h (hashtab_chk_error): ... here.
8469 2019-06-25 Martin Liska <mliska@suse.cz>
8471 PR tree-optimization/90978
8472 * df-scan.c (df_update_entry_block_defs): Remove dead else
8474 (df_update_exit_block_uses): Likewise.
8476 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8477 Andrew Stubbs <ams@codesourcery.com>
8479 * config.gcc (thread_file): Set to gcn for AMD GCN.
8480 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8481 (TARGET_EMUTLS_VAR_INIT): New hook.
8483 2019-06-25 Martin Jambor <mjambor@suse.cz>
8486 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8488 2019-06-25 Richard Biener <rguenther@suse.de>
8490 PR tree-optimization/90930
8491 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8492 into parallel form in the last pass instance.
8494 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8496 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8497 (arc_legitimize_pic_address): Simplify and cleanup the function.
8498 (SYMBOLIC_CONST): Remove.
8499 (prepare_pic_move): Likewise.
8500 (prepare_move_operands): Handle complex mov cases here.
8501 (arc_legitimize_address_0): Remove call to
8502 arc_legitimize_pic_address.
8503 (arc_legitimize_address): Remove call to
8504 arc_legitimize_tls_address.
8505 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8506 (movhi_insn): Likewise.
8508 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8510 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8512 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8513 format of "__intN" types for UINTMAX_TYPE.
8514 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8515 format of "__intN" types for SIZETYPE.
8516 * tree.c (build_common_tree_nodes): Accept "__intN__"
8517 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8518 * doc/invoke.texi: Document that __intN__ disables pedantic
8521 2019-06-25 Jan Hubicka <jh@suse.cz>
8523 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8524 base2_alias_set is non-zero before doing TBAA based disambiguation.
8526 2019-06-25 Martin Liska <mliska@suse.cz>
8528 PR tree-optimization/90973
8529 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8530 of prologue and epilogue.
8532 2019-06-24 Jan Hubicka <jh@suse.cz>
8534 * ipa-utils.h (type_with_linkage_p): Verify that type is
8536 (odr_type_p): Remove extra return.
8537 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8538 hash STRING_FLAG only for arrays and integers.
8539 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8541 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8543 * print-tree.c (print_node): Print cxx-odr-p
8545 * tree.c (need_assembler_name_p): Also check that type
8547 (verify_type_variant): Update verification of SRING_FLAG;
8548 also check CXX_ODR_P.
8549 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8550 (TYPE_STRING_FLAG): Use it.
8551 (TYPE_CXX_ODR_P): New macro.
8552 * dwarf2out.c (gen_array_type_die): First check that type
8553 is an array and then test string flag.
8555 2019-06-24 Richard Biener <rguenther@suse.de>
8557 PR tree-optimization/90972
8558 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8559 in common code, dealing with STRING_CST properly.
8561 2019-06-24 Richard Biener <rguenther@suse.de>
8563 PR tree-optimization/90930
8564 PR tree-optimization/90316
8565 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8568 2019-06-24 Martin Sebor <msebor@redhat.com>
8570 * tree-pretty-print.h: Remove unnecessary punctuation characters
8572 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8574 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8576 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8577 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8578 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8580 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8582 * config/rs6000/darwin.h: Handle GCC target pragma.
8584 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8586 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8588 2019-06-22 Jeff Law <law@redhat.com>
8590 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8592 2019-06-22 Jan Hubicka <jh@suse.cz>
8594 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8595 give up on bitfields; continue searching for different refs
8598 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8600 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8601 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8602 containing the offset as possible simd lane access. Look through
8603 widening conversion. Move the
8604 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8606 2019-06-21 Richard Biener <rguenther@suse.de>
8608 PR tree-optimization/90930
8609 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8610 flag on new stmts to avoid re-processing them.
8612 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8614 PR c++/90875 - added -Wswitch-outside-range option
8615 * doc/invoke.texi (Wswitch-outside-range): Document.
8617 2019-06-21 Jeff Law <law@redhat.com>
8619 PR tree-optimization/90949
8620 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8621 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8623 2019-06-21 Richard Biener <rguenther@suse.de>
8626 * dwarf2out.c (prune_unused_types_walk): Always consider
8627 function-local extern declarations as used.
8629 2019-06-21 Richard Biener <rguenther@suse.de>
8631 PR tree-optimization/90913
8632 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8633 the scalar variant of if-conversion versioning.
8635 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8637 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8638 create another "omp scan inscan exclusive" array if
8639 !ctx->scan_inclusive.
8640 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8641 (lower_omp_scan): Likewise.
8642 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8643 2-bit bitfield for simd_lane_access_p member.
8644 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8645 aux == (void *)-4 as simd lane access.
8646 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8647 comment with permutations to show the canonical permutation order.
8648 (vectorizable_scan_store): Handle exclusive scan.
8649 (vectorizable_store): Call vectorizable_scan_store even for
8650 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8652 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8653 "omp simd array" arrays with one byte elements.
8655 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8657 * config/alpha/alpha.md (@unaligned_store<mode>):
8658 Rename from unaligned_store<mode>.
8659 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8660 * config/alpha/sync.md (@load_locked_<mode>): Rename
8661 from load_locked_<mode>.
8662 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8663 (@atomic_compare_and_swap<mode>_1): Rename
8664 from atomic_compare_and_swap<mode>_1.
8665 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8666 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8667 Use gen_reload_in_aligned and gen_unaligned_store.
8668 (emit_load_locked): Remove.
8669 (emit_store_conditional): Ditto.
8670 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8671 (alpha_split_compare_and_swap): Ditto.
8672 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8673 (alpha_split_compare_and_swap_12): Use gen_load_locked
8674 and gen_store_conditional.
8675 (alpha_split_atomic_exchange): Ditto.
8676 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
8677 (alpha_split_atomic_exchange_12): Use gen_load_locked
8678 and gen_store_conditional.
8680 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
8682 * config/aarch64/aarch64-errata.h: New file.
8683 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
8684 (CA53_ERR_843419_SPEC): Delete.
8685 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
8686 * config/aarch64/aarch64-linux.h: Likewise.
8687 * config/aarch64/aarch64-netbsd.h: Likewise.
8688 * config/aarch64/aarch64-freebsd.h: Likewise.
8690 2019-06-20 Marek Polacek <polacek@redhat.com>
8692 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
8694 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
8696 * config/rs6000/rs6000.md (isa attribute): Add support for
8697 for a future processor.
8699 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
8702 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
8703 standard scalar operation pattern for V2DF.
8704 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
8705 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
8706 (*ieee_<ieee_maxmin><mode>3): Likewise.
8707 (vec_setv2df_0): Likewise.
8709 2019-06-20 Jan Hubicka <jh@suse.cz>
8711 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
8712 parameter; it has no use in gimple memory model.
8713 (indirect_ref_may_alias_decl_p): Update.
8715 2019-06-20 Martin Liska <mliska@suse.cz>
8717 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
8720 2019-06-20 Jakub Jelinek <jakub@redhat.com>
8722 * tree-vect-stmts.c (enum scan_store_kind): New type.
8723 (scan_store_can_perm_p): Change last argument from int * to
8724 vec<enum scan_store_kind> *, record precisely which permutations
8725 need whole vector left shift or that plus VEC_COND_EXPR.
8726 (vectorizable_scan_store): Adjust caller, use whole vector left shift
8727 and additional VEC_COND_EXPR only for those iterations that need it.
8729 2019-06-20 Alexandre Oliva <oliva@adacore.com>
8731 * config.gcc: Fix ARM --with-fpu checking and error message.
8733 2019-06-19 Marek Polacek <polacek@redhat.com>
8735 PR c++/60364 - noreturn after first decl not diagnosed.
8736 * attribs.c (get_attribute_namespace): No longer static.
8737 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
8739 (attr_noreturn_exclusions): Make it extern.
8740 * attribs.h (get_attribute_namespace): Declare.
8741 * tree-inline.c (function_attribute_inlinable_p): Use
8744 2019-06-19 Martin Sebor <msebor@redhat.com>
8746 PR tree-optimization/90626
8747 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
8749 PR tree-optimization/90626
8750 * tree-ssa-strlen.c (strxcmp_unequal): New function.
8751 (handle_builtin_string_cmp): Call it.
8753 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8755 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
8756 and DARWIN_NOPIE_SPEC.
8757 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
8758 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
8759 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
8760 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
8761 (DARWIN_EXPORT_DYNAMIC): Delete.
8762 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
8763 and pie options processing to darwin.h.
8764 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
8766 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8768 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
8769 in computing the number of options to be moved.
8771 2019-06-19 Maya Rashish <coypu@sdf.org>
8773 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
8774 (CLEAR_INSN_CACHE) Use it.
8776 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
8778 * config/i386/i386.md (cmpstrnsi): Remove dead code.
8780 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
8783 * builtins.c (expand_builtin_setjmp_setup): Save
8784 hard_frame_pointer_rtx.
8785 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
8787 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
8789 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
8791 (remove_reg_equal_offset_note): Remove unused function.
8792 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
8794 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8795 (arc_builtin_setjmp_frame_value): Remove function.
8796 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8797 (avr_builtin_setjmp_frame_value): Remove function.
8798 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8799 (ix86_builtin_setjmp_frame_value): Remove function.
8800 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
8801 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8802 (sparc_builtin_setjmp_frame_value): Remove function.
8803 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8804 (vax_builtin_setjmp_frame_value): Remove function.
8805 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
8806 pointer if has_nonlocal_label.
8808 2019-06-19 Jakub Jelinek <jakub@redhat.com>
8810 * doc/md.texi: Document vec_shl_<mode> pattern.
8811 * optabs.def (vec_shl_optab): New optab.
8812 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
8813 argument, if == vec_shl_optab, check for left whole vector shift
8814 pattern rather than right shift.
8815 (expand_vec_perm_const): Add vec_shl_optab support.
8816 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
8818 * tree-vect-generic.c (lower_vec_perm): Support permutations which
8819 can be handled by vec_shl_optab.
8820 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
8821 (check_scan_store): Use it.
8822 (vectorizable_scan_store): If target can't do normal permutations,
8823 try to use whole vector left shifts and if needed a VEC_COND_EXPR
8825 * config/i386/sse.md (vec_shl_<mode>): New expander.
8827 * omp-low.c (lower_rec_input_clauses): Handle references properly
8829 (lower_omp_scan): Likewise.
8831 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8833 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
8834 mem_mode is BLKmode.
8836 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
8839 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
8840 pointer adjustment for the case of no callee-saved registers and
8841 stack frame bigger than 128 bytes.
8843 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8846 * omp-low.c (check_omp_nesting_restrictions): Handle
8847 GF_OMP_TARGET_KIND_OACC_DECLARE.
8849 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
8851 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
8852 (@add<mode>3_carry): Rename from add<mode>3_carry.
8853 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
8854 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
8855 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
8856 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
8857 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
8858 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
8859 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
8860 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
8861 (cmpstrnsi): Use gen_cmp_1.
8862 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
8863 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
8864 (@umonitor_<mode>): Rename from umonitor_<mode>.
8865 * config/i386/i386-expand.c (ix86_expand_copysign):
8866 Use gen_copysign3_const and gen_copysign3_var.
8867 (ix86_expand_xorsign): Use gen_xorsign3_1.
8868 (ix86_expand_branch): Use gen_sub3_carry_ccc,
8869 gen_sub3_carry_ccgz and gen_cmp1.
8870 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
8871 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
8872 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
8873 (ix86_split_lshr): Ditto.
8874 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
8876 2019-06-18 Jason Merrill <jason@redhat.com>
8878 * tree.c (build_constructor): Add MEM_STAT_DECL.
8880 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8882 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
8883 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
8884 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
8885 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
8886 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
8887 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
8888 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
8889 Use CC_NZC instead of CC.
8890 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
8891 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
8892 (aarch64_print_operand): Handle E_CC_NZCmode.
8893 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
8894 of gen_set_clobber_cc.
8896 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8898 * config/aarch64/aarch64-sve.md: Tabify file.
8900 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8902 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
8903 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
8904 * config/aarch64/aarch64-sve.md: Use it.
8906 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8908 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
8909 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
8910 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
8911 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
8912 (aarch64_expand_sve_vec_cmp_int): Use it.
8913 (aarch64_expand_sve_vec_cmp_float): Likewise.
8914 * config/aarch64/aarch64-sve.md: Likewise throughout.
8916 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8917 Kugan Vivekanandarajah <kuganv@linaro.org>
8919 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
8920 (*cond_<optab><mode>_z): Fold into...
8921 (*cond_<optab><mode>_any): ...here. Also handle cases in which
8922 operand 4 can be tied to operand 0 (either inherently or via RA).
8924 2019-06-18 Richard Biener <rguenther@suse.de>
8927 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
8928 as if optimized away.
8930 2019-06-18 Tom de Vries <tdevries@suse.de>
8932 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
8933 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
8934 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
8936 (define_insn "@set_softstack_<mode>"): ... this.
8937 (define_insn "omp_simt_enter_<mode>"): Rename to ...
8938 (define_insn "@omp_simt_enter_<mode>"): ... this.
8939 (define_insn "omp_simt_exit_<mode>"): Rename to ...
8940 (define_insn "@omp_simt_exit_<mode>"): ... this.
8942 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8944 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
8945 vf parameter. Restore the previous iv step of nscalars_step,
8946 but give it iv_type rather than compare_type. Tweak code order
8947 to match the comments.
8948 (vect_set_loop_condition_masked): Update accordingly.
8949 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
8950 for iv_precision. Tweak comment formatting.
8952 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8954 * config/darwin.c: Strip trailing whitespace.
8956 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8958 * config/darwin.c (darwin_emit_unwind_label): New default to false.
8959 (darwin_override_options): Set darwin_emit_unwind_label as needed.
8961 2019-06-18 Martin Jambor <mjambor@suse.cz>
8964 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
8965 caller does not have flag_ipa_cp set.
8967 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8969 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
8970 from "*fold_left_plus_<mode>", updated operands order.
8971 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
8972 * internal-fn.c (mask_fold_left_direct): New define.
8973 (expand_mask_fold_left_optab_fn): Likewise.
8974 (direct_mask_fold_left_optab_supported_p): Likewise.
8975 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
8976 * optabs.def (mask_fold_left_plus_optab): New optab.
8977 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
8978 masked internal_fn for a reduction ifn.
8979 (vectorize_fold_left_reduction): Add support for masking reductions.
8981 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
8984 * target.def (predict_doloop_p): New hook.
8985 * targhooks.h (default_predict_doloop_p): New declaration.
8986 * targhooks.c (default_predict_doloop_p): New function.
8987 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
8988 * doc/tm.texi: Regenerate.
8989 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
8990 (TARGET_PREDICT_DOLOOP_P): New macro.
8991 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
8993 2019-06-17 Jakub Jelinek <jakub@redhat.com>
8995 * omp-low.c (struct omp_context): Add scan_inclusive field.
8996 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
8998 (struct omplow_simd_context): Add lastlane member.
8999 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
9000 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
9002 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
9003 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
9004 (lower_omp_scan): New function.
9005 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
9006 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
9007 check 3rd argument if present rather than 2nd.
9008 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
9009 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
9011 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9012 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
9014 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
9015 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
9016 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
9018 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
9019 IFN_GOMP_SIMD_LANE argument.
9020 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
9021 encoded ->aux value.
9022 * tree-vect-stmts.c: Include attribs.h.
9023 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
9024 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
9026 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
9027 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
9029 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
9032 * config/i386/i386.md (*nabstf2_1): New insn pattern.
9033 (*nabs<mode>2_1): Ditto.
9034 (nabs sse-reg splitter): New splitter.
9035 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
9037 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9040 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
9043 2019-06-17 Tom de Vries <tdevries@suse.de>
9045 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
9046 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
9047 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
9049 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
9051 (define_insn "omp_simt_enter_insn"): Rename to ...
9052 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
9053 match_operand 0, 1 and 2, as well as the unspec_volatile result.
9054 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
9055 gen_omp_simt_enter_si.
9056 (define_expand "omp_simt_exit"): New.
9057 (define_insn "omp_simt_exit"): Rename to ...
9058 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
9061 2019-06-17 Matthew Green <mrg@eterna.com.au>
9062 Maya Rashish <coypu@sdf.org>
9064 * config.gcc (aarch64*-*-netbsd*): New target.
9065 * config/aarch64/aarch64-netbsd.h: New file.
9066 * config/aarch64/t-aarch64-netbsd: Likewise.
9068 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9070 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
9071 the access path from base to first VIEW_CONVERT_EXPR or
9074 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9076 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
9077 access path on BIT_FIELD_REFs.
9079 2019-06-17 Martin Liska <mliska@suse.cz>
9082 * ipa-utils.h (odr_type_p): Remove dead code.
9084 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9086 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
9087 alternative Solaris 11.4 format.
9088 * configure: Regenerate.
9090 2019-06-17 Tom de Vries <tdevries@suse.de>
9092 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
9093 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
9095 (define_insn "call_value_insn"): Rename to ...
9096 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
9098 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
9101 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
9104 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
9105 frame clobbers and schedule block.
9106 (builtin_longjmp): Likewise.
9108 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9110 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
9111 describe how to perform MSPABI compliant 64-bit shift.
9112 * config/msp430/msp430.md (ashldi3): New define_expand.
9113 (ashrdi3): New define_expand.
9114 (lshrdi3): New define_expand.
9116 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9118 * doc/sourcebuild.texi: Document new effective target keyword
9121 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9123 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
9124 indirect_refs_may_alias_p): Revert accidental commits.
9126 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
9127 at the end of structures.
9129 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9131 * config/darwin.c (machopic_indirect_call_target): Use renamed
9132 darwin_picsymbol_stubs to decide on output.
9133 (darwin_override_options): Handle darwin_picsymbol_stubs.
9134 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
9135 (LD64_VERSION): Revise default.
9136 * config/darwin.opt: (mpic-symbol-stubs): New option.
9137 (darwin_picsymbol_stubs): New variable.
9138 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
9139 rename to TARGET_MACHO_PICSYM_STUBS.
9140 * config/i386/i386.c (output_pic_addr_const): Likewise.
9141 * config/i386/i386.h Likewise.
9142 * config/rs6000/darwin.h: Likewise.
9143 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
9144 darwin_picsymbol_stubs.
9146 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9148 * config/darwin.opt (prebind, noprebind, seglinkedit,
9149 noseglinkedit): Add RejectNegative.
9151 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9153 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
9154 in my previous patch.
9156 2019-06-16 Tom de Vries <tdevries@suse.de>
9158 PR tree-optimization/89376
9159 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
9161 2019-06-15 Maya Rashish <coypu@sdf.org>
9163 * doc/invoke.texi (Spec Files): Update location of the
9166 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
9168 * doc/extend.texi (Common Function Attributes): Clarify
9169 no_sanitize. Fix grammar.
9171 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
9173 * tree-ssa-alias.c (alias_stats): Add
9174 nonoverlapping_component_refs_p_may_alias,
9175 nonoverlapping_component_refs_p_no_alias,
9176 nonoverlapping_component_refs_of_decl_p_may_alias,
9177 nonoverlapping_component_refs_of_decl_p_no_alias.
9178 (dump_alias_stats): Dump them.
9179 (nonoverlapping_component_refs_of_decl_p): Add stats.
9180 (nonoverlapping_component_refs_p): Add stats; do not stop on first
9183 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
9185 * config/i386/i386.md (and<mode>3): Generate zero-extends for
9186 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
9188 (*anddi3_doubleword): Split before reload. Merge with
9189 anddi->zext pre-reload splitter.
9190 (*andndi3_doubleword): Split before reload.
9191 (*<code>di3_doubleword): Ditto.
9192 (*one_cmpldi2_doubleword): Ditto.
9194 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9197 * gimplify.c: Include omp-offload.h and context.h.
9198 (gimplify_bind_expr): Add "omp declare target" attributes
9199 to static block scope variables inside of target region or target
9202 2019-06-15 Tom de Vries <tdevries@suse.de>
9204 PR tree-optimization/90009
9205 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
9206 Return NULL if bb contains IFN_UNIQUE.
9208 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
9210 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
9211 (un): New define_mode_attr.
9212 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
9213 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
9214 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
9216 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
9218 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
9220 * config/darwin.opt: Add RejectNegative where needed, reorder
9221 and add minimal functional descriptions.
9223 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9225 PR rtl-optimization/90765
9226 * calls.c (update_stack_alignment_for_call): New function.
9227 (expand_call): Call update_stack_alignment_for_call when
9228 outgoing parameter is passed in the stack.
9229 (emit_library_call_value_1): Likewise.
9230 * function.c (locate_and_pad_parm): Don't update
9231 stack_alignment_needed and preferred_stack_boundary.
9233 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9236 * config/i386/i386-features.c
9237 (dimode_scalar_chain::compute_convert_gain): Replace
9238 mmxsse_to_integer with sse_to_integer.
9239 * config/i386/i386.c (ix86_register_move_cost): Verify that
9240 moves between MMX and non-MMX units require secondary memory.
9241 Correct costs of moves between SSE and integer units.
9242 * config/i386/i386.h (processor_costs): Rename cost of moving
9243 SSE register to integer to sse_to_integer. Rename cost of
9245 2019-06-14 Matt Thomas <matt@3am-software.com>
9246 Matthew Green <mrg@eterna.com.au>
9247 Nick Hudson <skrll@netbsd.org>
9248 Maya Rashish <coypu@sdf.org>
9249 Richard Earnshaw <rearnsha@arm.com>
9251 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
9252 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
9253 * config/arm/netbsd-eabi.h: New file.
9254 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
9256 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
9257 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
9258 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
9259 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
9261 2019-06-14 Richard Biener <rguenther@suse.de>
9263 * tree-loop-distribution.c (classify_partition): Return
9264 whether a reduction appeared in all partitions and do not
9265 stop builtin detection because of this.
9266 (distribute_loop): Sort a non-builtin partition last if
9267 there's a reduction in all partitions and make sure the
9268 partition prevailing as last is not a builtin.
9270 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
9273 * ipa-prop.c (add_to_agg_contents_list): New function.
9274 (clobber_by_agg_contents_list_p): Likewise.
9275 (extract_mem_content): Likewise.
9276 (get_place_in_agg_contents_list): Delete.
9277 (determine_known_aggregate_parts): Renamed from
9278 determine_locally_known_aggregate_parts. New parameter
9281 2019-06-13 Martin Sebor <msebor@redhat.com>
9283 PR tree-optimization/90662
9284 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
9287 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9290 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
9291 dbase is not TARGET_MEM_REF.
9293 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9295 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
9297 (and<mode>3): Use gen_extend_insn instead of indirect functions.
9298 Do not generate DImode extends for 32bit targets.
9299 (and->zext post-reload splitter): Use gen_extend_insn
9300 instead of indirect functions.
9301 (anddi->zext pre-reload splitter): New.
9302 (*zext<mode>_doubleword_and): Remove.
9303 (*zext<mode>_doubleword): Ditto.
9304 (*zextsi_doubleword): Dittto.
9306 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9308 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9309 Use gen_sub3_insn instead of indirect function.
9310 (ix86_expand_ashl_const): Use gen_add2_insn instead of
9312 (ix86_adjust_counter): Ditto.
9314 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
9315 Lijia He <helijia@linux.ibm.com>
9317 PR tree-optimization/77820
9318 * tree-ssa-threadedge.c
9319 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
9321 (thread_across_edge): Add call to
9322 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
9324 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
9326 * config/darwin-driver.c (validate_macosx_version_min): New.
9327 (darwin_default_min_version): Cleanup and validate supplied version.
9328 (darwin_driver_init): Likewise and push cleaned version into opts.
9330 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9332 PR tree-optimization/90869
9333 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
9334 converts in MEM_REF referencing decl rather than view converts
9335 from decl type to MEM_REF type.
9337 2019-06-13 Richard Biener <rguenther@suse.de>
9339 PR tree-optimization/90856
9340 * tree-sra.c (build_ref_for_model): Only use
9341 build_reconstructed_reference when address-spaces are the same.
9343 2019-06-13 Jakub Jelinek <jakub@redhat.com>
9345 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
9346 wrap ei variable name in the declaration in ()s.
9347 (nvptx_single): Actually use mode_label variable. Formatting fix.
9349 2019-06-13 Richard Biener <rguenther@suse.de>
9351 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9352 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9353 also return the condition stmt.
9354 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9355 loop we can version and version that, reusing the loop version
9356 created by if-conversion instead of versioning again.
9358 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9360 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9362 * tree-vrp (value_range_base::may_contain_p): Call into
9364 (value_inside_range): Make private inside value_range_base class.
9365 Take min/max from *this.
9366 (range_includes_p): Remove.
9367 * tree-vrp.h (value_range_base): Add value_inside_range.
9368 (range_includes_p): Remove.
9369 (range_includes_zero_p): Call may_contain_p.
9370 * vr-values.c (compare_range_with_value): Same.
9372 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9374 * doc/extend.texi (ARC Function Attributes): Update info.
9376 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9378 PR tree-optimization/89713
9379 * doc/invoke.texi (-ffinite-loops): Document new option.
9380 * common.opt (-ffinite-loops): New option.
9381 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9382 IFN_GOACC_LOOP calls as necessary.
9383 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9385 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9386 IFN_GOACC_LOOP call is not used.
9387 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9389 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9392 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9393 compare_type is not with Pmode size, we will create an IV with
9394 Pmode size with truncated use (i.e. converted to the correct type).
9395 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9396 (vect_iv_limit_for_full_masking): New. Factored out of
9397 vect_set_loop_condition_masked.
9398 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9399 (vect_iv_limit_for_full_masking): Declare.
9401 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9404 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9405 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9406 (get_alias_ptr_type_for_ptr_address): Likewise.
9407 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9408 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9409 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9412 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9414 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9416 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9418 * common/config/pru/pru-common.c: New file.
9419 * config.gcc: Add PRU target.
9420 * config/pru/alu-zext.md: New file.
9421 * config/pru/constraints.md: New file.
9422 * config/pru/predicates.md: New file.
9423 * config/pru/pru-opts.h: New file.
9424 * config/pru/pru-passes.c: New file.
9425 * config/pru/pru-pragma.c: New file.
9426 * config/pru/pru-protos.h: New file.
9427 * config/pru/pru.c: New file.
9428 * config/pru/pru.h: New file.
9429 * config/pru/pru.md: New file.
9430 * config/pru/pru.opt: New file.
9431 * config/pru/t-pru: New file.
9432 * doc/extend.texi: Document PRU pragmas.
9433 * doc/invoke.texi: Document PRU-specific options.
9434 * doc/md.texi: Document PRU asm constraints.
9436 2019-06-12 Martin Sebor <msebor@redhat.com>
9439 * tree-pretty-print.c (dump_mem_ref): New function. Include
9440 MEM_REF type in output when different size than operand.
9441 (dump_generic_node): Move code to dump_mem_ref and call it.
9443 2019-06-12 Martin Sebor <msebor@redhat.com>
9445 PR tree-optimization/90662
9446 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9449 2019-06-12 Tom de Vries <tdevries@suse.de>
9451 PR tree-optimization/90009
9452 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9454 2019-06-12 Martin Liska <mliska@suse.cz>
9456 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9458 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9459 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9460 Do not sanitize created maps.
9462 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9464 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9465 value_range::singleton_p.
9466 * tree-vrp.c (value_range_constant_singleton): Remove.
9467 * tree-vrp.h (value_range_constant_singleton): Remove.
9468 * vr-values.c (vr_values::singleton): Use
9469 value_range::singleton_p.
9471 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9474 * cfgexpand.c (align_local_variable): Add really_expand argument,
9475 don't SET_DECL_ALIGN if it is false.
9476 (add_stack_var): Add really_expand argument, pass it through to
9477 align_local_variable.
9478 (expand_one_stack_var_1): Pass true as really_expand to
9479 align_local_variable.
9480 (expand_one_ssa_partition): Pass true as really_expand to
9482 (expand_one_var): Pass really_expand through to add_stack_var.
9484 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9486 * config/arm/iterators.md (VABAL): New int iterator.
9487 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9488 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9489 UNSPEC_VABAL_U values.
9491 2019-06-12 Martin Liska <mliska@suse.cz>
9493 * value-prof.c (stream_out_histogram_value): Only first value
9496 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9499 * symtab.c (symtab_node::set_section): Allow being called on aliases
9500 as long as they aren't analyzed yet.
9502 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9504 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9505 to `mips_set_text_contents_type' to indicate whether a
9506 non-debug insn follows.
9508 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9510 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9511 enabling -mpcrel by default.
9512 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9513 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9514 that the test against -mcpu=future is done first. Then test if
9515 -mprefixed-addr is on for -mpcrel.
9516 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9518 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9521 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9524 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9526 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9528 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9530 PR c++/90449 - add -Winaccessible-base option.
9531 * doc/invoke.texi (Winaccessible-base): Document.
9533 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9535 PR tree-optimization/62041
9536 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9538 2019-06-11 Jason Merrill <jason@redhat.com>
9540 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9541 * tree.c (get_tree_code_name): Likewise.
9542 * print-tree.c (print_node): Only briefly print a node with an
9545 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9548 * trans-mem.c (tm_memopt_compute_available): Add assertion
9549 that blocks is not empty. Formatting fix.
9551 2019-06-11 Martin Liska <mliska@suse.cz>
9554 * hash-table.h: Extend create_gcc, add one parameter
9555 that is passed into hash_table::hash_table.
9557 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9559 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9561 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9562 Emit clobber also for non-sse operations.
9563 (ix86_split_fp_absneg_operator): New function.
9564 * config/i386/i386.md (SSEMODEF): New mode iterator.
9565 (ssevecmodef): New mode attribute.
9566 (<code>tf2): Use absneg code iterator.
9567 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9568 Add three-operand AVX alternatives.
9569 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9570 Use absneg code iterator and X87MODEF mode iterator.
9571 (absneg fp_reg non-sse splitter): Call absneg code iterator
9572 and X87MODEF mode iterator.
9573 (absneg general_reg non-sse splitter): Use absneg code iterator
9574 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9575 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9576 code iterator. Add three-operand AVX alternative.
9577 (absneg sse_reg splitter): Use absneg code iterator
9578 and SSEMODEF mode iterator. Handle AVX operands.
9579 (absneg fp_reg splitter): Use absneg code iterator
9580 and MODEF mode iterator.
9581 (absneg general_reg splitter): Merge splitters using MODEF mode
9582 iterator. Use absneg code iterator. Call
9583 ix86_split_fp_absneg_operator.
9584 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9585 Do not enable for non-sse modes before reload.
9588 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9589 ssevecmodef mode attribute instaed of CSGNVMODE.
9590 (copysign<mode>3_const): Ditto.
9591 (copysign<mode>3_var): Ditto.
9592 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9593 Use absneg code iterator. Simplify code using std::swap.
9594 * config/i386/predicates.md (absneg_operator): Remove.
9596 2019-06-10 Martin Sebor <msebor@redhat.com>
9598 * gimple-fold.c (get_range_strlen): Update comment that didn't
9599 make it into r267503 or related commits.
9601 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9603 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9604 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9606 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9608 * tree.def (OMP_SCAN): New tree code.
9609 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9610 OMP_CLAUSE_EXCLUSIVE.
9611 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9612 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9613 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9614 OMP_CLAUSE_{IN,EX}CLUSIVE.
9615 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9616 * tree-nested.c (convert_nonlocal_reference_stmt,
9617 convert_local_reference_stmt, convert_gimple_call): Handle
9619 * tree-pretty-print.c (dump_omp_clause): Handle
9620 OMP_CLAUSE_{IN,EX}CLUSIVE.
9621 (dump_generic_node): Handle OMP_SCAN.
9622 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9623 * gimple.h (gomp_scan): New type.
9624 (is_a_helper <gomp_scan *>::test,
9625 is_a_helper <const gomp_scan *>::test): New templates.
9626 (gimple_build_omp_scan): Declare.
9627 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9628 gimple_omp_scan_set_clauses): New inline functions.
9629 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9630 * gimple.c (gimple_build_omp_scan): New function.
9631 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9632 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9633 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9634 GIMPLE_OMP_TASKGROUP.
9635 (dump_gimple_omp_scan): New function.
9636 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9637 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9638 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9639 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9640 (is_gimple_stmt): Handle OMP_SCAN.
9641 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9642 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9643 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9644 mentioned in nested #pragma omp scan. Handle
9645 OMP_CLAUSE_{IN,EX}CLUSIVE.
9646 (gimplify_expr): Handle OMP_SCAN.
9647 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9648 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9650 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9653 2019-06-10 Martin Liska <mliska@suse.cz>
9655 * ipa-cp.c (ignore_edge_p): New function.
9656 (build_toporder_info): Use it.
9657 * ipa-inline.c (ignore_edge_p): New function.
9658 (inline_small_functions): Use it.
9659 * ipa-pure-const.c (ignore_edge_for_nothrow):
9660 Verify opt_for_fn for caller and callee.
9661 (ignore_edge_for_pure_const): Likewise.
9662 * ipa-reference.c (ignore_edge_p): Extend to check
9664 * ipa-utils.c (searchc): Refactor.
9665 * ipa-utils.h: Fix coding style.
9667 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9669 * config/arc/arc.c (arc_rtx_costs): Update costs.
9671 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9673 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9674 (arc_split_ior): Likewise.
9675 (arc_check_mov_const): Likewise.
9676 (arc_split_mov_const): Likewise.
9677 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
9678 (arc_rtx_costs): Replace check Crr with Cax constraint.
9679 (prepare_move_operands): Cleanup, remove unused code.
9680 (arc_split_ior): New function.
9681 (arc_check_ior_const): Likewise.
9682 (arc_split_mov_const): Likewise.
9683 (arc_check_mov_const): Likewise.
9684 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
9685 in define_insn_and_split pattern.
9687 (mulsi3_v2): Add new matching variant.
9688 (andsi3_i): Cleanup pattern.
9689 (rotrsi3_cnt1): Update pattern.
9690 (rotrsi3_cnt8): New pattern.
9691 (ashlsi2_cnt8): Likewise.
9692 (ashlsi2_cnt16): Likewise.
9693 * config/arc/constraints.md (C0p): Update constraint.
9698 2019-06-10 Martin Liska <mliska@suse.cz>
9700 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
9701 Update coding style.
9702 (sem_item_optimizer::dump_cong_classes):
9703 Print how many items are in a non-singular class. Improve
9706 2019-06-10 Martin Liska <mliska@suse.cz>
9708 * value-prof.c (dump_histogram_value): Change dump format.
9709 (gimple_mod_subtract_transform): Remove legacy comment.
9711 2019-06-10 Martin Liska <mliska@suse.cz>
9713 * value-prof.c (dump_histogram_value): Print histogram values
9716 2019-06-10 Martin Liska <mliska@suse.cz>
9718 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
9719 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
9720 * ipa-profile.c (ipa_profile_generate_summary):
9721 Use get_most_common_single_value.
9722 * tree-profile.c (gimple_init_gcov_profiler):
9723 Instrument with __gcov_one_value_profiler_v2
9724 and __gcov_indirect_call_profiler_v4.
9725 * value-prof.c (dump_histogram_value):
9726 Print all values for HIST_TYPE_SINGLE_VALUE.
9727 (stream_out_histogram_value): Update assert for
9729 (stream_in_histogram_value): Set number of
9730 counters for HIST_TYPE_SINGLE_VALUE.
9731 (get_most_common_single_value): New.
9732 (gimple_divmod_fixed_value_transform):
9733 Use get_most_common_single_value.
9734 (gimple_ic_transform): Likewise.
9735 (gimple_stringops_transform): Likewise.
9736 (gimple_find_values_to_profile): Set number
9737 of counters for HIST_TYPE_SINGLE_VALUE.
9738 * value-prof.h (get_most_common_single_value): New.
9740 2019-06-10 Martin Liska <mliska@suse.cz>
9742 * hash-map.h: Pass default value to hash_table ctor.
9743 * hash-table.h: Add default value to call of a ctor.
9745 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
9747 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
9748 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
9750 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
9753 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
9754 Call pa_output_function_label.
9755 (TARGET_ASM_FUNCTION_PROLOGUE): define.
9756 * config/pa/pa-protos.h (pa_output_function_label): Declare.
9757 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
9759 (pa_linux_output_function_prologue): Declare.
9760 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
9761 (pa_output_function_label): New.
9762 (pa_output_function_prologue): Revise to use pa_output_function_label.
9763 (pa_linux_output_function_prologue): New.
9764 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
9766 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
9768 * tree-vrp.h (value_range_base::intersect): New.
9769 (value_range::intersect_helper): Move from here...
9770 (value_range_base::intersect_helper): ...to here.
9771 * tree-vrp.c (value_range::intersect_helper): Rename to...
9772 (value_range_base::intersect_helper): ...this, and rewrite to
9773 return a value instead of modifying THIS in place.
9774 Also, move equivalence handling...
9775 (value_range::intersect): ...here, while calling intersect_helper.
9776 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
9778 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
9780 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
9782 2019-06-07 Jakub Jelinek <jakub@redhat.com>
9784 * Makefile.in (genprogerr): Add condmd.
9785 (genprog): Remove it here.
9787 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
9789 * doc/invoke.texi (AMD GCN Options): Add gfx906.
9791 2019-06-07 Richard Biener <rguenther@suse.de>
9794 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
9795 that appear after user labels.
9797 2019-06-07 Martin Liska <mliska@suse.cz>
9799 * cselib.c (cselib_init): Disable hash table
9801 * hash-set.h: Pass new default argument to m_table.
9802 * hash-table.c: Add global variable with hash table
9804 * hash-table.h (Allocator>::hash_table): Add new argument
9806 (hashtab_chk_error): New.
9807 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
9808 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
9809 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
9811 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9813 * common.opt (flto-odr-type-merging): Ignore.
9814 * invoke.texi (-flto-odr-type-merging): Remove.
9815 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
9816 (can_be_vtable_hashed_p): Remove.
9817 (hash_odr_vtable): Remove.
9818 (odr_vtable_hasher::hash): Remove.
9819 (types_same_for_odr): Remove.
9820 (types_odr_comparable): Remove.
9821 (odr_vtable_hasher::equal): Remove.
9822 (odr_vtable_hash_type, odr_vtable_hash): Remove.
9823 (add_type_duplicate): Do not synchronize vtable and name hashtables.
9824 (get_odr_type): Do not use vtable hash.
9825 (dump_odr_type): Remove commented out code.
9826 (build_type_inheritance_graph): Do not allocate vtable hash.
9827 (rebuild_type_inheritance_graph): Do not delete vtable hash.
9828 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
9829 (odr_type_p): Likewise.
9830 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
9833 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9835 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
9836 immediately after same_types_for_tbaa_p returns -1 and continue
9837 looking for possible exact match; if matching types are arrays
9838 watch for partial overlaps.
9839 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
9840 (indirect_refs_may_alias_p): Do type based disambiguation first;
9843 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
9845 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
9847 2019-06-07 Martin Liska <mliska@suse.cz>
9849 * doc/invoke.texi: Remove param.
9850 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
9852 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
9853 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
9854 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
9855 * profile.c (instrument_values): Remove
9856 HIST_TYPE_INDIR_CALL_TOPN.
9857 * tree-profile.c (init_ic_make_global_vars):
9858 Always build __gcov_indirect_call only.
9859 (gimple_init_gcov_profiler): Remove usage
9860 of PARAM_INDIR_CALL_TOPN_PROFILE.
9861 (gimple_gen_ic_profiler): Likewise.
9862 * value-prof.c (dump_histogram_value): Likewise.
9863 (stream_in_histogram_value): Likewise.
9864 (gimple_indirect_call_to_profile): Likewise.
9865 (gimple_find_values_to_profile): Likewise.
9866 * value-prof.h (enum hist_type): Likewise.
9868 2019-06-07 Martin Liska <mliska@suse.cz>
9870 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
9873 2019-06-07 Martin Liska <mliska@suse.cz>
9875 PR tree-optimization/78902
9876 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
9877 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
9878 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9879 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9880 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
9881 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9882 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
9883 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
9884 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9885 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9886 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9887 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
9888 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
9890 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
9891 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
9892 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
9893 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9894 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9895 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
9896 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9897 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9898 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
9899 warn_unused_result attribute.
9900 (BUILT_IN_STRDUP): Likewise.
9901 (BUILT_IN_STRNDUP): Likewise.
9902 (BUILT_IN_ALLOCA): Likewise.
9903 (BUILT_IN_CALLOC): Likewise.
9904 (BUILT_IN_MALLOC): Likewise.
9905 (BUILT_IN_REALLOC): Likewise.
9907 2019-06-06 Jim Wilson <jimw@sifive.com>
9910 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
9911 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
9912 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
9914 2019-06-06 Martin Sebor <msebor@redhat.com>
9916 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
9917 (handle_builtin_malloc): Remove trailing spaces.
9918 (handle_builtin_memset): Same.
9919 (handle_builtin_memcmp): Same.
9920 (compute_string_length): Same.
9921 (determine_min_objsize): Same.
9922 (handle_builtin_string_cmp): Same.
9923 (handle_char_store): Same. Break up excessively long line.
9925 2019-06-06 Martin Jambor <mjambor@suse.cz>
9927 * tree-sra.c (build_reconstructed_reference): Drop the alignment
9930 2019-06-06 Martin Jambor <mjambor@suse.cz>
9932 * tree-sra.c (struct access): New field grp_same_access_path.
9933 (dump_access): Dump it.
9934 (build_reconstructed_reference): New function.
9935 (build_ref_for_model): Use it if possible.
9936 (path_comparable_for_same_access): New function.
9937 (same_access_path_p): Likewise.
9938 (sort_and_splice_var_accesses): Set the new flag.
9939 (analyze_access_subtree): Likewise.
9940 (propagate_subaccesses_across_link): Propagate zero value of the new
9941 flag down the access tree.
9943 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
9945 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
9946 * config/gcn/gcn.opt (gpu_type): Add gfx906.
9947 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
9948 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
9951 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9953 PR tree-optimization/90332
9954 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
9955 Handle VALS containing two vectors.
9956 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
9958 (@aarch64_combinez<mode>): ... This.
9959 (*aarch64_combinez_be<mode>): Rename to...
9960 (@aarch64_combinez_be<mode>): ... This.
9961 (vec_init<mode><Vhalf>): New define_expand.
9962 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
9964 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9966 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
9967 library functions only when not optimizing for size.
9968 (ashlsi3): Likewise.
9969 (ashrhi3): Likewise.
9970 (ashrsi3): Likewise.
9971 (lshrhi3): Likewise.
9972 (lshrsi3): Likewise.
9974 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
9976 PR rtl-optimization/88751
9977 * ira.c (ira): Use the number of the actually referenced registers
9978 when calculating the threshold.
9980 2019-06-06 Jakub Jelinek <jakub@redhat.com>
9982 * configure: Regenerate.
9984 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9986 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
9987 register if it is in memory, so the shift can be emulated with a rotate
9989 (ashrhi3): Likewise.
9990 (lshrhi3): Likewise.
9992 2019-06-06 Martin Liska <mliska@suse.cz>
9994 PR tree-optimization/87954
9995 * match.pd: Simplify mult where both arguments are 0 or 1.
9997 2019-06-06 Richard Biener <rguenther@suse.de>
9999 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
10000 put equivalences on UNDEFINED ranges.
10001 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10002 Make sure to drop defs of stmts added during simplification
10005 2019-06-06 Richard Biener <rguenther@suse.de>
10007 * tree-ssa-structalias.c: Include tree-cfg.h.
10008 (make_heapvar): Do not make heap vars artificial.
10009 (find_func_aliases_for_builtin_call): Handle stack allocation
10011 (find_func_aliases): Delay processing of simple enough returns
10013 (set_uids_in_ptset): Adjust.
10014 (find_what_var_points_to): Likewise.
10015 (solve_constraints): Do not dump points-to sets here.
10016 (compute_points_to_sets): Post-process return statements,
10017 amending the escaped solution. Dump points-to sets afterwards.
10018 (ipa_pta_execute): Dump points-to sets.
10020 2019-06-06 Martin Liska <mliska@suse.cz>
10023 * doc/install.texi: Fix HTML headers and
10024 titles for 'Installing GCC' pages.
10026 2019-06-06 Martin Liska <mliska@suse.cz>
10028 * ipa-icf-gimple.h (dump_message_1): Remove.
10029 (dump_message): Likewise.
10030 (return_false_with_message_1): Print also file.
10031 (return_false_with_msg): Likewise.
10032 (return_with_result): Likewise.
10033 (return_with_debug): Likewise.
10034 * ipa-icf.c (sem_function::equals_private): Remove call
10037 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10039 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
10040 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
10041 memory operand for it.
10042 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
10044 2019-06-05 Martin Sebor <msebor@redhat.com>
10046 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
10047 Adjust quoting and hyphenation.
10048 * convert.c (convert_to_real_1): Same.
10049 * gcc.c (driver_wrong_lang_callback): Same.
10050 (driver::handle_unrecognized_options): Same.
10051 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
10052 * opts-common.c (cmdline_handle_error): Same.
10053 (read_cmdline_option): Same.
10054 * opts-global.c (complain_wrong_lang): Same.
10055 (print_ignored_options): Same.
10056 (handle_common_deferred_options): Same.
10057 * pretty-print.h: Same.
10058 * print-rtl.c (debug_bb_n_slim): Same.
10059 * sched-rgn.c (make_pass_sched_fusion): Same.
10060 * tree-cfg.c (verify_gimple_assign_unary): Same.
10061 (verify_gimple_label): Same.
10062 * tree-ssa-operands.c (verify_ssa_operands): Same.
10063 * varasm.c (do_assemble_alias): Same.
10064 (assemble_alias): Same.
10066 2019-06-05 Richard Henderson <rth@twiddle.net>
10068 * config/alpha/alpha.c (direct_return): Move down after
10069 struct machine_function definition; use saved frame_size;
10071 (struct machine_function): Add sa_mask, sa_size, frame_size.
10072 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
10073 (alpha_compute_frame_layout): ... new function.
10074 (TARGET_COMPUTE_FRAME_LAYOUT): New.
10075 (alpha_initial_elimination_offset): Use saved sa_size.
10076 (alpha_vms_initial_elimination_offset): Likewise.
10077 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
10078 (alpha_expand_prologue): Use saved frame data. Merge integer
10079 and fp register save loops.
10080 (alpha_expand_epilogue): Likewise.
10081 (alpha_start_function): Use saved frame data.
10082 * config/alpha/alpha-protos.h (direct_return): Update.
10083 (alpha_sa_size): Remove.
10085 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
10087 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
10088 multiplication by a power-of-two value.
10089 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
10090 and turn the modulo operation into a masking operation.
10092 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10095 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
10096 with VOIDmode inner operands.
10098 2019-06-05 Richard Biener <rguenther@suse.de>
10100 PR middle-end/90726
10101 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10102 turn an expression graph into a tree.
10104 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10106 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
10108 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
10109 treat it like explicit monotonic schedule modifier.
10110 (expand_omp_for): Initialize has_lastprivate_conditional.
10111 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
10114 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
10115 references, lookup in in hash map MEM_REF operand instead of the
10117 (lower_omp_1): When looking for lastprivate conditional assignments,
10118 handle MEM_REFs with REFERENCE_TYPE operands.
10120 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
10121 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
10122 and references a VLA. Handle references to non-VLAs if is_simd
10123 all privatization clauses like reductions.
10124 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
10125 If omp_is_reference, use always omp simd arrays and set
10126 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
10127 fails, emit reference initialization.
10129 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10132 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
10133 _mm_mask_fpclass_sd_mask): New intrinsics.
10134 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
10135 * config/i386/i386-builtin.def
10136 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
10138 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
10139 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
10140 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
10141 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
10142 case QI_FTYPE_V2SF_INT): Ditto.
10143 * config/i386/sse.md
10144 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
10145 Extended to insnstructions with mask operands.
10147 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10149 * config/rs6000/constraints.md (define_register_constraint "wp"):
10151 (define_register_constraint "wq"): Delete.
10152 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10153 (rs6000_init_hard_regno_mode_ok): Adjust.
10154 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10155 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
10156 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
10157 (define_mode_attr VSa): Delete.
10158 (define_mode_attr VSisa): New.
10159 (rest of file): Adjust.
10160 * doc/md.texi (Machine Constraints): Adjust.
10162 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10164 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
10165 (define_attr "enabled"): Handle those new isa values.
10167 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10169 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
10170 (define_mode_attr VSr5): Delete.
10171 (define_mode_attr VStype_sqrt): Delete.
10172 (define_mode_iterator VSX_SPDP): Delete.
10173 (define_mode_attr VS_spdp_res): Delete.
10174 (define_mode_attr VS_spdp_insn): Delete.
10175 (define_mode_attr VS_spdp_type): Delete.
10176 (*vsx_sqrt<mode>2): Adjust.
10177 (vsx_<VS_spdp_insn>): Delete, split to...
10178 (vsx_xscvdpsp): ... this. New. And...
10179 (vsx_xvcvspdp): ... this. New. And...
10180 (vsx_xvcvdpsp): ... this. New.
10182 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10184 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
10186 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
10187 (rest of file): Adjust.
10189 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10191 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
10192 (vsx_extract_<mode>_var): Ditto.
10194 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10196 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
10199 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10201 * config/rs6000/constraints.md (define_register_constraint "ww"):
10203 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10204 (rs6000_init_hard_regno_mode_ok): Adjust.
10205 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10206 RS6000_CONSTRAINT_ww.
10207 * config/rs6000/rs6000.md: Adjust.
10208 * config/rs6000/vsx.md: Adjust.
10209 * doc/md.texi (Machine Constraints): Adjust.
10211 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10213 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
10214 (define_mode_attr sd): New.
10215 (define_mode_attr s): New.
10216 (define_mode_attr Ftrad): Delete.
10217 (define_mode_attr Fvsx): Delete.
10218 (define_mode_attr Fs): Delete.
10219 (rest of file): Use the new mode attributes.
10220 * config.rs6000/vsx.md: Use the new mode attributes.
10222 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10224 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
10227 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10229 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
10230 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
10231 used with VSX_B, VSX_D, or VSX_F, with just "wa".
10233 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
10236 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
10237 C++ with strict ANSI requirements.
10239 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
10241 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
10242 computations when step is 1.
10244 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10246 * config/rs6000/constraints.md (define_register_constraint "wf"):
10248 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10249 (rs6000_init_hard_regno_mode_ok): Adjust.
10250 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10251 RS6000_CONSTRAINT_wf.
10252 * config/rs6000/rs6000.md: Adjust.
10253 * config/rs6000/vsx.md: Adjust.
10254 * doc/md.texi (Machine Constraints): Adjust.
10256 2019-06-04 Andrew Pinski <apinski@marvell.com>
10258 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
10261 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10263 * config/rs6000/constraints.md (define_register_constraint "wd"):
10265 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10266 (rs6000_init_hard_regno_mode_ok): Adjust.
10267 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10268 RS6000_CONSTRAINT_wd.
10269 * config/rs6000/rs6000.md: Adjust.
10270 * config/rs6000/vsx.md: Adjust.
10271 * doc/md.texi (Machine Constraints): Adjust.
10273 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10275 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
10276 (rest of file): Adjust.
10278 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10280 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
10281 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
10282 (vsx_splat_<mode>_reg): Adjust.
10284 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10286 * config/rs6000/constraints.md (define_register_constraint "ws"):
10288 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10289 (rs6000_init_hard_regno_mode_ok): Adjust.
10290 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10291 RS6000_CONSTRAINT_ws.
10292 * config/rs6000/rs6000.md: Adjust.
10293 * config/rs6000/vsx.md: Adjust.
10294 * doc/md.texi (Machine Constraints): Adjust.
10296 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10298 * config/rs6000/constraints.md (define_register_constraint "wv"):
10300 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10301 (rs6000_init_hard_regno_mode_ok): Adjust.
10302 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10303 RS6000_CONSTRAINT_wv.
10304 * config/rs6000/rs6000.md: Adjust.
10305 * config/rs6000/vsx.md: Adjust.
10306 * doc/md.texi (Machine Constraints): Adjust.
10308 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10310 * config/rs6000/constraints.md (define_register_constraint "wi"):
10312 (define_register_constraint "wt"): Delete.
10313 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10314 (rs6000_init_hard_regno_mode_ok): Adjust.
10315 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10316 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
10317 * config/rs6000/rs6000.md: Adjust.
10318 * config/rs6000/vsx.md: Adjust.
10319 * doc/md.texi (Machine Constraints): Adjust.
10321 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10323 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
10325 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
10326 default_elf_asm_output_external.
10328 2019-06-04 Martin Liska <mliska@suse.cz>
10330 * ipa-icf.c (INCLUDE_LIST): Remove.
10331 (sem_item_optimizer::execute): Remove call to init_wpa.
10332 * ipa-icf.h (init_wpa): Remove.
10334 2019-06-04 Jakub Jelinek <jakub@redhat.com>
10336 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
10337 conditional on combined for simd.
10338 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
10340 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
10341 constructs, don't remove lastprivate_conditional_map, but instead set
10342 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
10343 to parent construct temporaries.
10344 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
10345 like !ctx->lastprivate_conditional_map.
10346 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
10347 use up->outer context instead of up.
10348 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
10349 gimple_omp_for_combined_p.
10350 (expand_omp_for_static_nochunk): Likewise.
10351 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10352 probably moved over into expand_omp_for_generic rather than being copied
10355 2019-06-04 Martin Liska <mliska@suse.cz>
10357 * value-prof.c (dump_histogram_value): Fix typo.
10358 (gimple_mod_subtract_transform): Likewise.
10360 2019-06-04 Richard Biener <rguenther@suse.de>
10362 PR middle-end/90726
10363 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10364 (tree_contains_chrecs): Likewise.
10365 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10366 exponential behaivor from ...
10367 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10369 (expression_expensive_p): Avoid exponential behavior and compute
10370 expanded size, rejecting any expansion.
10371 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10372 (idx_contains_abnormal_ssa_name_p): Likewise.
10373 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10374 (contains_abnormal_ssa_name_p): Simplify and use
10375 walk_tree_without_duplicates.
10377 2019-06-04 Richard Biener <rguenther@suse.de>
10379 PR tree-optimization/90738
10381 2019-06-03 Richard Biener <rguenther@suse.de>
10383 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10384 full reference tree and record in ref->ref.
10385 (vn_reference_lookup_3): Pass in original ref to
10386 ao_ref_init_from_vn_reference.
10387 (vn_reference_lookup): Likewise.
10388 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10389 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10390 Handle non-decl bases in the original reference.
10392 2019-06-04 Martin Liska <mliska@suse.cz>
10394 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10395 number of references.
10396 (sem_item_optimizer::do_congruence_step):
10397 (sem_item_optimizer::worklist_push): Dump how references
10399 (sem_item_optimizer::worklist_pop): Use heap.
10400 (sem_item_optimizer::process_cong_reduction): Likewise.
10401 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10403 2019-06-04 Martin Liska <mliska@suse.cz>
10405 * ipa-icf.h (struct sem_usage_pair_hash): New.
10406 (sem_usage_pair_hash::hash): Likewise.
10407 (sem_usage_pair_hash::equal): Likewise.
10408 (struct sem_usage_hash): Likewise.
10409 * ipa-icf.c (sem_item::sem_item): Initialize
10410 referenced_by_count.
10411 (sem_item::add_reference): Register a reference
10412 in ref_map and not in target->usages.
10413 (sem_item::setup): Remove initialization of
10415 (sem_item::~sem_item): Remove usage of dead vectors.
10416 (sem_item::dump): Remove dump of references.
10417 (sem_item_optimizer::sem_item_optimizer): Initialize
10419 (sem_item_optimizer::read_section): Remove useless
10421 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10422 (sem_item_optimizer::build_graph): Pass m_references
10423 to ::add_reference.
10424 (sem_item_optimizer::verify_classes): Remove usage of dead
10426 (sem_item_optimizer::traverse_congruence_split): Return true
10427 when a class is split.
10428 (sem_item_optimizer::do_congruence_step_for_index): Use
10429 hash_map for look up of (sem_item *, index). That brings
10430 significant speed up.
10431 (sem_item_optimizer::do_congruence_step): Return true
10432 when a split is done.
10433 (congruence_class::is_class_used): Use referenced_by_count.
10435 2019-06-04 Alan Modra <amodra@gmail.com>
10438 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10441 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10443 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10444 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10445 (rs6000_secondary_reload_simple_move): Adjust.
10446 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10447 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10448 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10451 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10452 (floatunssi<mode>2_lfiwzx): Adjust.
10453 (fix_trunc<mode>si2_stfiwx): Adjust.
10454 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10455 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10456 (mfpgpr): Mark as deprecated.
10457 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10458 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10459 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10461 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10463 * config/rs6000/constraints.md (define_register_constraint "wg"):
10465 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10466 RS6000_CONSTRAINT_wg.
10467 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10468 (rs6000_init_hard_regno_mode_ok): Adjust.
10469 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10470 Delete "wg" alternatives.
10471 * doc/md.texi (Machine Constraints): Adjust.
10473 2019-06-03 Alan Modra <amodra@gmail.com>
10475 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10476 (get_uncond_jump_length): Assert length less than INT_MAX and
10479 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10481 PR middle-end/64242
10482 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10484 (expand_builtin_nonlocal_goto): Likewise.
10486 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10488 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10489 (aarch64_asm_output_external): Declare.
10490 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10491 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10492 (aarch64_asm_output_alias): New.
10493 (aarch64_asm_output_external): New.
10494 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10495 (ASM_OUTPUT_EXTERNAL): Define.
10497 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10498 * tree-vrp.h (value_range_base::nonzero_p): New.
10499 (value_range_base::set_nonnull): Rename to...
10500 (value_range_base::set_nonzero): ...this.
10501 (value_range_base::set_null): Rename to...
10502 (value_range_base::set_zero): ...this.
10503 (value_range::set_nonnull): Remove.
10504 (value_range::set_null): Remove.
10505 * tree-vrp.c (range_is_null): Remove.
10506 (range_is_nonnull): Remove.
10507 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10508 instead of range_is_*null.
10509 (extract_range_from_unary_expr): Same.
10510 (value_range_base::set_nonnull): Rename to...
10511 (value_range_base::set_nonzero): ...this.
10512 (value_range::set_nonnull): Remove.
10513 (value_range_base::set_null): Rename to...
10514 (value_range_base::set_zero): ...this.
10515 (value_range::set_null): Remove.
10516 (extract_range_from_binary_expr): Rename set_*null uses to
10518 (extract_range_from_unary_expr): Same.
10519 (union_helper): Same.
10520 * vr-values.c (get_value_range): Use set_*zero instead of
10522 (vr_values::extract_range_from_binary_expr): Same.
10523 (vr_values::extract_range_basic): Same.
10525 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10528 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10530 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10532 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10533 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10535 (aarch64_<su>abd<mode>_3): ... This.
10536 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10538 2019-06-03 Richard Biener <rguenther@suse.de>
10540 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10541 full reference tree and record in ref->ref.
10542 (vn_reference_lookup_3): Pass in original ref to
10543 ao_ref_init_from_vn_reference.
10544 (vn_reference_lookup): Likewise.
10545 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10546 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10547 Handle non-decl bases in the original reference.
10549 2019-06-03 Martin Liska <mliska@suse.cz>
10551 * doc/generic.texi: Remove Java Trees.
10553 2019-06-03 Martin Liska <mliska@suse.cz>
10555 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10556 returns 0 when operands are equal.
10558 2019-06-03 Richard Biener <rguenther@suse.de>
10560 PR tree-optimization/90716
10561 * tree-loop-distribution.c (destroy_loop): Process blocks in
10564 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10567 * vector-builder.h (vector_builder::count_dups): New method.
10568 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10570 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10571 (vec_init<mode><Vel>): New pattern.
10572 * config/aarch64/aarch64.c (emit_insr): New function.
10573 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10574 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10575 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10576 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10578 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10580 PR tree-optimization/90681
10581 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10582 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10583 special case for SLP, but fail on non-groupped loads.
10585 2019-06-03 Martin Liska <mliska@suse.cz>
10587 * cfg.c (debug): Use TDF_DETAILS for debug and
10588 print edge info only once.
10590 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10593 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10595 2019-06-01 Martin Sebor <msebor@redhat.com>
10597 PR middle-end/90694
10598 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10600 2019-05-31 Jan Hubicka <jh@suse.cz>
10602 * alias.c: Include ipa-utils.h.
10603 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10604 * ipa-devirt.c (prevailing_odr_type): New.
10605 * ipa-utils.h (previaling_odr_type): Declare.
10607 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10608 Hongtao Liu <hongtao.liu@intel.com>
10611 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10612 NOTE_INSN_DELETED_LABEL check.
10614 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10615 Robert Suchanek <robert.suchanek@mips.com>
10617 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10618 and 3rd operands of the fmadd/fmsub/maddv builtin.
10620 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10622 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10623 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10624 on OMP_SIMD if not nested inside of worksharing loop that also has
10625 lastprivate conditional clause for the same decl.
10626 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10627 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10629 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10631 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10633 (lower_lastprivate_clauses): Likewise.
10634 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10635 calling lower_rec_input_clauses.
10636 (lower_omp_for): Likewise.
10637 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10638 clause on simd construct.
10639 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10640 OMP_CLAUSE__CONDTEMP_ clause is present.
10642 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10645 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10648 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10649 TEX_D32, TEX_D64 or TEX_D128.
10651 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10653 * match.pd (~(vec?cst1:cst2)): New transformation.
10655 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10657 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10658 ((size_t)(A /[ex] B) CMP C): New transformation.
10660 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10662 * doc/md.texi: Document define_insn_and_rewrite.
10663 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10664 * gensupport.c (queue_elem): Update comment.
10665 (replace_operands_with_dups): New function.
10666 (gen_rewrite_sequence): Likewise.
10667 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10668 * read-rtl.c (apply_subst_iterator): Likewise.
10669 (add_condition_to_rtx, named_rtx_p): Likewise.
10670 (rtx_reader::read_rtx_operand): Likewise.
10671 * config/aarch64/aarch64-sve.md
10672 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10673 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10674 define_insn_and_rewrite.
10675 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
10676 Remove separate define_split.
10678 2019-05-31 Jan Hubicka <jh@suse.cz>
10680 * tree-ssa-alias.c (type_has_components_p): New function.
10681 (aliasing_component_refs_p): Use it.
10683 2019-05-31 Martin Liska <mliska@suse.cz>
10685 * gdbhooks.py: Add const_tree to TreePrinter.
10687 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
10690 * common.opt (feliminate-unused-debug-symbols): Enable by default.
10691 * doc/invoke.texi (Debugging Options): Document new default of
10692 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
10694 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10696 PR tree-optimization/90671
10697 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
10698 template_block used to be empty on the first call, don't use
10699 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
10700 seq with bb_seq and set it with set_bb_seq.
10702 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
10704 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
10706 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10707 Michael Meissner <meissner@linux.ibm.com>
10709 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
10710 (prefixed_mem_operand): Likewise.
10711 (non_prefixed_mem_operand): Likewise.
10712 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
10714 * config/rs6000/rs6000.c (print_operand_address): Handle
10715 PC-relative addresses.
10716 (mode_supports_prefixed_address_p): New function.
10717 (rs6000_prefixed_address): New function.
10718 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
10719 (SYMBOL_REF_PCREL_P): Likewise.
10721 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10723 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
10724 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
10725 (gimplify_omp_for): If worksharing loop with lastprivate conditional
10726 is nested inside of parallel region, add _condtemp_ clause to both.
10727 * tree-nested.c (convert_nonlocal_omp_clauses,
10728 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
10730 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
10732 * omp-general.c (omp_extract_for_data): Compute it.
10733 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
10734 (lower_rec_input_clauses): Likewise.
10735 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
10736 clause is already present, just add one further one after it.
10737 (lower_lastprivate_clauses): Handle cond_ptr with array type.
10738 (lower_send_shared_vars): Clear _condtemp_ vars.
10739 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
10740 or section or taskgroup.
10741 * omp-expand.c (determine_parallel_type): Disallow combining only if
10742 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
10743 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
10744 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10745 expand_omp_for_static_chunk, expand_omp_for): Use
10746 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
10747 determine if a special set of API routines are needed and if condtemp
10748 needs to be initialized, while always initialize cond_var if
10749 fd->lastprivate_conditional is non-zero.
10751 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10752 Michael Meissner <meissner@linux.ibm.com>
10754 * config/rs6000/constraints.md (eI): New constraint.
10755 * config/rs6000/predicates.md (cint34_operand): New predicate.
10756 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
10757 (SIGNED_34BIT_OFFSET_P): Likewise.
10758 * doc/md.texi (eI): Document constraint.
10760 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
10762 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
10764 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10765 Michael Meissner <meissner@linux.ibm.com>
10767 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
10768 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
10769 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
10770 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
10771 (OTHER_FUTURE_MASKS): Likewise.
10772 (POWERPC_MASKS): Likewise.
10773 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
10774 specified without -mprefixed-addr or -mcpu=future. Error if
10775 -mprefixed-addr is specified without -mcpu=future.
10776 (rs6000_opt_masks): Add entry for prefixed-addr.
10777 * rs6000.opt (mprefixed-addr): New option.
10779 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
10781 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
10782 cfun->is_thunk check.
10784 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10786 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
10789 2019-05-30 Martin Liska <mliska@suse.cz>
10791 * gdbinit.in: Fix 'ptc' command. Add trt
10792 that prints TREE_TYPE($).
10794 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
10795 Alan Modra <amodra@gmail.com>
10797 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
10799 (rs6000_indirect_call_template_1): ...and here.
10800 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
10801 plt16_ha, plt16_lo, mtctr indirect calls. Use
10802 rs6000_pltseq_enum.
10803 (rs6000_decl_ok_for_sibcall): New function.
10804 (rs6000_function_ok_for_sibcall): Refactor.
10805 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
10806 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
10807 when pcrel. Reorganize.
10808 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
10809 * rs6000.h (rs6000_pltseq_enum): New enum.
10810 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
10811 (*pltseq_tocsave): Use rs6000_pltseq_enum.
10812 (*pltseq_plt16_ha): Likewise.
10813 (*pltseq_plt16_lo): Likewise.
10814 (*pltseq_mtctr): Likewise.
10815 (*pltseq_plt_pcrel): New insn.
10816 (*call_local_aix): Handle @notoc calls.
10817 (*call_value_local_aix): Likewise.
10818 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
10819 (*call_value_nonlocal_aix): Likewise.
10820 (*call_indirect_pcrel): New insn.
10821 (*call_value_indirect_pcrel): Likewise.
10823 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
10825 * config/i386/sse.md (*save_multiple<mode>): Rename from
10826 save_multiple<mode>.
10827 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
10828 (*restore_multiple_and_return<mode>): Rename from
10829 restore_multiple_and_return<mode>.
10830 (*restore_multiple_leave_return<mode>): Rename from
10831 restore_multiple_leave_return<mode>.
10833 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
10835 * config.gcc (rx-*-linux*): New target.
10836 * config/rx/elf.opt: New file.
10837 * config/rx/linux.h: Likewise.
10838 * config/rx/t-linux: Likewise.
10839 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
10841 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
10842 (ASM_APP_OFF): Likewise.
10843 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
10846 2019-05-29 Jan Hubicka <jh@suse.cz>
10848 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
10849 variants are pointer equivalent.
10851 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10853 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
10854 * config/aarch64/aarch64-sve2.md: New file.
10855 (<u>avg<mode>3_floor): New pattern.
10856 (<u>avg<mode>3_ceil): Likewise.
10857 (*<sur>h<addsub><mode>): Likewise.
10858 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
10859 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
10861 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10864 * optc-save-gen.awk: In cl_optimization_print, use correct condition
10865 for var_opt_string printing. In cl_optimization_print_diff, print
10866 (null) instead of invoking undefined behavior if one of the
10867 var_opt_string pointers is NULL and use && instead of first || in the
10868 guarding condition. For var_target_other options, handle const char *
10869 target variables similarly to const char * optimize node variables.
10871 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
10873 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
10874 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
10875 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
10876 Add autib1716 and pacib1716 initialisation.
10877 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
10878 for autib1716 and pacib1716.
10879 * config/aarch64/aarch64-protos.h (aarch64_key_type,
10880 aarch64_post_cfi_startproc): Define.
10881 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
10882 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
10883 aarch64_handle_pac_ret_protection): Set default sign key to A.
10884 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
10885 aarch64_expand_prologue): Add check for b-key.
10886 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
10887 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
10888 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
10889 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
10890 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
10891 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
10892 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10893 * config/aarch64/aarch64.md (do_return): Add check for b-key.
10894 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
10895 pauth_hint_num_a with pauth_hint_num.
10896 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
10897 pauth_hint_num_a with pauth_hint_num.
10898 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
10899 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
10900 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10901 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
10902 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
10903 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
10904 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
10905 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10906 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
10907 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
10908 UNSPEC_AUTIA1716 respectively.
10909 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
10910 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
10911 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
10912 * doc/invoke.texi (-mbranch-protection): Add b-key type.
10913 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
10914 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
10916 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10918 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
10919 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
10920 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
10921 explicit clause on combined parallel into implicit shared clause.
10922 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
10923 and firstprivate if the decl has one too from combined parallel to
10924 the worksharing construct.
10926 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
10927 Michael Meissner <meissner@linux.ibm.com>
10929 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
10931 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
10933 * rtl.h (LABEL_REF_P): New #define.
10935 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
10937 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
10939 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10941 * internal-fn.c: Marked mask_load_direct as vectorizable.
10942 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
10943 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
10944 combined even if masks different with allow_slp_p param.
10945 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
10946 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
10947 dissolve SLP-only vectorizable groups when SLP has been discarded.
10948 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
10949 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
10951 (vect_build_slp_tree_1): Fixed comment typo.
10952 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
10953 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
10954 loads for SLP only.
10955 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
10957 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
10959 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10961 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
10962 Remove obsolete use_thunk reference.
10963 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10964 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10965 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10966 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10967 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10968 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10969 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10970 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10971 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10973 2019-05-28 Nathan Sidwell <nathan@acm.org>
10975 * tree.h (IDENTIFIER_ANON_P): New.
10976 (anon_aggrname_format, anon_aggname_p): Don't declare.
10977 (make_anon_name): Declare.
10978 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
10979 (hash_tree): Likewise.
10980 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
10981 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
10982 (anon_cnt, make_anon_name): New.
10984 2019-05-28 Martin Liska <mliska@suse.cz>
10987 * opts-global.c (decode_options): Print help for all
10988 help_option_arguments.
10989 * opts.c (print_help): Add new argument.
10990 (common_handle_option): Remember all values into
10991 help_option_arguments.
10992 * opts.h (print_help): Add new argument.
10994 2019-05-28 Martin Liska <mliska@suse.cz>
10997 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
10998 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
10999 (func_checker::compare_bb): Call compare_loops.
11001 2019-05-27 Jakub Jelinek <jakub@redhat.com>
11003 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11004 on sections construct.
11005 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
11007 (lower_omp_sections): Handle lastprivate conditional.
11008 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
11009 lastprivate_conditional_map.
11010 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
11012 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
11013 critical, taskgroup and section regions when looking for a region
11014 with non-NULL lastprivate_conditional_map.
11016 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11018 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
11019 (*ix86_gen_sub3): Ditto.
11020 (*ix86_gen_sub3_carry): Ditto.
11021 (*ix86_gen_one_cmpl2): Ditto.
11022 (*ix86_gen_andsp): Ditto.
11023 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
11024 (gen_and2_insn): New static function.
11025 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
11026 Use gen_add3_insn instead of ix86_gen_add3.
11027 (ix86_expand_split_stack_prologue): Use gen_add2_insn
11028 instead of ix86_gen_add3.
11029 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
11030 Use gen_sub3_insn instead of ix86_gen_sub3.
11031 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
11032 instead of ix86_gen_add3.
11033 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
11034 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
11035 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
11036 * config/i386/i386-options.c (ix86_option_override_internal):
11037 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11038 ix86_gen_one_cmpl2 and ix86_gen_andsp.
11040 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
11042 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
11043 and DW_OP_GNU_const_index opcodes.
11045 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11047 * config/i386/i386.h (STACK_SIZE_MODE): Define.
11049 2019-05-27 Richard Biener <rguenther@suse.de>
11051 PR tree-optimization/90637
11052 * tree-ssa-sink.c (statement_sink_location): Honor the
11053 computed sink location for single-uses.
11055 2019-05-27 Richard Biener <rguenther@suse.de>
11057 PR middle-end/90610
11058 * match.pd (vec_perm): Avoid clobbering op0 when not generating
11061 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11063 * config/i386/i386.md (@sub<mode>3_carry): Rename
11064 from sub<mode>3_carry.
11065 (@leave_<mode>): New expander.
11066 (*leave): Rename from leave.
11067 (*leave_rex64): Rename from leave_rex64.
11068 (@monitorx_<mode>): Rename from monitorx_<mode>.
11069 (@clzero_<mode>): Rename from clzero_<mode>.
11070 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
11071 from sse3_monitor_<mode>.
11072 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
11073 (*ix86_gen_leave): Ditto.
11074 (*ix86_gen_monitor): Ditto.
11075 (*ix86_gen_monitorx): Ditto.
11076 (*ix86_gen_clzero): Ditto.
11077 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
11078 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
11079 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
11080 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
11081 Use gen_sse3_monitor instead of ix86_gen_monitor.
11082 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
11083 instead of ix86_gen_monitorx.
11084 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
11085 instead of ix86_gen_clzero.
11086 * config/i386/i386-options.c (ix86_option_override_internal):
11087 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
11088 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
11090 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11092 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
11093 Rename from tls_global_dynamic_64_<mode>.
11094 (@tls_local_dynamic_base_64_<mode>): Rename from
11095 tls_local_dynamic_base_64_<mode>.
11096 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
11097 Remove indirect function.
11098 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
11099 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
11100 instead of ix86_gen_tls_global_dynamic_64.
11101 Use gen_tls_local_dynamic_base_64 instead of
11102 ix86_gen_tls_local_dynamic_base_64.
11103 * config/i386/i386-options.c (ix86_option_override_internal):
11104 Do not initialize ix86_gen_tls_global_dynamic_64 and
11105 ix86_gen_tls_local_dynamic_base_64.
11107 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11109 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
11110 Rename from pro_epilogue_adjust_stack_<mode>_add.
11111 (@pro_epilogue_adjust_stack_sub_<mode>)
11112 Rename from pro_epilogue_adjust_stack_<mode>_sub.
11113 (@allocate_stack_worker_probe_<mode>):
11114 Rename from allocate_stack_worker_probe_<mode>.
11115 (allocate_stack): Use gen_allocate_stack_worker_probe.
11116 (probe_stack): Use gen_probe_stack_1.
11117 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
11118 (@adjust_stack_and_probe_<mode>): Rename from
11119 adjust_stack_and_probe<mode>.
11120 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
11121 (stack_protect_set): Use gen_stack_protect_set_1.
11122 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
11123 (stack_protect_test): Use gen_stack_protect_test_1.
11124 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
11125 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
11126 Remove indirect function.
11127 (*ix86_gen_adjust_stack_and_probe): Ditto.
11128 (*ix86_gen_probe_stack_range): Ditto.
11129 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
11130 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
11131 (ix86_adjust_stack_and_probe_stack_clash): Use
11132 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
11133 (ix86_adjust_stack_and_probe): Ditto.
11134 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
11135 of ix86_gen_probe_stack_range.
11136 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
11137 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
11138 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
11139 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
11140 CODE_FOR_stack_protect_test_{si,di}.
11141 * config/i386/i386-options.c (ix86_option_override_internal):
11142 Do not initialize ix86_gen_allocate_stack_worker,
11143 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
11145 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
11147 * doc/invoke.texi (Link Options): Many editorial changes around
11150 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11152 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
11153 pre-Solaris 11 referene and most Studio compiler details.
11155 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
11158 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
11159 DImode to SImode in floating-point registers on 64-bit target.
11160 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
11161 register_operand in xmpyu patterns.
11163 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11165 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
11166 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
11167 OMP_CLAUSE__REDUCTEMP_.
11168 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11169 OMP_CLAUSE__CONDTEMP_.
11170 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
11171 * tree-pretty-print.c (dump_omp_clause): Likewise.
11172 * tree-nested.c (convert_nonlocal_omp_clauses,
11173 convert_local_omp_clauses): Likewise.
11174 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
11175 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
11176 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
11178 (gimplify_omp_for): Warn and disable conditional modifier from
11179 lastprivate on loop iterators.
11180 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
11182 * omp-general.c (omp_extract_for_data): Initialize it.
11183 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
11185 (delete_omp_context): Delete it.
11186 (lower_lastprivate_conditional_clauses): New function.
11187 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
11188 handle lastprivate conditional clauses.
11189 (lower_reduction_clauses): Add CLIST argument, emit it into
11190 the critical section if any.
11191 (lower_omp_sections): Adjust lower_lastprivate_clauses and
11192 lower_reduction_clauses callers.
11193 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
11194 to lower_lastprivate_clauses.
11195 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
11196 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
11197 clist into a critical section if not emitted there already by
11198 lower_reduction_clauses.
11199 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
11201 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
11202 conditional variables.
11203 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
11205 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11206 expand_omp_for_static_chunk): Handle lastprivate conditional.
11207 (expand_omp_for): Handle fd.lastprivate_conditional like
11210 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11212 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
11213 kernel does not exit cleanly.
11214 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
11216 2019-05-24 Jason Merrill <jason@redhat.com>
11219 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11221 2019-05-24 Richard Biener <rguenther@suse.de>
11224 * tree-loop-distribution.c (struct partition): Add location
11226 (partition_alloc): Initialize all fields.
11227 (generate_memset_builtin): Use the location recorded in the
11228 partition for the generated call.
11229 (generate_memcpy_builtin): Likewise.
11230 (classify_partition): Record the location of a single store
11231 as location for the partition.
11233 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11235 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
11238 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
11241 * common/config/aarch64/aarch64-common.c
11242 (aarch64_rewrite_selected_cpu): Change local temporary variable
11243 type from unsigned long to uint64_t.
11244 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
11245 aarch64_get_extension_string_for_isa_flags): Change declaration to
11246 match new definition by replacing unsigned long with uint64_t.
11248 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11251 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
11252 gen_attr_type just once instead of 4-7 times. Formatting fixes.
11253 Handle stack_protect_test_<mode> codegen similarly to corresponding
11256 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
11258 * config/i386/darwin.h: Reject -mfentry*.
11259 * doc/sourcebuild.texi: Document mfentry target support.
11261 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11263 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
11264 Rename to rs6000_global_entry_point_prologue_needed_p. Return
11265 false for PC-relative functions.
11266 (rs6000_output_function_prologue): Change called function name to
11267 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
11268 name,1" for PC-relative functions.
11269 (rs6000_elf_declare_function_name): Change called function name to
11270 rs6000_global_entry_point_prologue_needed_p.
11272 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
11275 * config/i386/i386.c (gen_rtx_cost):
11276 Use ix86_tune_cost instead of ix86_cost.
11278 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11279 Michael Meissner <meissner@linux.ibm.com>
11280 Segher Boessenkool <segher@kernel.crashing.org>
11282 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
11284 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
11285 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
11286 (rs6000_fndecl_pcrel_p): Likewise.
11287 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
11288 error if -mpcrel is requested without -mcpu=future.
11289 (rs6000_opt_masks): Add entry for pcrel.
11290 (rs6000_fndecl_pcrel_p): New function.
11291 (rs6000_pcrel_p): Likewise.
11292 * config/rs6000/rs6000.opt (mpcrel): New option.
11293 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
11295 2019-05-23 Jan Hubicka <jh@suse.cz>
11296 Martin Liska <mliska@suse.cz>
11298 PR tree-optimization/90576
11299 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
11301 (aliasing_component_refs_p): Fix three way size compare conditional;
11302 give up earlier in case we can not decide on equivalence.
11304 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11305 Michael Meissner <meissner@linux.ibm.com>
11306 Segher Boessenkool <segher@kernel.crashing.org>
11308 * config.gcc: Add future cpu.
11309 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
11310 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
11312 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
11313 (RS6000_CPU): New instantiation for future cpu.
11314 * config/rs6000/rs6000-opts.h (enum processor_type): Add
11316 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
11317 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
11318 * config/rs6000/rs6000-tables.opt: Regenerate.
11319 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
11320 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
11321 (rs6000_machine_from_flags): Handle future cpu.
11322 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
11323 PROCESSOR_POWER9 for now.
11324 (rs6000_adjust_cost): Likewise.
11325 (rs6000_issue_rate): Likewise.
11326 (rs6000_register_move_cost): Likewise.
11327 (rs6000_opt_masks): Add entry for future.
11328 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
11329 (MASK_FUTURE): New #define.
11330 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
11331 * config/rs6000/rs6000.opt (mfuture): New target option.
11332 * doc/invoke.texi (mcpu): Add future cpu.
11334 2019-05-23 Martin Liska <mliska@suse.cz>
11337 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
11338 operation points to a temporary (pointed via tree_to_wide_ref)
11339 that is out of scope after the &.
11341 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
11344 * doc/extend.texi (Function Names): Add missing word.
11346 2019-05-23 Richard Biener <rguenther@suse.de>
11348 PR tree-optimization/88440
11349 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11351 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11353 (generate_memcpy_builtin): Likewise.
11354 (distribute_loop): Pass in whether to only distribute patterns.
11355 (prepare_perfect_loop_nest): Also allow size optimization.
11356 (pass_loop_distribution::execute): When optimizing a loop
11357 nest for size allow pattern replacement.
11359 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11362 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11365 2019-05-23 Martin Liska <mliska@suse.cz>
11368 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11369 expression similarly to gimplify_decl_expr.
11371 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11373 * cse.c (cse_dump_path): s/dump_file/f.
11375 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11378 * diagnostic-format-json.cc: Include "selftest.h".
11379 (json_from_expanded_location): Only add "file" key for non-NULL
11381 (json_from_location_range): Don't add "start" and "finish"
11382 children if they are UNKNOWN_LOCATION.
11383 (selftest::test_unknown_location): New selftest.
11384 (selftest::test_bad_endpoints): New selftest.
11385 (selftest::diagnostic_format_json_cc_tests): New function.
11386 * json.cc (json::object::get): New function.
11387 (selftest::test_object_get): New selftest.
11388 (selftest::json_cc_tests): Call it.
11389 * json.h (json::object::get): New decl.
11390 * selftest-run-tests.c (selftest::run_tests): Call
11391 selftest::diagnostic_format_json_cc_tests.
11392 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11395 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11396 Andrew Stubbs <amd@codesourcery.com>
11398 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11399 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11400 (kernel): Rename to...
11401 (main_kernel): ... this.
11402 (load_image): Load _init_array and _fini_array kernels.
11403 (run): Add argument for kernel to run.
11404 (main): Run init_array_kernel before main_kernel, and
11405 fini_array_kernel after.
11406 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11407 amdgpu_hsa_kernel attribute on functions.
11408 (gcn_disable_constructors): Delete.
11409 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11410 * config/gcn/crt0.c (size_t): Define.
11411 (_init_array, _fini_array): New.
11412 (__preinit_array_start, __preinit_array_end,
11413 __init_array_start, __init_array_end,
11414 __fini_array_start, __fini_array_end): Declare weak references.
11416 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11418 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11420 2019-05-22 Jason Merrill <jason@redhat.com>
11422 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11424 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11427 * config/i386/i386-options.c (ix86_init_machine_status): Set
11428 stack_frame_required to true.
11429 * config/i386/i386.c (ix86_get_frame_size): New function.
11430 (ix86_frame_pointer_required): Replace get_frame_size with
11431 ix86_get_frame_size.
11432 (ix86_compute_frame_layout): Likewise.
11433 (ix86_find_max_used_stack_alignment): Changed to void. Set
11434 stack_frame_required.
11435 (ix86_finalize_stack_frame_flags): Always call
11436 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11437 ix86_get_frame_size.
11438 * config/i386/i386.h (machine_function): Add stack_frame_required.
11440 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11442 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11444 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11446 * common/config/aarch64/aarch64-common.c
11447 (struct aarch64_option_extension, struct processor_name_to_arch,
11448 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11449 aarch64_contains_opt,
11450 aarch64_get_extension_string_for_isa_flags): Change type of
11451 variables storing flags to uint64_t.
11452 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11453 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11454 * config/aarch64/aarch64.c (struct processor,
11455 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11456 aarch64_validate_march, aarch64_override_options,
11457 aarch64_option_print, aarch64_handle_attr_isa_flags,
11458 aarch64_declare_function_name, aarch64_start_file): Make flag
11459 variables uint64_t.
11460 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11461 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11462 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11463 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11464 * config/aarch64/driver-aarch64.c
11465 (struct aarch64_arch_extension, struct aarch64_core_data,
11466 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11467 flag variables uint64_t.
11468 * doc/invoke.texi: Add documentation for new arguments.
11470 2019-05-22 Richard Biener <rguenther@suse.de>
11472 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11474 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11476 2019-05-22 Martin Liska <mliska@suse.cz>
11479 * doc/extend.texi: Document the change.
11481 2019-05-22 Richard Biener <rguenther@suse.de>
11483 PR tree-optimization/90450
11484 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11485 (mem_ref_hasher::equal): Check it.
11486 (mem_ref_alloc): Initialize it.
11487 (gather_mem_refs_stmt): Set it.
11489 2019-05-22 Richard Biener <rguenther@suse.de>
11491 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11493 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11496 2019-05-22 Alan Modra <amodra@gmail.com>
11498 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11499 (ASM_CPU_SPEC): Conditionally add -many.
11500 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11501 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11502 (rs6000_file_start): ..extracted from here, and modified to
11504 (rs6000_output_function_prologue): Emit .machine as necessary.
11506 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11508 PR middle-end/90553
11509 * ira-lives.c (process_bb_node_lives): Consider defs
11510 for a call insn to be die before the call, not after.
11512 * function.c (assign_parm_setup_block): Raise alignment of
11513 stacked parameter only for STRICT_ALIGNMENT targets.
11515 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11517 * config/rs6000/constraints.md (define_register_constraint "wz"):
11519 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11520 RS6000_CONSTRAINT_wz.
11521 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11522 (rs6000_init_hard_regno_mode_ok): Adjust.
11523 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11524 * doc/md.texi (Machine Constraints): Adjust.
11526 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11528 * config/rs6000/constraints.md (define_register_constraint "wl"):
11530 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11531 RS6000_CONSTRAINT_wl.
11532 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11533 (rs6000_init_hard_regno_mode_ok): Adjust.
11534 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11535 * doc/md.texi (Machine Constraints): Adjust.
11537 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11539 * config/rs6000/constraints.md (define_register_constraint "wm"):
11541 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11542 RS6000_CONSTRAINT_wm.
11543 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11544 (rs6000_init_hard_regno_mode_ok): Adjust.
11545 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11546 * doc/md.texi (Machine Constraints): Adjust.
11548 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11550 * config/rs6000/constraints.md (define_register_constraint "wk"):
11552 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11553 RS6000_CONSTRAINT_wk.
11554 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11555 (rs6000_init_hard_regno_mode_ok): Adjust.
11556 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11557 * doc/md.texi (Machine Constraints): Adjust.
11559 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11561 * config/rs6000/constraints.md (define_register_constraint "wj"):
11563 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11564 RS6000_CONSTRAINT_wj.
11565 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11566 (rs6000_init_hard_regno_mode_ok): Adjust.
11567 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11569 * config/rs6000/vsx.md: Ditto.
11570 * doc/md.texi (Machine Constraints): Adjust.
11572 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11574 * config/rs6000/constraints.md (define_register_constraint "wh"):
11576 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11577 RS6000_CONSTRAINT_wh.
11578 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11579 (rs6000_init_hard_regno_mode_ok): Adjust.
11580 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11581 * doc/md.texi (Machine Constraints): Adjust.
11583 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11586 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11587 Avoid calling gen_lowpart with CONST operand.
11589 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11591 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11592 field template_last_to_copy.
11593 (ssa_create_duplicates): Set it, and use it. Attempt to
11594 preserve more debug stmts.
11596 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11598 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11599 (signbit<mode>2): New expander
11601 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11604 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11605 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11607 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11609 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11610 %ebx and %ecx bafore calling cpuid with leaf 1 or
11611 non-constant leaf argument.
11613 2019-05-21 Alan Modra <amodra@gmail.com>
11616 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11617 power9 direct move cost.
11619 2019-05-21 Richard Biener <rguenther@suse.de>
11621 PR middle-end/90510
11622 * fold-const.c (fold_read_from_vector): New function.
11623 * fold-const.h (fold_read_from_vector): Declare.
11624 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11625 single-element insert permutations. Canonicalize selector
11626 further and fix issue with last commit.
11628 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11630 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11631 parameter with default value false to declaration.
11632 (split_edges_for_insertion): New inline function. Wrapper for
11633 split_critical_edges with for_edge_insertion_p = true.
11634 * tree-cfg.c (split_critical_edges): Don't split non-critical
11635 edges if for_edge_insertion_p is false. Fix whitespace.
11636 * tree-ssa-pre.c (pass_pre::execute): Call
11637 split_edges_for_insertion instead of split_critical_edges.
11638 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11639 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11640 (pass_data_sink_code): Update function name in the comment.
11642 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11644 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11645 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11646 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11647 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11650 2019-05-21 Martin Liska <mliska@suse.cz>
11652 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11654 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11655 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11657 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11659 (rs6000_function_arg): Likewise.
11660 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11661 (rs6000_expand_ternop_builtin): Use interval syntax.
11662 (get_element_number): Likewise.
11663 (altivec_expand_builtin): Likewise.
11664 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11666 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11670 * function.h (struct function): Add calls_eh_return member.
11671 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11672 gimplifying __builtin_eh_return call.
11673 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11675 (expand_call_inline): Or in src_cfun->calls_eh_return into
11676 dst_cfun->calls_eh_return.
11677 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
11678 cfun->calls_eh_return.
11679 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
11680 * lto-streamer-out.c (output_struct_function_base): Write
11683 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
11685 PR rtl-optimization/43147
11686 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
11687 IX86_BUILTIN_SHUFPD.
11689 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11691 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
11692 (refs_may_alias_p_1): ... here; update stats.
11693 (refs_may_alias_p): Do not update stats here.
11695 2019-05-20 Richard Biener <rguenther@suse.de>
11697 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
11698 doesn't produce pointers.
11699 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
11700 the first operand points to.
11702 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11704 * tree-ssa-alias.c (compare_sizes): New function.
11705 (sompare_type_sizes): New function
11706 (aliasing_component_refs_p): Use it.
11707 (indirect_ref_may_alias_decl_p): Likewise.
11709 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11711 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
11713 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11715 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
11716 (LIBLSAN_EARLY_SPEC): Likewise.
11717 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
11719 2019-05-20 Martin Liska <mliska@suse.cz>
11721 * config/i386/i386.c (ix86_libc_has_fast_function):
11722 Add ATTRIBUTE_UNUSED for the argument.
11724 2019-05-20 Richard Biener <rguenther@suse.de>
11726 * gimple-match-head.c: Include vec-perm-indices.h.
11727 * generic-match-head.c: Likewise.
11728 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
11730 * fold-const.c (fold_vec_perm): Export.
11731 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
11732 (match.pd): ...here.
11734 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11736 * cfgloop.h (struct loop): Add simdlen member.
11737 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
11738 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
11739 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
11740 as new argument to autovectorize_vector_sizes target hook. If
11741 loop->simdlen, pick up vector size where the vectorization factor
11742 is equal to loop->simd, and if there is none, fall back to the first
11744 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
11746 * omp-low.c (omp_clause_aligned_alignment): Likewise.
11747 * omp-general.c (omp_max_vf): Likewise.
11748 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
11749 * tree-vect-slp.c (vect_slp_bb): Likewise.
11750 * target.def (autovectorize_vector_sizes): Add ALL argument and
11752 * doc/tm.texi: Adjust documentation.
11753 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
11754 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
11755 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
11757 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
11758 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
11759 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
11760 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
11761 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
11762 preferred vector size is not 512-bit or 256-bit, just put those
11763 unpreferred ones last.
11765 2019-05-20 Martin Liska <mliska@suse.cz>
11767 * targhooks.c (default_libc_has_fast_function): New function.
11768 * targhooks.h (default_libc_has_fast_function): Likewise.
11770 2019-05-20 Martin Liska <mliska@suse.cz>
11772 PR middle-end/90263
11773 * builtins.c (expand_builtin_memory_copy_args): When having a
11774 target with fast mempcpy implementation do now use memcpy.
11775 * config/i386/i386.c (ix86_libc_has_fast_function): New.
11776 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
11777 * doc/tm.texi: Likewise.
11778 * doc/tm.texi.in: Likewise.
11780 * expr.c (emit_block_move_hints): Add 2 new arguments.
11781 * expr.h (emit_block_move_hints): Bail out when libcall
11782 to memcpy would be used.
11784 2019-05-20 Martin Liska <mliska@suse.cz>
11786 * profile-count.c: Add vertical spacing in order
11787 to separate functions.
11788 * profile-count.h: Likewise.
11790 2019-05-20 Martin Liska <mliska@suse.cz>
11792 * profile-count.h: Do not use full qualified
11794 * profile-count.c (profile_count::to_frequency): Likewise.
11796 2019-05-20 Martin Liska <mliska@suse.cz>
11798 * profile-count.h (enum profile_quality): Use capital letters
11799 for enum value names. Use the adjusted names.
11800 * profile-count.c: Use the adjusted names.
11802 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11804 * config/rs6000/constraints.md (define_register_constraint "wH"):
11806 (define_register_constraint "wI"): Delete.
11807 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11808 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
11809 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11810 (rs6000_init_hard_regno_mode_ok): Adjust.
11811 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
11812 resp. "d", or with "wa" as appropriate, all with "p8v".
11813 * config/rs6000/vsx.md: Ditto.
11814 * doc/md.texi (Machine Constraints): Adjust.
11816 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11818 * config/rs6000/constraints.md (define_register_constraint "wy"):
11820 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11821 RS6000_CONSTRAINT_wy.
11822 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11823 (rs6000_init_hard_regno_mode_ok): Adjust.
11824 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
11825 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
11826 (define_mode_attr Fisa): New.
11827 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
11828 * doc/md.texi (Machine Constraints): Adjust.
11830 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11832 * config/rs6000/constraints.md (define_register_constraint "wu"):
11834 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11835 RS6000_CONSTRAINT_wu.
11836 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11837 (rs6000_init_hard_regno_mode_ok): Adjust.
11838 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
11840 (define_mode_attr Fa): Delete.
11841 * config/rs6000/vsx.md: Ditto.
11842 * doc/md.texi (Machine Constraints): Adjust.
11844 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11846 * config/rs6000/constraints.md (define_register_constraint "wJ"):
11848 (define_register_constraint "wK"): Delete.
11849 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11850 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
11851 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11852 (rs6000_init_hard_regno_mode_ok): Adjust.
11853 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
11854 Replace "wK" constraint by "wH" with "p9v".
11855 * config/rs6000/vsx.md: Ditto.
11856 * doc/md.texi (Machine Constraints): Adjust.
11858 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11860 * config/rs6000/constraints.md (define_register_constraint "wb"):
11862 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11863 RS6000_CONSTRAINT_wb.
11864 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11865 (rs6000_init_hard_regno_mode_ok): Adjust.
11866 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
11867 * config/rs6000/vsx.md: Ditto.
11868 * doc/md.texi (Machine Constraints): Adjust.
11870 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11872 * config/rs6000/constraints.md (define_register_constraint "wo"):
11874 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11875 RS6000_CONSTRAINT_wo.
11876 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11877 (rs6000_init_hard_regno_mode_ok): Adjust.
11878 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
11879 * config/rs6000/altivec.md: Ditto.
11880 * doc/md.texi (Machine Constraints): Adjust.
11882 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11884 * config/darwin-c.c (darwin_register_objc_includes): Do not
11885 prepend the sysroot when building gnu-runtime header search
11888 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11890 * config/darwin.c (darwin_file_end): Use switch_to_section ()
11891 instead of direct output of the asm.
11893 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11895 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
11896 argument to be type bool (was int before).
11897 (rs6000_emit_epilogue): Simplify some code. Declare some variables
11898 at first use. Use type bool for some variables. Fix a theoretical
11899 eh_return bug for svr4.
11901 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11903 * config/rs6000/rs6000.md (isa): New attribute.
11904 (enabled): New attribute.
11906 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
11908 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
11909 assemble_start_function and assemble_end_function.
11911 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
11913 PR middle-end/89433
11914 * omp-general.c (oacc_verify_routine_clauses): Change formal
11915 parameters. Add checking if already marked with an OpenACC
11916 'routine' directive. Adjust all users.
11918 PR middle-end/89433
11919 * omp-general.c (oacc_build_routine_dims): Move some of its
11921 (oacc_verify_routine_clauses): ... this new function.
11922 * omp-general.h (oacc_verify_routine_clauses): New prototype.
11924 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11926 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
11927 formating of picbase labels to match other ports.
11929 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11931 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
11932 in the generated code.
11934 2019-05-16 Martin Sebor <msebor@redhat.com>
11936 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
11937 identifiers, keywords, operators, and types in diagnostics. Correct
11938 quoting, spelling, and sentence capitalization issues.
11939 (expand_builtin_atomic_is_lock_free): Same.
11940 (fold_builtin_next_arg): Same.
11941 * cfgexpand.c (expand_one_var): Same.
11942 (tree_conflicts_with_clobbers_p): Same.
11943 (expand_asm_stmt): Same.
11944 (verify_loop_structure): Same.
11945 * cgraphunit.c (process_function_and_variable_attributes): Same.
11946 * collect-utils.c (collect_execute): Same.
11947 * collect2.c (maybe_run_lto_and_relink): Same.
11948 (is_lto_object_file): Same.
11949 (scan_prog_file): Same.
11950 * convert.c (convert_to_real_1): Same.
11951 * dwarf2out.c (dwarf2out_begin_prologue): Same.
11952 * except.c (verify_eh_tree): Same.
11953 * gcc.c (execute): Same.
11954 (eval_spec_function): Same.
11955 (run_attempt): Same.
11956 (driver::set_up_specs): Same.
11957 (compare_debug_auxbase_opt_spec_function): Same.
11958 * gcov-tool.c (unlink_gcda_file): Same.
11960 (do_rewrite): Same.
11961 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
11962 * gimplify.c (gimplify_asm_expr): Same.
11963 (gimplify_adjust_omp_clauses): Same.
11964 * hsa-gen.c (gen_hsa_addr_insns): Same.
11965 (gen_hsa_insns_for_load): Same.
11966 (gen_hsa_cmp_insn_from_gimple): Same.
11967 (gen_hsa_insns_for_operation_assignment): Same.
11968 (gen_get_level): Same.
11969 (gen_hsa_alloca): Same.
11970 (omp_simple_builtin::generate): Same.
11971 (gen_hsa_atomic_for_builtin): Same.
11972 (gen_hsa_insns_for_call): Same.
11973 * input.c (dump_location_info): Same.
11974 * ipa-devirt.c (compare_virtual_tables): Same.
11975 * ira.c (ira_setup_eliminable_regset): Same.
11976 * lra-assigns.c (lra_assign): Same.
11977 * lra-constraints.c (lra_constraints): Same.
11978 * lto-streamer-in.c (lto_input_mode_table): Same.
11979 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
11980 (merge_and_complain): Same.
11981 (compile_offload_image): Same.
11982 (compile_images_for_offload_targets): Same.
11983 (debug_objcopy): Same.
11986 * opts.c (print_specific_help): Same.
11987 (parse_no_sanitize_attribute): Same.
11988 (print_help): Same.
11989 (handle_param): Same.
11990 * plugin.c (add_new_plugin): Same.
11991 (parse_plugin_arg_opt): Same.
11992 (try_init_one_plugin): Same.
11993 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
11994 operators, and types in diagnostics. Correct quoting and spelling
11996 * read-rtl-function.c (parse_edge_flag_token): Same.
11997 (function_reader::parse_enum_value): Same.
11998 * reg-stack.c (check_asm_stack_operands): Same.
11999 * regcprop.c (validate_value_data): Same.
12000 * sched-rgn.c (make_pass_sched_fusion): Same.
12001 * stmt.c (check_unique_operand_names): Same.
12002 * targhooks.c (default_target_option_pragma_parse): Same.
12003 * tlink.c (recompile_files): Same.
12004 * toplev.c (process_options): Same.
12005 (do_compile): Same.
12006 * trans-mem.c (diagnose_tm_1): Same.
12007 (ipa_tm_scan_irr_block): Same.
12008 (ipa_tm_diagnose_transaction): Same.
12009 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
12010 format a tree code name in a diagnostic.
12011 (verify_types_in_gimple_min_lval): Same.
12012 (verify_types_in_gimple_reference): Same.
12013 (verify_gimple_call): Same.
12014 (verify_gimple_assign_unary): Same.
12015 (verify_gimple_assign_binary): Same.
12016 (verify_gimple_assign_ternary): Same.
12017 (verify_gimple_assign_single): Same.
12018 (verify_gimple_switch): Same.
12019 (verify_gimple_label): Same.
12020 (verify_gimple_phi): Same.
12021 (verify_gimple_in_seq): Same.
12022 (verify_eh_throw_stmt_node): Same.
12023 (collect_subblocks): Same.
12024 (gimple_verify_flow_info): Same.
12025 (do_warn_unused_result): Same.
12026 * tree-inline.c (expand_call_inline): Same.
12027 * tree-into-ssa.c (update_ssa): Same.
12028 * tree.c (tree_int_cst_elt_check_failed): Same.
12029 (tree_vec_elt_check_failed): Same.
12030 (omp_clause_operand_check_failed): Same.
12031 (verify_type_variant): Same.
12032 (verify_type): Same.
12033 * value-prof.c (verify_histograms): Same.
12034 * varasm.c (assemble_start_function): Same.
12036 2019-05-16 Martin Sebor <msebor@redhat.com>
12038 * config/i386/i386-expand.c (get_element_number): Quote keywords
12039 and other internal names in diagnostics. Adjust other diagnostic
12040 formatting issues noted by -Wformat-diag.
12041 * config/i386/i386-features.c
12042 (ix86_mangle_function_version_assembler_name): Same.
12043 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
12044 * config/i386/i386.c (ix86_function_type_abi): Same.
12045 (ix86_function_ms_hook_prologue): Same.
12046 (classify_argument): Same.
12047 (ix86_expand_prologue): Same.
12048 (ix86_md_asm_adjust): Same.
12049 (ix86_memmodel_check): Same.
12051 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
12053 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
12054 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
12057 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
12060 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
12061 intrinsics without SSE/SSE2/SSSE3.
12062 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
12064 (*mmx_uavgv8qi3): Likewise.
12066 2019-05-17 Richard Biener <rguenther@suse.de>
12068 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
12069 VEC_PERM_EXPR as __VEC_PERM with -gimple.
12071 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
12073 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
12074 vec_sldw insn pattern.
12076 2019-05-17 Richard Biener <rguenther@suse.de>
12078 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
12080 2019-05-17 Martin Liska <mliska@suse.cz>
12083 * toplev.c (output_stack_usage): With LTO and sanitizer it
12084 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
12085 has no file location.
12087 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12090 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
12091 sz0 is equal to sz1, instead return false in that case.
12093 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
12094 has non-constant expression, force sctx.lane and use two
12095 argument IFN_GOMP_SIMD_LANE instead of single argument.
12096 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
12097 two argument IFN_GOMP_SIMD_LANE without lhs.
12098 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
12100 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
12102 (LOOP_REQUIRES_VERSIONING): Or in
12103 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
12104 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12106 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
12107 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
12108 from simd if clause if needed.
12110 2019-05-16 Richard Biener <rguenther@suse.de>
12112 * tree-affine.c (expr_to_aff_combination): New function split
12114 (tree_to_aff_combination): ... here.
12115 (aff_combination_expand): Avoid building a GENERIC tree.
12117 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
12119 * cgraphunit.c (cgraph_node::expand_thunk): Remove
12120 assemble_start_function and assemble_end_function calls.
12121 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
12122 assemble_start_function and assemble_end_function.
12123 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
12124 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
12125 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
12126 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
12127 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
12128 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
12129 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
12130 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
12131 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12132 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12133 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12134 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
12136 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12137 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
12138 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
12139 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
12140 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12141 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12142 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
12143 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
12144 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12145 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12146 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12147 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12148 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
12149 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
12151 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12152 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12153 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
12155 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
12157 * tree-ssa-alias.c (alias_stats): Add
12158 aliasing_component_refs_p_may_alias and
12159 aliasing_component_refs_p_no_alias.
12160 (dump_alias_stats): Print aliasing_component_refs_p stats.
12161 (aliasing_component_refs_p): Update stats.
12163 2019-05-16 Martin Liska <mliska@suse.cz>
12166 * multiple_target.c (expand_target_clones): Do not allow
12167 target_clones being used with a symbol that is an alias.
12169 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
12171 PR tree-optimization/90394
12172 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
12173 positives rather than ICE for cases where (code2 == NE_EXPR
12174 && code1 == BIT_AND_EXPR).
12176 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12179 * tree-core.h (struct tree_decl_common): Document
12180 decl_nonshareable_flag for PARM_DECLs.
12181 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
12182 * calls.c (expand_call): Don't try tail call if caller
12183 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
12184 passed on the stack and callee needs to pass any arguments on the
12186 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12187 else if instead of series of mutually exclusive ifs. Handle
12188 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
12189 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12191 * lto-streamer.h (LTO_major_version): Bump to 9.
12193 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
12195 PR tree-optimization/90106
12196 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
12197 new parameter as new internal function call, also move it to new
12199 (use_internal_fn): Pass internal function call to
12200 shrink_wrap_one_built_in_call_with_conds.
12202 2019-05-15 Jakub Jelinek <jakub@redhat.com>
12204 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
12206 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
12207 safelen_int and set loop->dont_vectorize.
12209 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12212 * config/i386/i386-builtin.def: Enable MMX intrinsics with
12214 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12216 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
12217 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
12218 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
12221 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12224 * config/i386/mmx.md (*vec_dupv2sf): Changed to
12225 define_insn_and_split to support SSE emulation.
12226 (*vec_extractv2sf_0): Likewise.
12227 (*vec_extractv2sf_1): Likewise.
12228 (*vec_extractv2si_0): Likewise.
12229 (*vec_extractv2si_1): Likewise.
12230 (*vec_extractv2si_zext_mem): Likewise.
12231 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
12232 (vec_extractv2sf_1 splitter): Likewise.
12233 (vec_extractv2sfsf): Likewise.
12234 (vec_setv2si): Likewise.
12235 (vec_extractv2si_1 splitter): Likewise.
12236 (vec_extractv2sisi): Likewise.
12237 (vec_setv4hi): Likewise.
12238 (vec_extractv4hihi): Likewise.
12239 (vec_setv8qi): Likewise.
12240 (vec_extractv8qiqi): Likewise.
12241 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12242 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
12243 (vec_extractv2sisi): Likewise.
12244 (vec_extractv4hihi): Likewise.
12245 (vec_extractv8qiqi): Likewise.
12246 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12247 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
12248 (vec_initv2sisi): Likewise.
12249 (vec_initv4hihi): Likewise.
12250 (vec_initv8qiqi): Likewise.
12251 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
12252 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
12253 (vec_setv4hi): Likewise.
12254 (vec_setv8qi): Likewise.
12256 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12259 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
12260 TARGET_MMX_WITH_SSE.
12261 (MMXMODE:*mov<mode>_internal): Likewise.
12262 (MMXMODE:movmisalign<mode>): Likewise.
12264 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
12267 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
12268 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
12269 (sse2_cvtpd2pi): Ditto.
12270 (sse2_cvttpd2pi): Ditto.
12271 (*vec_concatv2sf_sse4_1): Ditto.
12272 (*vec_concatv2sf_sse): Ditto.
12273 (*vec_concatv2si_sse4_1): Ditto.
12274 (*vec_concatv2si): Ditto.
12275 (*vec_concatv4si_0): Ditto.
12276 (*vec_concatv2di_0): Ditto.
12278 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12281 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
12283 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12286 * config/i386/sse.md (ssse3_palignrdi): Changed to
12287 define_insn_and_split to support SSE emulation.
12289 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12292 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
12294 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12297 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
12298 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12301 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12304 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
12305 or TARGET_MMX_WITH_SSE.
12306 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
12308 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12311 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
12313 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12316 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
12317 Changed to define_insn_and_split to support SSE emulation.
12319 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12322 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
12323 Changed to define_insn_and_split to support SSE emulation.
12325 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12328 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
12329 (*mmx_<emms>): This.
12330 (mmx_<emms>): New expander.
12332 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12335 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
12337 (*sse2_umulv1siv1di3): Add SSE2 emulation.
12339 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12342 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
12344 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12347 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
12349 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12352 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12353 TARGET_MMX_WITH_SSE.
12354 (*mmx_uavgv4hi3): Add SSE emulation.
12356 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12359 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12360 and TARGET_MMX_WITH_SSE.
12361 (*mmx_uavgv8qi3): Add SSE emulation.
12363 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12366 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12367 maskmovdqu for __MMX_WITH_SSE__.
12369 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12372 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12373 TARGET_MMX and TARGET_MMX_WITH_SSE.
12374 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12376 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12379 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12380 define_insn_and_split to support SSE emulation.
12382 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12385 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12386 and TARGET_MMX_WITH_SSE.
12387 (mmx_<code>v8qi3): Likewise.
12388 (smaxmin:<code>v4hi3): New.
12389 (umaxmin:<code>v8qi3): Likewise.
12390 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12391 (umaxmin:*mmx_<code>v8qi3): Likewise.
12393 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12396 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12397 TARGET_MMX_WITH_SSE.
12398 (*mmx_pinsrw): Add SSE emulation.
12400 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12403 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12405 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12408 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12409 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12412 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12415 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12416 (sse_cvttps2pi): Likewise.
12418 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12421 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12422 TARGET_MMX_WITH_SSE.
12423 (mmx_pshufw_1): Add SSE emulation.
12424 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12425 TARGET_MMX_WITH_SSE to support SSE emulation.
12427 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12430 * config/i386/constraints.md (Yw): New constraint.
12431 * config/i386/mmx.md (*vec_dupv2si): Changed to
12432 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12433 support SSE emulation.
12435 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12438 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12439 TARGET_MMX_WITH_SSE.
12440 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12442 (mmx_gt<mode>3): Likewise.
12444 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12447 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12448 TARGET_MMX_WITH_SSE. Add SSE support.
12450 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12453 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12454 TARGET_MMX_WITH_SSE.
12455 (any_logic:<code><mode>3): New.
12456 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12459 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12462 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12463 TARGET_MMX_WITH_SSE. Add SSE emulation.
12464 (mmx_<shift_insn><mode>3): Likewise.
12465 (ashr<mode>3): New.
12466 (<shift_insn><mode>3): Likewise.
12468 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12471 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12472 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12474 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12477 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12478 TARGET_MMX_WITH_SSE.
12479 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12482 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12485 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12486 TARGET_MMX_WITH_SSE.
12488 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12491 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12494 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12495 (plusminus:mmx_<plusminus_insn><mode>3): Check
12496 TARGET_MMX_WITH_SSE.
12497 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12498 (<plusminus_insn><mode>3): New.
12499 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12500 (*mmx_<plusminus_insn><mode>3): Likewise.
12502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12505 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12506 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12508 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12509 define_insn_and_split to support SSE emulation.
12510 (mmx_punpcklbw): Likewise.
12511 (mmx_punpckhwd): Likewise.
12512 (mmx_punpcklwd): Likewise.
12513 (mmx_punpckhdq): Likewise.
12514 (mmx_punpckldq): Likewise.
12516 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12517 Uros Bizjak <ubizjak@gmail.com>
12520 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12522 (ix86_split_mmx_pack): Likewise.
12523 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12525 (ix86_split_mmx_pack): Likewise.
12526 * config/i386/i386.md (mmx_isa): New.
12527 (enabled): Also check mmx_isa.
12528 * config/i386/mmx.md (any_s_truncate): New code iterator.
12529 (s_trunsuffix): New code attr.
12530 (mmx_packsswb): Removed.
12531 (mmx_packssdw): Likewise.
12532 (mmx_packuswb): Likewise.
12533 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12534 MMX packsswb/packuswb with SSE2.
12535 (mmx_packssdw): Likewise.
12536 * config/i386/predicates.md (register_mmxmem_operand): New.
12538 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12541 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12542 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12543 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12544 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12545 (ix86_vector_mode_supported_p): Likewise.
12546 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12548 2019-05-15 Martin Liska <mliska@suse.cz>
12550 PR middle-end/90478
12551 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12552 Check for overflow.
12554 2019-05-15 Richard Biener <rguenther@suse.de>
12556 * tree-into-ssa.c (pass_build_ssa::execute): Run
12557 update_address_taken before going into SSA.
12559 2019-05-15 Richard Biener <rguenther@suse.de>
12561 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12562 as __BIT_FIELD_REF with type with -gimple.
12564 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12566 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12567 semantically equivalent branches (left over after prior refactorings).
12569 2019-05-15 Richard Biener <rguenther@suse.de>
12571 PR tree-optimization/88828
12572 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12575 2019-05-14 Richard Biener <rguenther@suse.de>
12577 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12578 as __VIEW_CONVERT with -gimple.
12580 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12583 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12586 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12588 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12589 define_split to become a define_insn_and_split.
12591 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12593 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12595 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12596 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12597 (sibcall_epilogue): Adjust.
12598 (epilogue): Adjust.
12600 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12602 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12603 to unsupported ones.
12604 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12605 * config.host: Likewise.
12606 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12607 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12608 __svr4__]: Remove "brand" fallback.
12609 [!KSTAT_DATA_STRING]: Remove.
12610 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12612 (comdat_group): Likewise.
12613 (set_have_as_tls): Likewise.
12614 (gcc_cv_target_dl_iterate_phdr): Likewise.
12615 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12616 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12617 * configure: Regenerate.
12618 * doc/install.texi: Simplify Solaris target triplets.
12619 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12620 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12621 Remove Solaris 10 references.
12622 Remove obsolete Solaris bug reference.
12623 (Specific, sparc-sun-solaris2.10): Remove.
12625 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12627 * config/i386/i386.md (any_div): New code iterator.
12628 (paired_mod): New code attribute.
12629 (sgnprefix): Handle DIV and UDIV RTXes.
12631 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12632 and udivmod<mode>4 patterns using any_div code iterator.
12633 (divmod splitters): Macroize splitters using any_div code iterator.
12634 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12635 (*udivmodsi4_pow2_zext_2): Ditto.
12636 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12637 and *udivmod<mode>4_noext patterns using any_div code iterator.
12638 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12639 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12640 patterns using any_div code iterator.
12641 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12642 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12643 patterns using any_div code iterator.
12644 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12645 udivmodhiqi3 patterns using any_extend code iterator.
12647 2019-05-14 Richard Biener <rguenther@suse.de>
12648 H.J. Lu <hongjiu.lu@intel.com>
12650 PR tree-optimization/88828
12651 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12652 permuting in a single non-constant element not extracted
12655 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12657 * internal-fn.def (SIGNBIT): New.
12658 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12660 (signbitv4sf2): Likewise.
12662 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12665 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12666 next insn when the SRC reg is dead.
12668 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12670 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12671 (alloc_cand_and_find_basis): Ditto.
12672 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12673 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12674 (create_add_imm_cand, slsr_process_cast): Ditto.
12675 (slsr_process_copy, replace_mult_candidate): Ditto.
12676 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
12677 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
12678 (pass_strength_reduction::execute): Init the first NULL element.
12680 2019-05-13 Nathan Sidwell <nathan@acm.org>
12682 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
12683 (run_attempt): Reformat line break.
12685 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
12688 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
12689 data registers in sibcall epilogues.
12690 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12692 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
12695 * configure.ac (--enable-frame-pointer):
12696 Disable by default for cygwin and mingw.
12697 * configure: Regenerate.
12699 2019-05-13 Nathan Sidwell <nathan@acm.org>
12701 * dwarf2out.c (breakout_comdat_types): Move comment to correct
12703 (const_ok_for_output_1): Balance parens around #if/#else/#endif
12704 (gen_member_die): Move abstract origin check earlier. Only VARs
12705 can be static_inline_p. Simplify splicing control flow.
12707 2019-05-13 Richard Biener <rguenther@suse.de>
12709 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
12711 (vect_build_slp_tree_1): Likewise.
12713 2019-05-13 Richard Biener <rguenther@suse.de>
12715 PR tree-optimization/90402
12716 * tree-if-conv.c (tree_if_conversion): Value number only
12717 the loop body by making the latch an exit of the region
12719 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
12721 (do_rpo_vn): Deal with multiple edges into the entry block
12722 that are not backedges inside the region by skipping PHIs
12723 of the entry block.
12725 2019-05-13 Richard Biener <rguenther@suse.de>
12727 PR tree-optimization/90316
12728 * tree-ssa-pre.c (insert_aux): Fold into ...
12729 (insert): ... this function. Use a RPO walk to reduce the
12730 number of required iterations.
12732 2019-05-13 Martin Liska <mliska@suse.cz>
12734 PR tree-optimization/90416
12735 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
12736 string instead of passing the second part as va_arg argument.
12738 2019-05-13 Martin Liska <mliska@suse.cz>
12740 PR gcov-profile/90380
12741 * gcov.c (handle_cycle): Do not support zero cycle count,
12742 it should not be possible.
12743 (path_contains_zero_cycle_arc): New function.
12744 (circuit): Ignore zero cycle arc counts.
12746 2019-05-13 Martin Liska <mliska@suse.cz>
12748 PR gcov-profile/90380
12749 * gcov.c (enum loop_type): Remove the enum and
12751 (handle_cycle): Assert that we should not reach
12753 (circuit): Use loop_found instead of a tri-state loop_type.
12754 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
12757 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12760 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
12761 (ix86_output_indirect_branch_via_reg): Use output mechanism
12762 accounting for __USER_LABEL_PREFIX__.
12763 (ix86_output_indirect_branch_via_push): Likewise.
12764 (ix86_output_function_return): Likewise.
12765 (ix86_output_indirect_function_return): Likewise.
12767 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
12769 * doc/md.texi: Document use of code attributes in rtx patterns.
12770 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
12771 * read-rtl.c (find_code): Split out search loops into...
12772 (maybe_find_code): ...this new function.
12773 (check_code_iterator): Make the error message more informative.
12774 (check_code_attribute): New function.
12775 (rtx_reader::rtx_alloc_for_name): Likewise.
12776 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
12777 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
12778 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
12779 <max_opp> directly as an rtx code instead of via a match_operator.
12780 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
12781 (<su>abd<mode>_3): Update accordingly.
12783 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12785 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
12786 is given, print the state of the EH "save world" computation for
12789 2019-05-11 Jakub Jelinek <jakub@redhat.com>
12792 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
12793 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12795 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
12797 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
12798 Use pinsrd for TARGET_SSE4_1.
12799 * config/i386/sse.md (movdi_to_sse): Ditto.
12801 2019-05-10 Richard Biener <rguenther@suse.de>
12803 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
12804 (do_rpo_vn): Initialize next_value_id.
12806 2019-05-10 Martin Liska <mliska@suse.cz>
12808 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12811 2019-05-10 Jakub Jelinek <jakub@redhat.com>
12813 PR tree-optimization/90385
12814 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
12815 arguments of the exit phis.
12818 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
12819 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
12821 (copy_tree_body_r): Likewise.
12822 (copy_fn): Set id.do_not_fold to true.
12824 2019-05-10 Martin Liska <mliska@suse.cz>
12826 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
12827 Reapply changes from r269790.
12829 2019-05-10 Martin Liska <mliska@suse.cz>
12831 PR middle-end/90340
12832 * doc/invoke.texi: New params.
12833 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
12834 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
12835 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12837 * tree-switch-conversion.h (struct jump_table_cluster):
12840 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
12842 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
12844 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
12846 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
12848 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
12850 PR rtl-optimization/88879
12851 * sel-sched.c (sel_target_adjust_priority): Remove assert.
12853 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
12856 * config/arm/arm.c (callee_saved_reg_p): Move before
12857 thumb_find_work_register.
12858 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
12859 thumb_find_work_register. Only call df_get_live_out once.
12860 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
12861 (thumb_find_work_register): Use
12862 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
12863 algorithms to locate a spare call clobbered reg.
12865 2019-05-09 Martin Liska <mliska@suse.cz>
12867 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
12868 and MAX_EXPR in GIMPLE FE format.
12870 2019-05-09 Martin Liska <mliska@suse.cz>
12872 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
12873 * gimple-pretty-print.c (dump_gimple_bb_header):
12875 (pp_cfg_jump): Dump edge probability.
12876 * profile-count.c (profile_quality_as_string): Simplify
12877 with a static array.
12878 (parse_profile_quality): New function.
12879 (profile_count::dump): Simplify with a static array.
12880 (profile_count::from_gcov_type): Add new argument.
12881 * profile-count.h (parse_profile_quality): Likewise.
12882 * predict.h (set_hot_bb_threshold): New.
12883 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12885 * predict.c (get_hot_bb_threshold): Set from the new param.
12886 (set_hot_bb_threshold): New.
12888 2019-05-09 Richard Biener <rguenther@suse.de>
12890 PR tree-optimization/90395
12891 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
12892 rewrite vector stores that throw internally.
12894 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
12896 * cif-code.def (CHKP): Remove.
12899 * configure.ac (--enable-frame-pointer): Disable by default for
12901 * configure: Regenerate.
12903 2019-05-09 Alan Modra <amodra@gmail.com>
12906 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
12907 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
12908 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
12909 cost for general <-> vsx when direct moves are available.
12910 Cost union classes at minimal cost for any reg in the class.
12911 Correct calculation for moves between vsx, float, and altivec.
12912 Don't return a low cost for moves between special regs. Don't
12913 use hard coded register numbers.
12914 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
12915 (rs6000_ira_change_pseudo_allocno_class): New function.
12916 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
12917 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
12919 (movsi_internal1): Don't disparage vector alternatives.
12920 (mov<mode>_internal): Likewise, excepting alternative that
12922 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
12923 we <- b alternative.
12925 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12928 PR tree-optimization/89060
12929 * tree-ssa-live.h (live_vars_map): New typedef.
12930 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
12931 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
12932 (struct compute_live_vars_data): New type.
12933 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
12934 live_vars_at_stmt, destroy_live_vars): New functions.
12935 * tree-tailcall.c: Include tree-ssa-live.h.
12936 (live_vars, live_vars_vec): New global variables.
12937 (find_tail_calls): Perform variable life analysis before punting.
12938 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
12939 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
12941 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
12942 Perform variable life analysis to select variables that really need
12944 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
12945 instead set id->eh_landing_pad_dest and assert it is the same.
12946 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
12948 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
12949 Richard Earnshaw <rearnsha@arm.com>
12952 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
12954 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
12955 (thumb1_compute_save_core_reg_mask): Don't force a spare work
12956 register if both the epilogue and prologue can use call-clobbered
12958 (thumb1_unexpanded_epilogue): Use
12959 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
12960 picking temporaries for restoring high regs to match that of the
12961 prologue where possible.
12962 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
12963 the list of work registers. Detect if the return address is still live
12964 at the end of the prologue and avoid using it for a work register if so.
12965 If the return address is not live, add LR to the list of pushable regs
12966 after the first pass.
12968 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12970 PR tree-optimization/90078
12971 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
12972 (INFTY): Increase the value for infinite cost.
12973 (struct comp_cost): Promote type of members to int64_t.
12974 (infinite_cost): Don't set complexity in initialization.
12975 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
12976 overflows to infinite_cost.
12977 (adjust_setup_cost): Promote type of parameter and cost computation
12979 (struct ainc_cost_data, struct iv_ca): Promote type of member to
12981 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
12982 cost computation to int64_t.
12983 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
12984 int64_t's format specifier in dump.
12986 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12988 PR tree-optimization/90240
12989 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
12990 with respect to scaling factor pre-computed for each basic block.
12991 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
12992 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
12993 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
12994 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
12995 live range for array of loop's basic blocks. Cleanup aux field of
12996 loop's basic blocks.
12998 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13000 PR tree-optimization/90356
13001 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
13003 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
13005 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
13006 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
13007 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
13008 (ix86_handle_option): Handle -mavx512bf16.
13009 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
13011 * config/i386/avx512bf16vlintrin.h: New.
13012 * config/i386/avx512bf16intrin.h: New.
13013 * config/i386/cpuid.h (bit_AVX512BF16): New.
13014 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
13015 * config/i386/i386-builtin-types.def: Add new types.
13016 * config/i386/i386-builtin.def: Add new builtins.
13017 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13019 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
13020 (ix86_option_override_internal): Handle BF16.
13021 (ix86_valid_target_attribute_inner_p): Ditto.
13022 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
13023 * config/i386/i386-builtin.c (enum processor_features): Add
13025 (static const _isa_names_table isa_names_table): Ditto.
13026 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
13027 (PTA_AVX512BF16): Ditto.
13028 * config/i386/i386.opt: Add -mavx512bf16.
13029 * config/i386/immintrin.h: Include avx512bf16intrin.h
13030 and avx512bf16vlintrin.h.
13031 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
13032 avx512f_cvtneps2bf16_<mode><mask_name>,
13033 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
13034 * config/i386/subst.md (mask_half): Add new subst.
13035 * doc/invoke.texi: Document -mavx512bf16.
13037 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13039 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
13040 Delete declaration.
13041 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
13042 (rs6000_debug_legitimize_reload_address): Delete.
13043 (rs6000_legitimize_reload_address_ptr): Delete.
13044 (rs6000_option_override_internal): Adjust.
13045 (mem_operand_gpr): Adjust comment.
13046 (legitimate_lo_sum_address_p): Ditto.
13047 (rs6000_legitimize_reload_address): Delete.
13048 (rs6000_debug_legitimize_reload_address): Delete.
13049 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
13051 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
13054 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13055 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
13056 to compute vector element selector for both constant and variable
13059 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13061 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
13062 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
13063 ashrdi3_cvt using SWI48 mode iterator.
13065 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13067 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
13068 (aarch64_<su>abd<mode>_3): Likewise.
13069 (*aarch64_<su>abd<mode>_3): New define_insn.
13070 (<sur>sad<vsi2qi>): New define_expand.
13071 * config/aarch64/iterators.md: Added MAX_OPP attribute.
13072 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
13073 (build_vect_cond_expr): Likewise.
13075 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13077 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
13078 clobbers outside of accessible_reg_set.
13079 * config/i386/i386.c (ix86_conditional_register_usage):
13080 Disable register sets by clearing corresponding bits in
13081 accessible_reg_set. Do not set corresponding bits in fixed_regs,
13082 call_used_regs and don't clear corresponding reg_names array members.
13084 2019-05-07 Richard Biener <rguenther@suse.de>
13086 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
13087 not specified still compute a comp_vectype for invariant
13090 2019-05-07 Richard Biener <rguenther@suse.de>
13092 PR tree-optimization/90316
13093 * tree-ssa-pre.c (translate_vuse_through_block): When
13094 same_valid is NULL do not bother to search for a virtual
13096 (phi_translate_1): When operands changed we cannot keep
13097 the same value-number so do not bother to ask whether
13098 that's possible from translate_vuse_through_block.
13100 2019-05-07 Martin Liska <mliska@suse.cz>
13102 * bitmap.c (bitmap_register): Come up with
13103 alloc_descriptor_max_uid and assign it for
13105 (register_overhead): Use get_descriptor as
13107 (release_overhead): New.
13108 (bitmap_elem_to_freelist): Call it.
13109 (bitmap_elt_clear_from): Likewise.
13110 (bitmap_obstack_free): Likewise.
13111 (bitmap_move): Sensitively release memory.
13112 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
13113 (bitmap_initialize): Initialize alloc_descriptor to zero.
13114 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
13116 2019-05-07 Richard Biener <rguenther@suse.de>
13118 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
13119 we build a SLP node. Remove max_size and limiting.
13120 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
13122 2019-05-07 Richard Biener <rguenther@suse.de>
13124 PR tree-optimization/90316
13125 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
13126 limit by reference.
13127 (walk_non_aliased_vuses): Take walking limit argument.
13128 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
13129 walking if it is reached instead of just counting.
13130 (get_continuation_for_phi): Likewise.
13131 (walk_non_aliased_vuses): Likewise, instead of leaving counter
13132 limiting to the callback.
13133 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
13134 (vn_reference_lookup_3): Likewise.
13135 (vn_reference_lookup_pieces): Likewise.
13136 (vn_reference_lookup): Likewise.
13137 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
13138 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
13139 (avail_exprs_stack::lookup_avail_expr): Likewise.
13141 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
13143 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
13144 for comparaible types in the second direction even if first one
13145 hits incomparable type.
13147 2019-05-07 Richard Biener <rguenther@suse.de>
13150 * lto-wrapper.c (debug_objcopy): Use the original filename
13151 including archive offset for the filename used for -save-temps.
13153 2019-05-07 Li Jia He <helijia@linux.ibm.com>
13155 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
13158 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
13159 Hongtao Liu <hongtao.liu@intel.com>
13163 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
13164 Modified, original implementation isn't correct.
13166 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13168 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
13169 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
13170 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
13171 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
13172 (FRAME_POINTER_REGNUM): Change numbering.
13173 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
13174 (alt_reg_names): Adjust.
13175 (rs6000_conditional_register_usage): Don't mark hard register 64 as
13177 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13178 (DWARF_FRAME_REGISTERS): Delete.
13179 (DWARF2_FRAME_REG_OUT): Fix whitespace.
13180 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13182 (REG_ALLOC_ORDER): Adjust.
13183 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
13184 (REG_CLASS_CONTENTS): Adjust.
13185 (RETURN_ADDR_RTX): Change comment.
13186 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
13188 (REGISTER_NAMES): Adjust.
13189 (ADDITIONAL_REGISTER_NAMES): Adjust.
13190 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13192 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13194 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
13196 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13197 (DWARF_FRAME_REGISTERS): Adjust.
13198 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13200 (REG_ALLOC_ORDER): Adjust.
13201 (enum reg_class): Delete SPR_REGS.
13202 (REG_CLASS_NAMES): Delete SPR_REGS.
13203 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
13204 (REGISTER_NAMES): Adjust.
13205 (ADDITIONAL_REGISTER_NAMES): Adjust.
13206 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13207 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
13208 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
13209 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
13210 (htm_spr_regno): Delete.
13211 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
13213 (rs6000_dbx_register_number): Adjust.
13215 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13217 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
13219 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13221 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
13222 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
13224 2019-05-06 Jakub Jelinek <jakub@redhat.com>
13226 PR tree-optimization/88709
13227 PR tree-optimization/90271
13228 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
13229 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
13230 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
13232 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
13233 of the store merging group is larger than
13234 PARAM_STORE_MERGING_MAX_SIZE parameter.
13235 (split_group): Add bzero_first argument. If set, always emit first
13236 the first store which must be = {} of the whole area and then for the
13237 rest of the stores consider all zero bytes as paddings.
13238 (imm_store_chain_info::output_merged_store): Check if first store
13239 is = {} of the whole area and if yes, determine which setting of
13240 bzero_first for split_group gives smaller number of stores. Adjust
13241 split_group callers.
13242 (lhs_valid_for_store_merging_p): Allow decls.
13243 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
13245 (pass_store_merging::process_store): Likewise.
13247 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
13250 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13251 handling of V1TImode.
13253 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
13256 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
13257 and enable_frame_pointer ...
13258 * configure.ac: ... here. Update help strings for
13259 --enable-frame-pointer.
13260 * configure: Regenerate.
13261 * config/i386/i386-options.c (ix86_option_override_internal): Remove
13262 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
13263 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
13264 (USE_X86_64_FRAME_POINTER): Ditto.
13266 2019-05-06 Martin Liska <mliska@suse.cz>
13268 * config.gcc: Append to target_gtfiles and fix indentation.
13270 2019-05-06 Richard Biener <rguenther@suse.de>
13272 PR tree-optimization/90358
13273 * tree-vect-stmts.c (get_group_load_store_type): Properly
13274 detect unused upper half of load.
13275 (vectorizable_load): Likewise.
13277 2019-05-06 Richard Biener <rguenther@suse.de>
13279 PR tree-optimization/88828
13280 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
13281 (simplify_vector_constructor): ...here. Handle constants in
13284 2019-05-06 Richard Biener <rguenther@suse.de>
13286 PR tree-optimization/90328
13287 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
13288 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
13289 is valid in the loop nest before using it.
13290 (initialize_data_dependence_relation): Adjust.
13291 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
13292 loop as loop-nest to dr_may_alias_p.
13294 2019-05-06 Richard Biener <rguenther@suse.de>
13296 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
13298 2019-05-06 Richard Biener <rguenther@suse.de>
13300 PR tree-optimization/90316
13301 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
13302 compute target on demand.
13303 (get_continuation_for_phi): Remove code walking stmts to
13304 get to a target virtual operand which could end up being
13307 2019-05-06 Martin Liska <mliska@suse.cz>
13310 * config/i386/i386-options.c (ix86_option_override_internal): Error only
13311 when -mabi is selected to a non-default version.
13313 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
13314 Martin Liska <mliska@suse.cz>
13316 * Makefile.in: Add lto-dump.texi.
13317 * cgraph.h: Add new functions get_visibility_string and
13318 get_symtab_type_string.
13319 * doc/gcc.texi: Include lto-dump section.
13320 * doc/lto-dump.texi: New file.
13321 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
13322 (parse_dump_option): Factor out this function.
13323 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
13324 (parse_dump_option): Export the function.
13325 * symtab.c (symtab_node::get_visibility_string): New function.
13326 (symtab_node::get_symtab_type_string): Likewise.
13328 2019-05-06 Martin Liska <mliska@suse.cz>
13330 * config/i386/i386-builtins.c: New file.
13331 * config/i386/i386-builtins.h: New file.
13332 * config/i386/i386-expand.c: New file.
13333 * config/i386/i386-expand.h: New file.
13334 * config/i386/i386-features.c: New file.
13335 * config/i386/i386-features.h: New file.
13336 * config/i386/i386-options.c: New file.
13337 * config/i386/i386-options.h: New file.
13338 * config.gcc: Add new files into extra_objs and
13340 * config/i386/i386.c: Split content of the file
13341 into newly introduced files.
13342 * config/i386/i386.h: Declare common variables
13344 * config/i386/t-i386: Define dependencies for new files.
13346 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
13349 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
13350 Restrict 'all' variant to 32-bit configurations.
13351 (unaligned_loadhiu): Likewise.
13352 (unaligned_storehi): Likewise.
13353 (unaligned_storesi): Likewise.
13354 (unaligned_loadhis): Disable when compiling for thumb1.
13356 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13358 PR tree-optimization/90269
13359 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13362 2019-05-03 Martin Liska <mliska@suse.cz>
13364 * hash-map.h: Add is_empty function.
13365 * hash-set.h: Likewise.
13366 * hash-table.h: Likewise.
13367 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13368 elements () == 0 (and similar usages).
13369 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13370 * gimplify.c (gimplify_bind_expr): Likewise.
13371 (gimplify_switch_expr): Likewise.
13372 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13373 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13374 * postreload-gcse.c (dump_hash_table): Likewise.
13375 (gcse_after_reload_main): Likewise.
13376 * predict.c (combine_predictions_for_bb): Likewise.
13377 * tree-parloops.c (reduction_phi): Likewise.
13378 (separate_decls_in_region): Likewise.
13379 (transform_to_exit_first_loop): Likewise.
13380 (gen_parallel_loop): Likewise.
13381 (gather_scalar_reductions): Likewise.
13382 (try_create_reduction_list): Likewise.
13383 * var-tracking.c (dump_vars): Likewise.
13384 (emit_notes_for_changes): Likewise.
13385 (vt_emit_notes): Likewise.
13387 2019-05-03 Richard Biener <rguenther@suse.de>
13389 PR tree-optimization/90316
13390 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13393 2019-05-03 Richard Biener <rguenther@suse.de>
13395 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13396 peeling for gaps by loading only lower halves of vectors
13398 (vectorizable_load): Likewise.
13400 2019-05-03 Richard Biener <rguenther@suse.de>
13402 PR middle-end/89518
13403 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13405 2019-05-03 Richard Biener <rguenther@suse.de>
13407 PR middle-end/87314
13408 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13409 Handle STRING_CST vs DECL or STRING_CST.
13411 2019-05-03 Richard Biener <rguenther@suse.de>
13413 PR tree-optimization/88963
13414 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13415 vector loads feeding only BIT_FIELD_REFs to component
13416 loads. Rewrite stores fed by CONSTRUCTORs to component
13419 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13421 * opts.h (finish_options): Remove lang_mask argument.
13422 (print_help, help_option_argument): Declare.
13423 * opts.c (print_help): Remove forward declaration, no longer static.
13424 (finish_options): Remove lang_mask argument, don't call print_help
13426 * opts-global.c (decode_options): Adjust finish_option caller, call
13429 PR tree-optimization/90303
13430 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13431 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13433 2019-05-03 Richard Biener <rguenther@suse.de>
13435 PR tree-optimization/89698
13436 * gimple-fold.c (canonicalize_constructor_val): Early out
13437 for constants, handle unfolded INTEGER_CSTs as they appear in
13438 C++ virtual table ctors.
13440 2019-05-03 Richard Biener <rguenther@suse.de>
13442 * passes.c (execute_function_todo): Remove dead code.
13444 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13446 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13447 the internal register number, for any "real" register.
13449 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13451 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13452 correct numbers for TFHAR, TFIAR, TEXASR.
13454 2019-05-02 Richard Biener <rguenther@suse.de>
13456 PR tree-optimization/89653
13457 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13458 update-address-taken before the pass.
13459 * passes.def (pass_tree_loop_init): Put comment before it.
13461 2019-05-02 Richard Biener <rguenther@suse.de>
13463 PR tree-optimization/89509
13464 * tree-ssa-structalias.c (compute_dependence_clique): Look
13465 at the first subvar when determining whether it is restrict.
13467 2019-05-02 Richard Biener <rguenther@suse.de>
13469 PR tree-optimization/90273
13470 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13471 useless debug stmts.
13473 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13475 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13477 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13479 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13480 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13481 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13482 (vectorizable_reduction): Use the functions above to vectorize in a
13483 fully masked loop codes that don't have a conditional internal
13486 2019-05-02 Martin Liska <mliska@suse.cz>
13488 * cgraphclones.c: Call valid_attribute_p with 1 for
13490 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13491 it's for target attribute.
13492 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13493 Add new boolean argument.
13494 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13496 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13497 to ix86_valid_target_attribute_inner_p.
13498 (ix86_valid_target_attribute_p): Pass flags argument to
13499 ix86_valid_target_attribute_inner_p.
13500 (get_builtin_code_for_version): Use 0 as it's target attribute.
13502 2019-05-02 Martin Liska <mliska@suse.cz>
13504 * gcc.c (process_command): Add dummy file only
13506 * opts-global.c (decode_options): Pass lang_mask.
13507 * opts.c (print_help): New function.
13508 (finish_options): Print --help if help_option_argument
13510 (common_handle_option): Factor out content of OPT__help_
13512 * opts.h (finish_options): Add new argument.
13514 2019-05-02 Martin Liska <mliska@suse.cz>
13517 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13518 With -minline-all-stringops use inline expansion using 4B loop.
13519 * doc/invoke.texi: Document the change of
13520 -minline-all-stringops.
13522 2019-05-01 Jeff Law <law@redhat.com>
13524 PR tree-optimization/88797
13525 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13526 PHI feeds a conditional on the RHS of an assignment.
13528 2019-04-30 Andrew Waterman <andrew@sifive.com>
13529 Jim Wilson <jimw@sifive.com>
13531 * config/riscv/constraints.md (L): New.
13532 * config/riscv/predicates.md (lui_operand): New.
13533 (sfb_alu_operand): New.
13534 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13535 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13536 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13537 * config/riscv/risc.md (type): Add sfb_alu.
13538 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13539 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13540 (branch_zero<mode>): Delete.
13541 (mov<mode>cc): New.
13542 (mov<GPR:mode><X:mode>cc): Likewise.
13543 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13545 2019-04-30 Nathan Sidwell <nathan@acm.org>
13547 * tree.h (MARK_TS_EXP): New.
13549 2019-04-30 Martin Liska <mliska@suse.cz>
13551 * opts.c (enable_warning_as_error): Provide hints
13552 for unknown options.
13554 2019-04-30 Martin Liska <mliska@suse.cz>
13557 * doc/invoke.texi: Add missing dash for gas-locview-support
13558 and gno-as-locview-support.
13560 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13563 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13564 whitespace at the start of target attribute string.
13566 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13569 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13570 Define __ARM_FEATURE_ATOMICS.
13572 2019-04-30 Martin Liska <mliska@suse.cz>
13574 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13575 into built_in_function enum. Remove code for endp == 2 and
13576 use BUILT_IN_* constants.
13577 (gimple_fold_builtin): Call the function with fcode.
13579 2019-04-30 Martin Liska <mliska@suse.cz>
13581 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13582 DECL_FUNCTION_CODE into ix86_builtins enum before
13583 the switch statement.
13585 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13587 PR tree-optimization/89475
13588 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13591 2019-04-30 Martin Liska <mliska@suse.cz>
13593 PR translation/90274
13594 * opts.c (print_filtered_help): Wrap string in _(...).
13596 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13598 PR tree-optimization/90240
13600 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13602 PR tree-optimization/90078
13603 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13604 checks for infinite_cost overflow.
13606 2019-04-29 Jeff Law <law@redhat.com>
13608 * passes.def: Move -Wrestrict pass after copy propagation.
13610 2019-04-29 Maya Rashish <coypu@sdf.org>
13612 * config.gcc (default_gnu_indirect_function): Default to yes
13613 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13614 sparc*-*-netbsd*, x86_64-*-netbsd*.
13616 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13618 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13619 where cond2 is NE_EXPR.
13620 (is_value_included_in): Update comment.
13622 2019-04-29 Richard Biener <rguenther@suse.de>
13624 PR tree-optimization/90278
13625 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13626 EH on comparison simplification.
13628 2019-04-29 Jason Merrill <jason@redhat.com>
13630 PR c++/82081 - tail call optimization breaks noexcept
13631 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13632 nothrow function to a might-throw function into a tail call.
13634 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13636 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13637 (DDR_INNER_LOOP): Likewise.
13638 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13639 (initialize_data_dependence_relation): Likewise.
13640 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13642 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13644 PR rtl-optimization/90257
13645 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13649 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13653 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13656 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13659 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13661 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13663 2019-04-29 Richard Biener <rguenther@suse.de>
13665 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13668 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13670 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13671 varasm.h, and netbsd-protos.h.
13673 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13676 * config/i386/i386-protos.h (ix86_data_alignment): Change
13677 the second argument type to unsigned int.
13678 * config/i386/i386.c (ix86_data_alignment): Change "align"
13679 argument type to unsigned int.
13681 2019-04-27 Martin Liska <mliska@suse.cz>
13683 PR middle-end/90258
13684 * opt-suggestions.c (option_proposer::build_option_suggestions):
13685 When get_valid_option_values returns empty values, add the
13686 misspelling candidate.
13688 2019-04-26 Jim Wilson <jimw@sifive.com>
13690 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
13692 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
13693 Pass orig_mode to riscv_build_integer.
13694 (riscv_split_integer): Pass mode to riscv_move_integer.
13695 (riscv_legitimize_const_move): Likewise.
13696 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
13697 promoted_mode. Replace force_reg call with code to load constant into
13698 promoted reg and then subreg it for the store.
13699 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
13700 riscv_move_integer.
13702 2018-04-26 Eugene Sharygin <eush@ispras.ru>
13704 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
13707 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
13709 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
13710 commentary about the encoding of precision.
13712 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
13714 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
13715 * config/i386/t-freebsd64: New file.
13716 * config.gcc: Add the t-freebsd64 for multilib support.
13718 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
13720 * doc/extend.texi (vector_size): Add missing comma after @xref.
13722 2019-04-25 Jakub Jelinek <jakub@redhat.com>
13724 * BASE-VER: Set to 10.0.0.
13726 2019-04-25 Richard Biener <rguenther@suse.de>
13728 PR middle-end/89765
13729 * gimplify.c (gimplify_expr): Avoid turning a lvalue
13730 VIEW_CONVERT_EXPR into one operating on an rvalue.
13732 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
13735 * config/i386/i386.c (feature_priority): Moved to file scope.
13736 (processor_features): Likewise.
13737 (processor_model): Likewise.
13738 (_arch_names_table): Likewise.
13739 (arch_names_table): Likewise.
13740 (_feature_list): Removed.
13741 (feature_list): Likewise.
13742 (_isa_names_table): Moved to file scope. Add priority.
13743 (isa_names_table): Likewise.
13744 (get_builtin_code_for_version): Replace feature_list with
13745 isa_names_table. Update error message for P_ZERO priority.
13747 2019-04-25 Richard Biener <rguenther@suse.de>
13749 * tree-pass.h (make_pass_phi_only_cprop): Remove.
13750 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
13752 2019-04-24 Jeff Law <law@redhat.com>
13754 PR tree-optimization/90037
13755 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
13756 * passes.def: Replace all instance of phi-only cprop with the
13757 lattice propagator. Move propagation pass from after erroneous
13758 path isolation to before erroneous path isolation.
13759 * tree-ssa-phionlycprop.c: Remove.
13761 2019-04-24 Richard Biener <rguenther@suse.de>
13763 PR middle-end/90213
13764 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
13765 by size and BITS_PER_UNIT on poly-wide-ints.
13767 2019-04-25 Richard Biener <rguenther@suse.de>
13769 PR middle-end/90194
13770 * match.pd: Add pattern to simplify view-conversion of an
13773 2019-04-24 Clement Chigot <clement.chigot@atos.net>
13775 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
13776 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
13777 for Go on 32 bit AIX.
13778 * config/rs6000/aix72.h: Likewise.
13780 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13783 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
13784 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
13786 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
13789 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
13790 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
13791 for restored hard frame pointer.
13792 (s390_sched_dependencies_evaluation): Implement new target hook.
13793 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
13795 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
13797 * config/arc/arc-options.def: Fix typos and spelling mistakes.
13798 * config/arc/arc.c (arc_init): Cleanup warning message.
13799 (arc_override_options): Likewise.
13801 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13804 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
13805 a register if both if_true and if_false are MEMs.
13807 PR tree-optimization/90208
13808 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
13809 after labels of new_bb, not before them.
13811 PR tree-optimization/90211
13812 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
13813 which are not SSA_NAMEs.
13815 2018-04-23 Sudakshina Das <sudi.das@arm.com>
13817 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
13819 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
13821 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13823 PR rtl-optimization/87979
13824 * modulo-sched.c (sms_schedule): Start ii value "mii" should
13827 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13829 PR rtl-optimization/84032
13830 * modulo-sched.c (ps_insn_find_column): Change condition so that
13831 branch will always be the last insn in a row inside partial
13834 2019-04-23 Richard Biener <rguenther@suse.de>
13837 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
13838 dest_single_pred_p argument.
13839 (remove_forwarder_block): Adjust.
13840 (remove_forwarder_block_with_phi): Likewise.
13842 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13843 Bernd Edlinger <bernd.edlinger@hotmail.de>
13844 Jakub Jelinek <jakub@redhat.com>
13847 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
13848 if used with general-regs-only.
13849 (arm_conditional_register_usage): Don't add non-general regs if
13851 (arm_valid_target_attribute_rec): Handle general-regs-only.
13852 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
13854 (TARGET_HARD_FLOAT_SUB): Define.
13855 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
13856 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
13857 (TARGET_REALLY_IWMMXT2): Likewise.
13858 * config/arm/arm.opt: Add -mgeneral-regs-only.
13859 * doc/extend.texi: Document ARM general-regs-only target.
13860 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
13862 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13864 PR tree-optimization/90078
13865 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13866 checks for infinite_cost overflow.
13868 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13870 PR tree-optimization/90021
13871 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
13872 and check univariate against it.
13873 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
13874 * tree-data-ref.c (add_other_self_distances): Pass new argument.
13876 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13880 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13883 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13886 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13888 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13890 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
13892 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
13893 names using operand format, rather than hard-wired.
13894 (speculation_barrier): Likewise.
13896 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
13898 PR tree-optimization/88055
13899 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
13900 (gen_one_condition): Use it if !HONOR_NANS.
13902 2019-04-19 Jakub Jelinek <jakub@redhat.com>
13904 PR middle-end/90139
13905 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
13906 assign_temp instead of gen_reg_rtx.
13908 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
13910 PR translation/90118
13911 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13912 Add missing space before %<.
13914 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
13916 PR rtl-optimization/87871
13917 * ira-lives.c (make_object_dead): Don't add conflicts to
13918 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
13920 2019-04-18 Martin Sebor <msebor@redhat.com>
13922 PR middle-end/89797
13923 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
13924 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
13925 assuming type size fits in SHWI.
13927 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
13930 * ipa-inline.c (flatten_function): New parameter UPDATE.
13931 (ipa_inline, early_inliner): Use it.
13933 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13935 * fold-const.c (int_const_binop): Return early on failure.
13937 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13939 PR middle-end/85164
13940 * combine.c (force_int_to_mode): Cast the argument rather than
13941 the result of known_alignment.
13942 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
13944 2019-04-18 Richard Biener <rguenther@suse.de>
13947 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
13949 (remove_forwarder_block): ... here.
13950 (remove_forwarder_block_with_phi): Also move debug stmts here.
13952 2019-04-18 Jakub Jelinek <jakub@redhat.com>
13954 PR translation/79183
13955 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
13956 inform where appropriate.
13958 2019-04-18 Richard Biener <rguenther@suse.de>
13960 * tree.c (get_qualified_type): Put found type variants at the
13961 head of the variant list.
13963 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13965 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
13967 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
13970 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
13971 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
13972 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
13973 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
13974 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
13976 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
13978 * ira-conflicts.c (print_allocno_conflicts): Always print something,
13979 even for allocno's with no conflicts.
13980 (print_conflicts): Print an extra newline.
13982 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13984 * auto-inc-dec.c (attempt_change): Set the alignment of the
13985 temporary memory to that of the original.
13987 2019-04-17 Joao Moreira <jmoreira@suse.de>
13989 * targhooks.c (default_print_patchable_function_entry): Emit
13990 __patchable_function_entries section with writable flags to allow
13991 relocation resolution.
13993 2019-04-17 Jonny Grant <jg@jguk.org>
13995 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
13997 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13999 PR middle-end/90095
14000 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
14001 on lowpart SUBREGs.
14003 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
14005 * config/arc/arc.c (arc_init): Format diagnostic string.
14006 (arc_override_options): Likewise.
14007 (check_if_valid_regno_const): Likewise.
14008 (arc_reorg): Likewise.
14010 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14013 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
14015 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
14017 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
14018 (*movdi_update1): Use Pmode.
14019 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
14020 (movdi_<mode>_update_stack): Rename to ...
14021 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
14023 (*movsi_update1): Use Pmode.
14024 (*movsi_update2): Use Pmode.
14025 (movsi_update): Rename to ...
14026 (movsi_<mode>_update): ... this. Use Pmode.
14027 (movsi_update_stack): Fix condition.
14028 (*movhi_update1): Use Pmode. Fix argument to
14029 avoiding_indexed_address_p.
14030 (*movhi_update2): Ditto.
14031 (*movhi_update3): Ditto.
14032 (*movhi_update4): Ditto.
14033 (*movqi_update1): Ditto.
14034 (*movqi_update2): Ditto.
14035 (*movqi_update3): Ditto.
14036 (*movsf_update1, *movdf_update1): Merge, rename to...
14037 (*mov<mode>_update1): This. Use Pmode. Fix argument to
14038 avoiding_indexed_address_p. Add "size" attribute.
14039 (*movsf_update2, *movdf_update2): Merge, rename to...
14040 (*mov<mode>_update2): This. Ditto.
14041 (*movsf_update3): Use Pmode. Fix argument to
14042 avoiding_indexed_address_p.
14043 (*movsf_update4): Ditto.
14044 (allocate_stack): Simplify condition. Adjust pattern names.
14046 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14049 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
14050 whitespace at the start of target attribute string.
14052 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
14055 * config/rs6000/power9.md: Add store forwarding bypass.
14057 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
14060 * valtrack.c (dead_debug_insert_temp): Reset debug references
14061 to the return value of a call being removed.
14063 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14065 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
14066 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
14067 implement target hook.
14068 (arc_memory_move_cost): New function.
14069 (TARGET_REGISTER_MOVE_COST): Define.
14070 (TARGET_MEMORY_MOVE_COST): Likewise.
14071 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
14072 (MEMORY_MOVE_COST): Likewise.
14074 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14076 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
14077 (sibcall_value_insn): Likewise.
14078 * config/arc/constraints.md (Rs5): Remove.
14080 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14082 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
14083 for last two fake registers.
14084 (arc_conditional_register_usage): Make sure fake frame and arg
14085 pointer regs are in general regs class.
14086 (FRAME_POINTER_MASK): Remove.
14087 (RETURN_ADDR_MASK): Remove.
14088 (arc_must_save_register): Use hard frame regnum.
14089 (frame_restore_reg): Use hard_frame_pointer_rtx.
14090 (arc_save_callee_saves): Likewise.
14091 (arc_restore_callee_saves): Likewise.
14092 (arc_save_callee_enter): Likewise.
14093 (arc_restore_callee_leave): Likewise.
14094 (arc_save_callee_milli): Likewise.
14095 (arc_eh_return_address_location): Likewise.
14096 (arc_check_multi): Use hard frame regnum.
14097 (arc_can_eliminate): Likewise.
14098 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
14099 for register allocator.
14100 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
14101 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
14102 (FRAME_POINTER_REGNUM): Change it to a fake register.
14103 (HARD_FRAME_POINTER_REGNUM): Defined.
14104 (ARG_POINTER_REGNUM): Change it to a new fake register.
14105 (ELIMINABLE_REGS): Update.
14106 (REGISTER_NAMES): Update names.
14107 * config/arc/arc.md (LP_START): Remove.
14108 (LP_END): Likewise.
14109 (shift_si3_loop): Update pattern.
14111 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14113 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
14114 to avoid delay slot scheduling.
14115 (arc_must_save_register): Don't save SP.
14116 * config/arc/arc.md (stack_tie): Remove.
14117 (UNSPEC_ARC_STKTIE): Likewise.
14119 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
14120 Shiva Chen <shiva0217@gmail.com>
14122 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
14123 code gen with large shift amount.
14125 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
14127 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
14130 2019-04-16 Jakub Jelinek <jakub@redhat.com>
14133 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
14134 print -m64/-mx32/-m32 if it is true.
14135 (ix86_debug_options, ix86_function_specific_print): Pass true as
14136 ADD_ABI_P to ix86_target_string.
14137 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
14138 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
14139 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
14141 PR rtl-optimization/90082
14142 * dce.c (can_delete_call): New function.
14143 (deletable_insn_p, mark_insn): Use it.
14145 PR tree-optimization/90090
14146 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
14148 (is_division_by_square): Likewise. Formatting fix.
14150 2019-04-16 Richard Biener <rguenther@suse.de>
14152 PR tree-optimization/56049
14153 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
14154 equality check if alias-set zero will prevail.
14156 2019-04-15 Jeff Law <law@redhat.com>
14158 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
14159 size and alignment as unsigned.
14161 2019-04-15 Richard Biener <rguenther@suse.de>
14164 * tree-loop-distribution.c (destroy_loop): Preserve correct
14167 2019-04-15 Richard Biener <rguenther@suse.de>
14169 PR tree-optimization/90071
14170 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
14171 abnormal operands from def stmts.
14173 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
14175 PR rtl-optimization/89794
14176 * combine.c (count_auto_inc): New function.
14177 (try_combine): Count how many auto_inc expressions there were in the
14178 original instructions. Ensure we have the same number in the new
14179 instructions. Remove the code that tried to ensure auto_inc side
14180 effects on i1 and i0 are not lost.
14182 2019-04-15 Richard Biener <rguenther@suse.de>
14185 * tree.h (auto_var_p): Declare.
14186 * tree.c (auto_var_p): New function, split out from ...
14187 (auto_var_in_fn_p): ... here.
14188 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
14190 (new_var_info): Initialize it.
14191 (set_uids_in_ptset): Also set the shadow variable uid if required.
14192 (ipa_pta_execute): Postprocess points-to solutions assigning
14193 shadow variable uids for locals that may reach their containing
14194 function recursively.
14195 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
14196 assert but instead check whether the points-to solution is
14199 2019-04-15 Martin Jambor <mjambor@suse.cz>
14202 * cgraph.c (clone_of_p): Loop over clone chain for each step in
14205 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14207 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
14209 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14210 Kito Cheng <kito.cheng@gmail.com>
14211 Shiva Chen <shiva0217@gmail.com>
14213 * config/nds32/nds32-md-auxiliary.c
14214 (nds32_legitimize_pic_address): Use new PIC pattern.
14215 (nds32_legitimize_tls_address): Use new TLS pattern.
14216 (nds32_output_symrel): New.
14217 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
14218 (nds32_alloc_relax_group_id): Ditto.
14219 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
14220 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
14222 (nds32_group_tls_insn): Ditto.
14223 (nds32_group_float_insns): Ditto.
14224 * config/nds32/nds32.md (tls_le): New.
14227 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
14229 * configure: Add nds32 target for dwarf2 debug_line checking.
14230 * configure.ac: Regenerated.
14232 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
14235 * ipa-devirt.c (skip_in_fields_list_p): New.
14236 (odr_types_equivalent_p): Use it.
14238 2019-04-13 Jakub Jelinek <jakub@redhat.com>
14241 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
14242 instead of strncmp when checking for thumb and arm. Formatting fixes.
14244 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
14246 * doc/install.texi: Document --with-target-system-zlib.
14248 2019-04-12 Martin Sebor <msebor@redhat.com>
14254 * targhooks.c (default_vector_alignment): Avoid assuming
14255 argument fits in SHWI.
14256 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
14257 a shift expression.
14258 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
14260 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14262 PR rtl-optimization/89965
14263 * dce.c: Include rtl-iter.h.
14264 (struct check_argument_load_data): New type.
14265 (check_argument_load): New function.
14266 (find_call_stack_args): Check for loads from stack slots still tracked
14267 in sp_bytes and punt if any is found.
14269 * config/mips/loongson-mmiintrin.h: Fix up #error message.
14271 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
14273 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
14274 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
14276 2019-04-12 Martin Liska <mliska@suse.cz>
14278 PR middle-end/89970
14279 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
14281 (separate_attrs): Handle multiple 'default's.
14282 (expand_target_clones): Rework error handling code.
14284 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
14287 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
14288 mode of vector rather than mode of destination for move instruction.
14289 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
14290 Use QI inner mode with V16QI vector mode.
14292 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14295 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
14296 "invalid %%t operand" in output_operand_lossage message.
14298 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
14300 * config/s390/predicates.md (permute_pattern_operand): New
14302 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
14303 operand for the permute pattern.
14304 ("*vec_perm<mode>"): New insn definition.
14305 ("bswap<mode>"): Generate the permute pattern operand in the
14306 expander and perform the operand reloads for pre arch13 level
14308 ("*bswap<mode>_emu"): Rename to ...
14309 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
14310 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
14311 Add the USE operand for the permute pattern.
14312 ("*vec_set_bswap_vec<mode>"): Likewise.
14314 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14317 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
14318 and gcc_unreachable if it fails, just call tree_to_uhwi which
14319 verifies that too. Test TREE_CHAIN instead of list_length > 1.
14320 Start warning message with a lower-case letter. Formatting fixes.
14322 PR rtl-optimization/90026
14323 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
14324 successors, look for BARRIERs inside of the whole BB_FOOTER chain
14325 rather than just at the start of it. If e->src BB_FOOTER is not NULL
14326 in cfglayout mode, use emit_barrier_after_bb.
14328 2018-04-11 Steve Ellcey <sellcey@marvell.com>
14330 PR rtl-optimization/87763
14331 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
14334 2019-04-11 Tom de Vries <tdevries@suse.de>
14336 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
14337 max macro using statement expression.
14339 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
14341 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
14342 * xcoffout.c (xcoff_private_rodata_section_name): Define.
14343 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
14344 read_only_private_data_section using xcoff_private_rodata_section_name.
14345 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
14347 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
14350 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14352 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14354 PR rtl-optimization/89965
14355 * dce.c (sp_based_mem_offset): New function.
14356 (find_call_stack_args): Use sp_based_mem_offset.
14358 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14360 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14362 2019-04-11 Richard Biener <rguenther@suse.de>
14364 PR tree-optimization/90020
14365 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14366 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14367 * tree-ssa-pre.c (compute_avail): Use it to not put
14368 possibly trapping references after a call that might not
14369 return into EXP_GEN.
14370 * gcse.c (compute_hash_table_work): Do not elide
14371 marking a block containing a call if the call might not
14374 2019-04-11 Richard Biener <rguenther@suse.de>
14376 PR tree-optimization/90018
14377 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14378 Test both SLP and interleaving variants.
14380 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14382 * config/s390/8561.md: New file.
14383 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14384 Add arch13 cpu model.
14385 * config/s390/s390-opts.h (enum processor_type): Likewise.
14386 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14387 (s390_get_unit_mask): Likewise.
14388 (s390_is_fpd): Likewise.
14389 (s390_is_fxd): Likewise.
14390 * config/s390/s390.h (s390_tune_attr): Likewise.
14391 * config/s390/s390.md: Include arch13 pipeline description.
14392 * config/s390/s390.opt: Add arch13.
14394 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14396 PR rtl-optimization/87763
14397 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14399 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14401 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14403 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14404 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14405 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14406 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14408 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14410 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14411 "Although" in -fipa-icf documentation.
14413 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14414 of using multiple -g options.
14416 2019-04-10 Martin Liska <mliska@suse.cz>
14418 PR gcov-profile/89959
14419 * doc/gcov.texi: Make documentation of -x option
14422 2019-04-10 Richard Biener <rguenther@suse.de>
14424 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14426 (DR_GROUP_SAME_DR_STMT): Remove.
14427 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14428 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14429 replace with assert.
14430 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14431 (vect_record_grouped_load_vectors): Remove unreachable code.
14433 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14436 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14437 obsolete reference to N.
14439 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14441 PR middle-end/90025
14442 * expr.c (store_expr): Set properly size on the MEM passed to
14446 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14447 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14448 translation is needed, and when translation is needed, only append
14449 ... if the string length is hostsz or more bytes long. Avoid using
14452 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14455 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14456 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14458 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14459 differences directly.
14460 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14462 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14464 PR translation/90011
14465 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14467 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14469 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14470 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14471 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14472 trailing space from -gsplit-dwarf diagnostics.
14474 PR tree-optimization/89998
14475 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14476 instead of integer_type_node if possible, don't add ranges if return
14477 type is not compatible with int.
14478 * gimple-fold.c (gimple_fold_builtin_sprintf,
14479 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14482 2019-04-09 Martin Liska <mliska@suse.cz>
14484 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14485 * doc/install.texi: Document the new config.
14487 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14489 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14490 use gimple_expr_type for load and store calls. Skip over the
14491 condition argument in a conditional internal function.
14492 Protect use of TREE_INT_CST_LOW.
14494 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14497 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14498 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14499 trailing period from it too.
14501 2019-04-08 wu yuan <wuyuan5@huawei.com>
14503 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14504 * config/aarch64/aarch64.md : Add "tsv110.md"
14505 * config/aarch64/tsv110.md: New file.
14507 2019-04-08 Richard Biener <rguenther@suse.de>
14509 PR tree-optimization/90006
14510 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14513 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14516 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14518 (fma_root_node): Likewise.
14519 (func_fma_steering): Likewise.
14521 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14523 PR rtl-optimization/89865
14524 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14526 PR rtl-optimization/89865
14527 * config/i386/i386.md
14528 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14529 numbers not to clash with the additional operands[4].
14530 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14531 with extra register copy in the middle.
14533 2019-04-08 Martin Liska <mliska@suse.cz>
14535 PR gcov-profile/89961
14536 * doc/gcov.texi: Document data_file.
14537 * gcov.c (generate_results): Add data_info into JSON output.
14539 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14541 PR tree-optimization/89725
14542 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14543 loop's chrec as invariant symbol.
14544 * tree-chrec.h (chrec_contains_symbols): New parameter.
14545 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14546 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14547 function of loops not in DDR's loop_nest.
14548 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14550 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14553 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14556 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14559 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14560 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14562 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14564 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14565 targetm.fixed_condition_code_regs.
14567 2019-04-05 Richard Biener <rguenther@suse.de>
14571 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14572 debug bind stmts but reset them if they are not valid at the
14575 2019-04-05 Martin Liska <mliska@suse.cz>
14577 PR translation/89936
14578 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14579 order to wrap keywords or arguments.
14580 * collect2.c (main): Likewise.
14581 (scan_prog_file): Likewise.
14582 (scan_libraries): Likewise.
14583 * common/config/riscv/riscv-common.c
14584 (riscv_subset_list::parsing_subset_version): Likewise.
14585 (riscv_subset_list::parse_std_ext): Likewise.
14586 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14588 * config/arm/arm.c (arm_option_override): Likewise.
14589 * config/cris/cris.c (cris_print_operand): Likewise.
14590 * config/darwin-c.c (darwin_pragma_options): Likewise.
14591 (darwin_pragma_unused): Likewise.
14592 (darwin_pragma_ms_struct): Likewise.
14593 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14594 * config/i386/i386.c (print_reg): Likewise.
14595 (ix86_print_operand): Likewise.
14596 * config/i386/xm-djgpp.h: Likewise.
14597 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14598 * config/m32c/m32c.c (m32c_option_override): Likewise.
14599 * config/msp430/msp430.c (msp430_option_override): Likewise.
14600 * config/nds32/nds32.c (nds32_option_override): Likewise.
14601 * config/nvptx/mkoffload.c (main): Likewise.
14602 * config/rx/rx.c (rx_print_operand): Likewise.
14603 (valid_psw_flag): Likewise.
14604 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14605 (vms_pragma_nomember_alignment): Likewise.
14606 (vms_pragma_extern_model): Likewise.
14607 * lto-wrapper.c (compile_offload_image): Likewise.
14608 * omp-offload.c (oacc_parse_default_dims): Likewise.
14609 * symtab.c (symtab_node::verify_base): Likewise.
14610 * tlink.c (recompile_files): Likewise.
14611 (start_tweaking): Likewise.
14612 * tree-profile.c (parse_profile_filter): Likewise.
14614 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14616 PR tree-optimization/89956
14617 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14618 multiple negates of the same value.
14620 2019-04-04 Martin Sebor <msebor@redhat.com>
14622 PR middle-end/89957
14623 PR middle-end/89911
14624 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14625 have the same precision since the function crashes otherwise.
14626 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14627 has non-zero arguments.
14629 2019-04-04 Martin Sebor <msebor@redhat.com>
14631 PR middle-end/89934
14632 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14633 out if the number of arguments is less than expected.
14635 2019-04-04 Jeff Law <law@redhat.com>
14637 PR rtl-optimization/89399
14638 * ree.c (combine_set_extension): Use single_set rather than
14639 digging into PATTERN for items on the candidate list.
14640 (combine_reaching_defs): Likewise.
14642 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14644 PR rtl-optimization/46590
14645 * loop-invariant.c (find_defs): Move df_remove_problem and
14646 df_process_deferred_rescans to move_invariants.
14647 Move df_live_add_problem and df_live_set_all_dirty calls
14648 to move_invariants.
14649 (move_invariants): Likewise.
14650 (move_loop_invariants): Likewise, making the df_live calls
14651 conditional on -O. Remove the problem again if we added it
14654 2019-04-03 qing zhao <qing.zhao@oracle.com>
14656 PR tree-optimization/89730
14657 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14658 -flive-patching=inline-only-static.
14659 (can_inline_edge_by_limits_p): Add the checking for
14660 -flive-patching=inline-only-static and grant always_inline
14661 even when -flive-patching=inline-only-static is specified.
14663 2019-04-03 Jeff Law <law@redhat.com>
14665 PR rtl-optimization/81025
14666 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14668 2019-04-03 Richard Biener <rguenther@suse.de>
14670 PR tree-optimization/84101
14671 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14672 regs.h for hard_regno_nregs.
14673 (cfun_returns): New helper.
14674 (vect_model_store_cost): When vectorizing a store to a decl
14675 we return and the function ABI returns in a multi-reg location
14676 account for the possible spilling that will happen.
14678 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
14680 * config/s390/s390.c (s390_legitimate_address_p): Reject long
14681 displacement addresses for vector mode operands.
14683 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
14685 * config/arc/arc.c (GMASK_LEN): Define.
14686 (arc_restore_callee_saves): Restore first blink when
14689 2019-04-03 Sudakshina Das <sudi.das@arm.com>
14691 * doc/extend.texi: Add deprecated comment on sign-return-address
14692 function attribute and add mbranch-protection.
14693 * doc/invoke.texi: Add bti to the options for mbranch-protection.
14695 2019-04-03 Richard Biener <rguenther@suse.de>
14698 * lto-wrapper.c (run_gcc): Avoid implicit rules making
14699 the all target phony.
14701 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
14705 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14706 Return false for variable DImode shifts.
14707 (dimode_scalar_chain::compute_convert_gain): Do not handle
14708 register count operand in variable DImode shifts.
14709 (dimode_scalar_chain::make_vector_copies): Remove support to copy
14710 count argument of a variable shift instruction to a vector register.
14711 (dimode_scalar_chain::convert_reg): Remove support to convert
14712 count argument of a variable shift instruction.
14714 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14716 PR rtl-optimization/84206
14717 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
14718 iterating over loop headers.
14720 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14722 PR rtl-optimization/85876
14723 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
14724 beyond the original fence.
14726 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
14728 * config.gcc: Mark spu* targets as deprecated/obsolete.
14730 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14732 * config/s390/s390-builtin-types.def: New builtin function type
14733 definitions. Remove unused types.
14734 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
14735 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
14736 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
14737 overloaded builtins.
14738 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
14739 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
14740 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
14741 (vec_double, vec_signed, vec_unsigned): Define to use the new
14742 overloaded builtins.
14743 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
14746 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14748 * config/s390/s390-builtin-types.def: New builtin function type
14750 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
14751 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
14752 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
14753 (s390_vstrszh, s390_vstrszf): New low-level builtins.
14754 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
14755 constant definitions.
14756 * config/s390/vecintrin.h (vec_search_string_cc)
14757 (vec_search_string_until_zero_cc): New builtin name definitions.
14758 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
14760 ("vec_vstrs<mode>"): New insn definition.
14762 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14764 * config/s390/s390-builtin-types.def: Add new builtin function
14766 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
14767 New overloaded builtins.
14768 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
14770 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
14771 (UNSPEC_VEC_SLDBYTE): ... this.
14772 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
14773 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
14775 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
14776 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
14777 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
14779 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14781 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
14782 New insn definition.
14783 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
14784 * config/s390/vector.md (V_HW_HSD): ... here.
14786 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14788 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
14789 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
14790 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
14791 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
14792 New insn definitions.
14794 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14796 * config/s390/s390-builtin-types.def: Add new builtin function type.
14797 * config/s390/s390-builtins.def: Add overloaded builtin
14798 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
14799 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
14800 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
14801 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
14802 ("eltswap<mode>"): New expander.
14803 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
14806 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14808 * config/s390/s390-builtin-types.def: Add new builtin function types.
14809 * config/s390/s390-builtins.def: Add overloaded builtin
14810 s390_vec_revb. Add low-level builtins for vlbr and vstbr
14812 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
14813 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
14814 ("bswap<mode>"): New expander.
14815 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
14817 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14819 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
14820 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
14821 vector builtin version number in __VEC__.
14823 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14825 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
14827 (SFSI): New mode attribute.
14828 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
14829 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
14831 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
14832 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
14833 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
14834 ("floatsi<mode>2"): Add wcefb instruction.
14836 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14838 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
14839 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
14841 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
14842 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
14843 support 32 bit fp-int conversions. Rename to ...
14844 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14845 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14846 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
14847 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
14850 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14852 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
14853 if-then-else constructs if we can use the select instruction.
14854 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
14856 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14858 * config/s390/s390.md ("*popcountdi_arch13_cc")
14859 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
14861 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
14862 Append _z196 to make it ...
14863 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
14864 ("popcounthi2_z196"): ... this.
14865 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
14866 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
14868 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14870 * config/s390/s390.c (s390_canonicalize_comparison): Convert
14871 certain compares for arch13 in order to make use of the condition
14872 code result produced by the new instructions.
14873 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
14874 nxrk, and nxgrk instruction patterns.
14875 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
14876 (inv_no): Add new code iterator together with some attributes.
14877 ("*andc_split_<mode>"): Disable splitter for arch13.
14878 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
14879 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
14880 ("*<ANDOR:bitops_name>c<GPR:mode>")
14881 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
14882 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
14883 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
14884 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
14886 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14888 * common/config/s390/s390-common.c (processor_flags_table): New
14890 * config.gcc: Support arch13 with the --with-arch= configure flag.
14891 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14892 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
14893 * config/s390/s390.c (s390_get_sched_attrmask)
14894 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
14895 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
14896 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
14897 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
14898 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
14900 * config/s390/s390.opt: Support arch13 as processor type in
14901 command line options.
14903 2019-04-02 Martin Liska <mliska@suse.cz>
14905 PR translation/89912
14906 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
14907 Fix param description of graphite-max-arrays-per-scop.
14909 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
14911 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
14912 (ASAN_CC1_SPEC): Use it in 64-bit mode.
14913 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
14915 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14917 PR rtl-optimization/85412
14918 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
14919 sel_sched_region_1, not after.
14921 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14923 PR rtl-optimization/86928
14924 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
14925 compute_live if necessary.
14926 (sel_redirect_edge_and_branch): Likewise.
14928 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
14930 PR rtl-optimization/89865
14931 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
14932 register if it is a part of small class.
14934 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14936 PR rtl-optimization/87273
14937 * sel-sched-ir.c (merge_fences): Remove assert.
14939 2019-04-01 Richard Biener <rguenther@suse.de>
14941 PR tree-optimization/46590
14942 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
14943 (dom_walker::m_reachability): Add in place of...
14944 (dom_walker::m_skip_unreachable_blocks): ...this.
14945 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
14946 Move complex initialization ...
14947 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
14948 lazily and initialize edge flags on each invocation.
14949 (dom_walker::bb_reachable): Use m_reachability.
14951 2019-04-01 Martin Liska <mliska@suse.cz>
14954 * opt-suggestions.c (option_proposer::build_option_suggestions):
14955 Add variant without any argument in order to provide better
14958 2019-04-01 Richard Biener <rguenther@suse.de>
14961 * gimple.c: Include langhooks.h.
14962 (gimple_get_alias_set): Treat enumeral types as the underlying
14965 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14966 Eric Botcazou <ebotcazou@adacore.com>
14968 PR rtl-optimization/89862
14969 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
14970 that operates on the full registers for WORD_REGISTER_OPERATIONS
14973 2019-03-29 Jim Wilson <jimw@sifive.com>
14975 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
14976 Clear MASK_RVC and then set if C subset supported.
14978 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14981 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
14982 non-addressable complit into its initializer if it is volatile.
14984 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
14986 * opts-common.c (integral_argument): Set errno properly in one case.
14988 2019-03-29 Martin Liska <mliska@suse.cz>
14990 * doc/invoke.texi: Remove -Wchkp from documentation.
14992 2019-03-29 Martin Liska <mliska@suse.cz>
14994 * dbgcnt.c (print_limit_reach): New function.
14997 2019-03-29 Martin Liska <mliska@suse.cz>
14999 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
15000 (dbg_cnt_process_opt): Parse first tokens aas
15001 dbg_cnt_process_single_pair is also using strtok.
15003 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15005 PR rtl-optimization/87485
15006 * function.c (expand_function_end): Move stack_protect_epilogue
15007 before loading of return value into hard register(s).
15009 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15011 PR middle-end/89621
15012 * tree-inline.h (struct copy_body_data): Add
15013 dont_remap_vla_if_no_change flag.
15014 * tree-inline.c (remap_type_3, remap_type_2): New functions.
15015 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
15016 and remap_type_2 returns false.
15017 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
15018 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
15019 only from where it is copied to nested contexts.
15021 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15024 * config/i386/i386.md (RMW operation with LEA peephole):
15025 Use LEAMODE mode attribute instead of SWI mode iterator for
15028 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15031 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
15032 Also process XEXP (src, 0) of a shift insn.
15034 2019-03-28 David Malcolm <dmalcolm@redhat.com>
15036 PR middle-end/89725
15037 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
15038 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
15040 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15042 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
15044 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
15045 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
15046 immediately after first one with df_analyze in between, but rather
15047 process all bbs, queueing ones that need second pass in a worklist,
15048 df_analyze, process queued debug insn changes and if second pass is
15049 needed, process bbs from worklist, df_analyze, process queued debug
15052 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
15053 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
15054 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
15056 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
15059 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
15062 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
15065 * config/i386/i386.c (ix86_function_value_1): Call the newly added
15066 function for 32-bit MS_ABI.
15067 (function_value_ms_32): New function.
15069 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
15071 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
15072 (movdi): Call gen_movdi_symbol_save_scc.
15073 (gen_movdi_symbol_save_scc): New insn and split.
15075 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
15077 PR rtl-optimization/89313
15078 * function.c (matching_constraint_num): New static function.
15079 (match_asm_constraints_1): Use it. Fixup white space and comment.
15080 Don't replace inputs with non-matching constraints which conflict
15081 with early clobber outputs.
15083 2019-03-27 Jeff Law <law@redhat.com>
15085 PR rtl-optimization/87761
15086 PR rtl-optimization/89826
15087 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
15089 (pass_cprop_hardreg::execute): Call df_analyze after adding the
15090 note problem to get REG_DEAD/REG_UNUSED notes updated.
15092 2019-03-27 Richard Biener <rguenther@suse.de>
15094 PR tree-optimization/89463
15095 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
15096 queue edges to remove.
15097 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
15098 dead stmts. Delay edge removal until PHIs are removed to
15099 make debug-stmt creation not confused by seemingly degenerate
15102 2019-03-27 Alan Modra <amodra@gmail.com>
15104 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
15106 * config/rs6000/darwin.h: Likewise.
15107 * config/rs6000/rs6000.c: Likewise.
15109 2019-03-27 Alan Modra <amodra@gmail.com>
15111 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
15112 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
15114 2019-03-26 Andrew Waterman <andrew@sifive.com>
15115 Jim Wilson <jimw@sifive.com>
15117 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
15118 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
15119 (generic_idivdi, generic_fmul_single, generic_fmul_double)
15120 (generic_fdiv, generic_fsqrt): Add check for generic tune.
15121 (generic_alu): Add auipc to type list.
15122 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
15123 (riscv_microarchitecture): Declare.
15124 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
15125 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
15127 (riscv_microarchitecture): New.
15128 (sifive_7_tune_info): New.
15129 (riscv_cpu_info_table): Add microarchitecture value for rocket and
15130 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
15132 (riscv_store_data_bypass_p): New.
15133 (riscv_option_override): Set riscv_microarchitecture from
15134 cpu->microarchitecture.
15135 * config/riscv/riscv.md: Include sifive-7.md.
15138 (auipc<mode>): Change type to auipc.
15139 (restore_stack_nonlocal): New.
15140 * config/riscv/sifive-7.md: New.
15141 * doc/invoke.texi (RISC-V Options): Update mtune docs.
15143 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
15146 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
15147 Also process XEXP (src, 0) of a shift insn.
15149 2019-03-26 Richard Biener <rguenther@suse.de>
15151 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
15152 (copy_debug_stmt): Likewise.
15153 (expand_call_inline): Likewise.
15154 (copy_bb): Avoid redundant lookup & set of gimple_block.
15155 * gimple-low.c (lower_gimple_return): Likewise.
15156 (lower_builtin_setjmp): Likewise.
15158 2019-03-26 Jakub Jelinek <jakub@redhat.com>
15160 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
15161 is constant 0, turn into static const data member initialized to false.
15162 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
15163 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
15165 2019-03-26 Jason Merrill <jason@redhat.com>
15166 Jakub Jelinek <jakub@redhat.com>
15168 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
15170 (mem_alloc_description::release_object_overhead): Fix comment typos.
15171 * hash-table.h (hash_table::~hash_table): Call
15172 release_instance_overhead only if m_entries is non-NULL, otherwise
15173 call unregister_descriptor.
15175 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
15177 PR tree-optimization/81740
15178 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15179 In case of outer loop vectorization, check for backward dependence
15180 at the inner loop if outer loop dependence is reversed.
15182 2019-03-26 Alan Modra <amodra@gmail.com>
15184 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
15185 rs6000_vector_mem init. Correct wI and wJ comment.
15187 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
15189 PR rtl-optimization/88347
15190 PR rtl-optimization/88423
15191 * sched-deps.c (sched_analyze_insn): Take into account that for
15192 tablejumps the barrier appears after a label and a jump_table_data.
15194 2019-03-25 Martin Sebor <msebor@redhat.com>
15197 * c-common.c (check_user_alignment): Rename local. Correct maximum
15198 alignment in diagnostic. Avoid assuming argument fits in SHWI,
15199 convert it to UHWI when it fits.
15201 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
15204 * dwarf2out.c (premark_used_variables): New function.
15205 (prune_unused_types_walk): Do not mark not premarked external
15207 (prune_unused_types): Call premark_used_variables.
15209 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
15211 PR rtl-optimization/89676
15212 * lra-constraints.c (curr_insn_transform): Do match reload for
15213 early clobbers when the match was successful only for different
15216 2019-03-25 Martin Sebor <msebor@redhat.com>
15218 * doc/extend.texi (Common Type Attributes): Document vector_size.
15219 (Common Variable Attributes): Mention size constraint. Correct
15221 (Vector Extensions): Use @dfn when defining bas type. Clarify
15222 base type and size constraints.
15224 2019-03-25 Richard Biener <rguenther@suse.de>
15226 PR tree-optimization/89789
15227 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
15228 changes from non-undefined back to undefined.
15230 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
15232 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
15233 heap string and a gc string, but since this variable is unknown to
15234 ggc the gc string might get reused and corrupted. Fixed by always
15235 using a heap string.
15237 2019-03-25 Richard Biener <rguenther@suse.de>
15239 PR tree-optimization/89779
15240 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
15241 to remove IV defs, delay actual removal.
15242 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
15243 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
15244 very end, properly also reset loop control IV information.
15246 2019-03-25 Richard Biener <rguenther@suse.de>
15248 PR tree-optimization/89802
15249 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
15250 move EH data to folded stmt.
15252 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15254 * config/s390/s390-builtin-types.def: Remove few unused types and
15255 fix sort order for others.
15257 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15259 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
15260 expected and found types with -mdebug during builtin matching.
15262 2019-03-25 Richard Biener <rguenther@suse.de>
15264 PR middle-end/89790
15265 * fold-const.c (operand_equal_p): Revert last change with
15268 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
15270 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
15271 notes for the result of the __tls_get_addr calls.
15272 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
15274 2019-03-24 Jeff Law <law@redhat.com>
15276 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
15278 PR rtl-optimization/87761
15279 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
15280 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
15282 (pass_cprop_hardreg::execute): Add df note problem and defer insn
15283 rescans. Reprocess blocks as needed, calling df_analyze before
15284 reprocessing. Always call df_analyze before fixing up debug bind
15287 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
15289 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
15292 2019-03-22 Andrew Pinski <apinski@marvell.com>
15294 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
15295 attrribute for uxtw.
15297 2019-03-26 Jeff Law <law@redhat.com>
15299 PR rtl-optimization/87761
15300 * config/mips/mips-protos.h (mips_split_move): Add new argument.
15301 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
15302 (mips_split_move): Accept new INSN argument. Try to forward SRC
15303 into the next instruction.
15304 (mips_split_move_insn): Pass INSN through to mips_split_move.
15306 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
15308 PR rtl-optimization/89676
15309 * lra-constraints.c (curr_insn_transform): Do match reload for
15310 early clobbers even if the match was successful.
15312 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15315 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
15317 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
15319 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
15321 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15323 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
15324 <avx512>_fmsub_<mode>_mask3<round_name>,
15325 <avx512>_fnmadd_<mode>_mask3<round_name>,
15326 <avx512>_fnmsub_<mode>_mask3<round_name>,
15327 avx512f_vmfmadd_<mode>_mask3<round_name>,
15328 avx512f_vmfmsub_<mode>_mask3<round_name>,
15329 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
15330 instead of register_operand and %v instead of v for match_operand 1.
15331 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
15332 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
15333 <round_nimm_predicate> instead of register_operand and %v instead of v
15334 for match_operand 1.
15336 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
15337 <avx512>_fmadd_<mode>_mask3<round_name>,
15338 <avx512>_fmsub_<mode>_mask<round_name>,
15339 <avx512>_fmsub_<mode>_mask3<round_name>,
15340 <avx512>_fnmadd_<mode>_mask<round_name>,
15341 <avx512>_fnmadd_<mode>_mask3<round_name>,
15342 <avx512>_fnmsub_<mode>_mask<round_name>,
15343 <avx512>_fnmsub_<mode>_mask3<round_name>,
15344 <avx512>_fmaddsub_<mode>_mask<round_name>,
15345 <avx512>_fmaddsub_<mode>_mask3<round_name>,
15346 <avx512>_fmsubadd_<mode>_mask<round_name>,
15347 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
15348 <round_nimm_predicate> instead of nonimmediate_operand.
15349 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
15350 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15351 Use register_operand instead of <round_nimm_predicate> for the
15352 operand that needs to match output.
15353 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15354 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15355 Likewise. Formatting fixes.
15358 * config/i386/i386.c (enum ix86_builtins): Remove
15359 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15360 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15361 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15362 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15363 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15364 __builtin_ia32_vfmsubss3_mask3): New builtins.
15365 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15366 avx512f_vmfmadd_<mode>_mask3<round_name>,
15367 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15368 *avx512f_vmfmsub_<mode>_mask<round_name>,
15369 avx512f_vmfmsub_<mode>_mask3<round_name>,
15370 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15371 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15372 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15373 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15374 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15375 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15376 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15377 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15378 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15379 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15380 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15381 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15382 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15383 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15384 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15385 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15386 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15387 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15388 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15389 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15390 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15391 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15392 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15393 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15394 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15395 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15396 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15397 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15399 2019-03-21 Martin Sebor <msebor@redhat.com>
15401 PR tree-optimization/89350
15402 * builtins.c (compute_objsize): Also ignore offsets whose upper
15404 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15405 (builtin_memref::builtin_memref): Initialize new member.
15406 Allow EXPR to be null.
15407 (builtin_memref::extend_offset_range): Replace local with a member.
15408 Avoid assuming pointer offsets are unsigned.
15409 (builtin_memref::set_base_and_offset): Determine base object
15410 before computing offset range.
15411 (builtin_access::builtin_access): Handle memset.
15412 (builtin_access::generic_overlap): Replace local with a member.
15413 (builtin_access::strcat_overlap): Same.
15414 (builtin_access::overlap): Same.
15415 (maybe_diag_overlap): Same.
15416 (maybe_diag_access_bounds): Same.
15417 (wrestrict_dom_walker::check_call): Handle memset.
15418 (check_bounds_or_overlap): Same.
15420 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15421 Jakub Jelinek <jakub@redhat.com>
15424 * tree.c (fld_type_variant, fld_incomplete_type_of,
15425 fld_process_array_type): Call fld->pset.add and don't call
15426 add_tree_to_fld_list if it returns true.
15427 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15428 non-marked types from TYPE_NEXT_VARIANT list.
15429 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15431 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15433 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15434 to false, if true, don't alloc_entries during construction, but defer
15435 it to the first method that needs m_entries allocated.
15436 (hash_table::hash_table, hash_table::~hash_table,
15437 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15438 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15439 hash_table::clear_slot, hash_table::traverse_noresize,
15440 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15441 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15443 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15444 NO_INSERT instead of find_with_hash.
15445 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15446 hash_set::m_table): Add Lazy to template params of hash_table.
15447 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15448 * attribs.c (test_attribute_exclusions): Likewise.
15449 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15450 hash_set. Add tests for hash_set with Lazy = true.
15452 2019-03-21 Richard Biener <rguenther@suse.de>
15454 PR tree-optimization/89779
15455 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15456 checks with respect to released SSA names now having error_mark_node
15458 * fold-const.c (operand_equal_p): Likewise.
15460 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15463 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15465 (s390_optimize_register_info): Use global_not_special_regno_p to
15466 check for global regs.
15468 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15471 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15472 update this_alternative nor this_alternative_set.
15474 2019-03-19 Jim Wilson <jimw@sifive.com>
15477 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15478 align, size, offset. Use them to handle a BLKmode reference. Update
15480 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15482 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15484 PR rtl-optimization/89768
15485 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15486 instead of GEN_INT.
15487 (unroll_loop_runtime_iterations): Likewise.
15489 2019-03-19 Martin Sebor <msebor@redhat.com>
15491 PR tree-optimization/89644
15492 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15493 rather than endptr as an indicator of nul-termination.
15495 PR tree-optimization/89644
15496 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15497 arrays in determining sequence sizes in strncpy and stpncpy.
15499 2019-03-19 Martin Liska <mliska@suse.cz>
15501 PR middle-end/89737
15502 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15503 unlikely_edges if there's an edge that belongs to both these sets.
15505 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15508 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15509 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15510 go via a stack temporary.
15512 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15515 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15516 instead of gen_rtx_SUBREG.
15517 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15519 2019-03-19 Richard Biener <rguenther@suse.de>
15522 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15524 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15528 * tree.c (free_lang_data_in_decl): Do not free context of C++
15531 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15534 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15535 subs for the first alternative except when operands[3] is 1.
15538 * gimplify.c (gimplify_asm_expr): For output argument with
15539 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15542 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15544 PR rtl-optimization/89753
15545 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15546 explicit unrolling factor even more robust.
15548 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15551 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15552 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15553 signed zeros, do another copysign after the compensation.
15555 2019-03-18 Martin Sebor <msebor@redhat.com>
15557 PR tree-optimization/89720
15558 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15559 more conservatively, the same as anti-range.
15561 2019-03-18 Richard Biener <rguenther@suse.de>
15563 PR middle-end/88945
15564 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15565 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15566 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15567 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15569 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15571 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15572 Extend queue to 1024 entries.
15573 Add "consumed" field.
15574 (gomp_print_output): Remove print_index parameter.
15575 Add final parameter.
15576 Change limit to unsigned.
15577 Use consumed field to implement circular buffer.
15578 Detect interrupted print in final pass.
15579 Flush output at the end.
15580 (run): Update gomp_print_output usage.
15581 (main): Initialize kernargs->output_data.consumed.
15583 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15585 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15586 calculation of the minimum number of scalar iterations for
15587 fully-predicated loops.
15589 2019-03-18 Martin Jambor <mjambor@suse.cz>
15591 PR tree-optimization/89546
15592 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15593 any propagation to its children took place.
15595 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15598 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15599 parameter, and make use of it.
15600 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15602 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15604 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15605 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15606 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15607 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15608 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15609 match what the ops is doing.
15610 (push_multi_fp_blink): Likewise.
15611 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15612 compiling for size and elf target.
15613 (arc_save_callee_enter): Adjust note to match what enter/leave
15616 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15618 * config/arc/arc.md (tst_movb): Fix constraint.
15620 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15622 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15624 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15626 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15627 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15628 reg_alloc_order references.
15629 (size_alloc_order): Define.
15630 (arc_adjust_reg_alloc_order): New function.
15631 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15633 (ADJUST_REG_ALLOC_ORDER): Define.
15634 (HONOR_REG_ALLOC_ORDER): Likewise.
15636 2019-03-18 Richard Biener <rguenther@suse.de>
15639 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15640 loads and stores a bit more.
15642 2019-03-18 Richard Biener <rguenther@suse.de>
15645 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15646 load pessimization to stores as well.
15648 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15650 PR middle-end/86979
15651 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15652 successor, use NULL as its av set.
15654 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15656 PR rtl-optimization/89721
15657 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15659 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15662 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15663 When handling vec_extract, use modular arithmetic to allow
15664 constant selectors greater than vector length.
15665 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15666 V1TImode vectors to have constant selector values greater than 0.
15667 Use modular arithmetic to compute vector index.
15668 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15669 index for in-memory vectors. Correct code generation for
15670 in-register vectors.
15671 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15674 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
15678 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
15681 2019-03-15 Jakub Jelinek <jakub@redhat.com>
15684 * tree.c (inchash::add_expr): Strip any location wrappers.
15685 * fold-const.c (operand_equal_p): Move stripping of location wrapper
15686 after hash verification.
15689 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
15690 SIGN_EXTEND and ZERO_EXTEND.
15692 2019-03-14 Jason Merrill <jason@redhat.com>
15693 Jakub Jelinek <jakub@redhat.com>
15695 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
15696 than if is_empty (*slot).
15697 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
15698 existing elt and for elt removal.
15699 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
15700 of already removed elt.
15702 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
15705 * config/i386/i386.c (remove_partial_avx_dependency): Handle
15706 REG_EH_REGION note.
15708 2019-03-14 Martin Liska <mliska@suse.cz>
15711 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
15713 2019-03-14 Richard Biener <rguenther@suse.de>
15716 * config/i386/i386.c (make_resolver_func): Properly set
15717 DECL_CONTEXT on the RESULT_DECL.
15718 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
15720 2019-03-14 Richard Biener <rguenther@suse.de>
15722 * gimple-pretty-print.c: Include cfgloop.h.
15723 (dump_gimple_phi): Adjust.
15724 (dump_gimple_bb_header): Dump loop header for GIMPLE.
15725 (pp_cfg_jump): Adjust.
15726 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
15727 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
15728 (lower_phi_internal_fn): Remove.
15729 (verify_gimple_call): Remove IFN_PHI special-casing.
15730 (dump_function_to_file): Dump IL state.
15731 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
15732 done to deal with PHI nodes being present in non-SSA state.
15734 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15737 * multiple_target.c (create_dispatcher_calls): Change
15738 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
15739 In the node->iterate_referring loop, push *ref rather than ref, call
15740 ref->remove_reference () and always pass 0 to iterate_referring.
15742 PR rtl-optimization/89679
15743 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
15744 would contain a paradoxical SUBREG.
15746 2019-03-14 Richard Biener <rguenther@suse.de>
15748 PR tree-optimization/89710
15749 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
15752 2019-03-14 Martin Liska <mliska@suse.cz>
15754 * coverage.c (coverage_begin_function): Stream also
15756 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
15757 documentation about function declaration location.
15758 * gcov-dump.c (tag_function): Print whole range
15759 of function declaration.
15760 * gcov.c (struct function_info): Add end_column field.
15761 (function_info::function_info): Initialize it.
15762 (output_json_intermediate_file): Output {start,end}_column
15764 (read_graph_file): Read end_column.
15766 2019-03-14 Richard Biener <rguenther@suse.de>
15768 PR middle-end/89698
15769 * fold-const.c (operand_equal_p): For INDIRECT_REF check
15770 that the access types are similar.
15772 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15774 PR tree-optimization/89703
15775 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
15776 aren't compatible also with builtin_decl_explicit. Check pure
15777 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
15778 and BUILT_IN_STPNCPY{,_CHK}.
15780 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
15783 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
15784 addr32 prefix to VSIB address for X32.
15785 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
15787 (*avx512pf_gatherpf<mode>df_mask): Likewise.
15788 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
15789 (*avx512pf_scatterpf<mode>df_mask): Likewise.
15790 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
15791 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
15792 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
15793 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
15794 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
15795 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
15796 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
15797 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
15798 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
15799 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
15800 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
15801 (*avx512f_scatterdi<mode>): Likewise.
15803 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
15806 * lra-constraints.c (inherit_in_ebb): Update
15807 potential_reload_hard_regs along with live_hard_regs.
15809 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15812 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
15814 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
15816 2019-03-13 Martin Sebor <msebor@redhat.com>
15818 PR tree-optimization/89662
15819 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
15822 2019-03-13 Richard Biener <rguenther@suse.de>
15824 PR middle-end/89677
15825 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
15826 throw FP expressions at tree-affine.
15828 2019-03-14 Richard Biener <rguenther@suse.de>
15830 * tree-pretty-print.c (dump_generic_node): For -gimple properly
15831 dump negative integer constants using _Literal (type) -num.
15833 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15835 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
15836 nonlocal_value member.
15838 PR middle-end/88588
15839 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
15840 (ipa_simd_modify_function_body): Handle PHIs.
15842 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15844 * config/s390/s390.c (s390_option_override_internal): Use more
15845 aggressive inlining parameters.
15847 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15849 * config/s390/3906.md: New file.
15850 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15851 (LONGRUNNING_THRESHOLD): Remove.
15852 (MAX_SCHED_MIX_SCORE): Decrease.
15853 (MAX_SCHED_MIX_DISTANCE): Decrease.
15854 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
15855 (struct s390_sched_state): New struct to hold scheduling state.
15856 (S390_SCHED_STATE_NORMAL): Remove.
15857 (S390_SCHED_STATE_CRACKED): Remove.
15858 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
15859 (s390_get_sched_attrmask): Use new attribute.
15860 (s390_get_unit_mask): Use new units.
15861 (s390_is_fpd): New function.
15862 (s390_is_fxd): New function.
15863 (s390_is_longrunning): New function.
15864 (s390_sched_score): Use new functions.
15865 (s390_sched_reorder): Likewise.
15866 (s390_sched_variable_issue): Rework and use new functions.
15867 (s390_sched_init): Use new functions.
15868 * config/s390/s390.h (s390_tune_attr): Add z14.
15869 * config/s390/s390.md: Add z14.
15871 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15873 * config/s390/2964.md: Update pipeline description.
15874 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15875 (LONGRUNNING_THRESHOLD): Remove.
15876 (LATENCY_FACTOR): Remove.
15877 (s390_get_unit_mask): Add unit.
15878 (s390_sched_score): Use fxd/fpd.
15879 (s390_sched_variable_issue): Use fxd/fpd.
15881 2019-03-12 Martin Liska <mliska@suse.cz>
15883 * config/i386/i386.c: Reword an error message.
15885 2019-03-12 Martin Jambor <mjambor@suse.cz>
15887 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
15888 terminate with newline.
15890 2019-03-12 Jakub Jelinek <jakub@redhat.com>
15893 * config/s390/s390.md (tabort): Use %wd instead of
15894 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
15895 letters and periods.
15896 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
15897 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
15900 PR middle-end/89663
15901 * builtins.c (expand_builtin_int_roundingfn,
15902 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
15903 gcc_unreachable if validate_arglist fails.
15905 2019-03-12 Richard Biener <rguenther@suse.de>
15907 PR tree-optimization/89664
15908 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
15909 free the occurance tree after the early out.
15911 2019-03-11 Jakub Jelinek <jakub@redhat.com>
15913 PR middle-end/89655
15915 * vr-values.c (vr_values::update_value_range): If
15916 old_vr->varying_p (), don't update it, make new_vr also VARYING
15919 2019-03-11 Martin Liska <mliska@suse.cz>
15921 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15922 Fix double string quoting.
15924 2019-03-11 Martin Liska <mliska@suse.cz>
15926 * collect-utils.c (collect_wait): Wrap apostrophes
15927 in gcc internal format with %'.
15928 * collect2.c (main): Likewise.
15929 (scan_prog_file): Likewise.
15930 (scan_libraries): Likewise.
15931 * config/i386/i386.c (ix86_expand_call): Likewise.
15932 (ix86_handle_interrupt_attribute): Likewise.
15933 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15934 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
15935 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
15936 * lto-wrapper.c (find_crtoffloadtable): Likewise.
15937 * symtab.c (symtab_node::verify_base): Likewise.
15938 * tree-cfg.c (verify_gimple_label): Likewise.
15939 * tree.c (verify_type_variant): Likewise.
15941 2019-03-11 Martin Liska <mliska@suse.cz>
15943 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
15944 in a string format message and fix GNU coding style.
15945 (expand_builtin_set_thread_pointer): Likewise.
15946 * common/config/aarch64/aarch64-common.c
15947 (aarch64_rewrite_selected_cpu): Likewise.
15948 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
15949 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
15950 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
15951 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
15952 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
15953 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
15954 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
15955 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
15956 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
15957 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
15959 * common/config/riscv/riscv-common.c
15960 (riscv_subset_list::parsing_subset_version): Likewise.
15961 (riscv_subset_list::parse_std_ext): Likewise.
15962 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
15963 (riscv_subset_list::parse): Likewise.
15964 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
15965 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
15966 (aarch64_override_options_internal): Likewise.
15967 (aarch64_validate_mcpu): Likewise.
15968 (aarch64_validate_march): Likewise.
15969 (aarch64_validate_mtune): Likewise.
15970 (aarch64_override_options): Likewise.
15971 * config/alpha/alpha.c (alpha_option_override): Likewise.
15972 * config/arc/arc.c (arc_init): Likewise.
15973 (parse_mrgf_banked_regs_option): Likewise.
15974 (arc_override_options): Likewise.
15975 (arc_expand_builtin_aligned): Likewise.
15976 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
15977 (arm_expand_builtin): Likewise.
15978 * config/arm/arm.c (arm_option_check_internal): Likewise.
15979 (arm_configure_build_target): Likewise.
15980 (arm_option_override): Likewise.
15981 (arm_options_perform_arch_sanity_checks): Likewise.
15982 (arm_handle_cmse_nonsecure_entry): Likewise.
15983 (arm_handle_cmse_nonsecure_call): Likewise.
15984 (arm_tls_referenced_p): Likewise.
15985 (thumb1_expand_prologue): Likewise.
15986 * config/avr/avr.c (avr_option_override): Likewise.
15987 * config/bfin/bfin.c (bfin_option_override): Likewise.
15988 * config/c6x/c6x.c (c6x_option_override): Likewise.
15989 * config/cr16/cr16.c (cr16_override_options): Likewise.
15990 * config/cris/cris.c (cris_option_override): Likewise.
15991 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
15992 * config/darwin-c.c (macosx_version_as_macro): Likewise.
15993 * config/darwin.c (darwin_override_options): Likewise.
15994 * config/frv/frv.c (frv_expand_builtin): Likewise.
15995 * config/h8300/h8300.c (h8300_option_override): Likewise.
15996 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
15997 (ix86_option_override_internal): Likewise.
15998 (warn_once_call_ms2sysv_xlogues): Likewise.
15999 (ix86_expand_prologue): Likewise.
16000 (split_stack_prologue_scratch_regno): Likewise.
16001 (ix86_warn_parameter_passing_abi): Likewise.
16002 * config/ia64/ia64.c (fix_range): Likewise.
16003 * config/m68k/m68k.c (m68k_option_override): Likewise.
16004 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
16005 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
16006 (mips_set_compression_mode): Likewise.
16007 * config/mmix/mmix.c (mmix_option_override): Likewise.
16008 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
16009 * config/msp430/msp430.c (msp430_option_override): Likewise.
16010 * config/nds32/nds32.c (nds32_option_override): Likewise.
16011 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
16012 (nios2_option_override): Likewise.
16013 (nios2_expand_custom_builtin): Likewise.
16014 * config/nvptx/mkoffload.c (main): Likewise.
16015 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
16016 * config/pa/pa.c (fix_range): Likewise.
16017 (pa_option_override): Likewise.
16018 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
16019 (riscv_option_override): Likewise.
16020 * config/rl78/rl78.c (rl78_option_override): Likewise.
16021 * config/rs6000/aix61.h: Likewise.
16022 * config/rs6000/aix71.h: Likewise.
16023 * config/rs6000/aix72.h: Likewise.
16024 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
16025 * config/rs6000/freebsd64.h: Likewise.
16026 * config/rs6000/linux64.h: Likewise.
16027 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
16028 (rs6000_expand_zeroop_builtin): Likewise.
16029 (rs6000_expand_mtfsb_builtin): Likewise.
16030 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
16031 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
16032 (rs6000_invalid_builtin): Likewise.
16033 (rs6000_expand_split_stack_prologue): Likewise.
16034 * config/rs6000/rtems.h: Likewise.
16035 * config/rx/rx.c (valid_psw_flag): Likewise.
16036 (rx_expand_builtin): Likewise.
16037 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16038 * config/s390/s390.c (s390_expand_builtin): Likewise.
16039 (s390_function_profiler): Likewise.
16040 (s390_option_override_internal): Likewise.
16041 (s390_option_override): Likewise.
16042 * config/sh/sh.c (sh_option_override): Likewise.
16043 (sh_builtin_saveregs): Likewise.
16044 (sh_fix_range): Likewise.
16045 * config/sh/vxworks.h: Likewise.
16046 * config/sparc/sparc.c (sparc_option_override): Likewise.
16047 * config/spu/spu.c (spu_option_override): Likewise.
16048 (fix_range): Likewise.
16049 * config/visium/visium.c (visium_option_override): Likewise.
16050 (visium_handle_interrupt_attr): Likewise.
16051 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
16052 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
16053 (dbg_cnt_process_opt): Likewise.
16054 * dwarf2out.c (output_dwarf_version): Likewise.
16055 * except.c (expand_eh_return): Likewise.
16056 * gcc.c (defined): Likewise.
16057 (driver_handle_option): Likewise.
16058 (process_command): Likewise.
16059 (compare_files): Likewise.
16060 (driver::prepare_infiles): Likewise.
16061 (driver::do_spec_on_infiles): Likewise.
16062 (driver::maybe_run_linker): Likewise.
16063 * omp-offload.c (oacc_parse_default_dims): Likewise.
16064 * opts-global.c (handle_common_deferred_options): Likewise.
16065 * opts.c (parse_sanitizer_options): Likewise.
16066 (common_handle_option): Likewise.
16067 (enable_warning_as_error): Likewise.
16068 * passes.c (enable_disable_pass): Likewise.
16069 * plugin.c (parse_plugin_arg_opt): Likewise.
16070 (default_plugin_dir_name): Likewise.
16071 * targhooks.c (default_expand_builtin_saveregs): Likewise.
16072 (default_pch_valid_p): Likewise.
16073 * toplev.c (init_asm_output): Likewise.
16074 (process_options): Likewise.
16075 (toplev::run_self_tests): Likewise.
16076 * tree-cfg.c (verify_gimple_call): Likewise.
16077 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
16078 (tree_inlinable_function_p): Likewise.
16079 * var-tracking.c (vt_find_locations): Likewise.
16081 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
16083 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
16084 only on the else branch.
16086 2019-03-11 Martin Liska <mliska@suse.cz>
16088 * gcov.c (output_intermediate_json_line): Print function
16090 (output_json_intermediate_file): Add new argument.
16091 * doc/gcov.texi: Document the change.
16093 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
16095 PR rtl-optimization/89588
16096 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16097 explicit unrolling factor more robust.
16099 2019-03-11 Richard Biener <rguenther@suse.de>
16101 PR tree-optimization/89649
16102 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
16103 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
16104 on the prolog and epilog loops.
16105 (vect_loop_versioning): Return copy of loop.
16106 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
16107 on the non-vectorized version of the loop.
16109 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
16112 * config/i386/sse.md (*vec_extractv2di_0_sse):
16113 Add (=r,x) alternative and corresponding splitter.
16115 2019-03-10 Martin Jambor <mjambor@suse.cz>
16117 PR tree-optimization/85762
16118 PR tree-optimization/87008
16119 PR tree-optimization/85459
16120 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
16121 it points to if there is a type changing MEM_REF. Adjust all callers.
16122 (build_accesses_from_assign): Disable total scalarization if
16123 contains_vce_or_bfcref_p returns true through the new parameter, for
16126 2019-03-09 Jakub Jelinek <jakub@redhat.com>
16129 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
16130 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
16133 * common.opt (fdiagnostics-show-labels,
16134 fdiagnostics-show-line-numbers, fdiagnostics-format=,
16135 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
16136 gas-locview-support, ginline-points, ginternal-reset-location-views):
16137 Terminate description text with a dot.
16138 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
16139 * config/mcore/mcore.opt (m210, m340): Likewise.
16140 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
16141 mnops=): Start description text with a capital letter.
16142 * config/arc/arc.opt (msize-level=): Likewise.
16143 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
16144 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
16145 mnewlib): Likewise.
16146 * config/ft32/ft32.opt (msim): Likewise.
16147 (mft32b, mcompress): Likewise. Terminate description text with a dot.
16148 (mnodiv, mnopm): Terminate description text with a dot.
16149 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
16151 * config/i386/i386.opt (prefer_vector_width, instrument_return):
16153 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
16156 PR rtl-optimization/89634
16157 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
16158 are modified in BB_END (e->src) instruction.
16160 2019-03-08 David Malcolm <dmalcolm@redhat.com>
16163 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
16164 messages more amenable to translation, and improve wording.
16166 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
16168 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
16169 ud- and du-chains between phases.
16171 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
16174 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
16175 instead of POLY_INT_CST.
16177 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
16179 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
16182 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
16187 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
16188 (_mm_storeu_si64): Ditto.
16190 2019-03-08 Martin Liska <mliska@suse.cz>
16193 * config/i386/i386.c (ix86_option_override_internal): Disable
16194 jump tables when retpolines are used.
16196 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
16199 * ipa-split.c (execute_split_functions): Do not split
16200 'noinline' or 'section' function.
16202 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16205 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
16206 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
16207 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
16210 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
16211 from diagnostics. Formatting fixes.
16214 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
16215 warn_odr diagnostics.
16218 * lra-constraints.c (process_alt_operands): Avoid one space before
16219 " at the end of line and another after " on another line in a string
16221 * attribs.c (handle_dll_attribute): Likewise.
16222 * config/avr/avr-devices.c (avr_texinfo): Likewise.
16224 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
16225 warning_at or inform messages in G_() if there is no ?:.
16227 PR tree-optimization/89550
16228 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
16229 returned true. Formatting fixes.
16230 (expand_builtin_strnlen): Formatting fixes.
16231 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
16232 if warning_at returned true.
16233 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
16235 2019-03-08 Richard Biener <rguenther@suse.de>
16237 PR middle-end/89578
16238 * cfgloop.h (struct loop): Add owned_clique field.
16239 * cfgloopmanip.c (copy_loop_info): Copy it.
16240 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
16242 * tree-inline.c (copy_loops): Remap owned_clique.
16243 * lto-streamer-in.c (input_cfg): Stream owned_clique.
16244 * lto-streamer-out.c (output_cfg): Likewise.
16246 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16249 * config/darwin.c: Include intl.h.
16250 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
16251 composing the message out of two separate parts.
16253 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16256 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
16257 doesn't start with a capital letter and doesn't end with a dot.
16258 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
16259 with a capital letter.
16260 (ix86_mangle_function_version_assembler_name): Likewise.
16261 (ix86_generate_version_dispatcher_body): Likewise.
16262 (fold_builtin_cpu): Likewise.
16263 (get_builtin_code_for_version): Likewise. Remove extraneous space.
16264 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
16265 translators, wrap full type name in %qs.
16267 PR translation/79999
16268 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
16269 depend clause with source (or sink) modifier.
16270 * omp-expand.c (expand_omp_ordered_sink): Likewise.
16273 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
16274 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
16275 (avx512f_load<mode>_mask): New define_expand.
16276 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
16277 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
16278 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
16279 __builtin_ia32_movess_mask): New builtins.
16280 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
16281 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
16282 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
16283 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
16285 2019-03-07 Martin Jambor <mjambor@suse.cz>
16288 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
16289 for extern inline functions.
16291 2019-03-07 Martin Jambor <mjambor@suse.cz>
16294 * cgraph.h (cgraph_node): New inline method former_thunk_p.
16295 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
16296 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
16297 have multiple callees. At the end check if declarations match as
16298 opposed to cgraph_nodes.
16300 2019-03-07 Martin Liska <mliska@suse.cz>
16302 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
16303 which is equivalent to searching for this in clones chain.
16304 * symtab.c (symtab_node::verify_base): Similarly compare ASM
16305 names with a neighbour and special case first node in a chain.
16307 2019-01-25 Jason Merrill <jason@redhat.com>
16309 PR c++/80916 - spurious "static but not defined" warning.
16310 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
16311 for an internal symbol with DECL_EXTERNAL.
16313 2019-04-07 Richard Biener <rguenther@suse.de>
16315 PR middle-end/89618
16316 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
16317 * tree-inline.c (copy_loops): Simplify.
16319 2019-03-07 Martin Liska <mliska@suse.cz>
16321 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
16323 2019-03-07 Richard Biener <rguenther@suse.de>
16325 PR tree-optimization/89595
16326 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
16327 stmt iterator as reference, take boolean output parameter to
16328 indicate whether the stmt was removed and thus the iterator
16330 (dom_opt_dom_walker::before_dom_children): Re-iterate over
16331 stmts created by folding.
16333 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16336 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
16339 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
16341 PR rtl-optimization/88845
16342 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
16344 * lra.c (remove_scratches_1): New function.
16345 (remove_scratches): Use it.
16346 (lra_emit_move): Likewise.
16348 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
16350 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16351 unaligned_access variable.
16352 * config/arc/arc.c (arc_override_options): Set unaligned access
16353 default on for HS CPUs.
16354 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16356 2019-03-06 Martin Liska <mliska@suse.cz>
16358 PR gcov-profile/89577
16359 * doc/gcov.texi: Prefer to use --coverage.
16360 * doc/sourcebuild.texi: Likewise.
16362 2019-03-02 Jason Merrill <jason@redhat.com>
16364 PR c++/86485 - -Wmaybe-unused with empty class ?:
16365 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16367 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16370 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16373 PR middle-end/89590
16374 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16375 exactly one argument.
16377 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16378 Richard Sandiford <richard.sandiford@arm.com>
16380 PR tree-optimization/89570
16381 * match.pd (vec_cond into cond_op simplification): Don't use
16382 get_conditional_internal_fn, use as_internal_fn (cond_op).
16384 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16387 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16388 to decide when to split off a non-zero offset from a symbol.
16389 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16390 in function symbols.
16392 2019-03-05 Richard Biener <rguenther@suse.de>
16394 PR tree-optimization/89594
16395 * tree-if-conv.c (pass_if_conversion::execute): Handle
16396 case where .LOOP_VECTORIZED_FUNCTION was removed.
16398 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16401 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16402 instead alloca it only when needed with the needed size.
16404 PR tree-optimization/89570
16405 * match.pd (vec_cond into cond_op simplification): Guard with
16406 vectorized_internal_fn_supported_p test and #if GIMPLE.
16408 PR tree-optimization/89566
16409 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16410 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16411 Punt if get_user_idx_format succeeds, but idx_format argument is
16412 not provided or doesn't have pointer type, or if idx_args is above
16413 number of provided arguments.
16415 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16417 PR tree-optimization/89437
16418 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16420 2019-03-04 Richard Biener <rguenther@suse.de>
16422 PR middle-end/89572
16423 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16426 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16428 PR tree-optimization/89487
16429 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16430 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16431 (distribute_loop): Don't do runtime alias check if there is non-
16432 addressable data reference.
16433 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16434 is a register variable.
16436 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16439 * config/arm/arm.md (cmpsi2_addneg): Use
16440 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16441 If operands[2] is 0 or INT_MIN, force use of subs.
16442 (*compare_scc splitter): Use gen_int_mode.
16443 (*negscc): Likewise.
16444 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16446 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16447 Monk Chiang <sh.chiang04@gmail.com>
16449 * common/config/riscv/riscv-common.c: Include sstream.
16450 (riscv_subset_list::to_string): New.
16451 (riscv_arch_str): Likewise.
16452 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16453 * config.in: Regen.
16454 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16455 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16456 (riscv_emit_attribute): New.
16457 (riscv_file_start): Emit attribute if needed.
16458 (riscv_option_override): Init riscv_emit_attribute_p.
16459 * config/riscv/riscv.opt (mriscv-attribute): New option.
16460 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16461 * configure: Regen.
16462 * doc/install.texi: Document --with-riscv-attribute.
16463 * doc/invoke.texi: Document -mriscv-attribute.
16465 * common/config/riscv/riscv-common.c:
16466 Include config/riscv/riscv-protos.h.
16467 (INCLUDE_STRING): Defined.
16468 (RISCV_DONT_CARE_VERSION): Defined.
16469 (riscv_subset_t): Declare.
16470 (riscv_subset_t::riscv_subset_t): New.
16471 (riscv_subset_list): Declare.
16472 (riscv_subset_list::riscv_subset_list): New.
16473 (riscv_subset_list::~riscv_subset_list): Likewise.
16474 (riscv_subset_list::parsing_subset_version): Likewise.
16475 (riscv_subset_list::parse_std_ext): Likewise.
16476 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16477 (riscv_subset_list::add): Likewise.
16478 (riscv_subset_list::lookup): Likewise.
16479 (riscv_subset_list::xlen): Likewise.
16480 (riscv_subset_list::parse): Likewise.
16481 (riscv_supported_std_ext): Likewise.
16482 (current_subset_list): Likewise.
16483 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16486 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16488 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16489 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16490 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16492 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16494 PR rtl-optimization/85899
16495 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16496 fallthru edges leading to the exit block.
16498 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16501 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16502 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16504 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16506 PR tree-optimization/89535
16507 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16508 for each operand. Calculate the fallback choice for mask operands
16509 and pass it to vect_get_vec_def_for_operand.
16511 2019-03-01 Richard Biener <rguenther@suse.de>
16513 PR middle-end/89541
16514 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16515 get virtual operands.
16516 (get_expr_operands): Handle CONST_DECL like other decls.
16518 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16520 PR middle-end/89503
16521 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16522 on DECL_P and EXPR_P.
16524 2019-03-01 Richard Biener <rguenther@suse.de>
16526 PR middle-end/89497
16527 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16528 argument, defaulted to zero.
16529 * passes.c (execute_function_todo): Pass down SSA update flags
16530 to cleanup_tree_cfg.
16531 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16532 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16534 (cleanup_tree_cfg): Get and pass down SSA update flags.
16536 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16539 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16540 early_lto_debug argument.
16542 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16544 PR tree-optimization/89536
16545 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16546 only whether bit #0 of the value is 0 instead of the entire value.
16548 2019-02-28 Marek Polacek <polacek@redhat.com>
16550 PR c++/87068 - missing diagnostic with fallthrough statement.
16551 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16552 at the end of a seq, save its location to walk_stmt_info.
16553 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16556 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16559 * tree.c (find_atomic_core_type): Move ahead in file.
16560 (check_base_type): Correctly compare alignments of atomic types.
16562 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16565 * config/i386/i386.c (get_builtin_code_for_version): Identify
16566 Westmere from PCLMUL, instead of AES.
16568 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16571 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16572 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16575 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16578 * config/aarch64/aarch64-option-extensions.def: Document it.
16579 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16582 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16585 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16586 builtins if they don't have a single scalar floating point argument.
16589 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16591 PR rtl-optimization/89490
16592 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16593 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16594 block section is not mergeable.
16596 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16599 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16600 old define_insn to ...
16601 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16602 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16603 Rename old define_insn to ...
16604 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16605 (thumb2_casesi_internal_pic): New define_expand. Rename old
16607 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16608 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16609 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16611 2019-02-27 Richard Biener <rguenther@suse.de>
16614 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16616 2019-02-27 Richard Biener <rguenther@suse.de>
16618 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16621 2019-02-27 Richard Biener <rguenther@suse.de>
16624 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16625 parameter, prefix section name with .gnu.debuglto_ if true.
16626 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16627 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16629 2019-02-27 Richard Biener <rguenther@suse.de>
16632 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16633 rather than on use_debug_types, doing what output_die does.
16634 (value_format): Likewise.
16636 2019-02-27 Martin Jambor <mjambor@suse.cz>
16637 Martin Sebor <msebor@redhat.com>
16639 * doc/invoke.texi (Warning Options): Reword description of
16640 -Wno-absolute-value.
16642 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16644 PR tree-optimization/89280
16645 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16646 builtin_setjmp_setup_bb): New functions.
16647 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16648 When visiting __builtin_setjmp_setup block, queue in special
16649 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16650 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16651 from visited after the loop if they don't have any visited successor
16654 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16656 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16658 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16660 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16663 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16664 with types other than sizetype/ssizetype.
16666 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16668 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16669 (enum sparc_processor_type): ...this.
16670 (enum sparc_code_model_type): New enumeration type.
16671 (enum sparc_memory_model_type): Tweak comments.
16672 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16674 (mcmodel): Use sparc_code_model enumeration and variable.
16675 (sparc_code_model): New enumeration.
16676 (mdebug): Add Undocumented marker.
16677 * config/sparc/sparc.h (enum cmodel): Delete.
16678 (sparc_cmodel): Likewise.
16679 (TARGET_CM_MEDLOW): Adjust to above renaming.
16680 (TARGET_CM_MEDMID): Likewise.
16681 (TARGET_CM_MEDANY): Likewise.
16682 (TARGET_CM_EMBMEDANY): Likewise.
16683 * config/sparc/sparc.c (sparc_cmodel): Delete.
16684 (sparc_option_override): Remove string/value mapping support for the
16685 code model. Move code and memory model support to after the handling
16686 of target flags. Do private machine setup last.
16687 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
16688 (sparc_legitimize_reload_address): Likewise.
16689 (sparc_output_mi_thunk): Likewise.
16690 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
16692 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16694 PR tree-optimization/89500
16695 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
16696 (handle_builtin_strlen): Remove noncst_bound variable. Always
16697 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
16698 cst if the first cst bytes starting at x are known to be non-zero,
16699 even if the string is not zero terminated. Don't try to modify
16700 *si for strnlen. Update strlen_to_stridx only for strlen or if
16701 we can prove strnlen returns the same value as strlen would.
16703 2019-02-26 Martin Liska <mliska@suse.cz>
16705 * alloc-pool.h (struct pool_usage): Remove extra
16707 * bitmap.h (struct bitmap_usage): Likewise.
16708 * ggc-common.c (struct ggc_usage): Likewise.
16709 * mem-stats.h (struct mem_usage): Likewise.
16710 (mem_alloc_description::dump): Print dash lines
16711 here and repeat header at the end of a table report.
16712 It's then more readable.
16713 * tree-phinodes.c (phinodes_print_statistics): Make
16714 horizontal alignment.
16715 * tree-ssanames.c (ssanames_print_statistics): Likewise.
16716 * vec.c (struct vec_usage): Remove extra print_dash_line.
16717 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
16719 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
16721 * doc/extend.texi (__builtin_object_size):
16722 Use @pxref instead of @xref inside parenthesis.
16723 (__builtin_has_attribute): Add missing comma after @xref.
16724 (__builtin_object_size): Ditto.
16725 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
16727 2019-02-26 Jeff Law <law@redhat.com>
16729 PR rtl-optimization/87761
16730 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
16731 detect obviously dead insns and delete them.
16733 2019-02-26 Richard Biener <rguenther@suse.de>
16735 PR tree-optimization/89505
16736 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
16737 to handle restrict pointed-to vars with multiple subvars
16740 2019-02-26 Richard Biener <rguenther@suse.de>
16742 PR tree-optimization/89489
16743 * tree-parloops.c (create_loop_fn): Copy over last_clique.
16745 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16747 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
16748 and move around comment.
16749 <BIT_AND_EXPR>: Likewise.
16750 <BIT_NOT_EXPR>: Add specific handling for boolean types.
16752 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16755 * config/i386/i386.c (remove_partial_avx_dependency): Call
16756 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
16757 after changing possibly many instructions to use that pseudo. Fix up
16758 insertion of v4sf_const0 setter at the start of bb.
16760 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16763 * doc/extend.texi (Variadic Pointer Args): New section.
16765 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16766 Martin Sebor <msebor@gmail.com>
16768 * common.opt (Wattribute-alias): Likewise.
16769 * doc/invoke.texi (Option Summary): List general form of
16770 -Wattribute-alias=. List positive form of -Wmissing-attributes.
16771 (-Wmissing-attributes): Invert entry, rewrite and correct default.
16772 Add cross-references.
16773 (-Wattribute-alias): Rewrite and correct default. Mention
16774 considered attributes (same as for -Wmissing-attributes).
16776 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
16778 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
16779 (_mm_cvtpd_ps): Likewise.
16780 (_mm_cvttpd_epi32): Likewise.
16783 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
16784 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
16787 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
16789 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16792 * common/config/aarch64/aarch64-common.c
16793 (struct aarch64_option_extension): Add is_synthetic.
16794 (all_extensions): Use it.
16795 (TARGET_OPTION_INIT_STRUCT): Define hook.
16796 (struct gcc_targetm_common): Moved to end.
16797 (all_extensions_by_on): New.
16798 (opt_ext_cmp, typedef opt_ext): New.
16799 (aarch64_option_init_struct): New.
16800 (aarch64_contains_opt): New.
16801 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
16802 * config/aarch64/aarch64-option-extensions.def
16803 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
16804 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
16805 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
16806 Set is_synthetic to false.
16807 (crypto): Set is_synthetic to true.
16808 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
16811 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16813 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16814 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
16815 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16816 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
16817 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
16818 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
16819 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
16820 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
16822 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
16823 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16824 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
16825 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
16826 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
16827 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
16828 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
16829 vfmlsl_laneq_high_f16): ... To this.
16830 * config/arm/neon.md: Update comments.
16832 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16834 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16835 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
16836 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16837 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
16838 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
16839 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
16840 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
16841 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
16843 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
16844 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16845 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
16846 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
16847 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
16848 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
16849 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
16850 vfmlslq_laneq_high_f16): ... To this.
16852 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
16854 PR rtl-optimization/86096
16855 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
16856 comparing mw_order values.
16858 2019-02-25 Jakub Jelinek <jakub@redhat.com>
16861 * config/arm/arm.md (*subsi3_carryin_const): Use
16862 arm_neg_immediate_operand predicate instead of
16863 arm_not_immediate_operand, "L" constraint instead of "K" and
16864 print it using %n2 instead of %B2.
16865 (*subsi3_carryin_const0): New define_insn.
16866 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
16867 instead of arm_not_operand and "I" constraint instead of "K" and
16868 print it using %n3 instead of %B2. Instead of using match_dup 2 add
16869 another match_operand and in the condition check that it is negation
16871 (*subsi3_carryin_compare_const0): New define_ins.
16872 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
16873 *subsi3_carryin_const.
16874 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
16875 split into *subsi3_carryin_compare_const0 if the highpart is zero.
16878 * config/arm.vfp.md (*negdf2_vfp): Use
16879 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
16880 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
16882 2019-02-24 Jakub Jelinek <jakub@redhat.com>
16884 PR rtl-optimization/89445
16885 * simplify-rtx.c (simplify_ternary_operation): Don't use
16886 simplify_merge_mask on operands that may trap.
16887 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
16888 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
16889 second operand is CONST_VECTOR, check if any element could be zero.
16890 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
16891 their operands can trap.
16893 2019-02-23 Martin Sebor <msebor@redhat.com>
16895 * gimple-ssa-sprintf.c (target_strtol): Rename...
16896 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
16897 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
16898 check for range error.
16900 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
16903 * opts-common.c (prune_options): Also prune joined switches
16904 with Negative and RejectNegative.
16905 * config/i386/i386.opt (march=): Add Negative(march=).
16906 (mtune=): Add Negative(mtune=).
16907 * doc/options.texi: Document Negative used together with Joined
16908 and RejectNegative.
16910 2019-02-22 Martin Sebor <msebor@redhat.com>
16912 * doc/extend.texi (Other Builtins): Add
16913 __builtin_is_constant_evaluated.
16915 2019-02-22 Richard Biener <rguenther@suse.de>
16917 PR tree-optimization/87609
16918 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
16920 2019-02-22 Jeff Law <law@redhat.com>
16922 PR rtl-optimization/87761
16923 * config/mips/mips.md: Add new combiner pattern to recognize
16924 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
16926 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
16929 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
16930 destination register in peepholes generating patterns for ADDS/SUBS.
16931 (add<mode>3_compare0,
16932 *addsi3_compare0_uxtw, add<mode>3_compareC,
16933 add<mode>3_compareV_imm, add<mode>3_compareV,
16934 *adds_<optab><ALLX:mode>_<GPI:mode>,
16935 *subs_<optab><ALLX:mode>_<GPI:mode>,
16936 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
16937 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
16938 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
16939 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
16940 sub<mode>3_compare1): Allow stack pointer for source register.
16941 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
16943 2019-02-22 Martin Sebor <msebor@redhat.com>
16945 PR tree-optimization/88993
16946 PR tree-optimization/88853
16947 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
16949 (sprintf_dom_walker::call_info::is_string_func): New helper.
16950 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
16951 for formatted string functions.
16952 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
16954 2019-02-22 Martin Sebor <msebor@redhat.com>
16957 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
16958 unreachable subexpressions.
16960 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
16961 Hongtao Liu <hongtao.liu@intel.com>
16962 Sunil K Pandey <sunil.k.pandey@intel.com>
16965 * config/i386/i386-passes.def: Add
16966 pass_remove_partial_avx_dependency.
16967 * config/i386/i386-protos.h
16968 (make_pass_remove_partial_avx_dependency): New.
16969 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
16971 (pass_data_remove_partial_avx_dependency): New.
16972 (pass_remove_partial_avx_dependency): Likewise.
16973 (make_pass_remove_partial_avx_dependency): Likewise.
16974 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
16975 (*extendsfdf2): Add avx_partial_xmm_update.
16976 (truncdfsf2): Likewise.
16977 (*float<SWI48:mode><MODEF:mode>2): Likewise.
16978 (SF/DF conversion splitters): Disabled for TARGET_AVX.
16980 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
16982 PR middle-end/85598
16983 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
16986 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
16989 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
16990 (PTA_SKYLAKE): Add PTA_AES.
16991 (PTA_GOLDMONT): Likewise.
16993 2019-02-22 Sudakshina Das <sudi.das@arm.com>
16995 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
16996 instruction if enabled.
16997 (aarch64_override_options): Remove reference to return address key.
16999 2019-02-22 Richard Biener <rguenther@suse.de>
17001 PR tree-optimization/89440
17002 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17003 not necessary assert.
17005 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
17008 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
17009 (oacc_replace_fn_attrib_attr): ... this new function.
17010 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
17011 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
17013 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17015 * config/arm/arm-cpus.in (ares): Rename to...
17016 (neoverse-n1): ... This. Add ares as alias.
17017 * config/arm/arm-tables.opt: Regenerate.
17018 * config/arm/arm-tune.md: Likewise.
17019 * doc/invoke.txt (ARM Options): Document neoverse-n1.
17021 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17023 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
17024 * config/aarch64/aarch64-tune.md: Regenerate.
17025 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
17027 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17029 * config/aarch64/aarch64.c (ares_tunings): Rename to...
17030 (neoversen1_tunings): ... This.
17031 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
17032 (neoverse-n1): New CPU.
17033 * config/aarch64/aarch64-tune.md: Regenerate.
17034 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
17036 2019-02-22 Richard Biener <rguenther@suse.de>
17038 PR middle-end/87609
17039 * cfghooks.h (dependence_hash): New typedef.
17040 (struct copy_bb_data): New type.
17041 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
17042 (duplicate_block): Likewise.
17043 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
17044 (copy_bbs): Create and pass down copy_bb_data.
17045 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
17046 (rtl_duplicate_bb): Likewise.
17047 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
17048 remap dependence info.
17050 2019-02-22 Richard Biener <rguenther@suse.de>
17052 PR tree-optimization/87609
17053 * tree-core.h (tree_base): Document special clique values.
17054 * tree-inline.c (remap_dependence_clique): Do not use the
17055 special clique value of one.
17056 (maybe_set_dependence_info): Use clique one.
17057 (clear_dependence_clique): New callback.
17058 (compute_dependence_clique): Clear clique one from all refs
17059 before assigning it (again).
17061 2019-02-21 Martin Sebor <msebor@redhat.com>
17063 * doc/extend.texi (__clear_cache): Correct signature.
17065 2019-02-21 Ian Lance Taylor <iant@golang.org>
17068 * varasm.c (decode_addr_const): Call lookup_constant_def rather
17069 than output_constant_def.
17070 (add_constant_to_table): New static function.
17071 (output_constant_def): Call add_constant_to_table.
17072 (tree_output_constant_def): Likewise.
17074 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17077 * builtins.c (fold_builtin_arith_overflow): If first two args are
17078 INTEGER_CSTs, set intres and ovfres to constants rather than calls
17081 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
17084 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
17085 error for -mindirect-branch/-mfunction-return with incompatible
17088 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17091 * constraints.md (q): Remove.
17092 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
17095 2019-02-21 Martin Jambor <mjambor@suse.cz>
17098 * omp-general.c (omp_extract_for_data): Removed a duplicate call
17099 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
17100 (omp_adjust_for_condition): ...here. Added necessary parameters.
17101 * omp-general.h (omp_adjust_for_condition): Updated declaration.
17102 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
17103 proper values to new parameters of omp_adjust_for_condition.
17105 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17107 PR middle-end/89412
17108 * expr.c (expand_assignment): If result is a MEM, use change_address
17109 instead of simplify_gen_subreg.
17111 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17112 David Malcolm <dmalcolm@redhat.com>
17114 PR middle-end/89091
17115 * fold-const.c (decode_field_reference): Return NULL_TREE if
17116 lang_hooks.types.type_for_size returns NULL. Check it before
17117 overwriting *exp_. Use return NULL_TREE instead of return 0.
17119 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17121 PR middle-end/88074
17122 PR middle-end/89415
17123 * toplev.c (do_compile): Double the emin/emax exponents to workaround
17126 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
17129 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
17130 TARGET_SSE in addition to TARGET_SSE_MATH.
17132 (ix86_excess_precision): Ditto.
17133 (ix86_float_exceptions_rounding_supported_p): Ditto.
17134 (use_rsqrt_p): Ditto.
17135 * config/i386/sse.md (rsqrt<mode>2): Ditto.
17137 2019-02-20 David Malcolm <dmalcolm@redhat.com>
17140 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
17141 linenum_arith_t when determining if two adjacent line spans are
17142 close enough to merge.
17143 (diagnostic_show_locus): Use linenum_arith_t when iterating over
17144 lines within each line_span.
17146 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17149 * lra-constraints.c(uses_hard_regs_p): Fix handling of
17150 paradoxical SUBREGS.
17152 2019-02-20 Li Jia He <helijia@linux.ibm.com>
17155 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
17156 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
17157 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
17160 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
17162 * config/gcn/gcn.c (print_operand): Fix typo.
17164 2019-02-19 Richard Biener <rguenther@suse.de>
17166 PR middle-end/88074
17167 * toplev.c (do_compile): Initialize mpfr's exponent range
17168 based on available float modes.
17170 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
17172 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
17173 as long as the epilogue isn't completed.
17175 2019-02-18 Martin Sebor <msebor@redhat.com>
17177 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
17178 __has_cpp_attribute, and __has_include.
17180 2019-02-18 Martin Sebor <msebor@redhat.com>
17182 * doc/invoke.texi (-Wreturn-type): Correct and expand.
17184 2019-02-18 Martin Sebor <msebor@redhat.com>
17186 PR middle-end/89294
17187 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
17189 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
17191 2019-02-18 Richard Biener <rguenther@suse.de>
17193 PR tree-optimization/89296
17194 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
17195 of no-warning flag to cases that might emit the bogus warning.
17197 2019-02-18 Jakub Jelinek <jakub@redhat.com>
17200 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
17202 * config/arm/vfp.md (*movdi_vfp): Likewise.
17203 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
17204 "q" constraint for operands[0].
17207 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
17208 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
17209 pattern in a temporary buffer.
17210 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
17211 than 64-operands[2].
17214 * config/s390/s390.c (s390_indirect_branch_attrvalue,
17215 s390_indirect_branch_settings): Define unconditionally.
17216 (s390_set_current_function): Likewise, but guard the whole body except
17217 the s390_indirect_branch_settings call with
17218 #if S390_USE_TARGET_ATTRIBUTE.
17219 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
17221 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
17222 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
17223 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
17224 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
17225 HOST_WIDE_INT_1U instead of 1ULL.
17226 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
17227 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
17228 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
17229 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
17231 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
17234 2019-02-18 Martin Jambor <mjambor@suse.cz>
17236 PR tree-optimization/89209
17237 * tree-sra.c (create_access_replacement): New optional parameter
17238 reg_tree. Use it as a type if non-NULL and access type is not of
17240 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
17241 to create_access_replacement.
17242 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
17243 Check lacc is non-NULL before attempting to re-create it on the RHS.
17245 2019-02-18 Martin Liska <mliska@suse.cz>
17248 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
17250 (symbol_table::free_edge): Recycle m_summary_id.
17251 * cgraph.h (get_summary_id): New.
17252 (symbol_table::release_symbol): Set m_summary_id to -1
17254 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
17255 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
17256 function_summary to fast_function_summary.
17257 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
17258 * ipa-pure-const.c (class funct_state_summary_t):
17259 Switch from function_summary to fast_function_summary.
17260 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
17261 (class ipa_ref_opt_summary_t): Switch from function_summary
17262 to fast_function_summary.
17263 * symbol-summary.h (class function_summary_base): New class
17264 that is created from base of former function_summary.
17265 (function_summary_base::unregister_hooks): New.
17266 (class function_summary): Inherit from function_summary_base.
17267 (class call_summary_base): New class
17268 that is created from base of former call_summary.
17269 (class call_summary): Inherit from call_summary_base.
17270 (struct is_same): New.
17271 (class fast_function_summary): New summary class.
17272 (class fast_call_summary): New summary class.
17273 * vec.h (vec_safe_grow_cleared): New function.
17275 2019-02-18 Martin Liska <mliska@suse.cz>
17277 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
17278 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
17279 * doc/tm.texi: Document new target hook.
17280 * doc/tm.texi.in: Likewise.
17281 * target.def: Add new target macro.
17282 * gcc.c (find_fortran_preinclude_file): Do not search multilib
17285 2019-02-17 Alan Modra <amodra@gmail.com>
17288 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
17289 output reg on add insn.
17290 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
17292 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17295 * config/i386/sse.md (ssedoublemode): Remove V4HI.
17296 (PMULHRSW): Likewise.
17297 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
17299 (ssse3_pmulhrswv4hi3): New expander.
17301 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17303 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
17304 MMX. Add isa attribute.
17306 2019-02-16 Jakub Jelinek <jakub@redhat.com>
17308 PR rtl-optimization/66152
17309 * builtins.h (c_readstr): Declare.
17310 * builtins.c (c_readstr): Remove forward declaration. Add
17311 null_terminated_p argument, if false, read all bytes from the
17312 string instead of stopping after '\0'.
17313 * expr.c (string_cst_read_str): New function.
17314 (store_expr): Use string_cst_read_str instead of
17315 builtin_strncpy_read_str. Try to store by pieces the whole
17316 exp_len first, and only if that fails, split it up into
17317 store by pieces followed by clear_storage. Formatting fix.
17319 * config/i386/i386.md (*movqi_internal): Remove static from
17320 buf variable. Use output_asm_insn (buf, operands); return "";
17321 instead of return buf;.
17322 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
17323 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
17324 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
17326 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17328 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
17329 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
17330 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
17331 (CC1_SPEC): Likewise.
17332 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
17334 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17336 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
17337 the base address on 64-bit strict-alignment platforms.
17339 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
17341 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
17343 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17345 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
17347 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
17349 PR rtl-optimization/88308
17350 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17351 on copied instruction.
17353 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17355 * final.c (insn_current_reference_address): Replace test on JUMP_P
17356 with test on jump_to_label_p.
17357 * config/visium/visium-passes.def: New file.
17358 * config/visium/t-visium (PASSES_EXTRA): Define.
17359 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17360 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17361 (TRAMPOLINE_ALIGNMENT): Define.
17362 * config/visium/visium.c (visium_option_override): Do not register
17363 the machine-specific reorg pass here.
17364 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17366 (output_branch): Adjust threshold for long branch instruction.
17367 * config/visium/visium.md (cpu): Move around.
17368 (length): Adjust for the GR6.
17370 2019-02-15 Richard Biener <rguenther@suse.de>
17371 Jakub Jelinek <jakub@redhat.com>
17373 PR tree-optimization/89278
17374 * tree-loop-distribution.c: Include tree-eh.h.
17375 (generate_memset_builtin, generate_memcpy_builtin): Call
17376 rewrite_to_non_trapping_overflow on builtin->size before passing it
17377 to force_gimple_operand_gsi.
17379 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17382 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17384 * opth-gen.awk: Likewise.
17386 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17388 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17389 Enable MMX, SSE and SSE2 by default.
17390 * config/i386/i386.c (ix86_option_override_internal): Do not
17391 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17393 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17395 PR rtl-optimization/89354
17396 * combine.c (make_extraction): Punt if extraction_mode is narrower
17399 2019-02-14 Maya Rashish <coypu@sdf.org>
17401 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17402 * config/netbsd-d.c: New file.
17403 * config/t-netbsd: Add netbsd-d.o
17405 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17407 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17408 affects_type_identity to true for aarch64_vector_pcs.
17409 (aarch64_comp_type_attributes): New function.
17410 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17412 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17415 * config/arm/iterators.md (ANY64): Add V4HF.
17417 2019-02-14 Martin Liska <mliska@suse.cz>
17419 PR rtl-optimization/89242
17420 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17421 process a transformation.
17423 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17425 PR tree-optimization/89314
17426 * fold-const.c (fold_binary_loc): Cast strlen argument to
17427 const char * before dereferencing it. Formatting fixes.
17429 PR middle-end/89284
17430 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17432 2019-02-13 Ian Lance Taylor <iant@golang.org>
17434 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17435 and set current index for other optimizations.
17437 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17439 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17440 nonimmediate_operand as operand 2 predicate.
17441 (vec_set<VF2_512_256:mode>_0): Ditto.
17442 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17443 (*vec_concatv2si): Remove alternative 2.
17444 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17445 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17446 (vec_concatv2di): Split alternatives 4,5,6 to ...
17447 (*vec_concatv2di_0) ... new pattern.
17449 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17452 * config/arm/arm.c (ldm_stm_operation_p) Set
17453 addr_reg_in_reglist correctly for first register.
17454 (load_multiple_sequence): Remove dead base check.
17455 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17457 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17460 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17461 Expose as @aarch64_pred_mov.
17462 * config/aarch64/aarch64.c (aarch64_classify_address):
17463 Use expand_insn which legitimizes operands.
17465 2019-02-13 Martin Liska <mliska@suse.cz>
17467 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17468 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17469 and pointer_offset fields.
17470 (initialize_argument_information): Remove usage of dead
17472 * cgraph.h (struct cgraph_thunk_info): Remove
17473 add_pointer_bounds_args.
17474 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17476 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17478 * config/i386/i386.c (ix86_function_arg_advance): Remove
17480 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17481 (def_builtin): Remove usage of dead fields.
17482 (ix86_add_new_builtins): Likewise.
17483 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17484 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17485 (sem_function::init): Likewise.
17486 (sem_variable::merge): Likewise.
17487 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17488 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17489 * lto-cgraph.c (lto_output_node): Likewise.
17490 (lto_output_varpool_node): Likewise.
17491 (input_node): Likewise.
17492 (input_varpool_node): Likewise.
17493 * lto-streamer-out.c (lto_output): Likewise.
17494 * tree-inline.c (expand_call_inline): Remove usage of
17496 * tree-inline.h (struct copy_body_data): Likewise.
17497 * varpool.c (varpool_node::dump): Likewise.
17499 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17501 PR middle-end/89303
17502 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17503 into pt->vars_contains_escaped_heap instead of setting
17504 pt->vars_contains_escaped_heap to it.
17506 PR middle-end/89281
17507 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17508 INTVAL (size), compare it to GET_MODE_MASK instead of
17509 1 << GET_MODE_BITSIZE.
17512 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17513 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17516 2019-02-13 Martin Liska <mliska@suse.cz>
17519 * cfgrtl.c (remove_barriers_from_footer): New function.
17520 (try_redirect_by_replacing_jump): Use it.
17521 (cfg_layout_redirect_edge_and_branch): Likewise.
17523 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17525 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17526 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17527 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17528 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17529 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17530 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17532 * config/rs6000/rs6000.c (builtin_function_type)
17533 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17534 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17535 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17536 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17537 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17539 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17541 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17542 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17544 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17547 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17548 268678 and revision 268657.
17549 (*movti_internal): Likewise.
17551 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17554 * config/s390/s390.c (s390_decompose_address): Update comment.
17555 (s390_check_qrst_address): Reject invalid address forms after
17558 2019-02-12 Martin Liska <mliska@suse.cz>
17561 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17562 we need default values of funct_state for a function that
17565 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17567 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17568 the object to pick the size of stores on strict-alignment platforms.
17570 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17571 (*movdi_insn_sp32): Likewise.
17572 (*movdi_insn_sp64): Likewise.
17574 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17577 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17578 types that needs constructiong.
17579 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17581 2019-02-12 Richard Biener <rguenther@suse.de>
17583 PR tree-optimization/89253
17584 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17585 duplicate the loop.
17587 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17590 * input.c (selftest::test_line_offset_overflow): New selftest.
17591 (selftest::input_c_tests): Call it.
17593 2019-02-11 Martin Sebor <msebor@redhat.com>
17595 PR tree-optimization/88771
17596 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17597 when -Wstringop-overflow is set.
17598 (builtin_memref::builtin_memref): Adjust excessive upper bound
17599 only when lower bound is not excessive.
17600 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17601 -Wstringop-ovefflow.
17602 (maybe_diag_offset_bounds): Rename...
17603 (maybe_diag_access_bounds): ...to this.
17604 (check_bounds_or_overlap): Adjust for name change above.
17606 2019-02-11 Martin Sebor <msebor@redhat.com>
17609 * builtins.c (max_object_size): Move from here...
17610 * builtins.h (max_object_size): ...and here...
17611 * tree.c (max_object_size): ...to here...
17612 * tree.h (max_object_size): ...and here.
17614 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17616 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17617 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17618 for correct semantics.
17620 2019-02-11 Alan Modra <amodra@gmail.com>
17622 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17623 -mlongcall and -mpltseq.
17624 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17625 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17626 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17627 * config/rs6000/sysv4.opt (mpltseq): New option.
17628 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17629 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17630 support is lacking. Don't allow -mpltseq with -mbss-plt.
17631 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17632 -mpltseq given for ELFv1.
17633 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17634 Only use UNSPEC_PLTSEQ for inline PLT calls.
17635 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17636 use UNSPEC_PLTSEQ for inline PLT calls.
17637 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17638 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17639 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17640 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17641 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17642 (pltseq_mtctr_<mode>): Likewise.
17644 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17646 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17648 * configure: Regenerate.
17650 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17653 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17656 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17658 * function.c (assign_parm_setup_block): Use the stored
17659 size, not the passed size, when allocating stack-space,
17660 also for a parameter with alignment larger than
17661 MAX_SUPPORTED_STACK_ALIGNMENT.
17663 2019-02-11 Martin Liska <mliska@suse.cz>
17666 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17667 * ipa-inline.c (inline_small_functions): Likewise.
17668 * ipa-pure-const.c (propagate_pure_const): Likewise.
17669 (propagate_nothrow): Likewise.
17670 * ipa-reference.c (propagate): Likewise.
17671 * ipa-utils.c (struct searchc_env): Remove unused field.
17672 (searchc): Always search across AVAIL_INTERPOSABLE.
17673 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17674 the only called IPA pure const can properly not propagate
17675 across interposable boundary.
17676 * ipa-utils.h (ipa_reduced_postorder): Remove param.
17678 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
17680 * config/nds32/nds32.md (call_internal, call_value_internal,
17681 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
17683 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17685 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
17688 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
17690 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
17693 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17695 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
17697 2019-02-10 Jakub Jelinek <jakub@redhat.com>
17699 PR tree-optimization/89268
17700 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
17701 if preds is non-NULL.
17703 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17706 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
17709 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17711 * config/nds32/nds32.md (trap): New pattern.
17713 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17715 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
17718 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17720 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
17723 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17725 * ipa-visibility.c (localize_node): Also do not localize
17726 LDPR_PREVAILING_DEF_IRONLY_EXP.
17728 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17731 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
17732 instead of type_with_linkage.
17734 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17737 * params.def (uninlined-function-insns, uninlined-function-time,
17738 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
17739 bound so we don't get overflows.
17741 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
17743 * config/rs6000/rs6000-string.c (expand_compare_loop,
17744 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
17747 2019-02-09 Jakub Jelinek <jakub@redhat.com>
17749 PR middle-end/89246
17750 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17751 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
17752 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
17754 2019-02-09 Alan Modra <amodra@gmail.com>
17757 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
17758 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
17761 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
17763 PR middle-end/88560
17764 * lra-constraints.c (process_alt_operands): Don't increase reject
17765 for memory when offset memory is required.
17767 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
17769 * config/s390/vector.md: Implement vector copysign.
17771 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17773 * expr.c (expand_constructor): Correct indentations.
17775 2019-02-08 Richard Biener <rguenther@suse.de>
17777 PR tree-optimization/89247
17778 * tree-if-conv.c: Include tree-cfgcleanup.h.
17779 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
17780 (tree_if_conversion): Pass through predicate vector.
17781 (pass_if_conversion::execute): Do CFG cleanup and SSA update
17782 inline, see if any if-converted loops we refrece in
17783 LOOP_VECTORIZED calls vanished and fixup.
17784 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
17786 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
17788 * config/s390/constraints.md (jdd): New constraint.
17790 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17793 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
17794 upper 16 vector registers without TARGET_AVX512VL.
17795 (*movti_internal): Likewise.
17797 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17799 PR rtl-optimization/89234
17800 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
17801 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
17802 (copy_reg_eh_region_note_backward): Likewise.
17804 2019-02-08 Richard Biener <rguenther@suse.de>
17806 PR middle-end/89223
17807 * tree-data-ref.c (initialize_matrix_A): Fail if constant
17808 doesn't fit in HWI.
17809 (analyze_subscript_affine_affine): Handle failure from
17810 initialize_matrix_A.
17812 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17814 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
17817 2019-02-07 David Malcolm <dmalcolm@redhat.com>
17819 PR tree-optimization/86637
17820 PR tree-optimization/89235
17821 * tree-vect-loop.c (optimize_mask_stores): Add an
17822 auto_purge_vect_location sentinel to ensure that vect_location is
17824 * tree-vectorizer.c
17825 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
17826 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
17827 to ensure that vect_location is purged on exit.
17828 (pass_slp_vectorize::execute): Likewise, replacing the manual
17830 * tree-vectorizer.h (class auto_purge_vect_location): New class.
17832 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17834 * config/aarch64/iterators.md (max_opp): New code_attr.
17835 (USMAX): New code iterator.
17836 * config/aarch64/predicates.md (aarch64_smin): New predicate.
17837 (aarch64_smax): Likewise.
17838 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
17839 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
17842 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
17845 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
17846 for TARGET_AVX512VL.
17847 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
17849 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
17851 * config/s390/s390-builtin-types.def: Add new types.
17852 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
17853 (s390_vec_xlw4): Make the memory operand into a const pointer.
17854 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
17856 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
17857 a new vector type with the alignment of the scalar memory operand.
17859 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
17860 Jakub Jelinek <jakub@redhat.com>
17863 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
17864 arm_count_ldrdstrd_insns): New declarations.
17865 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
17867 (valid_operands_ldrd_strd): New function.
17868 (arm_count_ldrdstrd_insns): New function.
17869 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
17870 sets instead of single DImode set and define new insns to match this.
17872 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17874 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
17875 Make it a C initializer.
17877 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17880 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
17882 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17884 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
17885 Use neon_dot<q> for type.
17886 (neon_<sup>dot_lane<vsi2qi>): Likewise.
17888 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17890 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
17891 Use neon_dot<q> for type.
17892 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
17893 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
17895 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
17897 PR rtl-optimization/89225
17898 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
17901 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
17903 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
17904 after restoring registers saved to allocate the frame on Windows.
17906 2019-02-06 Richard Biener <rguenther@suse.de>
17908 PR tree-optimization/89182
17909 * graphite.h (cached_scalar_evolution_in_region): Declare.
17910 * graphite.c (struct seir_cache_key): New.
17911 (struct sese_scev_hash): Likewise.
17912 (seir_cache): New global.
17913 (cached_scalar_evolution_in_region): New function.
17914 (graphite_transform_loops): Allocate and release seir_cache.
17915 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
17916 cached_scalar_evolution_in_region.
17917 * graphite-scop-detection.c (scop_detection::can_represent_loop):
17919 (scop_detection::graphite_can_represent_expr: Use
17920 cached_scalar_evolution_in_region.
17921 (scop_detection::stmt_simple_for_scop_p): Likewise.
17922 (find_params_in_bb): Likewise.
17923 (gather_bbs::before_dom_children): Likewise.
17924 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
17925 (add_loop_constraints): Likewise.
17927 2019-02-06 Jakub Jelinek <jakub@redhat.com>
17929 PR middle-end/89210
17930 * fold-const-call.c (fold_const_vec_convert): Pass true as last
17931 operand to new_unary_operation only if both element types are integral
17932 and it isn't a widening conversion. Return NULL_TREE if
17933 new_unary_operation failed.
17935 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
17938 * config/s390/s390.md: Remove load and test FP splitter.
17940 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17943 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
17944 expand_compare_loop, expand_block_compare_gpr,
17945 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
17946 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
17947 #include "profile-count.h" and "predict.h" for types and functions
17948 needed to work with REG_BR_PROB notes.
17950 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17953 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
17954 for the long branch case.
17956 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17959 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
17960 can throw, non-call exceptions are enabled and we can't delete
17961 dead exceptions or alter cfg. Set must_clean if
17962 delete_insn_and_edges returns true, don't set it blindly for calls.
17963 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
17965 PR rtl-optimization/89195
17966 * combine.c (make_extraction): For MEMs, don't extract bytes outside
17967 of the original MEM.
17969 2019-02-05 Martin Liska <mliska@suse.cz>
17971 PR gcov-profile/89000
17972 * gcov.c (function_summary): Remove argument.
17973 (file_summary): New function.
17974 (print_usage): Replace tabs with spaces.
17975 (generate_results): Use new function file_summary.
17977 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17980 * optabs.c (prepare_cmp_insn): Pass x and y to
17981 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
17983 2019-02-05 Richard Biener <rguenther@suse.de>
17985 PR middle-end/89150
17986 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
17987 (struct bitmap_element): Drop chain_prev so we properly recurse on
17988 the prev member, supporting tree views.
17989 (struct bitmap_head): GTY skip the obstack member.
17991 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
17994 * doc/extend.texi (Vector Extensions): Add an example of using vector
17995 types together with x86 intrinsics.
17997 2019-02-04 Alan Modra <amodra@gmail.com>
17999 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
18000 str[] size to 160, and comment.
18002 2019-02-04 Alan Modra <amodra@gmail.com>
18004 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
18005 (rs6000_pltseq_template): Guard output of TLS markers with
18006 TARGET_TLS_MARKERS.
18007 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
18008 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
18009 to use inline PLT sequences.
18010 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18011 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18012 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
18014 2019-02-04 Martin Liska <mliska@suse.cz>
18017 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
18018 out when ipa_fn_summaries does not contain entry for callee.
18020 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
18022 * config/sparc/sparc.h: Remove superfluous blank lines.
18023 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
18024 (got_register_rtx): ...this.
18025 (sparc_got): Adjust to above renaming.
18026 (sparc_tls_got): Likewise.
18027 (sparc_delegitimize_address): Likewise.
18028 (sparc_output_mi_thunk): Likewise.
18029 (sparc_init_pic_reg): Likewise.
18030 (save_local_or_in_reg_p): Fix test on the GOT register.
18031 (USE_HIDDEN_LINKONCE): Move around.
18032 (get_pc_thunk_name): Likewise.
18033 (gen_load_pcrel_sym): Likewise.
18034 (load_got_register): Likewise.
18036 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
18038 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
18039 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
18041 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18043 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
18044 into consideration.
18046 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18048 * config.gcc (with_nds32_lib, glibc):
18049 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
18050 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
18051 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
18053 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
18056 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
18057 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
18058 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
18059 (*rcpsf2_sse): Ditto.
18060 (*rsqrtsf2_sse): Ditto.
18061 (sse4_1_round<mode<2): Ditto.
18063 2019-02-03 Richard Biener <rguenther@suse.de>
18066 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
18069 2019-02-02 Jakub Jelinek <jakub@redhat.com>
18071 PR middle-end/87887
18072 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18073 Punt with warning on aggregate return or argument types. Ignore
18074 type/mode checking for uniform arguments.
18076 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
18078 * combine.c (try_combine): Do not print "Can't combine" messages unless
18079 printing failed combination attempts.
18081 2019-02-01 Martin Jambor <mjambor@suse.cz>
18084 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
18085 segment and global segment variables before making them static.
18087 2019-02-01 Martin Jambor <mjambor@suse.cz>
18089 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
18090 missed optimization dump with dump_enabled_p.
18092 2019-02-01 Richard Biener <rguenther@suse.de>
18094 PR middle-end/88597
18095 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
18096 the instantiate cache.
18097 (instantiate_scev_binary): Elide second operand procesing
18098 if equal to the first.
18099 * tree-chrec.c (chrec_contains_symbols): Add visited set.
18100 (chrec_contains_undetermined): Likewise.
18101 (tree_contains_chrecs): Likewise.
18103 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
18105 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
18107 2019-02-01 Jakub Jelinek <jakub@redhat.com>
18109 PR tree-optimization/89143
18110 * wide-int-range.h (wide_int_range_absu): Declare.
18111 * wide-int-range.cc (wide_int_range_absu): New function.
18112 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
18114 PR tree-optimization/88107
18115 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
18116 instead of assertion that eh_region_outermost is non-NULL, if it
18117 is NULL, set *ALL to true and return NULL.
18118 (move_sese_region_to_fn): Adjust caller, if all is set, call
18119 duplicate_eh_regions with NULL region.
18121 2019-02-01 Richard Biener <rguenth@suse.de>
18123 PR rtl-optimization/88593
18124 * mode-switching.c (optimize_mode_switching): Free dominators before
18125 calling cleanup_cfg.
18127 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18129 PR tree-optimization/88932
18130 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
18132 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18134 PR middle-end/89137
18135 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
18136 bogus clang warning.
18138 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
18141 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
18142 alternative to avoid partial SSE register stall for TARGET_AVX.
18143 (truncdfsf2): Ditto.
18144 (sse4_1_round<mode>2): Ditto.
18146 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
18148 PR tree-optimization/89008
18149 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
18150 process anything of the form X * 0.
18152 2019-01-31 Richard Biener <rguenther@suse.de>
18154 PR tree-optimization/89135
18155 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
18156 with abnormal preds.
18158 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18161 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
18162 always_inline callees into no_sanitize_address callers.
18164 2019-01-31 Richard Biener <rguenther@suse.de>
18166 PR rtl-optimization/89115
18167 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
18169 2019-01-30 Martin Sebor <msebor@redhat.com>
18172 * doc/extend.texi (cast to a union): Correct and expand.
18174 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
18176 PR rtl-optimization/87246
18177 * lra-constraints.c (simplify_operand_subreg): Reload memory
18178 in subreg if the address became invalid.
18180 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
18183 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
18184 Disable for little-endian.
18186 2019-01-30 Richard Biener <rguenther@suse.de>
18188 PR rtl-optimization/89115
18189 * opts.c (default_options_optimization): Reduce
18190 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
18191 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
18194 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18196 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
18197 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
18198 type of vector element when vec_extract is implemented by direct
18201 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
18203 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
18205 2019-01-30 Richard Biener <rguenther@suse.de>
18207 PR tree-optimization/89111
18208 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
18209 canonicalization to appropriately sized access types.
18211 2019-01-30 Jakub Jelinek <jakub@redhat.com>
18214 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
18215 for arguments to functions that are TU-local and shouldn't be
18216 referenced by assembly.
18218 2019-01-30 Ulrich Drepper <drepper@redhat.com>
18220 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
18223 2019-01-29 Martin Sebor <msebor@redhat.com>
18226 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
18228 2019-01-29 Jakub Jelinek <jakub@redhat.com>
18232 * omp-simd-clone.c (simd_clone_clauses_extract)
18233 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
18234 OMP_CLAUSE_ALIGNED_ALIGNMENT.
18236 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
18238 * config.gcc: Force .init_array for ARC.
18240 2019-01-29 Richard Biener <rguenther@suse.de>
18243 * dwarf2out.c (collect_skeleton_dies): New helper.
18244 (copy_decls_for_unworthy_types): Call it.
18245 (build_abbrev_table): Assert we do not try to replace
18246 DW_AT_signature refs with local refs.
18248 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18250 PR middle-end/89002
18251 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
18252 for lastprivate/linear IV, push gimplify context around gimplify_assign
18253 and, if it needed any temporaries, pop it into a gimple bind around the
18256 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18258 * common.opt (-Wattribute-alias): Remove "no-" from name.
18259 Make -Wattribute-alias command line option and
18260 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
18262 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18265 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
18266 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
18268 (bmi2): Add missing @opindex.
18269 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
18270 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
18271 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
18272 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
18273 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
18274 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
18275 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
18276 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
18277 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
18278 xsavec, xsaveopt and xsaves options.
18280 2019-01-28 Richard Biener <rguenther@suse.de>
18283 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
18286 2019-01-28 Richard Biener <rguenther@suse.de>
18288 PR tree-optimization/88739
18289 * tree-cfg.c (verify_types_in_gimple_reference): Verify
18290 BIT_FIELD_REFs only are applied to mode-precision operands
18291 when they are integral.
18292 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
18293 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
18294 BIT_FIELD_REFs of non-mode-precision integral operands.
18296 2019-01-27 Jakub Jelinek <jakub@redhat.com>
18299 * config/i386/sse.md
18300 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
18301 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
18302 first constants in pairs are multiples of 2. Formatting fixes.
18303 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
18304 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
18305 first constants in each quadruple are multiples of 4. Formatting fixes.
18307 2019-01-26 Martin Jambor <mjambor@suse.cz>
18310 * tree-inline.c: Include tree-cfgcleanup.h.
18311 (delete_unreachable_blocks_update_callgraph): Move...
18312 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
18313 ...here, make externally visible, make second argument bool, adjust
18315 * tree-cfgcleanup.c: Include cgraph.h.
18316 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
18318 * ipa-prop.c: Include tree-cfgcleanup.h.
18319 (ipcp_transform_function): Call
18320 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
18322 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
18324 PR rtl-optimization/88846
18325 * ira.c (process_set_for_memref_referenced_p): New.
18326 (memref_referenced_p): Add new param. Use
18327 process_set_for_memref_referenced_p. Add new switch cases.
18328 (memref_used_between_p): Pass new arg to memref_referenced_p.
18330 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
18333 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
18334 argument ABI_BREAK. Set to true if the calculated alignment has
18335 changed in gcc-9. Check bit-fields for their base type alignment.
18336 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
18337 (aarch64_function_arg_boundary): Likewise.
18338 (aarch64_gimplify_va_arg_expr): Likewise.
18340 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18342 PR middle-end/89037
18343 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
18344 instead of accessing TREE_INT_CST_ELT directly.
18346 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
18348 * doc/sourcebuild.texi (Environment attributes): Add fenv and
18349 fenv_exceptions description.
18351 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18353 PR rtl-optimization/87763
18354 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18355 Allow SUBREG when matching CC_NZmode compare.
18357 2019-01-25 Richard Biener <rguenther@suse.de>
18359 PR tree-optimization/89049
18360 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18361 Look at the pattern stmt to determine if the stmt is vectorized.
18363 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18365 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18366 (pred_mov<mode>): Handle all-register forms using both a new
18367 alternative and a split.
18369 2019-01-25 Richard Biener <rguenther@suse.de>
18371 PR tree-optimization/86865
18372 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18373 Reject non-do-while loops.
18375 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18377 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18378 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18379 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18380 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18381 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18382 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18383 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18384 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18385 vlogical_operand, gpc_reg_operand, int_reg_operand,
18386 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18387 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18388 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18389 (save_world_operation, restore_world_operation, lmw_operation,
18390 stmw_operation): Use MEM_P and REG_P.
18391 (tie_operand): Use MEM_P.
18392 (vrsave_operation, crsave_operation): Use REG_P.
18393 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18394 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18395 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18396 (call_operand): Use HARD_REGISTER_P.
18397 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18399 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18400 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18401 quad_aligned_load_p, replace_swapped_aligned_store,
18402 recombine_lvx_pattern, replace_swapped_aligned_load,
18403 recombine_stvx_pattern): Use MEM_P.
18404 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18405 Use MEM_P and SYMBOL_REF_P.
18406 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18407 (insn_is_swappable_p): Use REG_P and MEM_P.
18408 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18409 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18411 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18412 Use CONST_DOUBLE_P.
18413 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18415 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18416 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18417 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18418 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18420 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18421 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18422 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18423 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18424 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18425 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18426 rs6000_split_logical_di): Use CONST_INT_P.
18427 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18428 REG_P and SYMBOL_REF_P.
18429 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18430 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18431 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18432 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18433 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18434 (small_data_operand, print_operand_address): Use CONST_INT_P and
18436 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18437 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18438 Use HARD_REGISTER_NUM_P.
18439 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18440 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18441 SUBREG_P and SYMBOL_REF_P.
18442 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18443 and HARD_REGISTER_NUM_P.
18444 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18446 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18447 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18449 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18450 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18451 find_addr_reg): Use REG_P.
18452 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18453 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18454 (offsettable_ok_by_alignment, constant_pool_expr_p,
18455 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18456 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18457 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18458 rs6000_assemble_integer, create_TOC_reference,
18459 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18460 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18461 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18462 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18463 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18464 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18465 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18466 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18467 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18468 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18469 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18470 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18471 and cbranch<mode>4): Use CONST_INT_P.
18472 (multiple define_splits): Use REG_P and SUBREG_P.
18473 (define_expands call, call_value): Use MEM_P.
18474 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18475 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18476 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18477 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18478 and HARD_REGISTER_NUM_P.
18479 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18481 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18483 PR rtl-optimization/88948
18484 * rtl.h (prepare_copy_insn): New prototype.
18485 * gcse.c (prepare_copy_insn): New function, split out from
18486 process_insert_insn.
18487 (process_insert_insn): Use prepare_copy_insn.
18488 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18489 instead of gen_move_insn.
18491 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18494 * config/i386/i386.c (ix86_pic_register_p): Return true for
18495 UNSPEC_SET_GOT too.
18497 PR tree-optimization/88964
18498 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18499 punt if HONOR_SNANS (chrec).
18501 PR middle-end/89015
18502 * tree-nested.c (convert_nonlocal_reference_stmt,
18503 convert_local_reference_stmt, convert_tramp_reference_stmt,
18504 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18505 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18506 or GIMPLE_OMP_TASK.
18508 PR tree-optimization/89027
18509 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18510 for "omp simd array" variables.
18512 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18515 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18516 force the alignment of m_val.
18518 2019-01-24 Richard Biener <rguenther@suse.de>
18521 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18522 When in "legacy" debug mode make sure to reset self-origins.
18524 2019-01-24 Martin Liska <mliska@suse.cz>
18526 PR gcov-profile/88994
18527 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18528 result will be always smaller or equal to the original.
18529 * gcov.c (mangle_name): Fix else branch where we should
18530 also copy to PTR and shift the pointer.
18532 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18534 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18535 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18537 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18539 * common/config/i386/i386-common.c
18540 (OPTION_MASK_ISA_ENQCMD_SET,
18541 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18542 (ix86_handle_option): Handle -menqcmd.
18543 * config.gcc (enqcmdintrin.h): New header file.
18544 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18545 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18547 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18549 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18550 __builtin_ia32_enqcmds): New builtins.
18551 * config/i386/i386-c.c (__ENQCMD__): New macro.
18552 * config/i386/i386-option.c (ix86_target_string): Add
18554 (ix86_valid_target_attribute_inner_p): Likewise.
18555 * config/i386/i386-expand.c
18556 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18557 IX86_BUILTIN_ENQCMDS.
18558 * config/i386/i386.h (TARGET_ENQCMD): New.
18559 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18560 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18561 (movdir64b_<mode>): Parameterize to enable share expansion code
18562 with ENQCMD in function ix86_expand_builtin.
18563 * config/i386/i386.opt: Add -menqcmd.
18564 * config/i386/immintrin.h: Include enqcmdintrin.h.
18565 * config/i386/enqcmdintrin.h: New intrinsic file.
18566 * doc/invoke.texi: Add -menqcmd.
18568 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18569 Steve Ellcey <sellcey@marvell.com>
18572 * recog.c (address_operand): Return false on wrong mode for address.
18573 (constrain_operands): Check for mode with 'p' constraint.
18575 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18578 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18579 Disparage MMX alternative.
18580 (sse2_cvtpd2pi): Ditto.
18581 (sse2_cvttpd2pi): Ditto.
18583 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18586 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18587 use-after-free of the result of
18588 aarch64_get_extension_string_for_isa_flags.
18590 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18593 * doc/extend.texi: Document break and continue behavior in
18594 statement expressions.
18596 2019-01-23 Richard Biener <rguenther@suse.de>
18598 PR tree-optimization/89008
18599 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18600 not leave another stray operand.
18602 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18604 * BASE-VER: Bump to 9.0.1.
18606 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18608 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18609 thunk that returns by reference, use the type of the return object
18610 of the thunk instead of that of the alias to build the dereference.
18612 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18614 * config/arc/atomic.md: Add operand to DMB instruction.
18616 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18618 PR tree-optimization/88964
18619 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18620 build_zero_cst instead of build_int_cst. Return false for loop
18621 invariants which honor signed zeros.
18623 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18625 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18627 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18630 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18631 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18632 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18634 PR middle-end/88968
18635 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18636 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18639 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18640 Disable for little endian.
18642 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18645 * config/arm/arm.c (arm_needs_double_word_align): Check
18646 DECL_BIT_FIELD_TYPE.
18648 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18649 H.J. Lu <hongjiu.lu@intel.com>
18652 * config/i386/i386-builtin.def: Add mask2 to all builtin
18653 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18655 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18656 (BDESC_FIRST): Likewise.
18657 (define_builtin): Add an argument for mask2. Updated to handle
18658 both ix86_isa_flags and ix86_isa_flags2.
18659 (define_builtin_const): Likewise.
18660 (define_builtin_pure): Likewise.
18661 (define_builtin2): Deleted.
18662 (define_builtin_const2): Likewise.
18663 (builtin_description): Add a member, mask2.
18664 (bdesc_*): Add mask2 to builtin initializations.
18665 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18666 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18668 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18670 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18673 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18676 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18679 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
18680 alignment is dominated by a bitfield with 64-bit aligned base type.
18681 (arm_function_arg): Emit a warning if the alignment has changed since
18682 earlier GCC releases.
18683 (arm_function_arg_boundary): Likewise.
18684 (arm_setup_incoming_varargs): Likewise.
18686 2019-01-22 Richard Biener <rguenther@suse.de>
18688 PR tree-optimization/88862
18689 * graphite-scop-detection.c
18690 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
18692 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
18694 * doc/extend.tex (AMD GCN Function Attributes): New section.
18695 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
18696 * doc/invoke.texi (AMD GCN Options): New section.
18697 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
18699 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
18701 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
18702 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
18704 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18706 PR tree-optimization/88044
18707 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
18708 is false in the first iteration, but !every_iteration, return false
18709 instead of true with niter->niter zero.
18711 PR rtl-optimization/88904
18712 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
18713 any nonequal registers before processing BB_END (b).
18716 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
18718 (expand_binop_directly, expand_doubleword_clz,
18719 expand_doubleword_popcount, expand_ctz, expand_ffs,
18720 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
18722 PR rtl-optimization/49429
18724 PR rtl-optimization/86334
18726 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
18727 addressable from here...
18728 (emit_block_op_via_libcall): ... to here.
18730 2019-01-22 Richard Biener <rguenther@suse.de>
18732 * tree-vect-loop.c (vect_analyze_loop_operations): Use
18733 auto_vec for cost vector to fix memleak.
18734 (vectorize_fold_left_reduction): Properly gather SLP defs.
18735 (vectorizable_comparison): Do not swap operands to properly
18738 2019-01-22 Alan Modra <amodra@gmail.com>
18741 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
18742 stays a reg. Allow a const_int.
18743 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
18744 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
18745 (IS_NOMARK_TLSGETADDR): Define.
18746 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
18747 (rs6000_output_tlsargs): New function.
18748 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
18749 __tls_get_addr call takes an arg.
18750 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
18751 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
18753 (call_value_nonlocal_sysv): ..or here, delete split.
18754 (tls_gdld_nomark): Delete.
18755 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
18756 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
18757 (call_value_nonlocal_sysv): Likewise.
18758 (call_value_nonlocal_sysv_secure): Likewise.
18759 (call_value_nonlocal_aix): Likewise.
18760 (call_value_indirect_aix): Likewise.
18761 (call_value_indirect_elfv2): Likewise.
18762 (call_value_local32, call_value_local64): Disable for no-mark tls.
18763 (call_value_local_aix): Likewise.
18765 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
18768 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
18769 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
18771 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
18773 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
18774 string contents as hash_map keys.
18776 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
18779 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
18780 for rvalue context. Handle rvalues correctly. Use min_align_of_type
18781 instead of TYPE_ALIGN.
18782 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
18783 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
18784 pointer from TYPE_STUB_DECL.
18786 2019-01-21 Richard Biener <rguenther@suse.de>
18788 PR tree-optimization/88934
18789 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
18790 at the possibly non-constant operand.
18791 (vect_get_constant_vectors): Adjust.
18793 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
18796 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
18797 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
18798 instead of _X86INTRIN_H_INCLUDED.
18799 * onfig/i386/clwbintrin.h: Likewise.
18800 * config/i386/pkuintrin.h: Likewise.
18801 * config/i386/prfchwintrin.h: Likewise.
18802 * config/i386/rdseedintrin.h: Likewise.
18803 * config/i386/wbnoinvdintrin.h: Likewise.
18804 * config/i386/xsavecintrin.h: Likewise.
18805 * config/i386/xsavesintrin.h: Likewise.
18806 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
18807 * config/i386/xsaveintrin.h: Likewise.
18808 * config/i386/xsaveoptintrin.h: Likewise.
18809 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
18810 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
18811 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
18812 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
18813 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
18814 * config/i386/immintrin.h: Here.
18816 2019-01-20 Martin Jambor <mjambor@suse.cz>
18819 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
18820 with aa_walk_budget.
18821 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
18822 aa_walk_budget_p parameter.
18823 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
18824 walk. Updated all callers.
18825 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
18826 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
18828 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
18829 parameter info. Extract info from fbi. Pass fbi to recursive calls
18830 and to unmodified_parm.
18831 (phi_result_unknown_predicate): New parameter fbi, removed parameter
18832 info, updated call to will_be_nonconstant_expr_predicate.
18833 (param_change_prob): New parameter fbi, limit AA walking.
18834 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
18835 calls to various above functions.
18836 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
18837 parameter. Use it to limit AA walking.
18838 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
18839 fbi, limit AA walk.
18840 (detect_type_change): New parameter fbi, pass it on to
18841 detect_type_change_from_memory_writes.
18842 (detect_type_change_ssa): Likewise.
18843 (aa_overwalked): Removed.
18844 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
18845 accordingly, adjust to the neew AA limiting scheme.
18846 (parm_ref_data_preserved_p): Likewise.
18847 (ipa_compute_jump_functions_for_edge): Adjust call to
18849 (ipa_analyze_call_uses): Likewise.
18850 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
18851 (ipa_analyze_node): Initialize aa_walk_budget.
18852 (ipcp_transform_function): Likewise.
18853 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
18854 to get_dynamic_type.
18856 2019-01-19 Jakub Jelinek <jakub@redhat.com>
18858 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
18859 outside of #if CHECKING_P code.
18861 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
18863 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
18864 New function, split out from...
18865 (loop_versioning::analyze_stride): ...here.
18866 (loop_versioning::find_per_loop_multiplication): Use gassign.
18867 (loop_versioning::analyze_term_using_scevs): Return a success code.
18868 (loop_versioning::analyze_arbitrary_term): New function.
18869 (loop_versioning::analyze_address_fragment): Use
18870 analyze_arbitrary_term if all else fails.
18872 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
18875 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
18878 2019-01-18 Richard Biener <rguenther@suse.de>
18880 PR tree-optimization/88903
18881 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
18882 scalar stmts a SLP shift amount is composed of when detecting
18885 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
18888 * config/arm/arm-cpus.in (mp): New feature.
18889 (sec): New feature.
18890 (fgroup ARMv7ve): Add mp and sec features.
18891 (arch armv7-a): Add options to allow mp and sec extensions.
18892 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
18893 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
18894 extenstions to the base architecture.
18895 (cpu cortex-a8): Add sec extension to the base architecture.
18896 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
18897 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
18898 variants down to the base v7-a varaint.
18899 * config/arm/t-multilib (v7_a_arch_variants): New variable.
18900 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
18901 of permitted extensions for -march=armv7-a and for
18902 -mcpu=generic-armv7-a.
18904 2019-01-18 Martin Liska <mliska@suse.cz>
18906 * params.def: Fix comment.
18907 * tree-profile.c (gimple_init_gcov_profiler): Bump function
18909 (gimple_gen_ic_func_profiler): Likewise.
18911 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18913 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
18914 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
18915 and put in error checks for stack protector guard options.
18916 (aarch64_stack_protect_guard): New.
18917 (TARGET_STACK_PROTECT_GUARD): Define.
18918 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
18919 (reg_stack_protect_address<mode>): New.
18920 (stack_protect_set): Adjust for SSP_GLOBAL.
18921 (stack_protect_test): Likewise.
18922 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
18923 (-mstack-protector-guard): Likewise.
18924 (-mstack-protector-guard-offset): Likewise.
18926 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18928 PR tree-optimization/86214
18929 * tree-inline.h (struct copy_body_data): Add
18930 add_clobbers_to_eh_landing_pads member.
18931 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
18932 (copy_edges_for_bb): Call it if EH edge destination is <
18933 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
18934 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
18935 if flag_stack_reuse != SR_NONE and clear it afterwards.
18937 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
18940 * doc/install.texi (with-multilib-list): Document for aarch64.
18942 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18945 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
18946 (("..."))) with ("...").
18948 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18950 * doc/extend.texi (Built-in Functions for Memory Model Aware
18951 Atomic Operations): Document atomic fetch and nand.
18953 2019-01-18 Martin Liska <mliska@suse.cz>
18954 Richard Biener <rguenther@suse.de>
18956 PR middle-end/88587
18957 * cgraph.h (create_version_clone_with_body): Add new argument
18959 * cgraphclones.c (cgraph_node::create_version_clone): Add
18960 DECL_ATTRIBUTES to a newly created decl. And call
18961 valid_attribute_p so that proper cl_target_optimization_node
18962 is set for the newly created declaration.
18963 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
18965 (expand_target_clones): Do not call valid_attribute_p, it must
18967 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
18970 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18973 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
18974 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
18975 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
18977 2019-01-17 Martin Sebor <msebor@redhat.com>
18979 PR middle-end/88273
18980 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
18981 Handle anti-ranges the same as no range at all.
18983 2018-01-17 Steve Ellcey <sellcey@cavium.com>
18985 * config/aarch64/aarch64.c (cgraph.h): New include.
18986 (intl.h): New include.
18987 (supported_simd_type): New function.
18988 (currently_supported_simd_type): Ditto.
18989 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
18990 (aarch64_simd_clone_adjust): Ditto.
18991 (aarch64_simd_clone_usable): Ditto.
18992 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
18993 (TARGET_SIMD_CLONE_ADJUST): Ditto.
18994 (TARGET_SIMD_CLONE_USABLE): Ditto.
18995 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
18996 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
18999 2019-01-17 Martin Sebor <msebor@redhat.com>
19001 PR tree-optimization/88800
19002 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
19003 NO_WARNING bit here. Avoid folding out-of-bounds calls.
19004 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
19005 redundant argument. Add new argument and issue diagnostics under
19006 its control. Detect out-of-bounds access even with warnings
19008 (check_bounds_or_overlap): Change return type. Add argument.
19009 (wrestrict_dom_walker::check_call): Adjust.
19010 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
19011 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
19012 check_bounds_or_overlap's return value.
19013 (handle_builtin_stxncpy): Same.
19014 (handle_builtin_strcat): Same.
19016 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19017 Kwok Cheung Yeung <kcy@codesourcery.com>
19018 Julian Brown <julian@codesourcery.com>
19019 Tom de Vries <tom@codesourcery.com>
19021 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
19023 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19025 * doc/sourcebuild.texi: Document dg-require-effective-target
19026 llvm_binutils and offload_gcn.
19028 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19029 Kwok Cheung Yeung <kcy@codesourcery.com>
19030 Julian Brown <julian@codesourcery.com>
19031 Tom de Vries <tom@codesourcery.com>
19033 * doc/sourcebuild.texi: Document dg-required-effective-target
19036 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19037 Kwok Cheung Yeung <kcy@codesourcery.com>
19038 Julian Brown <julian@codesourcery.com>
19039 Tom de Vries <tom@codesourcery.com>
19040 Jan Hubicka <hubicka@ucw.cz>
19041 Martin Jambor <mjambor@suse.cz>
19043 * config.gcc: Add amdgcn*-*-amdhsa configuration.
19044 * configure.ac: Check for dlopen.
19045 * configure: Regenerate.
19047 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19048 Kwok Cheung Yeung <kcy@codesourcery.com>
19049 Julian Brown <julian@codesourcery.com>
19050 Tom de Vries <tom@codesourcery.com>
19051 Jan Hubicka <hubicka@ucw.cz>
19052 Martin Jambor <mjambor@suse.cz>
19054 * common/config/gcn/gcn-common.c: New file.
19055 * config/gcn/driver-gcn.c: New file.
19056 * config/gcn/gcn-builtins.def: New file.
19057 * config/gcn/gcn-hsa.h: New file.
19058 * config/gcn/gcn-modes.def: New file.
19059 * config/gcn/gcn-opts.h: New file.
19060 * config/gcn/gcn-passes.def: New file.
19061 * config/gcn/gcn-protos.h: New file.
19062 * config/gcn/gcn-run.c: New file.
19063 * config/gcn/gcn-tree.c: New file.
19064 * config/gcn/gcn.c: New file.
19065 * config/gcn/gcn.h: New file.
19066 * config/gcn/gcn.opt: New file.
19067 * config/gcn/t-gcn-hsa: New file.
19069 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19070 Kwok Cheung Yeung <kcy@codesourcery.com>
19071 Julian Brown <julian@codesourcery.com>
19072 Tom de Vries <tom@codesourcery.com>
19073 Jan Hubicka <hubicka@ucw.cz>
19074 Martin Jambor <mjambor@suse.cz>
19076 * config/gcn/constraints.md: New file.
19077 * config/gcn/gcn-valu.md: New file.
19078 * config/gcn/gcn.md: New file.
19079 * config/gcn/predicates.md: New file.
19081 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
19083 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
19084 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
19085 (stmt_uses_0_or_null_in_undefined_way): Likewise.
19086 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
19088 2019-01-17 Tamar Christina <tamar.christina@arm.com>
19091 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
19092 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
19093 it and document registers.
19095 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19097 * config/aarch64/aarch64.c (ares_tunings): Define.
19098 * config/aarch64/aarch64-cores.def (ares): Use the above.
19100 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19104 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
19106 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
19107 (_mm512_fixupimm_round_pd): Update parameters and builtin.
19108 (_mm512_maskz_fixupimm_round_pd): Ditto.
19109 (_mm512_fixupimm_round_ps): Ditto.
19110 (_mm512_maskz_fixupimm_round_ps): Ditto.
19111 (_mm_fixupimm_round_sd): Ditto.
19112 (_mm_maskz_fixupimm_round_sd): Ditto.
19113 (_mm_fixupimm_round_ss): Ditto.
19114 (_mm_maskz_fixupimm_round_ss): Ditto.
19115 (_mm512_fixupimm_pd): Ditto.
19116 (_mm512_maskz_fixupimm_pd): Ditto.
19117 (_mm512_fixupimm_ps): Ditto.
19118 (_mm512_maskz_fixupimm_ps): Ditto.
19119 (_mm_fixupimm_sd): Ditto.
19120 (_mm_maskz_fixupimm_sd): Ditto.
19121 (_mm_fixupimm_ss): Ditto.
19122 (_mm_maskz_fixupimm_ss): Ditto.
19123 (_mm512_mask_fixupimm_round_pd): Update builtin.
19124 (_mm512_mask_fixupimm_round_ps): Ditto.
19125 (_mm_mask_fixupimm_round_sd): Ditto.
19126 (_mm_mask_fixupimm_round_ss): Ditto.
19127 (_mm512_mask_fixupimm_pd): Ditto.
19128 (_mm512_mask_fixupimm_ps): Ditto.
19129 (_mm_mask_fixupimm_sd): Ditto.
19130 (_mm_mask_fixupimm_ss): Ditto.
19131 * config/i386/avx512vlintrin.h:
19132 (_mm256_fixupimm_pd): Update parameters and builtin.
19133 (_mm256_maskz_fixupimm_pd): Ditto.
19134 (_mm256_fixupimm_ps): Ditto.
19135 (_mm256_maskz_fixupimm_ps): Ditto.
19136 (_mm_fixupimm_pd): Ditto.
19137 (_mm_maskz_fixupimm_pd): Ditto.
19138 (_mm_fixupimm_ps): Ditto.
19139 (_mm_maskz_fixupimm_ps): Ditto.
19140 (_mm256_mask_fixupimm_pd): Update builtin.
19141 (_mm256_mask_fixupimm_ps): Ditto.
19142 (_mm_mask_fixupimm_pd): Ditto.
19143 (_mm_mask_fixupimm_ps): Ditto.
19144 * config/i386/i386-builtin-types.def: Add new types and remove
19146 * config/i386/i386-builtin.def: Update builtin definitions.
19147 * config/i386/i386.c: Handle new builtin types and remove useless ones.
19148 * config/i386/sse.md: Update VFIXUPIMM* patterns.
19149 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19150 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19151 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
19152 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19153 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19154 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
19155 * config/i386/subst.md:
19156 (round_saeonly_sd_mask_operand4): Add new subst_attr.
19157 (round_saeonly_sd_mask_op4): Ditto.
19158 (round_saeonly_expand_operand5): Ditto.
19159 (round_saeonly_expand): Update.
19161 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19165 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
19167 * config/i386/sse.md: Combine VFIXUPIMM* patterns
19168 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19169 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19170 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
19171 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19172 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19173 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
19175 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19179 2018-12-15 Jakub Jelinek <jakub@redhat.com>
19182 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
19183 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
19184 instead of UNSPEC_FIXUPIMM.
19186 2019-01-17 Richard Biener <rguenther@suse.de>
19189 * dwarf2out.c (want_pubnames): Never generate pubnames sections
19190 and friends for the LTO part of debug info.
19192 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19194 PR tree-optimization/86214
19195 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
19198 PR rtl-optimization/88870
19199 * dce.c (deletable_insn_p): Never delete const/pure calls that can
19200 throw if we can't alter the cfg or delete dead exceptions.
19201 (mark_insn): Don't call find_call_stack_args for such calls.
19203 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
19205 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
19206 prototypes for vec_st.
19207 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
19208 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
19209 mainly on signed/unsigned long long and double.
19211 2019-01-16 David Malcolm <dmalcolm@redhat.com>
19214 * combine.c (delete_noop_moves): Convert to "bool" return,
19215 returning true if any edges are eliminated.
19216 (combine_instructions): Also return true if delete_noop_moves
19219 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19221 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
19222 correct max nunits for endian swap.
19223 (aarch64_expand_fcmla_builtin): Correct subreg code.
19224 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19225 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
19228 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
19230 * config/alpha/alpha.c (alpha_gimplify_va_arg):
19231 Handle split indirect COMPLEX_TYPE arguments.
19233 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
19236 * config/aarch64/aarch64-modes.def: Add comment about how the carry
19237 bit is set by add and compare.
19238 (CC_ADC): New CC_MODE.
19239 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
19240 to cache the code and mode of X. Adjust the shape of a CC_Cmode
19241 comparison. Add detection for CC_ADCmode.
19242 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
19244 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
19245 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
19246 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
19247 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
19248 to eliminate the need for zero-extending the operands.
19249 (add<mode>3_compareC_imm): Delete. Merge into ...
19250 (add<mode>3_compareC): ... this. Restructure the comparison to
19251 eliminate the need for zero-extending the operands.
19252 (add<mode>3_carryin): Use LTU for the overflow detection.
19253 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
19254 Reexpress comparison for overflow.
19255 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
19256 (add<mode>3_carryinC): Likewise.
19257 (add<mode>3_carryinV): Use LTU for carry between partials.
19258 * config/aarch64/predicates.md (aarch64_carry_operation): Update
19259 handling of CC_Cmode and add CC_ADCmode.
19260 (aarch64_borrow_operation): Likewise.
19262 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19264 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
19265 Remove patternmode.
19266 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
19267 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19268 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
19269 Remove endianness conversion.
19271 2019-01-16 Martin Liska <mliska@suse.cz>
19273 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
19275 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
19277 * gcc.c (add_sysrooted_hdrs_prefix): New function.
19278 (path_prefix_reset): Move up in the source file.
19279 (find_fortran_preinclude_file): Make complex search for the
19280 fortran header files.
19282 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
19284 * godump.c (go_output_typedef): When outputting a typedef, refer
19285 to the underlying type by its name and not its structure.
19287 2019-01-15 David Malcolm <dmalcolm@redhat.com>
19290 * tree.c (build_function_type): Assert that arg_types is not
19293 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
19295 PR inline-asm/52813
19296 * doc/extend.texi: Document that listing the stack pointer in the
19297 clobber list of an asm is a deprecated feature.
19298 * common.opt (Wdeprecated): Moved from c-family/c.opt.
19299 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
19300 warning instead of an error for clobbers of the stack pointer.
19301 Add a note explaining why.
19303 2019-01-15 Richard Biener <rguenther@suse.de>
19306 * dwarf2out.c (gen_member_die): Do not generate inheritance
19309 2019-01-15 Richard Biener <rguenther@suse.de>
19311 PR tree-optimization/88855
19312 * tree-if-conv.c (combine_blocks): Collect
19313 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
19315 2019-01-15 Tom de Vries <tdevries@suse.de>
19318 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
19319 lhs == NULL_TREE for gang-level reduction.
19321 2019-01-15 Richard Biener <rguenther@suse.de>
19322 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19325 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
19326 return true if SSA_NAME is already marked in visited bitmap.
19327 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
19329 2019-01-15 Jakub Jelinek <jakub@redhat.com>
19331 PR tree-optimization/88775
19332 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
19333 equal == 0 equality pointer comparisons some more if compared in
19334 integral types and either one points to an automatic var and the
19335 other to a global, or we can prove at least one points to the middle
19336 or both point to start or both point to end.
19338 2019-01-14 Andi Kleen <ak@linux.intel.com>
19340 * Makefile.in: Lower autofdo sampling rate by 10x.
19341 * Makefile.tpl: Dito.
19343 2019-01-14 Tom Honermann <tom@honermann.net>
19345 * defaults.h: Define CHAR8_TYPE.
19347 2019-01-14 Martin Sebor <msebor@redhat.com>
19350 * doc/extend.texi (Darwin Format Checks): Clarify.
19352 2019-01-14 Richard Biener <rguenther@suse.de>
19354 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19355 whether we are in (simplify ...) or (match ...) context.
19357 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19359 PR rtl-optimization/88796
19360 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19361 * cfgexpand.c (stack_protect_prologue): Initialize
19362 crtl->stack_protect_guard_decl.
19363 * function.c (stack_protect_epilogue): Use it instead of calling
19364 targetm.stack_protect_guard again.
19365 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19366 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19367 crtl->stack_protect_guard_decl.
19368 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19369 on the returned MEM_EXPR.
19371 2019-01-12 Tom de Vries <tdevries@suse.de>
19373 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19374 vector length using -fopenacc-dim.
19376 2019-01-12 Tom de Vries <tdevries@suse.de>
19378 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19379 lengths into account.
19381 2019-01-12 Svante Signell <svante.signell@gmail.com>
19383 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19384 (TARGET_CAN_SPLIT_STACK): Define.
19385 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19387 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19389 * params.def (inline-unit-growth): Set to 40.
19391 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19393 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19395 2019-01-12 Tom de Vries <tdevries@suse.de>
19397 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19398 region calling vector-partitionable routine, set default_vector_length
19401 2019-01-12 Tom de Vries <tdevries@suse.de>
19403 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19404 variable default_vector_length.
19406 2019-01-12 Tom de Vries <tdevries@suse.de>
19408 PR middle-end/88703
19409 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19410 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19413 2019-01-12 Tom de Vries <tdevries@suse.de>
19415 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19416 (nvptx_goacc_validate_dims): Add used parameter.
19417 * doc/tm.texi: Regenerate.
19418 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19419 argument to call to targetm.goacc.validate_dims.
19420 (default_goacc_validate_dims): Add used
19422 * target.def (validate_dims): Add used parameter in DEFHOOK.
19423 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19425 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19427 PR middle-end/85956
19429 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19431 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19432 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19433 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19434 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19436 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19438 PR rtl-optimization/87305
19440 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19441 for little endian pseudos used as paradoxical subreg.
19443 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19445 PR tree-optimization/88693
19446 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19447 for STRING_CSTs that don't contain any NUL characters in the first
19448 TREE_STRING_LENGTH bytes.
19450 2019-01-11 Alan Modra <amodra@gmail.com>
19454 * genattrtab.c (min_fn): Don't translate values.
19455 (min_attr_value): Return INT_MAX when the value can't be calculated.
19456 Return minimum among any values that can be calculated.
19457 (max_attr_value): Adjust.
19459 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19461 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19463 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19465 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19466 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19467 (aarch64_return_call_with_max_clobbers): New function.
19468 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19469 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19471 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19472 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19473 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19474 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19475 * cselib.c (cselib_process_insn): Add argument to
19476 targetm.hard_regno_call_part_clobbered call.
19477 * ira-conflicts.c (ira_build_conflicts): Ditto.
19478 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19479 * lra-constraints.c (inherit_reload_reg): Ditto.
19480 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19481 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19482 argument. Call targetm.return_call_with_max_clobbers.
19483 Add argument to targetm.hard_regno_call_part_clobbered call.
19484 (calls_have_same_clobbers_p): New function.
19485 (process_bb_lives): Add call_insn and last_call_insn variables.
19486 Pass call_insn to check_pseudos_live_through_calls.
19487 Modify if stmt to check targetm.return_call_with_max_clobbers.
19488 Update setting of flush variable.
19489 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19491 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19492 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19493 targetm.hard_regno_call_part_clobbered call.
19494 * reginfo.c (choose_hard_reg_mode): Ditto.
19495 * regrename.c (check_new_reg_p): Ditto.
19496 * reload.c (find_equiv_reg): Ditto.
19497 * reload1.c (emit_reload_insns): Ditto.
19498 * sched-deps.c (deps_analyze_insn): Ditto.
19499 * sel-sched.c (init_regs_for_mode): Ditto.
19500 (mark_unavailable_hard_regs): Ditto.
19501 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19502 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19503 (return_call_with_max_clobbers): New target function.
19504 * doc/tm.texi: Regenerate.
19505 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19506 * hooks.c (hook_bool_uint_mode_false): Change to
19507 hook_bool_insn_uint_mode_false.
19508 * hooks.h (hook_bool_uint_mode_false): Ditto.
19510 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19512 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19513 (aarch64_remove_extra_call_preserved_regs): New function.
19514 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19515 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19516 * doc/tm.texi: Regenerate.
19517 * final.c (get_call_reg_set_usage): Call new hook.
19518 * target.def (remove_extra_call_preserved_regs): New hook.
19519 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19520 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19522 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19525 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19526 inside of pass_combine_1 dump rather than pass_profile_1.
19528 2019-01-11 Tom de Vries <tdevries@suse.de>
19530 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19531 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19532 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19533 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19536 2019-01-11 Tom de Vries <tdevries@suse.de>
19538 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19540 2019-01-11 Jan Beulich <jbeulich@suse.com>
19542 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19543 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19544 sse2_cvtsi2sd): Add {l}.
19545 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19548 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19551 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19553 (*float<floatunssuffix>v2div2sf2): New define_insn.
19554 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19555 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19556 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19557 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19558 match_operands with "const0_operand" "C".
19560 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19562 * config/aarch64/aarch64-builtins.c
19563 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19564 (aarch64_init_simd_builtins): ...Here
19566 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19568 PR rtl-optimization/87305
19570 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19571 allocation for big endian pseudos used as paradoxical subregs and
19572 spill them if it is wrong.
19573 * lra-constraints.c (lra_constraints): Add a comment.
19575 2019-01-10 Richard Biener <rguenther@suse.de>
19577 PR tree-optimization/88792
19578 * tree-ssa-pre.c (get_representative_for): Do not return a
19581 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19583 PR middle-end/84877
19585 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19586 (assign_parm_setup_block): Do the argument slot realignment here
19589 2019-01-10 Stefan Agner <stefan@agner.ch>
19592 * config/arm/arm.c (arm_option_override_internal): Force
19593 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19595 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19598 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19601 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19603 * config/arm/arm-builtins.c
19604 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19605 (MAC_LANE_PAIR_QUALIFIERS): New.
19606 (arm_expand_builtin_args): Use it.
19607 (arm_expand_builtin_1): Likewise.
19608 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19609 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19610 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19611 * config/arm/arm_neon.h:
19612 (vcadd_rot90_f16): New.
19613 (vcaddq_rot90_f16): New.
19614 (vcadd_rot270_f16): New.
19615 (vcaddq_rot270_f16): New.
19618 (vcmla_lane_f16): New.
19619 (vcmla_laneq_f16): New.
19620 (vcmlaq_lane_f16): New.
19621 (vcmlaq_laneq_f16): New.
19622 (vcmla_rot90_f16): New.
19623 (vcmlaq_rot90_f16): New.
19624 (vcmla_rot90_lane_f16): New.
19625 (vcmla_rot90_laneq_f16): New.
19626 (vcmlaq_rot90_lane_f16): New.
19627 (vcmlaq_rot90_laneq_f16): New.
19628 (vcmla_rot180_f16): New.
19629 (vcmlaq_rot180_f16): New.
19630 (vcmla_rot180_lane_f16): New.
19631 (vcmla_rot180_laneq_f16): New.
19632 (vcmlaq_rot180_lane_f16): New.
19633 (vcmlaq_rot180_laneq_f16): New.
19634 (vcmla_rot270_f16): New.
19635 (vcmlaq_rot270_f16): New.
19636 (vcmla_rot270_lane_f16): New.
19637 (vcmla_rot270_laneq_f16): New.
19638 (vcmlaq_rot270_lane_f16): New.
19639 (vcmlaq_rot270_laneq_f16): New.
19640 (vcadd_rot90_f32): New.
19641 (vcaddq_rot90_f32): New.
19642 (vcadd_rot270_f32): New.
19643 (vcaddq_rot270_f32): New.
19646 (vcmla_lane_f32): New.
19647 (vcmla_laneq_f32): New.
19648 (vcmlaq_lane_f32): New.
19649 (vcmlaq_laneq_f32): New.
19650 (vcmla_rot90_f32): New.
19651 (vcmlaq_rot90_f32): New.
19652 (vcmla_rot90_lane_f32): New.
19653 (vcmla_rot90_laneq_f32): New.
19654 (vcmlaq_rot90_lane_f32): New.
19655 (vcmlaq_rot90_laneq_f32): New.
19656 (vcmla_rot180_f32): New.
19657 (vcmlaq_rot180_f32): New.
19658 (vcmla_rot180_lane_f32): New.
19659 (vcmla_rot180_laneq_f32): New.
19660 (vcmlaq_rot180_lane_f32): New.
19661 (vcmlaq_rot180_laneq_f32): New.
19662 (vcmla_rot270_f32): New.
19663 (vcmlaq_rot270_f32): New.
19664 (vcmla_rot270_lane_f32): New.
19665 (vcmla_rot270_laneq_f32): New.
19666 (vcmlaq_rot270_lane_f32): New.
19667 (vcmlaq_rot270_laneq_f32): New.
19668 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19669 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19670 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19671 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19672 vcmlaq_lane270): New.
19673 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19674 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
19675 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
19676 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
19677 (arm_option_reconfigure_globals): Use them.
19678 * config/arm/iterators.md (VDF, VQ_HSF): New.
19679 (VCADD, VCMLA): New.
19680 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
19681 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
19683 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
19684 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
19686 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19688 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19689 Add qualifier_lane_pair_index.
19690 (emit-rtl.h): Include.
19691 (TYPES_QUADOP_LANE_PAIR): New.
19692 (aarch64_simd_expand_args): Use it.
19693 (aarch64_simd_expand_builtin): Likewise.
19694 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
19696 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
19697 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
19698 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
19699 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
19700 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
19701 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
19702 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
19703 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
19704 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
19705 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
19706 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
19707 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
19708 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
19709 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19710 Add __ARM_FEATURE_COMPLEX.
19711 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
19712 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
19713 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
19714 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19715 fcmlaq_lane270): New.
19716 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19717 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
19718 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
19719 * config/aarch64/arm_neon.h:
19720 (vcadd_rot90_f16): New.
19721 (vcaddq_rot90_f16): New.
19722 (vcadd_rot270_f16): New.
19723 (vcaddq_rot270_f16): New.
19726 (vcmla_lane_f16): New.
19727 (vcmla_laneq_f16): New.
19728 (vcmlaq_lane_f16): New.
19729 (vcmlaq_rot90_lane_f16): New.
19730 (vcmla_rot90_laneq_f16): New.
19731 (vcmla_rot90_lane_f16): New.
19732 (vcmlaq_rot90_f16): New.
19733 (vcmla_rot90_f16): New.
19734 (vcmlaq_laneq_f16): New.
19735 (vcmla_rot180_laneq_f16): New.
19736 (vcmla_rot180_lane_f16): New.
19737 (vcmlaq_rot180_f16): New.
19738 (vcmla_rot180_f16): New.
19739 (vcmlaq_rot90_laneq_f16): New.
19740 (vcmlaq_rot270_laneq_f16): New.
19741 (vcmlaq_rot270_lane_f16): New.
19742 (vcmla_rot270_laneq_f16): New.
19743 (vcmlaq_rot270_f16): New.
19744 (vcmla_rot270_f16): New.
19745 (vcmlaq_rot180_laneq_f16): New.
19746 (vcmlaq_rot180_lane_f16): New.
19747 (vcmla_rot270_lane_f16): New.
19748 (vcadd_rot90_f32): New.
19749 (vcaddq_rot90_f32): New.
19750 (vcaddq_rot90_f64): New.
19751 (vcadd_rot270_f32): New.
19752 (vcaddq_rot270_f32): New.
19753 (vcaddq_rot270_f64): New.
19757 (vcmla_lane_f32): New.
19758 (vcmla_laneq_f32): New.
19759 (vcmlaq_lane_f32): New.
19760 (vcmlaq_laneq_f32): New.
19761 (vcmla_rot90_f32): New.
19762 (vcmlaq_rot90_f32): New.
19763 (vcmlaq_rot90_f64): New.
19764 (vcmla_rot90_lane_f32): New.
19765 (vcmla_rot90_laneq_f32): New.
19766 (vcmlaq_rot90_lane_f32): New.
19767 (vcmlaq_rot90_laneq_f32): New.
19768 (vcmla_rot180_f32): New.
19769 (vcmlaq_rot180_f32): New.
19770 (vcmlaq_rot180_f64): New.
19771 (vcmla_rot180_lane_f32): New.
19772 (vcmla_rot180_laneq_f32): New.
19773 (vcmlaq_rot180_lane_f32): New.
19774 (vcmlaq_rot180_laneq_f32): New.
19775 (vcmla_rot270_f32): New.
19776 (vcmlaq_rot270_f32): New.
19777 (vcmlaq_rot270_f64): New.
19778 (vcmla_rot270_lane_f32): New.
19779 (vcmla_rot270_laneq_f32): New.
19780 (vcmlaq_rot270_lane_f32): New.
19781 (vcmlaq_rot270_laneq_f32): New.
19782 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
19783 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
19784 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
19785 (FCADD, FCMLA): New.
19787 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
19789 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19793 * config/pa/pa.c: Change "can not" to "cannot".
19794 * gimple-ssa-evrp-analyze.c: Likewise.
19795 * ipa-icf.c: Likewise.
19796 * ipa-polymorphic-call.c: Likewise.
19797 * ipa-pure-const.c: Likewise.
19798 * lra-constraints.c: Likewise.
19799 * lra-remat.c: Likewise.
19800 * reload1.c: Likewise.
19801 * reorg.c: Likewise.
19802 * tree-ssa-uninit.c: Likewise.
19804 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19808 * Makefile.in: Mechanically replace "can not" with "cannot".
19809 * alias.c: Likewise.
19810 * builtins.c: Likewise.
19811 * calls.c: Likewise.
19812 * cgraph.c: Likewise.
19813 * cgraph.h: Likewise.
19814 * cgraphclones.c: Likewise.
19815 * cgraphunit.c: Likewise.
19816 * combine-stack-adj.c: Likewise.
19817 * combine.c: Likewise.
19818 * common/config/i386/i386-common.c: Likewise.
19819 * config/aarch64/aarch64.c: Likewise.
19820 * config/alpha/sync.md: Likewise.
19821 * config/arc/arc.c: Likewise.
19822 * config/arc/predicates.md: Likewise.
19823 * config/arm/arm-c.c: Likewise.
19824 * config/arm/arm.c: Likewise.
19825 * config/arm/arm.h: Likewise.
19826 * config/arm/arm.md: Likewise.
19827 * config/arm/cortex-r4f.md: Likewise.
19828 * config/csky/csky.c: Likewise.
19829 * config/csky/csky.h: Likewise.
19830 * config/darwin-f.c: Likewise.
19831 * config/epiphany/epiphany.md: Likewise.
19832 * config/i386/i386.c: Likewise.
19833 * config/i386/sol2.h: Likewise.
19834 * config/m68k/m68k.c: Likewise.
19835 * config/mcore/mcore.h: Likewise.
19836 * config/microblaze/microblaze.md: Likewise.
19837 * config/mips/20kc.md: Likewise.
19838 * config/mips/sb1.md: Likewise.
19839 * config/nds32/nds32.c: Likewise.
19840 * config/nds32/predicates.md: Likewise.
19841 * config/pa/pa.c: Likewise.
19842 * config/rs6000/e300c2c3.md: Likewise.
19843 * config/rs6000/rs6000.c: Likewise.
19844 * config/s390/s390.h: Likewise.
19845 * config/sh/sh.c: Likewise.
19846 * config/sh/sh.md: Likewise.
19847 * config/spu/vmx2spu.h: Likewise.
19848 * cprop.c: Likewise.
19849 * dbxout.c: Likewise.
19850 * df-scan.c: Likewise.
19851 * doc/cfg.texi: Likewise.
19852 * doc/extend.texi: Likewise.
19853 * doc/fragments.texi: Likewise.
19854 * doc/gty.texi: Likewise.
19855 * doc/invoke.texi: Likewise.
19856 * doc/lto.texi: Likewise.
19857 * doc/md.texi: Likewise.
19858 * doc/objc.texi: Likewise.
19859 * doc/rtl.texi: Likewise.
19860 * doc/tm.texi: Likewise.
19862 * emit-rtl.c: Likewise.
19863 * emit-rtl.h: Likewise.
19864 * except.c: Likewise.
19865 * expmed.c: Likewise.
19866 * expr.c: Likewise.
19867 * fold-const.c: Likewise.
19868 * genautomata.c: Likewise.
19869 * gimple-fold.c: Likewise.
19870 * hard-reg-set.h: Likewise.
19871 * ifcvt.c: Likewise.
19872 * ipa-comdats.c: Likewise.
19873 * ipa-cp.c: Likewise.
19874 * ipa-devirt.c: Likewise.
19875 * ipa-fnsummary.c: Likewise.
19876 * ipa-icf.c: Likewise.
19877 * ipa-inline-transform.c: Likewise.
19878 * ipa-inline.c: Likewise.
19879 * ipa-polymorphic-call.c: Likewise.
19880 * ipa-profile.c: Likewise.
19881 * ipa-prop.c: Likewise.
19882 * ipa-pure-const.c: Likewise.
19883 * ipa-reference.c: Likewise.
19884 * ipa-split.c: Likewise.
19885 * ipa-visibility.c: Likewise.
19887 * ira-build.c: Likewise.
19888 * ira-color.c: Likewise.
19889 * ira-conflicts.c: Likewise.
19890 * ira-costs.c: Likewise.
19891 * ira-int.h: Likewise.
19892 * ira-lives.c: Likewise.
19895 * loop-invariant.c: Likewise.
19896 * loop-unroll.c: Likewise.
19897 * lower-subreg.c: Likewise.
19898 * lra-assigns.c: Likewise.
19899 * lra-constraints.c: Likewise.
19900 * lra-eliminations.c: Likewise.
19901 * lra-lives.c: Likewise.
19902 * lra-remat.c: Likewise.
19903 * lra-spills.c: Likewise.
19905 * lto-cgraph.c: Likewise.
19906 * lto-streamer-out.c: Likewise.
19907 * postreload-gcse.c: Likewise.
19908 * predict.c: Likewise.
19909 * profile-count.h: Likewise.
19910 * profile.c: Likewise.
19911 * recog.c: Likewise.
19913 * reload.c: Likewise.
19914 * reload1.c: Likewise.
19915 * reorg.c: Likewise.
19916 * resource.c: Likewise.
19917 * rtl.def: Likewise.
19919 * rtlanal.c: Likewise.
19920 * sched-deps.c: Likewise.
19921 * sched-ebb.c: Likewise.
19922 * sched-rgn.c: Likewise.
19923 * sel-sched-ir.c: Likewise.
19924 * sel-sched.c: Likewise.
19925 * shrink-wrap.c: Likewise.
19926 * simplify-rtx.c: Likewise.
19927 * symtab.c: Likewise.
19928 * target.def: Likewise.
19929 * toplev.c: Likewise.
19930 * tree-call-cdce.c: Likewise.
19931 * tree-cfg.c: Likewise.
19932 * tree-complex.c: Likewise.
19933 * tree-core.h: Likewise.
19934 * tree-eh.c: Likewise.
19935 * tree-inline.c: Likewise.
19936 * tree-loop-distribution.c: Likewise.
19937 * tree-nrv.c: Likewise.
19938 * tree-profile.c: Likewise.
19939 * tree-sra.c: Likewise.
19940 * tree-ssa-alias.c: Likewise.
19941 * tree-ssa-dce.c: Likewise.
19942 * tree-ssa-dom.c: Likewise.
19943 * tree-ssa-forwprop.c: Likewise.
19944 * tree-ssa-loop-im.c: Likewise.
19945 * tree-ssa-loop-ivcanon.c: Likewise.
19946 * tree-ssa-loop-ivopts.c: Likewise.
19947 * tree-ssa-loop-niter.c: Likewise.
19948 * tree-ssa-phionlycprop.c: Likewise.
19949 * tree-ssa-phiopt.c: Likewise.
19950 * tree-ssa-propagate.c: Likewise.
19951 * tree-ssa-threadedge.c: Likewise.
19952 * tree-ssa-threadupdate.c: Likewise.
19953 * tree-ssa-uninit.c: Likewise.
19954 * tree-ssanames.c: Likewise.
19955 * tree-streamer-out.c: Likewise.
19956 * tree.c: Likewise.
19957 * tree.h: Likewise.
19958 * vr-values.c: Likewise.
19960 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
19962 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
19963 (ix86_split_xorsign): Ditto.
19964 * config/i386/i386.c (ix86_expand_xorsign): New function.
19965 (ix86_split_xorsign): Ditto.
19966 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
19967 (xorsign<mode>3): New expander.
19968 (xorsign<mode>3_1): New insn_and_split pattern.
19969 * config/i386/sse.md (xorsign<mode>3): New expander.
19971 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19973 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
19974 (*tablejump_sp64): Likewise.
19975 (*tablejump<P:mode>): ...this.
19976 (*call_address_sp32): Merge into...
19977 (*call_address_sp64): Likewise.
19978 (*call_address<P:mode>): ...this.
19979 (*call_symbolic_sp32): Merge into...
19980 (*call_symbolic_sp64): Likewise.
19981 (*call_symbolic<P:mode>): ...this.
19982 (call_value): Remove constraint and add predicate.
19983 (*call_value_address_sp32): Merge into...
19984 (*call_value_address_sp64): Likewise.
19985 (*call_value_address<P:mode>): ...this.
19986 (*call_value_symbolic_sp32): Merge into...
19987 (*call_value_symbolic_sp64): Likewise.
19988 (*call_value_symbolic<P:mode>): ...this.
19989 (*sibcall_symbolic_sp32): Merge into...
19990 (*sibcall_symbolic_sp64): Likewise.
19991 (*sibcall_symbolic<P:mode>): ...this.
19992 (sibcall_value): Remove constraint and add predicate.
19993 (*sibcall_value_symbolic_sp32): Merge into...
19994 (*sibcall_value_symbolic_sp64): Likewise.
19995 (*sibcall_value_symbolic<P:mode>): ...this.
19996 (window_save): Minor tweak.
19997 (*branch_sp32): Merge into...
19998 (*branch_sp64): Likewise.
19999 (*branch<P:mode>): ...this.
20001 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20002 James Clarke <jrtc27@jrtc27.com>
20005 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
20006 consistently in TLS address generation and adjust code to the renaming
20007 of patterns. Mark calls to __tls_get_addr as const.
20008 * config/sparc/sparc.md (tgd_hi22): Turn into...
20009 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
20010 (tgd_lo10): Turn into...
20011 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
20012 (tgd_add32): Merge into...
20013 (tgd_add64): Likewise.
20014 (tgd_add<P:mode>): ...this and use Pmode throughout.
20015 (tldm_hi22): Turn into...
20016 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
20017 (tldm_lo10): Turn into...
20018 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
20019 (tldm_add32): Merge into...
20020 (tldm_add64): Likewise.
20021 (tldm_add<P:mode>): ...this and use Pmode throughout.
20022 (tldm_call32): Merge into...
20023 (tldm_call64): Likewise.
20024 (tldm_call<P:mode>): ...this and use Pmode throughout.
20025 (tldo_hix22): Turn into...
20026 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
20027 (tldo_lox10): Turn into...
20028 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
20029 (tldo_add32): Merge into...
20030 (tldo_add64): Likewise.
20031 (tldo_add<P:mode>): ...this and use Pmode throughout.
20032 (tie_hi22): Turn into...
20033 (tie_hi22<P:mode>): ...this and use Pmode throughout.
20034 (tie_lo10): Turn into...
20035 (tie_lo10<P:mode>): ...this and use Pmode throughout.
20036 (tie_ld64): Use DImode throughout.
20037 (tie_add32): Merge into...
20038 (tie_add64): Likewise.
20039 (tie_add<P:mode>): ...this and use Pmode throughout.
20040 (tle_hix22_sp32): Merge into...
20041 (tle_hix22_sp64): Likewise.
20042 (tle_hix22<P:mode>): ...this and use Pmode throughout.
20043 (tle_lox22_sp32): Merge into...
20044 (tle_lox22_sp64): Likewise.
20045 (tle_lox22<P:mode>): ...this and use Pmode throughout.
20046 (*tldo_ldub_sp32): Merge into...
20047 (*tldo_ldub_sp64): Likewise.
20048 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
20049 (*tldo_ldub1_sp32): Merge into...
20050 (*tldo_ldub1_sp64): Likewise.
20051 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
20052 (*tldo_ldub2_sp32): Merge into...
20053 (*tldo_ldub2_sp64): Likewise.
20054 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
20055 (*tldo_ldsb1_sp32): Merge into...
20056 (*tldo_ldsb1_sp64): Likewise.
20057 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
20058 (*tldo_ldsb2_sp32): Merge into...
20059 (*tldo_ldsb2_sp64): Likewise.
20060 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
20061 (*tldo_ldub3_sp64): Use DImode throughout.
20062 (*tldo_ldsb3_sp64): Likewise.
20063 (*tldo_lduh_sp32): Merge into...
20064 (*tldo_lduh_sp64): Likewise.
20065 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
20066 (*tldo_lduh1_sp32): Merge into...
20067 (*tldo_lduh1_sp64): Likewise.
20068 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
20069 (*tldo_ldsh1_sp32): Merge into...
20070 (*tldo_ldsh1_sp64): Likewise.
20071 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
20072 (*tldo_lduh2_sp64): Use DImode throughout.
20073 (*tldo_ldsh2_sp64): Likewise.
20074 (*tldo_lduw_sp32): Merge into...
20075 (*tldo_lduw_sp64): Likewise.
20076 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
20077 (*tldo_lduw1_sp64): Use DImode throughout.
20078 (*tldo_ldsw1_sp64): Likewise.
20079 (*tldo_ldx_sp64): Likewise.
20080 (*tldo_stb_sp32): Merge into...
20081 (*tldo_stb_sp64): Likewise.
20082 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
20083 (*tldo_sth_sp32): Merge into...
20084 (*tldo_sth_sp64): Likewise.
20085 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
20086 (*tldo_stw_sp32): Merge into...
20087 (*tldo_stw_sp64): Likewise.
20088 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
20089 (*tldo_stx_sp64): Use DImode throughout.
20091 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20093 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
20094 check configure option to set BTI and Return Address Signing.
20095 * configure.ac: Add --enable-standard-branch-protection and
20096 --disable-standard-branch-protection.
20097 * configure: Regenerated.
20098 * doc/install.texi: Document the same.
20100 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20101 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20103 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
20104 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
20105 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
20107 * config/aarch64/aarch64-bti-insert.c: New file.
20108 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
20110 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
20112 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
20113 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
20114 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
20115 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
20117 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20119 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
20120 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
20121 Disable bti for -mbranch-protection=none.
20122 (aarch64_handle_standard_branch_protection): Enable bti for
20123 -mbranch-protection=standard.
20124 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
20125 -mbranch-protection.
20126 (aarch64_bti_enabled): Check if bti is enabled.
20127 * config/aarch64/aarch64.opt: Declare target variable.
20128 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
20130 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20132 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
20133 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
20134 (aarch64_expand_epilogue): Likewise.
20135 (aarch64_output_mi_thunk): Likewise.
20136 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
20137 TAILCALL_ADDR_REGS to x16 and x17.
20138 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
20140 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20142 * config/aarch64/aarch64-option-extensions.def: Define
20143 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
20144 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
20145 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
20146 (AARCH64_FL_PREDRES): New.
20147 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
20148 AARCH64_FL_PREDRES by default.
20149 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
20151 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20153 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
20155 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
20156 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
20157 * doc/invoke.texi: Document ARMv8.5-A.
20159 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20161 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
20162 (xorsign<mode>3): Likewise.
20164 2019-01-09 Jelinek <jakub@redhat.com>
20166 PR middle-end/88758
20167 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
20168 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
20170 PR rtl-optimization/88331
20171 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
20172 not currently_expanding_to_rtl.
20174 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20176 * doc/invoke.texi (-Os): Remove trailing spaces.
20177 (-finline-functions): Remove reference to -O2.
20179 2019-01-08 Jakub Jelinek <jakub@redhat.com>
20181 PR rtl-optimization/79593
20182 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
20184 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
20185 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
20187 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
20190 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
20194 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
20195 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
20197 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
20200 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
20201 ix86_avx_u128_mode_entry.
20203 2019-01-08 Martin Liska <mliska@suse.cz>
20205 PR tree-optimization/88753
20206 * tree-switch-conversion.c (switch_conversion::build_one_array):
20207 Come up with local variable constructor. Convert first to
20208 type of constructor values.
20210 2019-01-08 Richard Biener <rguenther@suse.de>
20212 PR tree-optimization/86554
20213 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
20214 rpo_avail): Move earlier.
20215 (visit_nary_op): When value-numbering to expressions
20216 with different overflow behavior make sure there's an
20217 available expression on the path.
20219 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
20221 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
20222 aarch64_parse_branch_protection,
20223 struct aarch64_branch_protect_type,
20224 aarch64_handle_no_branch_protection,
20225 aarch64_handle_standard_branch_protection,
20226 aarch64_validate_mbranch_protection,
20227 aarch64_handle_pac_ret_protection,
20228 aarch64_handle_attr_branch_protection,
20229 accepted_branch_protection_string,
20230 aarch64_pac_ret_subtypes,
20231 aarch64_branch_protect_types,
20232 aarch64_handle_pac_ret_leaf): Define.
20233 (aarch64_override_options_after_change_1, aarch64_override_options):
20234 Add check for accepted_branch_protection_string.
20235 (aarch64_option_save): Save accepted_branch_protection_string.
20236 (aarch64_option_restore): Save accepted_branch_protection_string.
20237 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
20238 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
20239 msign-return-address.
20240 * doc/invoke.texi: Add mbranch-protection.
20242 2019-01-08 Alan Modra <amodra@gmail.com>
20245 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
20246 Delete "unknownp" parameter. Adjust callers. Handle
20247 CONST_INT, PLUS, MINUS, and MULT.
20248 (attr_value_aligned): Renamed from or_attr_value.
20249 (min_attr_value): Return INT_MIN for unhandled rtl case..
20250 (min_fn): ..and translate to INT_MAX here.
20251 (write_length_unit_log): Modify to cope without "unknown".
20252 (write_attr_value): Handle IF_THEN_ELSE.
20254 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20256 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
20257 optimization for masked stores.
20259 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20261 PR middle-end/88567
20262 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
20263 output vector directly to duplicate_and_interleave instead of
20264 going through a temporary. Postpone insertion of ctor_seq to
20265 the end of the loop.
20267 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
20270 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
20271 unsigned_p. Handle signed and unsigned overflow correction as
20273 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
20275 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
20277 (add<mode>3_compareV_imm): Make this callable for expanding.
20278 (subv<GPI:mode>4): Use register_operand for operand 1. Use
20279 aarch64_plus_operand for operand 2.
20280 (subv<GPI:mode>_insn): New insn pattern.
20281 (subv<GPI:mode>_imm): Likewise.
20282 (negv<GPI:mode>3): New expand pattern.
20283 (negv<GPI:mode>_insn): New insn pattern.
20284 (negv<GPI:mode>_cmp_only): Likewise.
20285 (cmpv<GPI:mode>_insn): Likewise.
20286 (subvti4): Use register_operand for operand 1. Update call to
20287 aarch64_expand_subvti.
20288 (usubvti4): Likewise.
20289 (negvti3): New expand pattern.
20290 (negdi_carryout): New insn pattern.
20291 (negvdi_carryinV): New insn pattern.
20292 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
20293 version the named version.
20294 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
20296 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
20298 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
20300 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
20301 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
20302 (sub<mode>3_carryinCV): Delete.
20303 (sub<GPI:mode>3_carryinV): New expand pattern.
20304 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
20306 2019-01-07 Richard Biener <rguenther@suse.de>
20308 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
20309 of tree_operand_hash.
20311 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20313 PR tree-optimization/88598
20314 * tree.h (single_nonzero_element): Declare.
20315 * tree.c (single_nonzero_element): New function.
20316 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
20317 if I is the only nonzero element of CST.
20319 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20321 PR tree-optimization/88598
20322 * tree.h (initializer_each_zero_or_onep): Declare.
20323 * tree.c (initializer_each_zero_or_onep): New function.
20324 (signed_or_unsigned_type_for): Handle float types too.
20325 (unsigned_type_for, signed_type_for): Update comments accordingly.
20326 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
20327 x & { 0 or -1, 0 or -1, ... }.
20329 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
20331 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
20332 with x86_64-pc-linux-gnu.
20334 2019-01-07 Tom de Vries <tdevries@suse.de>
20337 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
20339 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
20342 2019-01-07 Jakub Jelinek <jakub@redhat.com>
20344 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
20345 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
20346 TARGET_AVX512F as condition.
20349 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
20350 const_not_ok_for_debug_p target hook.
20351 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20352 on UNSPEC and subexpressions thereof if all subexpressions of the
20353 UNSPEC are CONSTANT_P.
20355 PR tree-optimization/88676
20356 * tree-ssa-phiopt.c (two_value_replacement): New function.
20357 (tree_ssa_phiopt_worker): Call it.
20360 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20361 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20364 * tree-vect-generic.c: Include insn-config.h and recog.h.
20365 (expand_vector_piecewise): Add defaulted ret_type argument,
20366 if non-NULL, use that in preference to type for the result type.
20367 (expand_vector_parallel): Formatting fix.
20368 (do_vec_conversion, do_vec_narrowing_conversion,
20369 expand_vector_conversion): New functions.
20370 (expand_vector_operations_1): Call expand_vector_conversion
20371 for VEC_CONVERT ifn calls.
20372 * internal-fn.def (VEC_CONVERT): New internal function.
20373 * internal-fn.c (expand_VEC_CONVERT): New function.
20374 * fold-const-call.c (fold_const_vec_convert): New function.
20375 (fold_const_call): Use it for CFN_VEC_CONVERT.
20376 * doc/extend.texi (__builtin_convertvector): Document.
20378 2019-01-07 Tom de Vries <tdevries@suse.de>
20380 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20381 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20382 vector_red_partition, vector_red_sym): New global variables.
20383 (nvptx_option_override): Initialize vector_red_sym.
20384 (nvptx_declare_function_name): Restore red_partition register.
20385 (nvptx_file_end): Emit code to declare the vector reduction variables.
20386 (nvptx_output_red_partition): New function.
20387 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20388 large vector reductions.
20389 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20390 (nvptx_init_builtins): Add VECTOR_ADDR.
20391 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20392 Handle nvptx_expand_shared_addr.
20393 (nvptx_get_shared_red_addr): Add vector argument and handle large
20395 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20397 (nvptx_goacc_reduction_init): Likewise.
20398 (nvptx_goacc_reduction_fini): Likewise.
20399 (nvptx_goacc_reduction_teardown): Likewise.
20400 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20401 init,fini,teardown}.
20402 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20403 (nvptx_set_current_function): Init vector_red_partition.
20404 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20405 (nvptx_red_partition): New insn.
20406 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20408 2019-01-07 Tom de Vries <tdevries@suse.de>
20411 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20414 2019-01-07 Tom de Vries <tdevries@suse.de>
20416 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20417 (nvptx_option_override): Init oacc_bcast_partition.
20418 (nvptx_init_oacc_workers): New function.
20419 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20420 (nvptx_needs_shared_bcast): New function.
20421 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20422 to propagate state.
20423 (nvptx_shared_propagate): Initialize vector bcast partition and
20424 synchronization state.
20425 (nvptx_single): Generalize to enable vectors to use shared-memory
20426 to propagate state.
20427 (nvptx_process_pars): Likewise.
20428 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20429 * config/nvptx/nvptx.h (struct machine_function): Add
20430 bcast_partition and sync_bar members.
20432 2019-01-07 Tom de Vries <tdevries@suse.de>
20434 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20435 (nvptx_apply_dim_limits): New function.
20436 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20439 2019-01-07 Tom de Vries <tdevries@suse.de>
20441 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20442 as late as possible.
20444 2019-01-07 Tom de Vries <tdevries@suse.de>
20446 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20447 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20448 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20449 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20450 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20452 2019-01-07 Tom de Vries <tdevries@suse.de>
20454 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20456 2019-01-07 Tom de Vries <tdevries@suse.de>
20458 * omp-offload.c (oacc_get_min_dim): New function.
20459 * omp-offload.h (oacc_get_min_dim): Declare.
20461 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20464 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20465 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20467 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20471 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20473 * ipa-inline.c (edge_badness): Use inlined_time instead of
20474 inline_summaries->get.
20476 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20478 * opts.c (enable_fdo_optimizations): Enable
20479 version-loops-for-strides, loop-interchange, unrol-and-jam
20480 and tree-loop-distribution.
20481 * invoke.texi: Document newly enabled options.
20483 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20485 * doc/invoke.texi (max-inline-insns-small): New parameters.
20486 * ipa-inline.c (want_early_inline_function_p): simplify.
20487 (want_inline_small_function_p): Fix pasto from previous patch;
20488 use max-inline-insns-small bound.
20489 * params.def (max-inline-insns-small): New param.
20490 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20491 variables correctly.
20493 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20495 * doc/invoke.texi: Document max-inline-insns-size,
20496 uninlined-function-insns, uninlined-function-time,
20497 uninlined-thunk-insns and uninlined-thunk-time.
20498 * params.def: Add max-inline-insns-size,
20499 uninlined-function-insns, uninlined-function-time,
20500 uninlined-thunk-insns and uninlined-thunk-time.
20501 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20503 * ipa-inline.c (can_inline_edge_by_limits_p,
20504 want_inline_small_function_p): Use new parameters.
20506 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20508 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20510 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20512 PR middle-end/82564
20514 * expr.c (expand_assignment): For calls returning VLA structures
20515 if to_rtx is not a MEM, force it into a stack temporary.
20518 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20519 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20520 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20521 subexpressions of both operands.
20522 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20523 subrtxes are CONSTANT_P.
20524 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20525 2018-11-09 changes.
20527 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20529 * params.def (hot-bb-count-ws-permille): Set to 990.
20531 2019-01-04 Martin Sebor <msebor@redhat.com>
20534 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20537 2019-01-04 Martin Sebor <msebor@redhat.com>
20540 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20542 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20544 * gdbinit.in: Turn off pagination for the skip commands, restore
20545 it to previous state afterwards.
20547 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20550 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20551 of GET_MODE (opN) as modes of the libcall arguments.
20553 2019-01-04 Jan Beulich <jbeulich@suse.com>
20555 * config/i386/sse.md
20556 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20557 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20558 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20559 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20560 avx512f_vmcmp<mode>3<round_saeonly_name>,
20561 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20562 avx512f_maskcmp<mode>3,
20563 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20564 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20565 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20566 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20567 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20568 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20569 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20570 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20571 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20572 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20573 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20574 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20575 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20576 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20577 avx512cd_maskb_vec_dup<mode>,
20578 avx512cd_maskw_vec_dup<mode>,
20579 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20580 avx512dq_vmfpclass<mode>,
20581 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20584 2019-01-03 Martin Sebor <msebor@redhat.com>
20586 PR tree-optimization/88659
20587 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20589 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20591 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20592 unaligned vsx and avoid lxvd2x/stxvd2x.
20593 (gen_lvx_v4si_move): New function.
20595 2019-01-03 Tom de Vries <tdevries@suse.de>
20597 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20598 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20600 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20602 2019-01-03 Tom de Vries <tdevries@suse.de>
20604 * config/nvptx/nvptx.c (struct offload_attrs): New.
20605 (populate_offload_attrs): New function. Factor mask extraction out of
20606 nvptx_reorg. Add extraction of dimensions.
20607 (nvptx_reorg): Use populate_offload_attrs.
20609 2019-01-03 Tom de Vries <tdevries@suse.de>
20611 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20612 cases for oacc_min_dims_p and routine_p. Add asserts for
20613 oacc_default_dims_p and offload_region_p.
20615 2019-01-03 Tom de Vries <tdevries@suse.de>
20617 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20618 factored out of ...
20619 (nvptx_goacc_validate_dims): ... here.
20621 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20623 PR tree-optimization/85574
20624 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20626 (struct ssa_equip_hash_traits): Declare.
20627 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20629 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20632 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20633 change it to qualified_type.
20635 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20637 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20638 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20640 2019-01-02 Martin Sebor <msebor@redhat.com>
20641 Jeff Law <law@redhat.com>
20643 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20644 (get_range_strlen_tree): Update appropriately.
20646 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20648 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20649 rather than set_range_info.
20650 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20651 maybe_set_strlen_range. Handle potentially boundary crossing
20652 cases more conservatively.
20653 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20654 Call set_strlen_range.
20655 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20657 PR middle-end/88663
20658 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20659 need the flexp argument.
20660 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20661 from calls to get_range_strlen. Update comments. Just update
20662 VAL for an unterminated const char array and let the reset of the
20663 code handle it normally. No longer try to set *flexp. Adjust
20665 (get_range_strlen): Update for the new get_range_strlen API.
20666 (get_maxval_strlen): Similarly.
20667 (gimple_fold_builtin_strlen): Handle update meaning of return value
20668 from get_range_strlen.
20669 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20670 get_range_strlen API.
20672 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20675 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
20676 false at WPA time when body was removed.
20678 2019-01-02 Martin Liska <mliska@suse.cz>
20680 PR tree-optimization/88650
20681 * predict.c (set_even_probabilities): Calculate probability
20682 remainer only when really used.
20684 2019-01-02 Richard Biener <rguenther@suse.de>
20686 PR middle-end/88651
20687 * tree-data-ref.c (analyze_subscript_affine_affine): Use
20688 widest_ints when mangling max_stmt_execution results.
20690 2019-01-02 Richard Biener <rguenther@suse.de>
20692 PR tree-optimization/88621
20693 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
20694 bitfields when canoncalizing.
20696 2019-01-02 Richard Biener <rguenther@suse.de>
20699 * config/i386/x86-tune-costs.h (intel_cost): Adjust
20700 cost of cheap SSE instruction.
20702 2019-01-02 Richard Biener <rguenther@suse.de>
20705 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
20706 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
20708 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
20709 set after UIDs before splitting them.
20711 2019-01-01 Martin Sebor <msebor@redhat.com>
20712 Jeff Law <law@redhat.com>
20714 * gimple-fold.c (get_range_strlen_tree): Record if the computed
20715 length is optimistic. If it is, then arrange to compute the
20716 conservative length as well.
20718 * gimple-fold.h (get_range_strlen): Update prototype.
20719 * builtins.c (check_access): Update call to get_range_strlen to use
20720 c_strlen_data pointer. Change various variable accesses to instead
20721 pull data from the c_strlen_data structure.
20722 (check_strncat_sizes, expand_builtin_strncat): Likewise.
20723 * calls.c (maybe_warn_nonstring_arg): Likewise.
20724 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
20725 minimum length if maximum lengh is unknown.
20726 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
20727 that used c_strlen, it's no longer needed. Restructure slightly.
20728 (format_string): Set unlikely range appropriately.
20729 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
20731 (get_range_strlen): Accept c_strlen_data pointer for external
20732 call sites as well. Pass through to call to internal get_range_strlen.
20733 Adjust minlen, maxlen and maxbound as needed.
20734 (get_maxval_strlen): Update comments.
20735 (gimple_fold_builtin_strlen): Update call to get_range_strlen
20736 to use c_strlen_data pointer. Change variable accesses to instead
20737 use c_strlen_data data members.
20739 * gimple-fold.c (get_range_strlen): Update prototype.
20740 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
20741 local variables. Use pdata to return information to caller.
20742 Update calls to get_range_strlen. Update pdata->maxbound.
20743 (get_range_strlen -- static version): Similarly.
20744 (get_range_strlen -- extern version): Update for internal
20745 get_range_strlen API change. Convert to external data format.
20746 (get_maxval_strlen): Similarly.
20748 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
20750 * coverage.c (get_coverage_counts): Use current_function_decl.
20751 * profile.c (read_thunk_profile): New function.
20752 (branch_prob): Add THUNK parameter.
20753 * tree-profile.c (tree_profiling): Handle thunks.
20754 * value-prof.c (init_node_map): Handle thunks.
20755 * value-prof.h (branch_prob): Upate prototype.
20756 (read_thunk_profile): Declare.
20758 2019-01-01 Jakub Jelinek <jakub@redhat.com>
20760 Update copyright years.
20762 * gcc.c (process_command): Update copyright notice dates.
20763 * gcov-dump.c (print_version): Ditto.
20764 * gcov.c (print_version): Ditto.
20765 * gcov-tool.c (print_version): Ditto.
20766 * gengtype.c (create_file): Ditto.
20767 * doc/cpp.texi: Bump @copying's copyright year.
20768 * doc/cppinternals.texi: Ditto.
20769 * doc/gcc.texi: Ditto.
20770 * doc/gccint.texi: Ditto.
20771 * doc/gcov.texi: Ditto.
20772 * doc/install.texi: Ditto.
20773 * doc/invoke.texi: Ditto.
20775 Copyright (C) 2019 Free Software Foundation, Inc.
20777 Copying and distribution of this file, with or without modification,
20778 are permitted in any medium without royalty provided the copyright
20779 notice and this notice are preserved.