]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
[Arm] Add support for missing CPUs
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
2
3 * config/arm/arm-cpus.in (cortex-m35p): New entry.
4 (cortex-a76ae): Likewise.
5 (cortex-a77): Likewise
6 * config/arm/arm-tables.opt: Regenerate.
7 * config/arm/arm-tune.md: Likewise.
8 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
9 cortex-a77 CPU options.
10
11 2019-08-23 Martin Liska <mliska@suse.cz>
12
13 * profile.c (instrument_values): Do not set
14 0 as last argument.
15 * tree-profile.c (gimple_gen_interval_profiler): Remove
16 last argument.
17 (gimple_gen_pow2_profiler): Likewise.
18 (gimple_gen_topn_values_profiler): Likewise.
19 (gimple_gen_ic_profiler): Likewise.
20 (gimple_gen_time_profiler): Likewise.
21 (gimple_gen_average_profiler): Likewise.
22 (gimple_gen_ior_profiler): Likewise.
23 * value-prof.c (dump_histogram_value): Use default
24 in switch statement instead of HIST_TYPE_MAX.
25 (stream_in_histogram_value): Likewise.
26 (gimple_duplicate_stmt_histograms): Do not
27 use NULL for implicitly set arguments.
28 (gimple_divmod_values_to_profile): Do not use
29 reserve+quick_push.
30 (gimple_indirect_call_to_profile): Likewise.
31 (gimple_find_values_to_profile): Use implicit
32 function call arguments.
33 * value-prof.h (gimple_alloc_histogram_value):
34 Set default values.
35 (gimple_gen_interval_profiler): Remove last argument.
36 (gimple_gen_pow2_profiler): Likewise.
37 (gimple_gen_topn_values_profiler): Likewise.
38 (gimple_gen_ic_profiler): Likewise.
39 (gimple_gen_time_profiler): Likewise.
40 (gimple_gen_average_profiler): Likewise.
41 (gimple_gen_ior_profiler): Likewise.
42
43 2019-08-22 Martin Sebor <msebor@redhat.com>
44
45 PR middle-end/91490
46 * builtins.c (c_strlen): Rename argument and introduce new local.
47 Set no-warning bit on original argument.
48 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
49 Fold empty and zero constructors into empty strings.
50 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
51 for missing initializers.
52 * tree.c (build_string_literal): Handle optional argument.
53 * tree.h (build_string_literal): Add defaulted argument.
54 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
55 no-warning bit on original expression.
56
57 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
58
59 PR target/91481
60 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
61 and UNSPEC_DARN_RAW.
62 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
63 UNSPECV_DARN_RAW.
64 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
65 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
66 (darn): Use an unspec_volatile, and UNSPECV_DARN.
67
68 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
69
70 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
71 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
72 * config/rs6000/rs6000.md (unspec): ... here.
73 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
74 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
75 cmpeqb, *cmpeqb_internal): Delete, move to...
76 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
77 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
78 cmpeqb, *cmpeqb_internal): ... here.
79
80 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
81
82 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
83 intrinsics if __ARM_FP.
84 Use __ARM_FEATURE_CRC32 ifdef guard.
85
86 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
87
88 * config/arm/arm.md (neon_for_64bits): Remove.
89 (avoid_neon_for_64bits): Remove.
90 (arm_adddi3): Always split early.
91 (arm_subdi3): Always split early.
92 (negdi2): Remove Neon expansion.
93 (split zero_extend): Split before reload.
94 (split sign_extend): Split before reload.
95
96 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
97
98 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
99 (qhs_extenddi_cstr): Likewise.
100 * config/arm/arm.md (ashldi3): Always expand early.
101 (ashlsi3): Likewise.
102 (ashrsi3): Likewise.
103 (zero_extend<mode>di2): Remove Neon variants.
104 (extend<mode>di2): Likewise.
105 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
106 (signed_shift_di3_neon): Likewise.
107 (unsigned_shift_di3_neon): Likewise.
108 (ashrdi3_neon_imm_noclobber): Likewise.
109 (lshrdi3_neon_imm_noclobber): Likewise.
110 (<shift>di3_neon): Likewise.
111 (split extend): Remove DI extend split patterns.
112
113 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
114
115 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
116 (split not): Add DImode not splitter.
117 (anddi3): Remove pattern.
118 (anddi3_insn): Likewise.
119 (anddi_zesidi_di): Likewise.
120 (anddi_sesdi_di): Likewise.
121 (anddi_notdi_di): Likewise.
122 (anddi_notzesidi_di): Likewise.
123 (anddi_notsesidi_di): Likewise.
124 (iordi3): Likewise.
125 (iordi3_insn): Likewise.
126 (iordi_zesidi_di): Likewise.
127 (iordi_sesidi_di): Likewise.
128 (xordi3): Likewise.
129 (xordi3_insn): Likewise.
130 (xordi_sesidi_di): Likewise.
131 (xordi_zesidi_di): Likewise.
132 (one_cmpldi2): Likewise.
133 (one_cmpldi2_insn): Likewise.
134 * config/arm/constraints.md: Remove De, Df, Dg constraints.
135 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
136 alternative.
137 (iwmmxt_xordi3): Likewise.
138 (iwmmxt_anddi3): Likewise.
139 * config/arm/neon.md (orndi3_neon): Remove pattern.
140 (anddi_notdi_di): Likewise.
141 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
142 (arm_iordi_operand_neon): Likewise.
143 (arm_xordi_operand_neon): Likewise.
144 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
145 (iordi_notzesidi_di): Likewise.
146 (iordi_notdi_zesidi): Likewise.
147 (iordi_notsesidi_di): Likewise.
148
149 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
150
151 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
152 insn.
153 (iorsi3_compare0_scratch): Likewise.
154
155 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
156
157 * config/aarch64/aarch64-simd-builtins.def:
158 (ld1x4): New.
159 (st1x4): Likewise.
160 * config/aarch64/aarch64-simd.md:
161 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
162 (aarch64_st1x4<VALLDIF:mode>): Likewise.
163 (aarch64_ld1_x4_<mode>): Likewise.
164 (aarch64_st1_x4_<mode>): Likewise.
165 * config/aarch64/arm_neon.h:
166 (vld1_s8_x4): New function.
167 (vld1q_s8_x4): Likewise.
168 (vld1_s16_x4): Likewise.
169 (vld1q_s16_x4): Likewise.
170 (vld1_s32_x4): Likewise.
171 (vld1q_s32_x4): Likewise.
172 (vld1_u8_x4): Likewise.
173 (vld1q_u8_x4): Likewise.
174 (vld1_u16_x4): Likewise.
175 (vld1q_u16_x4): Likewise.
176 (vld1_u32_x4): Likewise.
177 (vld1q_u32_x4): Likewise.
178 (vld1_f16_x4): Likewise.
179 (vld1q_f16_x4): Likewise.
180 (vld1_f32_x4): Likewise.
181 (vld1q_f32_x4): Likewise.
182 (vld1_p8_x4): Likewise.
183 (vld1q_p8_x4): Likewise.
184 (vld1_p16_x4): Likewise.
185 (vld1q_p16_x4): Likewise.
186 (vld1_s64_x4): Likewise.
187 (vld1_u64_x4): Likewise.
188 (vld1_p64_x4): Likewise.
189 (vld1q_s64_x4): Likewise.
190 (vld1q_u64_x4): Likewise.
191 (vld1q_p64_x4): Likewise.
192 (vld1_f64_x4): Likewise.
193 (vld1q_f64_x4): Likewise.
194 (vst1_s8_x4): Likewise.
195 (vst1q_s8_x4): Likewise.
196 (vst1_s16_x4): Likewise.
197 (vst1q_s16_x4): Likewise.
198 (vst1_s32_x4): Likewise.
199 (vst1q_s32_x4): Likewise.
200 (vst1_u8_x4): Likewise.
201 (vst1q_u8_x4): Likewise.
202 (vst1_u16_x4): Likewise.
203 (vst1q_u16_x4): Likewise.
204 (vst1_u32_x4): Likewise.
205 (vst1q_u32_x4): Likewise.
206 (vst1_f16_x4): Likewise.
207 (vst1q_f16_x4): Likewise.
208 (vst1_f32_x4): Likewise.
209 (vst1q_f32_x4): Likewise.
210 (vst1_p8_x4): Likewise.
211 (vst1q_p8_x4): Likewise.
212 (vst1_p16_x4): Likewise.
213 (vst1q_p16_x4): Likewise.
214 (vst1_s64_x4): Likewise.
215 (vst1_u64_x4): Likewise.
216 (vst1_p64_x4): Likewise.
217 (vst1q_s64_x4): Likewise.
218 (vst1q_u64_x4): Likewise.
219 (vst1q_p64_x4): Likewise.
220 (vst1_f64_x4): Likewise.
221 (vst1q_f64_x4): Likewise.
222
223 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
224
225 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
226
227 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
228 Richard Sandiford <richard.sandiford@arm.com>
229
230 PR target/88839
231 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
232 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
233
234 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
235
236 PR target/90724
237 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
238 in reg if it fails aarch64_plus_operand predicate.
239
240 2019-08-21 Richard Biener <rguenther@suse.de>
241
242 PR tree-optimization/91482
243 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
244 BUILT_IN_ASSUME_ALIGNED calls.
245
246 2019-08-21 Richard Biener <rguenther@suse.de>
247
248 PR target/91498
249 PR target/91503
250 * config/i386/i386-features.c
251 (general_scalar_chain::make_vector_copies): Copy stack temporary
252 rtx when using it multiple times.
253 (general_scalar_chain::convert_reg): Likewise.
254
255 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
256
257 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
258
259 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
260
261 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
262 catch more redundant zero initialization cases.
263 (dse_dom_walker::dse_optimize_stmt): Likewise.
264
265 2019-08-20 Richard Biener <rguenther@suse.de>
266
267 PR lto/91307
268 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
269 by collect2 when targetm.have_ctors_dtors which avoids dragging
270 in temporary filenames from LTO input objects.
271
272 2019-08-20 Richard Biener <rguenther@suse.de>
273
274 PR tree-optimization/37242
275 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
276 to (T)a + (T)b if we know that a + b does not overflow.
277
278 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
279
280 PR rtl-optimization/91347
281 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
282 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
283
284 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
285
286 * calls.h (function_arg_info): Add a pass_by_reference field,
287 defaulting to false.
288 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
289 when applying pass-by-reference semantics.
290 (initialize_argument_information): Likewise.
291 (emit_library_call_value_1): Likewise.
292 * function.c (assign_parm_data_one): Remove passed_pointer field.
293 (assign_parm_find_data_types): Don't set it.
294 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
295 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
296 arg.pass_by_reference instead of passed_pointer.
297
298 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
299
300 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
301 into a single function_arg_info, updating its fields when we
302 apply pass-by-reference and promotion semantics. Use the
303 function_arg_info to track the mode rather than keeping it in
304 a separate local variable.
305 (initialize_argument_information): Likewise. Base the final
306 arg_to_skip on this new function_arg_info rather than creating
307 a new one from scratch.
308
309 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
310
311 * function.c (assign_parm_data_one): Replace passed_type,
312 promoted_mode and named_arg with a function_arg_info field.
313 (assign_parm_find_data_types): Remove local variables and
314 assign directly to "data". Make data->passed_mode shadow
315 data->arg.mode until promotion, then assign the promoted
316 mode to data->arg.mode.
317 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
318 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
319 (assign_parm_remove_parallels, assign_parm_setup_block_p)
320 (assign_parm_setup_block, assign_parm_setup_reg)
321 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
322 arg.mode instead of promoted_mode, arg.type instead of passed_type
323 and arg.named instead of named_arg. Use data->arg for
324 function_arg_info structures that had the field values passed_type,
325 promoted_mode and named_arg. Base other function_arg_infos on
326 data->arg, changing the necessary properties.
327
328 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
329
330 * calls.h (apply_pass_by_reference_rules): Declare.
331 * calls.c (apply_pass_by_reference_rules): New function.
332 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
333 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
334 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
335 * function.c (assign_parm_find_data_types): Likewise.
336 * var-tracking.c (prepare_call_arguments): Likewise.
337
338 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
339
340 * target.def (must_pass_in_stack): Take a function_arg_info instead
341 of a mode and a type.
342 * doc/tm.texi: Regenerate.
343 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
344 instead of a mode and a type.
345 (must_pass_in_stack_var_size_or_pad): Likewise.
346 * calls.c (must_pass_in_stack_var_size): Likewise.
347 (must_pass_in_stack_var_size_or_pad): Likewise.
348 (initialize_argument_information): Update call to
349 targetm.calls.must_pass_in_stack.
350 (must_pass_va_arg_on_stack): Likewise.
351 * function.c (assign_parm_find_entry_rtl): Likewise.
352 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
353 * config/alpha/alpha.c (alpha_function_arg): Likewise.
354 (alpha_function_arg_advance): Likewise.
355 * config/cr16/cr16.c (cr16_function_arg): Likewise.
356 (cr16_function_arg_advance): Likewise.
357 * config/cris/cris.c (cris_pass_by_reference): Likewise.
358 (cris_arg_partial_bytes): Likewise.
359 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
360 * config/lm32/lm32.c (lm32_function_arg): Likewise.
361 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
362 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
363 * config/mips/mips.c (mips_pass_by_reference): Likewise.
364 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
365 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
366 * config/sh/sh.c (sh_pass_by_reference): Likewise.
367 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
368 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
369 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
370 instead of a mode and a type.
371 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
372 (fr30_num_arg_regs): Likewise.
373 (fr30_setup_incoming_varargs): Update calls accordingly.
374 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
375 (fr30_function_arg_advance): Likewise.
376 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
377 instead of a mode and a type.
378 * config/gcn/gcn.c (num_arg_regs): Likewise.
379 (gcn_function_arg, gcn_function_arg_advance): Update calls to
380 num_arg_regs and targetm.calls.must_pass_in_stack.
381 (gcn_arg_partial_bytes): Likewise.
382 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
383 function_arg_info instead of a mode and a type.
384 (classify_argument): Update call accordingly.
385 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
386 function_arg_info instead of a mode and a type.
387 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
388 Likewise.
389 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
390 (rs6000_parm_needs_stack): Update call accordingly.
391 (setup_incoming_varargs): Likewise.
392
393 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
394
395 * target.def (callee_copies): Take a function_arg_info instead
396 of a mode, type and named flag.
397 * doc/tm.texi: Regenerate.
398 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
399 instead of a mode, type and named flag.
400 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
401 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
402 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
403 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
404 instead of a mode, type and named flag.
405 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
406 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
407 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
408 * calls.h (reference_callee_copied): Take a function_arg_info
409 instead of a mode, type and named flag.
410 * calls.c (reference_callee_copied): Likewise.
411 (initialize_argument_information): Update call accordingly.
412 (emit_library_call_value_1): Likewise.
413 * function.c (gimplify_parameters): Likewise.
414 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
415 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
416 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
417 * config/c6x/c6x.c (c6x_callee_copies): Delete.
418 (TARGET_CALLEE_COPIES): Define to
419 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
420 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
421 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
422 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
423 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
424 instead of a mode, type and named flag.
425 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
426 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
427 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
428 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
429 * config/msp430/msp430.c (msp430_callee_copies): Delete.
430 (TARGET_CALLEE_COPIES): Define to
431 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
432 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
433 instead of a mode, type and named flag.
434 * config/sh/sh.c (sh_callee_copies): Likewise.
435 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
436 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
437 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
438
439 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
440
441 * target.def (function_arg_advance): Take a function_arg_info instead
442 of a mode, type and named flag.
443 * doc/tm.texi: Regenerate.
444 * targhooks.h (default_function_arg_advance): Take a function_arg_info
445 instead of a mode, type and named flag.
446 * targhooks.c (default_function_arg_advance): Likewise.
447 * calls.c (initialize_argument_information): Update call to
448 targetm.calls.function_arg_advance.
449 (emit_library_call_value_1): Likewise.
450 * dse.c (get_call_args): Likewise.
451 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
452 * function.c (assign_parms, gimplify_parameters): Likewise.
453 * var-tracking.c (prepare_call_arguments): Likewise.
454 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
455 function_arg_info instead of a mode, type and named flag.
456 (aarch64_setup_incoming_varargs): Update call accordingly.
457 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
458 function_arg_info instead of a mode, type and named flag.
459 (alpha_setup_incoming_varargs): Update call accordingly.
460 * config/arc/arc.c (arc_function_arg_advance): Take a
461 function_arg_info instead of a mode, type and named flag.
462 (arc_setup_incoming_varargs): Update call accordingly.
463 * config/arm/arm.c (arm_function_arg_advance): Take a
464 function_arg_info instead of a mode, type and named flag.
465 (cmse_func_args_or_return_in_stack): Update call accordingly.
466 (arm_function_ok_for_sibcall): Likewise.
467 (cmse_nonsecure_call_clear_caller_saved): Likewise.
468 * config/avr/avr.c (avr_function_arg_advance): Take a
469 function_arg_info instead of a mode, type and named flag.
470 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
471 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
472 (c6x_call_saved_register_used): Update call accordingly.
473 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
474 function_arg_info instead of a mode, type and named flag.
475 * config/cris/cris.c (cris_function_arg_advance): Likewise.
476 * config/csky/csky.c (csky_function_arg_advance): Likewise.
477 (csky_setup_incoming_varargs): Update call accordingly.
478 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
479 function_arg_info instead of a mode, type and named flag.
480 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
481 * config/frv/frv.c (frv_function_arg_advance): Likewise.
482 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
483 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
484 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
485 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
486 (ix86_setup_incoming_varargs): Update call accordingly.
487 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
488 function_arg_info instead of a mode, type and named flag.
489 (ia64_setup_incoming_varargs): Update call accordingly.
490 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
491 function_arg_info instead of a mode, type and named flag.
492 (iq2000_expand_prologue): Update call accordingly.
493 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
494 function_arg_info instead of a mode, type and named flag.
495 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
496 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
497 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
498 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
499 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
500 Likewise.
501 (microblaze_expand_prologue): Update call accordingly.
502 * config/mips/mips.c (mips_function_arg_advance): Take a
503 function_arg_info instead of a mode, type and named flag.
504 (mips_setup_incoming_varargs): Update call accordingly.
505 (mips_output_args_xfer): Likewise.
506 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
507 function_arg_info instead of a mode, type and named flag.
508 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
509 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
510 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
511 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
512 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
513 (nios2_setup_incoming_varargs): Update call accordingly.
514 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
515 function_arg_info instead of a mode, type and named flag.
516 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
517 * config/pa/pa.c (pa_function_arg_advance): Likewise.
518 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
519 * config/pru/pru.c (pru_function_arg_advance): Likewise.
520 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
521 (riscv_setup_incoming_varargs): Update call accordingly.
522 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
523 function_arg_info instead of a mode, type and named flag.
524 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
525 Likewise.
526 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
527 (rs6000_parm_needs_stack): Update call accordingly.
528 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
529 instead of a mode, type and named flag.
530 * config/s390/s390.c (s390_function_arg_advance): Likewise.
531 (s390_call_saved_register_used): Update call accordingly.
532 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
533 instead of a mode, type and named flag.
534 (sh_output_mi_thunk): Update call accordingly.
535 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
536 function_arg_info instead of a mode, type and named flag.
537 * config/spu/spu.c (spu_function_arg_advance): Likewise.
538 (spu_setup_incoming_varargs): Update call accordingly.
539 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
540 function_arg_info instead of a mode, type and named flag.
541 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
542 (tilegx_setup_incoming_varargs): Update call accordingly.
543 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
544 function_arg_info instead of a mode, type and named flag.
545 (tilegx_setup_incoming_varargs): Update call accordingly.
546 * config/v850/v850.c (v850_function_arg_advance): Take a
547 function_arg_info instead of a mode, type and named flag.
548 * config/vax/vax.c (vax_function_arg_advance): Likewise.
549 * config/visium/visium.c (visium_function_arg_advance): Likewise.
550 (visium_setup_incoming_varargs): Update call accordingly.
551 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
552 function_arg_info instead of a mode, type and named flag.
553
554 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
555
556 * target.def (function_arg, function_incoming_arg): Take a
557 function_arg_info instead of a mode, tree and named flag.
558 * doc/tm.texi: Regenerate.
559 * targhooks.h (default_function_arg): Take a function_arg_info
560 instead of a mode, tree and named flag.
561 (default_function_incoming_arg): Likewise.
562 * targhooks.c (default_function_arg): Likewise.
563 (default_function_incoming_arg): Likewise.
564 * calls.h (function_arg_info::end_marker_p): New function.
565 (function_arg_info::end_marker): Likewise.
566 * calls.c (prepare_call_address, initialize_argument_information)
567 (expand_call, emit_library_call_value_1): Update calls to
568 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
569 * dse.c: Include calls.h.
570 (get_call_args): Update call to targetm.calls.function_arg.
571 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
572 * var-tracking.c (prepare_call_arguments): Likewise.
573 * function.c (assign_parm_find_entry_rtl): Update call to
574 targetm.calls.function_incoming_arg.
575 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
576 function_arg_info instead of a mode, tree and named flag.
577 * config/alpha/alpha.c (alpha_function_arg): Likewise.
578 * config/arc/arc.c (arc_function_arg): Likewise.
579 * config/arm/arm.c (arm_function_arg): Likewise.
580 (cmse_func_args_or_return_in_stack): Update call accordingly.
581 (arm_function_ok_for_sibcall): Likewise.
582 (cmse_nonsecure_call_clear_caller_saved): Likewise.
583 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
584 instead of a mode, tree and named flag.
585 * config/bfin/bfin.c (bfin_function_arg): Likewise.
586 * config/c6x/c6x.c (c6x_function_arg): Likewise.
587 (c6x_call_saved_register_used): Update call accordingly.
588 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
589 instead of a mode, tree and named flag.
590 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
591 (cris_function_arg_1): Likewise.
592 * config/csky/csky.c (csky_function_arg): Likewise.
593 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
594 * config/fr30/fr30.c (fr30_function_arg): Likewise.
595 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
596 (frv_function_arg_1): Likewise.
597 * config/ft32/ft32.c (ft32_function_arg): Likewise.
598 * config/gcn/gcn.c (gcn_function_arg): Likewise.
599 * config/h8300/h8300.c (h8300_function_arg): Likewise.
600 * config/i386/i386.c (ix86_function_arg): Likewise.
601 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
602 (ia64_function_arg_1): Likewise.
603 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
604 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
605 accordingly.
606 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
607 instead of a mode, tree and named flag.
608 * config/m32c/m32c.c (m32c_function_arg): Likewise.
609 * config/m32r/m32r.c (m32r_function_arg): Likewise.
610 * config/m68k/m68k.c (m68k_function_arg): Likewise.
611 * config/mcore/mcore.c (mcore_function_arg): Likewise.
612 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
613 (microblaze_expand_prologue): Update call accordingly.
614 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
615 instead of a mode, tree and named flag.
616 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
617 (mmix_function_arg_1): Likewise.
618 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
619 * config/moxie/moxie.c (moxie_function_arg): Likewise.
620 * config/msp430/msp430.c (msp430_function_arg): Likewise.
621 * config/nds32/nds32.c (nds32_function_arg): Likewise.
622 * config/nios2/nios2.c (nios2_function_arg): Likewise.
623 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
624 (nvptx_function_incoming_arg): Likewise.
625 * config/or1k/or1k.c (or1k_function_arg): Likewise.
626 * config/pa/pa.c (pa_function_arg): Likewise.
627 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
628 * config/pru/pru.c (pru_function_arg): Likewise.
629 * config/riscv/riscv.c (riscv_function_arg): Likewise.
630 * config/rl78/rl78.c (rl78_function_arg): Likewise.
631 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
632 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
633 (rs6000_parm_needs_stack): Update call accordingly.
634 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
635 instead of a mode, tree and named flag.
636 * config/s390/s390.c (s390_function_arg): Likewise.
637 (s390_call_saved_register_used): Update call accordingly.
638 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
639 instead of a mode, tree and named flag.
640 (sh_output_mi_thunk): Update call accordingly.
641 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
642 (sparc_function_incoming_arg): Take a function_arg_info instead of
643 a mode, tree and named flag.
644 * config/spu/spu.c (spu_function_arg): Likewise.
645 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
646 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
647 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
648 * config/v850/v850.c (v850_function_arg): Likewise.
649 * config/vax/vax.c (vax_function_arg): Likewise.
650 * config/visium/visium.c (visium_function_arg): Likewise.
651 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
652 (xtensa_function_incoming_arg): Likewise.
653
654 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
655
656 * target.def (setup_incoming_varargs): Take a function_arg_info
657 instead of a mode and tree.
658 * doc/tm.texi: Regenerate.
659 * targhooks.h (default_setup_incoming_varargs): Take a
660 function_arg_info instead of a mode and tree.
661 * targhooks.c (default_setup_incoming_varargs): Likewise.
662 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
663 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
664 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
665 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
666 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
667 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
668 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
669 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
670 Likewise.
671 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
672 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
673 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
674 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
675 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
676 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
677 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
678 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
679 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
680 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
681 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
682 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
683 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
684 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
685 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
686 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
687 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
688 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
689 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
690 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
691 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
692 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
693 * function.c (assign_parms_setup_varargs): Update call to
694 targetm.calls.setup_incoming_varargs.
695
696 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
697
698 * target.def (pass_by_reference): Take a function_arg_info instead
699 of a mode, type and named flag.
700 * doc/tm.texi: Regenerate.
701 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
702 accordingly.
703 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
704 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
705 function_arg_info instead of a mode, type and named flag.
706 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
707 * calls.h (pass_by_reference): Take a function_arg_info instead of a
708 mode, type and named flag.
709 * calls.c (pass_by_reference): Likewise.
710 (pass_va_arg_by_reference): Update call accordingly.
711 (initialize_argument_information): Likewise.
712 (emit_library_call_value_1): Likewise.
713 * function.c (assign_parm_find_data_types): Likewise.
714 * var-tracking.c (prepare_call_arguments): Likewise.
715 * stor-layout.c: Include calls.h.
716 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
717 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
718 function_arg_info instead of a mode, type and named flag.
719 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
720 * config/arc/arc.c (arc_pass_by_reference): Likewise.
721 * config/arm/arm.c (arm_pass_by_reference): Likewise.
722 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
723 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
724 (c6x_call_saved_register_used): Update call to pass_by_reference.
725 * config/cris/cris.c (cris_pass_by_reference): Take a
726 function_arg_info instead of a mode, type and named flag.
727 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
728 function_arg_info instead of a mode, type and named flag.
729 (epiphany_arg_partial_bytes): Update call accordingly.
730 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
731 function_arg_info instead of a mode, type and named flag.
732 (ft32_arg_partial_bytes): Update call accordingly.
733 * config/i386/i386.c (ix86_pass_by_reference): Take a
734 function_arg_info instead of a mode, type and named flag.
735 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
736 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
737 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
738 (m32r_return_in_memory): Update call accordingly.
739 * config/mips/mips.c (mips_pass_by_reference): Take a
740 function_arg_info instead of a mode, type and named flag.
741 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
742 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
743 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
744 (moxie_arg_partial_bytes): Update call accordingly.
745 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
746 function_arg_info instead of a mode, type and named flag.
747 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
748 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
749 * config/pa/pa.c (pa_pass_by_reference): Likewise.
750 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
751 (riscv_return_in_memory): Update call accordingly.
752 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
753 function_arg_info instead of a mode, type and named flag.
754 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
755 (rs6000_parm_needs_stack): Update call to pass_by_reference.
756 * config/s390/s390.c (s390_pass_by_reference): Take a
757 function_arg_info instead of a mode, type and named flag.
758 (s390_call_saved_register_used): Update call accordingly.
759 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
760 instead of a mode, type and named flag.
761 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
762 * config/spu/spu.c (spu_pass_by_reference): Likewise.
763 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
764 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
765 * config/v850/v850.c (v850_pass_by_reference): Likewise.
766 * config/visium/visium.c (visium_pass_by_reference): Likewise.
767
768 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
769
770 * target.def (arg_partial_bytes): Take a function_arg_info instead
771 of a mode, type and named flag.
772 * doc/tm.texi: Regenerate.
773 * target.h (function_arg_info): Declare.
774 * calls.h (function_arg_info): New class.
775 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
776 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
777 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
778 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
779 * calls.c (initialize_argument_information): Update call to
780 targetm.calls.partial_bytes.
781 (emit_library_call_value_1): Likewise.
782 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
783 * function.c (assign_parm_find_entry_rtl): Likewise.
784 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
785 function_arg_info instead of a mode, type and named flag.
786 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
787 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
788 (cmse_func_args_or_return_in_stack): Update accordingly.
789 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
790 function_arg_info instead of a mode, type and named flag.
791 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
792 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
793 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
794 * config/fr30/fr30.c: Include calls.h.
795 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
796 type and named flag.
797 * config/frv/frv.c: Include calls.h.
798 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
799 type and named flag.
800 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
801 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
802 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
803 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
804 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
805 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
806 * config/microblaze/microblaze.c (function_arg_partial_bytes):
807 Likewise.
808 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
809 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
810 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
811 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
812 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
813 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
814 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
815 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
816 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
817 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
818 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
819 (rs6000_parm_needs_stack): Update call accordingly.
820 * config/sh/sh.c (sh_arg_partial_bytes): Take a
821 function_arg_info instead of a mode, type and named flag.
822 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
823 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
824
825 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
826
827 * calls.h (must_pass_va_arg_in_stack): Declare.
828 * calls.c (must_pass_va_arg_in_stack): New function.
829 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
830 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
831 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
832 Likewise.
833 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
834
835 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
836
837 * calls.h (pass_va_arg_by_reference): Declare.
838 * calls.c (pass_va_arg_by_reference): New function.
839 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
840 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
841 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
842 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
843 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
844 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
845 (mips_gimplify_va_arg_expr): Likewise.
846 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
847 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
848 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
849 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
850 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
851 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
852 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
853 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
854 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
855 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
856 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
857
858 2019-08-20 Richard Biener <rguenther@suse.de>
859
860 PR target/91498
861 * config/i386/i386-features.c (general_scalar_chain::convert_op):
862 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
863 (convert_scalars_to_vector): Add timode_p parameter and use it
864 to guard TImode-only operation.
865 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
866 (pass_stv::execute): Pass down timode_p.
867
868 2019-08-20 Lili Cui <lili.cui@intel.com>
869
870 * common/config/i386/i386-common.c
871 (processor_names): Add tigerlake and cooperlake.
872 (processor_alias_table): Add tigerlake and cooperlake.
873 * config.gcc: Add -march=tigerlake and cooperlake.
874 * config/i386/driver-i386.c
875 (host_detect_local_cpu): Detect tigerlake and cooperlake.
876 Add "has_avx" to classify processor.
877 * config/i386/i386-builtins.c (processor_model) :
878 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
879 (arch_names_table): Add tigerlake and cooperlake.
880 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
881 and PROCESSOR_COOPERLAKE.
882 * config/i386/i386-c.c
883 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
884 * config/i386/i386-options.c
885 (m_TIGERLAKE) : Define.
886 (m_COOPERLAKE) : Ditto.
887 (m_CORE_AVX512): Ditto.
888 (processor_cost_table): Add cascadelake.
889 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
890 * config/i386/i386.h
891 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
892 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
893 (PTA_MOVDIRI): Ditto.
894 (PTA_MOVDIR64B): Ditto.
895 (PTA_COOPERLAKE) : Ditto.
896 (PTA_TIGERLAKE) : Ditto.
897 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
898 * doc/extend.texi: Add tigerlake and cooperlake.
899 * doc/invoke.texi: Add tigerlake and cooperlake.
900
901 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
902
903 * doc/install.texi (Specific, alpha): Remove note to use
904 binutils 2.11.2 or later.
905
906 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
907
908 PR middle-end/89544
909 * function.c (assign_parm_find_stack_rtl): Use larger alignment
910 when possible.
911
912 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
913
914 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
915 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
916 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
917 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
918 * config/aarch64/constraints.md (Dt): New constraint
919 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
920
921 2019-08-19 Richard Biener <rguenther@suse.de>
922
923 PR tree-optimization/91403
924 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
925 cases we can handle with tail-recursion...
926 (follow_ssa_edge_expr): ... here. Do so.
927
928 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
929
930 PR target/91441
931 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
932 implemented for -fsanitize=kernel-address, and merge check logic
933 with -fsanitize=address.
934
935 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
936
937 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
938 for cpu and machine. Factor 64/32b builtins.
939
940 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
941
942 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
943 gone, point to sourceforge.net.
944
945 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
946
947 * doc/ux.texi (User Experience Guidelines): Update reference.
948
949 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
950
951 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
952 not LGPL".
953
954 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
955
956 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
957 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
958
959 2019-08-16 Martin Sebor <msebor@redhat.com>
960
961 * tree.def (TYPE_SIZE): Clarify.
962 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
963
964 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
965
966 PR tree-optimization/91109
967 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
968 * lra.c (lra): Use lra_need_for_scratch_reg_p.
969 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
970
971 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
972
973 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
974 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
975 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
976 (uavg<mode>3_ceil): New expander.
977 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
978 mode iterator when creating CONST1_RTX.
979 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
980 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
981 mode iterator for const1_operand predicate.
982
983 2019-08-16 Richard Biener <rguenther@suse.de>
984
985 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
986 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
987 follow_ssa_edge.
988 (follow_ssa_edge_in_condition_phi_branch): Likewise.
989 (analyze_evolution_in_loop): Likewise.
990 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
991 (follow_ssa_edge_expr): ... here. Refactor code.
992
993 2019-08-16 Richard Biener <rguenther@suse.de>
994
995 PR target/91469
996 * config/i386/i386-features.c
997 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
998
999 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1000
1001 PR other/91255
1002 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
1003 only if subst_name matches curr_attr string.
1004
1005 2019-08-16 Richard Biener <rguenther@suse.de>
1006
1007 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
1008 stmt at gsi_p, instead replace it with a NOP removed later.
1009 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
1010 that became dead because of that.
1011
1012 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
1013
1014 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
1015 for which we can't represent a range.
1016 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
1017 set_varying.
1018 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
1019 Set VR_UNDEFINED if type is not supported.
1020 * tree-ssanames.c (get_range_info): Pass type to set_varying.
1021 * tree-vrp.c (value_range_base::check): Assert that a varying has
1022 min/max set.
1023 (value_range_base::equal_p): Early bail for undefines.
1024 (value_range_base::set_varying): Accept a type.
1025 (value_range::set_varying): Same.
1026 (value_range_base::type): VARYING can have a type, while UNDEFINE
1027 is typeless.
1028 (value_range_base::dump): Print type for VARYING nodes.
1029 (value_range_base::set): Add type to VARYING.
1030 (extract_range_from_multiplicative_op): Pass type to set_varying.
1031 (extract_range_from_binary_expr): Same.
1032 (value_range_base::intersect_helper): Same.
1033 (value_range_base::union_helper): Same.
1034 (value_range_base::normalize_symbolics): Same.
1035 (determine_value_range_1): Same.
1036 * tree-vrp.h (class value_range_base): Add type to set_varying.
1037 Add prototype for dump(void).
1038 Add prototype for supports_type_p.
1039 (class value_range): Add type to set_varying.
1040 Add prototype for dump(void).
1041 * vr-values.c (set_value_range_to_truthvalue): Pass type to
1042 set_varying.
1043 (vr_values::get_lattice_entry): Set varying even if propagation
1044 finished.
1045 Pass type to set_varying.
1046 (vr_values::get_value_range): Remove vr_const_varying.
1047 Reallocate the lattice if needed.
1048 (vr_values::update_value_range): Pass type to set_varying.
1049 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1050 (vr_values::extract_range_from_binary_expr): Same.
1051 (vr_values::extract_range_from_unary_expr): Same.
1052 (vr_values::extract_range_from_cond_expr): Same.
1053 (vr_values::check_for_binary_op_overflow): Same.
1054 (vr_values::extract_range_basic): Same.
1055 (vr_values::extract_range_from_assignment): Same.
1056 (vr_values::vr_values): Increase size of num_vr_values.
1057 (vr_values::extract_range_from_phi_node): Pass type to
1058 set_varying.
1059
1060 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
1061
1062 PR target/90878
1063 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
1064 for costs of hard register moves.
1065 (ix86_register_move_cost): Likewise.
1066 * config/i386/i386.h (processor_costs): Move costs of hard
1067 register moves to hard_register. Add int_load, int_store,
1068 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1069 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
1070 for costs of RTL expressions.
1071 * config/i386/x86-tune-costs.h: Move costs of hard register
1072 moves to hard_register. Duplicate int_load, int_store,
1073 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1074 sse_load, sse_store for costs of RTL expressions.
1075
1076 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1077
1078 * target.def (setup_incoming_vararg_bounds): Remove.
1079 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
1080 * doc/tm.texi: Regenerate.
1081 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
1082 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
1083 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
1084 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
1085
1086 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1087
1088 MSP430: Fix lines over 80 characters long in
1089 config/msp430/*.{c,h} files
1090
1091 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
1092 specifier in string.
1093 (msp430_select_hwmult_lib): Split line more than 80 characters long.
1094 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
1095 redundant old comment.
1096 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
1097 Split line more than 80 characters long.
1098 * config/msp430/msp430.c (msp430_option_override): Likewise.
1099 (msp430_return_in_memory): Likewise.
1100 (msp430_gimplify_va_arg_expr): Likewise.
1101 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1102 (msp430_legitimate_constant): Likewise.
1103 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
1104 (msp430_attr): Likewise.
1105 (msp430_data_attr): Likewise.
1106 (msp430_start_function): Likewise.
1107 (gen_prefix): Likewise.
1108 (msp430_init_sections): Likewise.
1109 (msp430_select_section): Likewise.
1110 (msp430_function_section): Likewise.
1111 (msp430_unique_section): Likewise.
1112 (msp430_output_aligned_decl_common): Likewise.
1113 (msp430_do_not_relax_short_jumps): Likewise.
1114 (msp430_init_builtins): Likewise.
1115 (msp430_expand_delay_cycles): Likewise.
1116 (msp430_expand_prologue): Likewise.
1117 (msp430_expand_epilogue): Likewise.
1118 (msp430_expand_helper): Likewise.
1119 (msp430_split_movsi): Likewise.
1120 (msp430_print_operand): Likewise.
1121 (msp430_return_addr_rtx): Likewise.
1122 (msp430x_extendhisi): Likewise.
1123 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
1124 (ASM_SPEC): Likewise.
1125 Remove very obvious comments.
1126 (LIB_SPEC): Split line more than 80 characters long.
1127 (EH_RETURN_HANDLER_RTX): Likewise.
1128 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1129
1130 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1131
1132 MSP430: Fix whitespace errors and incorrect indentation in
1133 config/msp430/*.{c,h} files
1134
1135 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
1136 (msp430_select_hwmult_lib): Likewise.
1137 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
1138 (msp430_extract_mcu_data): Likewise.
1139 (struct t_msp430_mcu_data): Likewise.
1140 * config/msp430/msp430.c (struct machine_function): Remove whitespace
1141 before left square bracket.
1142 (msp430_option_override): Fix indentation.
1143 (msp430_hard_regno_nregs_with_padding): Likewise.
1144 (msp430_initial_elimination_offset): Likewise.
1145 (msp430_special_register_convention_p): Remove whitespace before left
1146 square bracket and after exclamation mark.
1147 (msp430_evaluate_arg): Likewise.
1148 (msp430_callee_copies): Fix indentation.
1149 (msp430_gimplify_va_arg_expr): Likewise.
1150 (msp430_function_arg_advance): Remove whitespace before left square
1151 bracket.
1152 (reg_ok_for_addr): Likewise.
1153 (msp430_preserve_reg_p): Likewise.
1154 (msp430_compute_frame_info): Likewise.
1155 (msp430_asm_output_addr_const_extra): Add space between function name
1156 and open parenthesis.
1157 (has_section_name): Fix indentation.
1158 (msp430_attr): Remove trailing whitespace.
1159 (msp430_section_attr): Likewise.
1160 (msp430_data_attr): Likewise.
1161 (struct msp430_attribute_table): Fix comment and whitespace.
1162 (msp430_start_function): Remove whitespace before left square bracket.
1163 Add space between function name and open parenthesis.
1164 (msp430_select_section): Remove trailing whitespace.
1165 (msp430_section_type_flags): Remove trailing whitespace.
1166 (msp430_unique_section): Remove space before closing parenthesis.
1167 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
1168 (msp430_builtins): Remove whitespace before left square bracket.
1169 (msp430_init_builtins): Fix indentation.
1170 (msp430_expand_prologue): Remove whitespace before left square bracket.
1171 Remove space before closing parenthesis.
1172 (msp430_expand_epilogue): Remove whitespace before left square bracket.
1173 (msp430_split_movsi): Remove space before closing parenthesis.
1174 (helper_function_name_mappings): Fix indentation.
1175 (msp430_use_f5_series_hwmult): Fix whitespace.
1176 (use_32bit_hwmult): Likewise.
1177 (msp430_no_hwmult): Likewise.
1178 (msp430_output_labelref): Remove whitespace before left square bracket.
1179 (msp430_print_operand_raw): Likewise.
1180 (msp430_print_operand_addr): Likewise.
1181 (msp430_print_operand): Add two spaces after '.' in comment.
1182 Fix trailing whitespace.
1183 (msp430x_extendhisi): Fix indentation.
1184 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
1185 tab.
1186 (PC_REGNUM): Likewise.
1187 (STACK_POINTER_REGNUM): Likewise.
1188 (CC_REGNUM): Likewise.
1189
1190 2019-08-15 Richard Biener <rguenther@suse.de>
1191
1192 PR target/91454
1193 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
1194 helper.
1195 (general_scalar_chain::make_vector_copies): Use it.
1196
1197 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1198
1199 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
1200
1201 2019-08-15 Martin Liska <mliska@suse.cz>
1202
1203 * tree-ssa-dce.c (propagate_necessity): We can't reach now
1204 operators with no arguments.
1205 (eliminate_unnecessary_stmts): Likewise here.
1206
1207 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
1208
1209 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
1210 <case COMPARE>: Revert 2019-08-14 change.
1211 (convertible_comparison_p): Revert 2019-08-14 change. Return false
1212 for (TARGET_64BIT || mode != DImode).
1213
1214 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
1215
1216 * tree-vrp.c (value_range_base::set): Merge in code from
1217 value_range_base::set_and_canonicalize.
1218 Enforce canonicalization at set time.
1219 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
1220 (value_range_base::set_undefined): Inline call to set().
1221 (value_range_base::set_varying): Same.
1222 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
1223 (vrp_val_max): New argument handle_pointers.
1224 (vrp_val_min): Same.
1225 (ranges_from_anti_range): Same.
1226 (extract_range_into_wide_ints): Use tree argument instead of sign
1227 and precision.
1228 (extract_range_from_multiplicative_op): Take in tree type instead
1229 of precision and sign. Adapt function for canonicalized ranges.
1230 (extract_range_from_binary_expr): Pass type to
1231 extract_range_from_multiplicative_op.
1232 Adapt for canonicalized ranges.
1233 (extract_range_from_unary_expr): Same.
1234 (value_range_base::intersect_helper): Adjust for canonicalized
1235 ranges.
1236 (value_range_base::union_helper): Same.
1237 (value_range_base::normalize_symbolics): New.
1238 * tree-vrp.h (class value_range_base): Remove
1239 set_and_canonicalize.
1240 New prototype for normalize_symbolics.
1241 (class value_range): Remove set_and_canonicalize.
1242 (vrp_val_min): Adjust prototype.
1243 (vrp_val_max): Same.
1244 * vr-values.c
1245 (vr_values::extract_range_for_var_from_comparison_expr): Call set
1246 instead of set_and_canonicalize.
1247
1248 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1249
1250 PR middle-end/91444
1251 * tree-vect-stmts.c (vectorizable_call): Check that the function
1252 is a BUILT_IN_MD function before passing it to
1253 targetm.vectorize.builtin_md_vectorized_function.
1254
1255 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1256
1257 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
1258 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
1259 (aarch64_select_early_remat_modes): Use it.
1260
1261 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1262
1263 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
1264 16 for SVE predicates even if they are fixed-length.
1265
1266 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1267
1268 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
1269 operand order match the MOV /Z alias.
1270
1271 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1272
1273 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
1274 the vector pattern as an aarch64_svpattern argument. Update the
1275 overloaded caller accordingly.
1276 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1277 (aarch64_output_sve_vector_inc_dec): Likewise.
1278
1279 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1280
1281 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1282 multiplication case, try to compute VG * (lowest set bit) directly
1283 rather than always basing the multiplication on VG. Use
1284 expand_mult for the multiplication if we can.
1285
1286 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1287
1288 * config/aarch64/aarch64-protos.h
1289 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1290 (aarch64_sve_inc_dec_immediate_p): Rename to...
1291 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1292 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1293 (aarch64_output_sve_scalar_inc_dec): Declare.
1294 (aarch64_output_sve_inc_dec_immediate): Rename to...
1295 (aarch64_output_sve_vector_inc_dec): ...this.
1296 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1297 (aarch64_output_sve_scalar_inc_dec): New functions.
1298 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1299 arguments. Only handle true ADDVL and ADDPL instructions;
1300 don't emit an INC or DEC.
1301 (aarch64_sve_inc_dec_immediate_p): Rename to...
1302 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1303 (aarch64_output_sve_inc_dec_immediate): Rename to...
1304 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1305 aarch64_sve_vector_inc_dec_immediate_p.
1306 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1307 (aarch64_sve_plus_immediate): New predicates.
1308 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1309 rather than aarch64_sve_addvl_addpl_immediate.
1310 (aarch64_sve_inc_dec_immediate): Rename to...
1311 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1312 aarch64_sve_vector_inc_dec_immediate_p.
1313 (aarch64_sve_add_operand): Update accordingly.
1314 * config/aarch64/constraints.md (Uai): New constraint.
1315 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1316 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1317 operand into a register if it satisfies aarch64_sve_plus_immediate.
1318 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1319 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1320 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1321 aarch64_output_sve_vector_inc_dec instead of
1322 aarch64_output_sve_inc_dec_immediate.
1323
1324 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1325
1326 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1327 (UNSPEC_REVW): New constants.
1328 (elem_bits): New mode attribute.
1329 (SVE_INT_UNARY): New int iterator.
1330 (optab): Handle UNSPEC_REV[BHW].
1331 (sve_int_op): New int attribute.
1332 (min_elem_bits): Handle VNx16QI and the predicate modes.
1333 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1334 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1335 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1336 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1337 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1338 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1339 unspecs based on the total width of the reversed data.
1340 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1341 reinterpret followed by a subreg on big-endian targets.
1342
1343 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1344 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1345
1346 * config/aarch64/aarch64-sve.md
1347 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1348 alternatives in which one of the inputs is in the same register
1349 as the output.
1350
1351 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1352
1353 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1354 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1355
1356 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1357
1358 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1359 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1360
1361 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1362 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1363
1364 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1365 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1366 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1367
1368 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1369 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1370
1371 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1372 Add an alternative that uses reversed shifts.
1373
1374 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1375
1376 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1377 struct.
1378
1379 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1380
1381 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1382 a commutativity marker.
1383
1384 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1385 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1386
1387 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1388 (aarch64_prepare_sve_cond_int_fma): Declare.
1389 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1390 (aarch64_prepare_sve_int_fma): New functions.
1391 (aarch64_prepare_sve_cond_int_fma): Likewise.
1392 * config/aarch64/aarch64-sve.md
1393 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1394 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1395 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1396 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1397 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1398 (*madd<mode>): Rename to...
1399 (*fma<mode>4): ...this.
1400 (*msub<mode>): Rename to...
1401 (*fnma<mode>4): ...this.
1402
1403 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1404 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1405
1406 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1407 Print 2.0 naturally.
1408 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1409 * config/aarch64/predicates.md
1410 (aarch64_sve_float_negated_arith_immediate): New predicate,
1411 renamed from aarch64_sve_float_arith_with_sub_immediate.
1412 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1413 positive and negative constants.
1414 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1415 or an aarch64_sve_float_arith_with_sub_immediate.
1416 * config/aarch64/constraints.md (vsN): Use
1417 aarch64_sve_float_negated_arith_immediate.
1418 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1419 iterator.
1420 (sve_pred_fp_rhs2_immediate): New int attribute.
1421 * config/aarch64/aarch64-sve.md
1422 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1423 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1424 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1425 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1426 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1427 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1428
1429 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1430 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1431
1432 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1433 (*aarch64_cond_abd<SVE_F:mode>_3)
1434 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1435
1436 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1437 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1438
1439 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1440 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1441
1442 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1443 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1444
1445 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1446 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1447 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1448 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1449 optabs.
1450 * optabs.h (create_convert_operand_from): Expand comment.
1451 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1452 when mapping scalar rtxes to vector operands.
1453 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1454 ashiftrt and lshiftrt.
1455 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1456 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1457 (*cond_<optab><mode>_any_const): New patterns.
1458
1459 2019-08-15 Martin Liska <mliska@suse.cz>
1460
1461 PR ipa/91438
1462 * cgraph.c (cgraph_node::remove): When setting
1463 n->origin = NULL for all nested functions, reset
1464 also next_nested.
1465
1466 2019-08-15 Martin Liska <mliska@suse.cz>
1467
1468 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1469 and next_nested.
1470
1471 2019-08-15 Martin Liska <mliska@suse.cz>
1472
1473 PR ipa/91404
1474 * passes.c (order): Remove.
1475 (uid_hash_t): Likewise).
1476 (remove_cgraph_node_from_order): Remove from set
1477 of pointers (cgraph_node *).
1478 (insert_cgraph_node_to_order): New.
1479 (duplicate_cgraph_node_to_order): New.
1480 (do_per_function_toporder): Register all 3 cgraph hooks.
1481 Skip removed_nodes now as we know about all of them.
1482
1483 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1484
1485 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1486 <case E_V8QImode>: Use vector_set path for
1487 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1488 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1489 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1490
1491 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1492
1493 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1494
1495 2019-08-14 Martin Sebor <msebor@redhat.com>
1496
1497 PR tree-optimization/91294
1498 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1499 source length as exact.
1500
1501 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1502
1503 * doc/extend.texi: Add "noinit" attribute documentation.
1504 * doc/sourcebuild.texi: Add noinit effective target documentation.
1505 * varasm.c (default_section_type_flags): Add support for "noinit"
1506 section.
1507 (default_elf_select_section): Add support for "noinit" attribute.
1508 * config/msp430/msp430.c (msp430_attribute_table): Remove
1509 "noinit" entry.
1510
1511 2019-08-14 Richard Biener <rguenther@suse.de>
1512 Uroš Bizjak <ubizjak@gmail.com>
1513
1514 PR target/91154
1515 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1516 mode arguments.
1517 (scalar_chain::smode): New member.
1518 (scalar_chain::vmode): Likewise.
1519 (dimode_scalar_chain): Rename to...
1520 (general_scalar_chain): ... this.
1521 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1522 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1523 base with TImode and V1TImode.
1524 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1525 (general_scalar_chain::vector_const_cost): Adjust for SImode
1526 chains.
1527 (general_scalar_chain::compute_convert_gain): Likewise. Add
1528 {S,U}{MIN,MAX} support.
1529 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1530 (general_scalar_chain::make_vector_copies): Likewise. Handle
1531 non-DImode chains appropriately.
1532 (general_scalar_chain::convert_reg): Likewise.
1533 (general_scalar_chain::convert_op): Likewise.
1534 (general_scalar_chain::convert_insn): Likewise. Add
1535 fatal_insn_not_found if the result is not recognized.
1536 (convertible_comparison_p): Pass in the scalar mode and use that.
1537 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1538 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1539 (scalar_to_vector_candidate_p): Remove by inlining into single
1540 caller.
1541 (general_remove_non_convertible_regs): Rename from
1542 dimode_remove_non_convertible_regs.
1543 (remove_non_convertible_regs): Remove by inlining into single caller.
1544 (convert_scalars_to_vector): Handle SImode and DImode chains
1545 in addition to TImode chains.
1546 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1547 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1548 (*<maxmin>di3_doubleword): Likewise.
1549
1550 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1551 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1552
1553 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1554 (*cond_bic<mode>_any): New patterns.
1555
1556 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1557
1558 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1559 take the equivalent mask, as well as a bit count.
1560 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1561 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1562 (aarch64_sve_pred_and_operand): New predicates.
1563 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1564 code attribute.
1565 * config/aarch64/aarch64-sve.md
1566 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1567 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1568
1569 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1570
1571 * config/aarch64/aarch64-sve.md
1572 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1573 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1574 New patterns.
1575
1576 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1577 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1578
1579 * config/aarch64/aarch64-sve.md
1580 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1581 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1582
1583 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1584 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1585
1586 * config/aarch64/aarch64-sve.md
1587 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1588 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1589
1590 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1591
1592 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1593 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1594 New pattern.
1595
1596 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1597 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1598
1599 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1600
1601 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1602 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1603
1604 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
1605 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
1606 (aarch64_print_operand): Add support for %I.
1607 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
1608 Bitcast floating-point constants to the corresponding integer constant.
1609 (aarch64_float_const_representable_p): Handle vectors as well
1610 as scalars.
1611 (aarch64_expand_sve_vcond): Make sure that the operands are valid
1612 for the new vcond_mask_<mode><vpred> expander.
1613 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
1614 test aarch64_float_const_representable_p.
1615 (aarch64_sve_reg_or_dup_imm): New predicate.
1616 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
1617 gen_vcond_mask_<mode><vpred> instead of
1618 gen_aarch64_sve_dup<mode>_const.
1619 (vcond_mask_<mode><vpred>): Turn into a define_expand that
1620 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
1621 for operands 1 and 2 respectively. Force operand 2 into a
1622 register if operand 1 is a register. Fold old define_insn...
1623 (aarch64_sve_dup<mode>_const): ...and this define_insn...
1624 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
1625 floating-point constants that can be moved as integers. Add
1626 alternatives for MOV /M and FMOV /M.
1627 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
1628 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
1629 1 and 2 respectively.
1630 * config/aarch64/constraints.md (Ufc): Handle vectors as well
1631 as scalars.
1632 (vss): New constraint.
1633
1634 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1635
1636 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
1637 (aarch64_sve_float_maxmin_operand): New predicates.
1638 * config/aarch64/constraints.md (vsB): New constraint.
1639 (vsM): Fix typo.
1640 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
1641 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
1642 UNSPEC_COND_FMINNM.
1643 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
1644 Use aarch64_sve_float_maxmin_operand for operand 2.
1645 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
1646 Add alternatives for the constant forms.
1647
1648 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1649
1650 * config/aarch64/constraints.md (vsb): New constraint.
1651 (vsm): Generalize description.
1652 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
1653 iterator.
1654 (sve_imm_con): Handle smax, smin, umax and umin.
1655 (sve_imm_prefix): New code attribute.
1656 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
1657 (aarch64_sve_vsb_operand): New predicates.
1658 (aarch64_sve_mul_immediate): Rename to...
1659 (aarch64_sve_vsm_immediate): ...this.
1660 (aarch64_sve_mul_operand): Rename to...
1661 (aarch64_sve_vsm_operand): ...this.
1662 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
1663 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
1664 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
1665 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
1666 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
1667 add movprfx support for the immediate alternatives.
1668 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
1669 of the above.
1670 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
1671 for operand 3.
1672
1673 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1674
1675 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
1676 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
1677 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
1678
1679 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1680
1681 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
1682 (optab, sve_int_op): Handle them.
1683 * config/aarch64/aarch64-sve.md: Expand comment.
1684
1685 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1686
1687 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
1688 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
1689 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
1690
1691 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1692
1693 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
1694 (aarch64_expand_sve_const_pred_trn): New functions.
1695 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
1696 use the above functions when the parameter is true.
1697 (aarch64_expand_sve_const_pred): Update call accordingly.
1698 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
1699 Rename to...
1700 (@aarch64_sve_<perm_insn><mode>): ...this.
1701
1702 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1703
1704 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
1705 Declare.
1706 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
1707 (aarch64_sve_emit_int_cmp): New functions.
1708 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
1709 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
1710 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
1711 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
1712 (UNSPEC_PRED_Z): New unspec.
1713 (set_clobber_cc_nzc): Delete.
1714 * config/aarch64/aarch64-sve.md: Add a block comment about
1715 UNSPEC_PRED_Z.
1716 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
1717 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
1718 the old pattern with that name. Use UNSPEC_PRED_Z instead of
1719 UNSPEC_MERGE_PTRUE.
1720 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
1721 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
1722 check for compatible predicates.
1723 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
1724 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
1725 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
1726 comparisons above.
1727
1728 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1729
1730 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
1731 * config/aarch64/aarch64-sve.md: Add a section describing it.
1732 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
1733 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
1734 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
1735 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
1736 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
1737 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
1738 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
1739 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
1740 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
1741 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
1742 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
1743 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
1744 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
1745 (aarch64_evpc_rev_local): Update accordingly.
1746
1747 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1748
1749 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
1750 iterators.
1751 (SVE_BHSI, SVE_SDI): Tweak comment.
1752 (SVE_HSDI): Likewise. Fix definition.
1753 (SVE_SDF): New mode iterator.
1754 (elem_bits): New mode attribute.
1755 (SVE_COND_FCVT): New int iterator.
1756 * config/aarch64/aarch64-sve.md
1757 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
1758 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
1759 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
1760 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1761 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
1762 ...these new patterns.
1763 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
1764 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
1765 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
1766 Merge into...
1767 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
1768 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
1769 ...these new patterns.
1770 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
1771 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
1772 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
1773 ...this new pattern.
1774 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
1775 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
1776 ...this new pattern.
1777 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
1778
1779 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1780
1781 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
1782 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
1783 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
1784 unspecs.
1785 (optab, su): Handle them.
1786 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
1787 * config/aarch64/aarch64-sve.md
1788 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
1789 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
1790 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
1791 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
1792 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
1793 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
1794 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
1795 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
1796 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
1797 FIXUORS.
1798 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
1799 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
1800 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
1801 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
1802 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
1803 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
1804 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
1805 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
1806 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
1807 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
1808 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
1809 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
1810 of UNSPEC_FLOAT_CONVERT.
1811 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
1812 aarch64_sve_extend<mode><Vwide>2.
1813
1814 2019-08-14 Richard Biener <rguenther@suse.de>
1815
1816 PR target/91154
1817 * config/i386/i386-features.c
1818 (dimode_scalar_chain::compute_convert_gain): Compute and dump
1819 individual instruction gain. Fix reg-reg copy GRP cost. Use
1820 ix86_cost->sse_op for vector instruction costs.
1821
1822 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1823
1824 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
1825 (cmp_op): Handle it.
1826 (SVE_COND_FP_CMP): Rename to...
1827 (SVE_COND_FP_CMP_I0): ...this.
1828 (SVE_FP_CMP): Remove.
1829 * config/aarch64/aarch64-sve.md
1830 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
1831 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
1832 using unspecs to represent the comparison.
1833 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
1834 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
1835 accordingly.
1836 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
1837 (aarch64_unspec_cond_code): Move after integer code. Handle
1838 UNORDERED.
1839 (aarch64_emit_sve_predicated_cond): Replace with...
1840 (aarch64_emit_sve_fp_cond): ...this new function.
1841 (aarch64_emit_sve_or_conds): Replace with...
1842 (aarch64_emit_sve_or_fp_conds): ...this new function.
1843 (aarch64_emit_sve_inverted_cond): Replace with...
1844 (aarch64_emit_sve_invert_fp_cond): ...this new function.
1845 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
1846
1847 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1848
1849 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
1850 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
1851 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
1852 SVE_HSD instead of SVE_SD.
1853
1854 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1855 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1856
1857 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
1858 iterator.
1859 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
1860 attributes.
1861 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
1862 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
1863 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
1864 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
1865 (*div<SVE_F:mode>3): Generalize to...
1866 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
1867
1868 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1869 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1870
1871 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
1872 constants.
1873 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
1874 predicate.
1875 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
1876 Declare.
1877 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
1878 function.
1879 * config/aarch64/aarch64-sve.md: Add a block comment about the
1880 handling of predicated FP operations.
1881 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
1882 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
1883 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1884 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
1885 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
1886 operand.
1887 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
1888 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
1889 operand.
1890 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
1891 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
1892 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
1893 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
1894 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
1895 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1896 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1897 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
1898 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
1899 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
1900 strictness operands. Use aarch64_sve_pred_dominates_p to check
1901 whether the predicate on the conditional operation is suitable
1902 for merging. Split patterns into the canonical equal-predicate form.
1903 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
1904 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
1905
1906 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1907 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1908
1909 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
1910 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
1911 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
1912 rtx codes.
1913 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
1914 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
1915 unspecs.
1916
1917 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1918 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1919
1920 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
1921 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
1922 actually has, rather than relying on REG_EQUAL notes.
1923 Make the insn operand order match the SVE operand order.
1924 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
1925 the SVE operand order.
1926
1927 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1928
1929 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
1930 (aarch64_emit_set_immediate): Likewise.
1931 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
1932 (aarch64_pfalse_reg): Likewise.
1933 (aarch64_convert_sve_data_to_pred): New function.
1934 (aarch64_sve_move_pred_via_while): Take an optional target register
1935 and the required register mode.
1936 (aarch64_expand_sve_const_pred_1): New function.
1937 (aarch64_expand_sve_const_pred): Likewise.
1938 (aarch64_expand_mov_immediate): Build an all-true predicate
1939 if the significant bits of the immediate are all true. Use
1940 aarch64_expand_sve_const_pred for all compile-time predicate constants.
1941 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
1942 before register allocation.
1943 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
1944 a VNx16BI PTRUE when splitting the memory alternative.
1945 (vec_duplicate<mode>): Update accordingly.
1946 (*pred_cmp<cmp_op><mode>): Rename to...
1947 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
1948
1949 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1950
1951 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
1952 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
1953 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
1954 (UNSPEC_PTEST): New unspec.
1955 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
1956 * config/aarch64/iterators.md (data_bytes): New mode attribute.
1957 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
1958 * config/aarch64/aarch64-sve.md: Add a new section describing the
1959 handling of UNSPEC_PTEST.
1960 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
1961 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
1962 (ptest_ptrue<mode>): Replace with...
1963 (aarch64_ptest<mode>): ...this new pattern.
1964 (cbranch<mode>4): Update after above changes.
1965 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
1966 UNSPEC_PTEST_PTRUE.
1967 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
1968 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
1969 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
1970
1971 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
1972
1973 PR lto/91287
1974 * builtins.c (builtin_with_linkage_p): New function.
1975 * builtins.h (builtin_with_linkage_p): New function.
1976 * symtab.c (write_symbol): Remove redundant assert.
1977 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
1978 Remove FIXME and use builtin_with_linkage_p.
1979
1980 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1981
1982 PR middle-end/91421
1983 * tree-core.h (function_decl::function_code): Change type to
1984 unsigned int.
1985 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
1986 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
1987 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
1988 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
1989 is BUILT_IN_NORMAL.
1990 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
1991 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
1992 (fndecl_built_in_p): Change the type of the "name" argument to
1993 unsigned int.
1994 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
1995 after check for DECL_BUILT_IN_CLASS.
1996 * cgraphclones.c (build_function_decl_skip_args): Use
1997 set_decl_built_in_function.
1998 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
1999 * ipa-split.c (split_function): Likewise.
2000 * langhooks.c (add_builtin_function_common): Likewise.
2001 * omp-simd-clone.c (simd_clone_create): Likewise.
2002 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2003 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
2004 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
2005 DECL_FUNCTION_CODE.
2006 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
2007 instead of DECL_FUNCTION_CODE.
2008 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
2009 instead of DECL_FUNCTION_CODE.
2010 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2011 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
2012 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
2013 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
2014 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
2015 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
2016 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2017 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
2018 (alpha_gimple_fold_builtin): Likewise.
2019 * config/arc/arc.c (arc_expand_builtin): Likewise.
2020 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
2021 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
2022 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
2023 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
2024 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
2025 * config/frv/frv.c (frv_expand_builtin): Likewise.
2026 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
2027 (gcn_expand_builtin): Likewise.
2028 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
2029 (fold_builtin_cpu): Likewise.
2030 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
2031 * config/i386/i386.c (ix86_fold_builtin): Likewise.
2032 (ix86_gimple_fold_builtin): Likewise.
2033 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
2034 (ia64_expand_builtin): Likewise.
2035 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
2036 * config/mips/mips.c (mips_expand_builtin): Likewise.
2037 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
2038 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
2039 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
2040 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
2041 * config/pa/pa.c (pa_expand_builtin): Likewise.
2042 * config/pru/pru.c (pru_expand_builtin): Likewise.
2043 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
2044 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2045 Likewise.
2046 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
2047 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
2048 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
2049 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
2050 (rs6000_builtin_reciprocal): Likewise.
2051 * config/rx/rx.c (rx_expand_builtin): Likewise.
2052 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2053 * config/s390/s390.c (s390_expand_builtin): Likewise.
2054 * config/sh/sh.c (sh_expand_builtin): Likewise.
2055 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
2056 (sparc_fold_builtin): Likewise.
2057 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2058 * config/spu/spu.c (spu_expand_builtin): Likewise.
2059 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
2060 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
2061 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
2062 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2063 (xtensa_expand_builtin): Likewise.
2064
2065 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2066
2067 PR middle-end/91421
2068 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
2069 before the DECL_FUNCTION_CODE.
2070 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
2071 to check for a BUILT_IN_ALLOCA call.
2072 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
2073 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
2074 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
2075 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2076 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
2077 for BUILT_IN_NORMAL functions.
2078 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
2079 test for BUILT_IN_TM_ABORT.
2080 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
2081 to check for a BUILT_IN_STACK_RESTORE call.
2082 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
2083 * tree-ssa-threadedge.c
2084 (record_temporary_equivalences_from_stmts_at_dest): Check for a
2085 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
2086 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
2087 test for a BUILT_IN_NORMAL call instead of a negative test for
2088 an internal function call.
2089
2090 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2091
2092 * tree.h (build_vector_a_then_b): Declare.
2093 * tree.c (build_vector_a_then_b): New function.
2094 * fold-const-call.c (fold_while_ult): Likewise.
2095 (fold_const_call): Use it to handle IFN_WHILE_ULT.
2096 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
2097 (aarch64_svpattern): New enum.
2098 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
2099 constants through aarch64_expand_mov_immediate.
2100 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
2101 than general_operand as the predicate for operand 1.
2102 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
2103 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
2104 insn_type.
2105 (simd_immediate_info::simd_immediate_info): New overload that
2106 takes a scalar_int_mode and an svpattern.
2107 (simd_immediate_info::u): Add a "pattern" field.
2108 (svpattern_token): New function.
2109 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
2110 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
2111 (aarch64_sve_move_pred_via_while): New functions.
2112 (aarch64_expand_mov_immediate): Try using
2113 aarch64_sve_move_pred_via_while for predicates that contain N ones
2114 followed by M zeros but that do not correspond to a VLnnn pattern.
2115 (aarch64_sve_pred_valid_immediate): New function.
2116 (aarch64_simd_valid_immediate): Use it instead of dealing directly
2117 with PTRUE and PFALSE.
2118 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
2119 forms.
2120
2121 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
2122
2123 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
2124 flag.
2125 (darwin_override_options): Likewise.
2126 * config/darwin.h: Likewise.
2127 * config/darwin.opt: Likewise.
2128 * config/i386/i386.c (output_pic_addr_const): Likewise.
2129 * config/rs6000/darwin.h: Likewise.
2130 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
2131 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
2132 ... this TARGET_MACHO_SYMBOL_STUBS.
2133 (FUNCTION_PROFILER):Likewise.
2134 * config/i386/i386.h: Likewise.
2135
2136 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2137
2138 * config/i386/i386-expand.c (ix86_expand_vector_extract)
2139 <case E_V2SImode>: Use vec_extr path for
2140 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2141 <case E_V8QImode>: Ditto.
2142 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
2143 Use SWI48 mode iterator. Use %k to output operand 0.
2144 (*mmx_pextrw): New insn pattern.
2145 (*mmx_pextrb): Ditto.
2146 (*mmx_pextrb_zext): Ditto.
2147
2148 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
2149
2150 * target.def (libc_has_function, libc_has_fast_function): Improve
2151 documentation strings.
2152 * doc/tm.texi: Regenerate.
2153
2154 2019-08-13 Caroline Tice <cmtice@google.com>
2155
2156 PR other/91396
2157 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
2158 vtv_end.o or vtv_end_preinit.o files if !static.
2159
2160 2019-08-13 Olivier Hainque <hainque@adacore.com>
2161
2162 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
2163
2164 2019-08-13 Olivier Hainque <hainque@adacore.com>
2165
2166 * rtlanal.c (tablejump_casesi_pattern): New function, to
2167 determine if a tablejump insn is a casesi dispatcher. Extracted
2168 from patch_jump_insn.
2169 * rtl.h (tablejump_casesi_pattern): Declare.
2170 * cfgrtl.c (patch_jump_insn): Use it.
2171 * dwarf2cfi.c (create_trace_edges): Use it.
2172
2173 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2174
2175 PR target/81800
2176 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
2177 operand is larger than a long int.
2178
2179 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2180
2181 * machmode.h (opt_mode::else_mode): New function.
2182 (opt_mode::else_blk): Use it.
2183 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
2184 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
2185 (aarch64_gen_stepped_int_parallel): Likewise.
2186 (aarch64_stepped_int_parallel_p): Likewise.
2187 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2188 argument.
2189 * config/aarch64/aarch64.c
2190 (aarch64_expand_sve_widened_duplicate): Delete.
2191 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
2192 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
2193 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2194 argument. Use early returns in the !CONST_INT_P handling.
2195 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
2196 than handling some inline.
2197 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
2198 from...
2199 (aarch64_simd_container_mode): ...here.
2200 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
2201 (aarch64_sve_ld1rq_operand_p): New functions.
2202 * config/aarch64/predicates.md (descending_int_parallel)
2203 (aarch64_sve_ld1rq_operand): New predicates.
2204 * config/aarch64/constraints.md (UtQ): New constraint.
2205 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
2206 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
2207 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
2208 (@aarch64_sve_reinterpret<mode>): New expander.
2209 (*aarch64_sve_reinterpret<mode>): New pattern.
2210 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
2211 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
2212 (*sve_ld1rq<Vesize>): Replace with...
2213 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
2214
2215 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2216
2217 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
2218 16:12.
2219
2220 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2221
2222 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
2223 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
2224 (msp430_check_path_for_devices): New.
2225 (parse_devices_csv_1): New.
2226 (parse_devices_csv): New.
2227 (msp430_extract_mcu_data): Try to find devices.csv and search for the
2228 MCU data in devices.csv before using the hard-coded data.
2229 Warn if devices.csv isn't found and the MCU wasn't found in the
2230 hard-coded data either.
2231 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
2232 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
2233 Search for devices.csv on -I and -L paths.
2234 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
2235 msp430_set_driver_var.
2236 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
2237 -mdevices-csv-loc=.
2238 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
2239 searched for devices.csv.
2240 (mwarn-devices-csv): Document option.
2241
2242 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2243
2244 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
2245 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
2246 Use a single Dn alternative instead of separate Dz and Dm
2247 alternatives. Use aarch64_output_sve_move_immediate.
2248 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
2249 function.
2250 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
2251 for predicates too.
2252 (aarch64_output_sve_mov_immediate): Handle predicate modes.
2253 (aarch64_output_ptrue): Delete.
2254
2255 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2256
2257 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
2258 INDEX.
2259 (simd_immediate_info::value, simd_immediate_info::step)
2260 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
2261 with...
2262 (simd_immediate_info::u): ...this new union.
2263 (simd_immediate_info::simd_immediate_info): Update accordingly.
2264 (aarch64_output_simd_mov_immediate): Likewise.
2265 (aarch64_output_sve_mov_immediate): Likewise.
2266
2267 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2268
2269 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
2270 extra_gcc_objs.
2271 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
2272 (msp430_select_cpu): New spec function.
2273 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
2274 MCU data.
2275 * config/msp430/msp430-devices.c: New file.
2276 * config/msp430/msp430-devices.h: New file.
2277 * config/msp430/msp430.c: Remove msp430_mcu_data.
2278 (msp430_option_override): Use msp430_extract_mcu_data to extract
2279 MCU data.
2280 (msp430_use_f5_series_hwmult): Likewise.
2281 (use_32bit_hwmult): Likewise.
2282 (msp430_no_hwmult): Likewise.
2283 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2284 assembler.
2285 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2286 and -mcpu option.
2287 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2288 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2289 Remove hard-coded MCU multilib data.
2290
2291 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2292
2293 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2294 based on the mode instead of testing properties of it.
2295
2296 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2297
2298 * doc/md.texi: Document the x and y constraints for AArch64.
2299 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2300 (FP_LO8_REGS): New reg_class.
2301 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2302 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2303 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2304 * config/aarch64/predicates.md (aarch64_simd_register): Use
2305 FP_REGNUM_P instead of checking the classes manually.
2306 * config/aarch64/constraints.md (y): New constraint.
2307
2308 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2309
2310 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2311 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2312 * config/aarch64/aarch64-simd.md
2313 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2314 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2315 from the asm template.
2316 * config/aarch64/aarch64-sve.md
2317 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2318 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2319 from the asm template.
2320 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2321 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2322 from the asm template.
2323 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2324
2325 2019-08-13 Martin Liska <mliska@suse.cz>
2326
2327 * value-prof.c (gimple_ic_transform): Add new line.
2328 Print details with MSG_NOTE.
2329
2330 2019-08-13 Martin Liska <mliska@suse.cz>
2331
2332 * doc/invoke.texi: Document automatic detection of jobserver.
2333 * lto-wrapper.c (run_gcc): Detect jobserver always.
2334
2335 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2336
2337 * config/i386/i386-expand.c (ix86_expand_vector_set)
2338 <case E_V2SImode>: Use vec_merge path for
2339 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2340 <case E_V8QImode>: Ditto.
2341 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2342 (*mmx_pinsrb): Ditto.
2343
2344 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2345
2346 PR target/83250
2347 PR target/91340
2348 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2349 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2350 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2351 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2352 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2353
2354 2019-08-12 Richard Biener <rguenther@suse.de>
2355
2356 PR lto/91375
2357 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2358 flag_devirtualize.
2359
2360 2019-08-12 Richard Biener <rguenther@suse.de>
2361
2362 PR driver/91130
2363 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2364 lang_mask option, always use CL_DRIVER.
2365 (get_options_from_collect_gcc_options): Adjust.
2366 (find_and_merge_options): Likewise.
2367 (run_gcc): Likewise.
2368
2369 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2370
2371 * ipa-predicate.c (add_condition): Restore inverted test.
2372
2373 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2374
2375 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2376 (enum omp_clause_device_type_kind): New enum.
2377 (struct tree_omp_clause): Add subcode.device_type_kind.
2378 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2379 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2380 for device_type clause.
2381 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2382 * tree-pretty-print.c (dump_omp_clause): Likewise.
2383
2384 PR target/91408
2385 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2386 vector_operand.
2387
2388 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2389
2390 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2391 handling spilled pseudos.
2392
2393 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2394
2395 PR target/91386
2396 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2397 to preserve the contents of the original insns.
2398
2399 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2400
2401 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2402 (addsi3_compare_op2): Likewise.
2403
2404 2019-08-09 Martin Liska <mliska@suse.cz>
2405
2406 * alias.c (alias_ptr_types_compatible_p): Strengten
2407 type comparison in LTO mode.
2408
2409 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2410
2411 PR middle-end/90313
2412 * tree-tailcall.c (find_tail_calls): Reject calls that might
2413 read from an escaped RESULT_DECL.
2414
2415 2019-08-09 Martin Liska <mliska@suse.cz>
2416
2417 * doc/invoke.texi: Document the option value.
2418 * lto-wrapper.c (run_gcc): Set auto_parallel
2419 only with -flto=auto.
2420
2421 2019-08-09 Martin Liska <mliska@suse.cz>
2422
2423 * opts.c (common_handle_option): Error for an invalid argument
2424 to -flto=.
2425
2426 2019-08-09 Martin Liska <mliska@suse.cz>
2427
2428 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2429 use dump_printf to report optimization.
2430 (sem_variable::merge): Likwise.
2431 (sem_item_optimizer::merge_classes): Use dump_printf to report
2432 ICF hits.
2433
2434 2019-08-09 Martin Liska <mliska@suse.cz>
2435
2436 * value-prof.c (gimple_divmod_fixed_value_transform):
2437 Use dump_printf_loc.
2438 (gimple_mod_pow2_value_transform): Likewise.
2439 (gimple_mod_subtract_transform): Likewise.
2440 (init_node_map): Likewise.
2441 (gimple_ic_transform): Likewise.
2442 (gimple_stringops_transform): Likewise.
2443
2444 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2445
2446 * doc/extend.texi: Add const qualifier to ld intrinsics.
2447
2448 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2449
2450 * config/rs6000/dfp.md (D64_D128): Rename to ...
2451 (DDTD): ... this, throughout.
2452 (dfp_suffix): Rename to ...
2453 (q): ... this, throughout.
2454
2455 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2456
2457 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2458 (dfp_suffix): Ditto.
2459 (adddd3, addtd3): Merge to ...
2460 (add<mode>3 for D64_D128): ... this.
2461 (subdd3, subtd3): Merge to ...
2462 (sub<mode>3 for D64_D128): ... this.
2463 (muldd3, multd3): Merge to ...
2464 (mul<mode>3 for D64_D128): ... this.
2465 (divdd3, divtd3): Merge to ...
2466 (div<mode>3 for D64_D128): ... this.
2467 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2468 (*cmp<mode>_internal1 for D64_D128): ... this.
2469 (ftruncdd2, ftrunctd2): Merge to ...
2470 (ftrunc<mode>2 for D64_D128): ... this.
2471 (fixdddi2, fixtddi2): Merge to ...
2472 (fix<mode>di2 for D64_D128): ... this.
2473
2474 2019-08-08 Jim Wilson <jimw@sifive.com>
2475
2476 PR target/91229
2477 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2478 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2479 Pass into recursive call.
2480 (riscv_flatten_aggregate_argument): New arg. Pass to
2481 riscv_flatten_aggregate_field.
2482 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2483 riscv_flatten_aggregate_argument twice, with false and true as last
2484 arg. Process result twice. Compare results and warn if different.
2485 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2486
2487 2019-08-08 Martin Liska <mliska@suse.cz>
2488
2489 PR bootstrap/91352
2490 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2491 * lto-wrapper.c (jobserver_active_p): Likewise.
2492
2493 2019-08-08 Martin Liska <mliska@suse.cz>
2494
2495 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2496 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2497 (create_version_clone_with_body): Likewise.
2498
2499 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2500
2501 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2502 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2503 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2504 GOVD_EXPLICIT flags.
2505 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2506 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2507 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2508 call install_var_field with mask 11 instead of 3.
2509 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2510 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2511
2512 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2513
2514 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2515 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2516
2517 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2518
2519 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2520 MOVPRFX alternatives. Make the GPR alternatives more expensive
2521 than the FPR ones.
2522
2523 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2524
2525 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2526 Disparage the GPR alternative relative to the FPR one.
2527 Fix handling of 8-bit and 16-bit FPR values.
2528
2529 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2530
2531 * config/aarch64/iterators.md (BITWISEV): Delete.
2532 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2533 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2534 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2535 UNSPEC_FMINNMV, UNSPEC_FMINV.
2536 (bit_reduc_op): Delete.
2537 (sve_int_op): New int attribute.
2538 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2539 UNSPEC_FMINNMV, UNSPEC_FMINV.
2540 * config/aarch64/aarch64-sve.md
2541 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2542 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2543 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2544 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2545 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2546 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2547 new patterns.
2548 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2549 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2550 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2551 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2552 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2553 new patterns.
2554
2555 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2556
2557 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2558 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2559 (fms<mode>4, *fms<mode>4): Replace with...
2560 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2561 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2562 Use unspecs instead of rtx codes.
2563 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2564 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2565
2566 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2567
2568 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2569 int iterator.
2570 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2571 * config/aarch64/aarch64-sve.md
2572 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2573 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2574 use a single unspec for the rhs.
2575 (*<su><maxmin><mode>3): Delete.
2576 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2577
2578 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2579
2580 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2581 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2582 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2583 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2584 (optab, sve_fp_op): Handle them.
2585 (SVE_FP_UNARY): Delete.
2586 (optab): Remove sqrt entry.
2587 (sve_fp_op): Remove neg, abs and sqrt entries.
2588 (SVE_COND_FP_UNARY): New int iterator.
2589 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2590 (*<frint_pattern><mode>2): Delete.
2591 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2592 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2593 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2594 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2595
2596 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2597
2598 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2599
2600 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2601
2602 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
2603 (UNSPEC_COND_FADD): ...this.
2604 (UNSPEC_COND_SUB): Rename to...
2605 (UNSPEC_COND_FSUB): ...this.
2606 (UNSPEC_COND_MUL): Rename to...
2607 (UNSPEC_COND_FMUL): ...this.
2608 (UNSPEC_COND_DIV): Rename to...
2609 (UNSPEC_COND_FDIV): ...this.
2610 (UNSPEC_COND_MAX): Rename to...
2611 (UNSPEC_COND_FMAXNM): ...this.
2612 (UNSPEC_COND_MIN): Rename to...
2613 (UNSPEC_COND_FMINNM): ...this.
2614 (UNSPEC_COND_LT): Rename to...
2615 (UNSPEC_COND_FCMLT): ...this.
2616 (UNSPEC_COND_LE): Rename to...
2617 (UNSPEC_COND_FCMLE): ...this.
2618 (UNSPEC_COND_EQ): Rename to...
2619 (UNSPEC_COND_FCMEQ): ...this.
2620 (UNSPEC_COND_NE): Rename to...
2621 (UNSPEC_COND_FCMNE): ...this.
2622 (UNSPEC_COND_GE): Rename to...
2623 (UNSPEC_COND_FCMGE): ...this.
2624 (UNSPEC_COND_GT): Rename to...
2625 (UNSPEC_COND_FCMGT): ...this.
2626 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
2627 (sve_fp_op_rev): Update accordingly.
2628 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
2629
2630 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2631
2632 * config/aarch64/aarch64-sve.md: Reorganize contents and add
2633 banner comments.
2634 * config/aarch64/check-sve-md.awk: New file.
2635 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
2636 (insn-conditions.md): Depend on it.
2637
2638 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
2639
2640 PR target/91385
2641 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
2642 (*negsi2_cmpz_zext): Ditto.
2643
2644 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2645
2646 * config/aarch64/iterators.md (commutative): Remove.
2647
2648 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
2649
2650 PR driver/91130
2651 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
2652 processing COLLECT_GCC_OPTIONS.
2653 (run_gcc): Likewise.
2654
2655 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2656
2657 PR tree-optimization/91109
2658 * lra-remat.c (update_scratch_ops): Remove assignment of the
2659 hard register.
2660
2661 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2662
2663 * data-streamer.h (streamer_write_poly_uint64): Declare.
2664 (streamer_read_poly_uint64): Likewise.
2665 * data-streamer-in.c (streamer_read_poly_uint64): New function.
2666 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
2667 * ipa-predicate.h (condition::size): Turn into a poly_int64.
2668 (add_condition): Take a poly_int64 size.
2669 * ipa-predicate.c (add_condition): Likewise.
2670 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
2671 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
2672 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
2673 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
2674 condition::size as a poly_int64.
2675 (unmodified_parm_1): Take a poly_int64 size pointer.
2676 (unmodified_parm): Likewise.
2677 (unmodified_parm_or_parm_agg_item): Likewise.
2678 (set_cond_stmt_execution_predicate): Update accordingly.
2679 (set_switch_stmt_execution_predicate): Likewise.
2680 (will_be_nonconstant_expr_predicate): Likewise.
2681 (will_be_nonconstant_predicate): Likewise.
2682 (inline_read_section): Stream condition::size as a poly_int.
2683 (ipa_fn_summary_write): Likewise.
2684
2685 2019-08-07 Martin Liska <mliska@suse.cz>
2686
2687 * fold-const.c (twoval_comparison_p): Replace int
2688 with bool as a return type.
2689 (simple_operand_p): Likewise.
2690 (operand_equal_p): Replace int with bool as a return type.
2691 * fold-const.h (operand_equal_p): Likewise.
2692
2693 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2694
2695 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
2696 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
2697 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2698 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
2699 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
2700 * tree-pretty-print.c (dump_omp_clause): Likewise.
2701 * tree-nested.c (convert_nonlocal_omp_clauses,
2702 convert_local_omp_clauses): Likewise.
2703 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
2704 Likewise.
2705 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
2706 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
2707 clause with array or reference to array types, no matter what type
2708 except for reference it has.
2709
2710 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
2711
2712 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
2713
2714 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
2715
2716 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
2717 (arch_canonicalize): Support rv32g and rv64g and fix error
2718 handling.
2719
2720 2019-08-06 Martin Liska <mliska@suse.cz>
2721
2722 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
2723 and DECL_IS_OPERATOR_DELETE_P.
2724
2725 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2726
2727 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
2728 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
2729 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
2730 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
2731 (gimplify_omp_for): Don't do C++ random access iterator clause
2732 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
2733 don't predetermine the artificial iterator in case of C++ random
2734 access iterators as lastprivate, but private. For OMP_LOOP, force
2735 bind expr around simd body and force for_pre_body before the
2736 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
2737 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
2738 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
2739 diff var of C++ random access iterators. Handle
2740 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
2741 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
2742 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
2743 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
2744 * omp-low.c (lower_rec_input_clauses): For
2745 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
2746 variables instead of default constructing them.
2747 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
2748 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
2749 is_taskloop_ctx check from the assert to the guarding condition.
2750
2751 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
2752
2753 * config/riscv/multilib-generator: (canonical_order): New.
2754 (arch_canonicalize): Dito.
2755 Apply arch_canonicalize for alts.
2756
2757 2019-08-05 Martin Sebor <msebor@redhat.com>
2758
2759 * doc/extend.texi (Common Variable Attributes): Document alias
2760 attribute.
2761
2762 2019-08-05 Marek Polacek <polacek@redhat.com>
2763
2764 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2765 * doc/invoke.texi: Document -Wcomma-subscript.
2766
2767 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2768
2769 * tree-core.h (tree_function_decl): Make function_code an
2770 independent field. Group the remaining bitfields into bytes
2771 and move decl_type so that it contines to be at a byte boundary.
2772 Leave 12 bits for future expansion.
2773
2774 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2775
2776 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
2777 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
2778 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
2779 IFN_MASK_STORE.
2780
2781 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2782
2783 * gimple.h (gimple_move_vops): Declare.
2784 * gimple.c (gimple_move_vops): New function
2785 * gimple-fold.c (replace_call_with_call_and_fold)
2786 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
2787 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
2788 (gimple_fold_call): Use it.
2789 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
2790 * tree-call-cdce.c (use_internal_fn): Likewise.
2791 * tree-if-conv.c (predicate_load_or_store): Likewise.
2792 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2793 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2794 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
2795 (update_call_from_tree): Likewise.
2796 * tree-vect-stmts.c (vectorizable_load): Likewise.
2797 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
2798
2799 2019-08-05 Martin Liska <mliska@suse.cz>
2800
2801 PR c++/91334
2802 * tree-ssa-dce.c (propagate_necessity): Handle new operators
2803 with not arguments.
2804 (eliminate_unnecessary_stmts): Likewise.
2805
2806 2019-08-05 Richard Biener <rguenther@suse.de>
2807
2808 PR middle-end/91169
2809 * fold-const.c (get_array_ctor_element_at_index): Create
2810 offset_ints according to the sign of the index type and treat
2811 that as signed if it is obviously so.
2812
2813 2019-08-05 Jakub Jelinek <jakub@redhat.com>
2814
2815 PR target/91341
2816 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
2817 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
2818 _mm256_storeu2_m128i): New function.
2819
2820 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
2821
2822 * config/riscv/riscv.c (riscv_promote_function_mode): New.
2823 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
2824
2825 2019-08-05 Alan Modra <amodra@gmail.com>
2826
2827 PR target/91349
2828 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
2829 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
2830
2831 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
2832
2833 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
2834 bug that was fixed in Tcl 8.6.1.
2835
2836 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
2837
2838 * config/rs6000/future.md: New file.
2839 * config/rs6000/rs6000.md: Include future.md.
2840 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
2841
2842 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2843
2844 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
2845 check to use targetm.slow_unaligned_access instead.
2846
2847 * function.c (assign_param_data_one): Remove unused data members.
2848
2849 2019-08-02 Steve Ellcey <sellcey@marvell.com>
2850
2851 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
2852 build_distinct_type_copy.
2853 (simd_clone_adjust_argument_types): Ditto.
2854 (simd_clone_adjust): Call build_distinct_type_copy here.
2855 (expand_simd_clones): Ditto.
2856
2857 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2858
2859 PR target/91201
2860 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
2861
2862 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
2863
2864 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
2865 from 'const void *'.
2866 (sort_locs_in_loop_postorder_cmp): Likewise.
2867
2868 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
2869
2870 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
2871 (hot-bb-count-ws-permille): Likewise.
2872 (hot-bb-frequency-fraction): Likewise.
2873 (unlikely-bb-count-fraction): Likewise.
2874 * params.def (hot-bb-count-fraction): Rework description.
2875 (hot-bb-count-ws-permille): Likewise.
2876 (hot-bb-frequency-fraction): Likewise.
2877 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
2878 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
2879
2880 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2881
2882 PR target/91323
2883 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
2884 Return false.
2885
2886 2019-08-02 Richard Biener <rguenther@suse.de>
2887
2888 * vec.h (vec::sort): Add gcc_qsort_r support.
2889 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
2890 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
2891 to gcc_qsort_r style callback.
2892 (sort_locs_in_loop_postorder_cmp): Likewise.
2893 (analyze_memory_references): Use gcc_sort_r interfaces.
2894 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
2895
2896 2019-08-02 Martin Liska <mliska@suse.cz>
2897
2898 PR lto/91313
2899 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
2900 to detect working job server.
2901 (driver::detect_jobserver): Test whether jobserver
2902 is active from GCC driver. That will prevent situation where
2903 GCC is invoked from a LD plugin and the linker already uses
2904 file descriptors suggested by make. That leads to a wrong
2905 detection.
2906 * gcc.h (driver): Add detect_jobserver.
2907 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
2908 not scanning for --jobserver-auth prefix.
2909
2910 2019-08-02 Jakub Jelinek <jakub@redhat.com>
2911
2912 PR tree-optimization/91201
2913 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
2914 V16QImode extraction without sse4.1 try to use V4SImode lowpart
2915 extraction.
2916
2917 2019-08-01 Martin Sebor <msebor@redhat.com>
2918
2919 PR c++/90947
2920 * tree.c (type_initializer_zero_p): Define.
2921 * tree.h (type_initializer_zero_p): New function.
2922
2923 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2924
2925 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
2926
2927 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2928
2929 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
2930 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
2931 * predict.c (maybe_hot_count_p): Likewise.
2932 (maybe_hot_bb_p): Tweak comment.
2933 (maybe_hot_edge_p): Likewise.
2934 (probably_never_executed): Likewise. Minor tweak.
2935 (probably_never_executed_bb_p): Likewise.
2936 (unlikely_executed_edge_p): Likewise.
2937 (probably_never_executed_edge_p): Likewise.
2938 (optimize_function_for_size_p): Likewise.
2939 (optimize_function_for_speed_p): Likewise.
2940 (function_optimization_type): Likewise.
2941 (optimize_bb_for_size_p): Likewise.
2942 (optimize_bb_for_speed_p): Likewise.
2943 (bb_optimization_type): Likewise.
2944 (optimize_edge_for_size_p): Likewise.
2945 (optimize_edge_for_speed_p): Likewise.
2946 (optimize_insn_for_size_p): Likewise.
2947 (optimize_insn_for_speed_p): Likewise.
2948 (optimize_loop_for_size_p): Likewise.
2949 (optimize_loop_for_speed_p): Likewise.
2950 (optimize_loop_nest_for_speed_p): Likewise.
2951 (optimize_loop_nest_for_size_p): Likewise.
2952 (predictable_edge_p): Likewise.
2953 (handle_missing_profiles): Minor tweak.
2954
2955 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
2956
2957 * config/rs6000/predicates.md (pcrel_external_address): Update
2958 comment.
2959
2960 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2961
2962 PR target/85693
2963 * config/i386/mmx.md (usadv8qi): New expander.
2964
2965 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
2966
2967 PR c++/90590
2968 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
2969 with reserved names that are in a system header.
2970
2971 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2972
2973 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
2974 (*vec_extractv2si_0_zext_sse4): New insn pattern.
2975 (*vec_extractv2si_0_zext): Ditto.
2976 (*vec_extractv2si_1): Add (rm,x) alternative.
2977 (*vec_extractv2si_1_zext): New insn pattern.
2978 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
2979 insn constraint.
2980
2981 2019-08-01 Richard Biener <rguenther@suse.de>
2982
2983 * domwalk.c (bb_postorder): Remove static variable.
2984 (cmp_bb_postorder): Adjust.
2985 (sort_bbs_postorder): Adjust and use gcc_sort_r.
2986 (dom_walker::walk): Adjust.
2987
2988 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
2989
2990 * sort.cc (sort_r_ctx): New struct.
2991 (reorder23): Make templated on context type.
2992 (reorder45): Ditto.
2993 (cmp1): Ditto. Adjust signature.
2994 (netsort): Ditto.
2995 (mergesort): Ditto.
2996 [CHECKING_P] (cmp2to3): New static function. Use it...
2997 (gcc_qsort) [CHECKING_P]: ...here.
2998 (gcc_sort_r): New function.
2999 * system.h (sort_r_cmp_fn): New function typedef.
3000 (qsort_chk): Adjust signature.
3001 (gcc_sort_r): Declare.
3002 * vec.c (qsort_chk_error): Adjust.
3003 (qsort_chk): Adjust.
3004
3005 2019-08-01 Richard Biener <rguenther@suse.de>
3006
3007 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
3008 (compute_antic): Localize it here.
3009
3010 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
3011
3012 * common/config/riscv/riscv-common.c: Check -march string ends
3013 with null.
3014
3015 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
3016
3017 * ipa-devirt.c (type_warning_cmp): Make static.
3018 (decl_warning_cmp): Ditto.
3019
3020 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
3021
3022 PR target/91050
3023 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
3024 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3025 use of deleted rs6000_dejagnu_cpu_index variable.
3026 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
3027 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3028 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
3029 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
3030 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
3031 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3032
3033 2019-07-31 Richard Biener <rguenther@suse.de>
3034
3035 PR tree-optimization/91280
3036 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3037 Decompose MEM_REF manually for offset handling.
3038
3039 2019-07-31 Richard Biener <rguenther@suse.de>
3040
3041 PR tree-optimization/91293
3042 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
3043 of reduction stmts.
3044
3045 2019-07-31 Matt Thomas <matt@3am-software.com>
3046 Nick Hudson <nick@nthcliff.demon.co.uk>
3047 Matthew Green <mrg@eterna.com.au>
3048 Maya Rashish <coypu@sdf.org>
3049
3050 * config.gcc (hppa*-*-netbsd*): New target.
3051 * config/pa/pa-netbsd.h: New file.
3052 * config/pa/pa32-netbsd.h: New file.
3053
3054 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3055
3056 PR tree-optimization/91201
3057 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
3058
3059 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
3060
3061 * config/gcn/gcn-valu.md
3062 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
3063 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
3064 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
3065 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
3066 struct ilist. Add nops for delayeduse insns.
3067 * config/gcn/gcn.md (delayeduse): New attribute.
3068 (*movbi): Remove s_waitcnt from stores.
3069 (*mov<mode>_insn): Likewise.
3070 (*movti_insn): Likewise. Add delayeduse attribute.
3071 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
3072 (atomic_store<mode>): Remove or adjust s_waitcnt.
3073
3074 2019-07-31 Richard Biener <rguenther@suse.de>
3075
3076 * vr-values.h (vr_values::swap_vr_value): New.
3077 (vr_values::free_value_range): likewise.
3078 * vr-values.c (vr_values::swap_vr_value): Implement.
3079 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
3080 Do not return a range or take a var.
3081 (evrp_range_analyzer::stack): Change back to recording a non-const
3082 value_range *.
3083 * gimple-ssa-evrp-analyze.c
3084 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
3085 value-range.
3086 (evrp_range_analyzer::pop_to_marker): Adjust.
3087 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
3088 (evrp_range_analyzer::pop_value_range): Likewise. Free the
3089 no longer needed value-range.
3090
3091 2019-07-31 Martin Liska <mliska@suse.cz>
3092
3093 * tree-ssa-dce.c (propagate_necessity): Delete operator can
3094 have size and (or) alignment as 2nd and later arguments.
3095 Mark all of them as necessary.
3096
3097 2019-07-31 Richard Biener <rguenther@suse.de>
3098
3099 PR tree-optimization/91178
3100 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3101 Use tail-recursion.
3102
3103 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3104
3105 PR tree-optimization/91201
3106 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
3107 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
3108 TARGET_AVX512F.
3109 (reduc_plus_scal_<mode>): Improve formatting by introducing
3110 a temporary.
3111
3112 2019-07-31 Sudakshina Das <sudi.das@arm.com>
3113
3114 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3115 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
3116 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
3117 (aarch64_init_tme_builtins): New.
3118 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
3119 (aarch64_expand_builtin_tme): New.
3120 (aarch64_expand_builtin): Handle TME builtins.
3121 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3122 __ARM_FEATURE_TME when enabled.
3123 * config/aarch64/aarch64-option-extensions.def: Add "tme".
3124 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
3125 (TARGET_TME): New.
3126 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
3127 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
3128 UNSPECV_TCANCEL.
3129 (tstart, ttest, tcommit, tcancel): New instructions.
3130 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
3131 (__tcancel, __ttest): New.
3132 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
3133 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
3134 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
3135 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
3136 * config/arm/types.md: Add new tme type attr.
3137 * doc/invoke.texi: Document "tme".
3138
3139 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
3140
3141 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
3142 warn_unused_result attribute.
3143 (cmse_check_address_range): Add warn_unused_result attribute.
3144
3145 2019-07-31 Richard Biener <rguenther@suse.de>
3146
3147 PR tree-optimization/91257
3148 * tree-vrp.c (union_ranges): Unify equality and less tests
3149 by using compare_values. Re-order cheap tests first.
3150
3151 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3152
3153 PR middle-end/91301
3154 * gimplify.c (gimplify_omp_for): If for class iterator on
3155 distribute parallel for there is no data sharing clause
3156 on inner_for_stmt, look for private clause on combined
3157 parallel too and if found, move it to inner_for_stmt.
3158
3159 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
3160
3161 * lra-int.h (lra_operand_data): Remove early_clobber field.
3162 (lra_insn_reg): Likewise.
3163 * lra.c (debug_operand_data): Update accordingly.
3164 (setup_operand_alternative): Likewise.
3165 (new_insn_reg): Likewise. Remove early_clobber parameter.
3166 (collect_non_operand_hard_regs): Update call accordingly.
3167 Don't assign to lra_insn_reg::early_clobber.
3168 (add_regs_to_insn_regno_info): Remove early_clobber parameter
3169 and update calls to new_insn_reg.
3170 (lra_update_insn_regno_info): Update calls accordingly.
3171 * lra-constraints.c (update_and_check_small_class_inputs): Take the
3172 alternative number as a parameter and test whether the operand
3173 is earlyclobbered in that particular alternative.
3174 (process_alt_operands): Update call accordingly. Use per-alternative
3175 checks for earyclobber here too.
3176 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
3177 against zero for IRA_UNKNOWN_ALT.
3178
3179 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3180
3181 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
3182
3183 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
3184
3185 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
3186 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3187
3188 2019-07-30 Martin Liska <mliska@suse.cz>
3189
3190 PR ipa/89330
3191 * cgraph.c (cgraph_edge::make_direct): Use
3192 edge->indirect_unknown_callee as edge->resolve_speculation can
3193 deallocate edge which is this pointer.
3194
3195 2019-07-30 Richard Biener <rguenther@suse.de>
3196
3197 PR tree-optimization/91257
3198 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
3199
3200 2019-07-30 Martin Liska <mliska@suse.cz>
3201
3202 * doc/invoke.texi: Document new behavior.
3203 * lto-wrapper.c (cpuset_popcount): New function
3204 is a copy of libgomp/config/linux/proc.c.
3205 (init_num_threads): Likewise.
3206 (run_gcc): Automatically detect core count for -flto.
3207 (jobserver_active_p): New function.
3208
3209 2019-07-30 Richard Biener <rguenther@suse.de>
3210
3211 PR tree-optimization/91257
3212 * bitmap.h (bitmap_ior_into_and_free): Declare.
3213 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
3214 whether to add the unliked element to the freelist.
3215 (bitmap_list_insert_element_after): Add defaulted param for
3216 an already allocated element.
3217 (bitmap_ior_into_and_free): New function.
3218 * tree-ssa-structalias.c (condense_visit): Reduce the
3219 ponts-to and edge bitmaps of the SCC members in a
3220 logarithmic fashion rather than all to one.
3221
3222 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
3223
3224 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
3225 parameter. When nonnull, make sure that the addition or subtraction
3226 has the same condition.
3227 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
3228 for CFN_COND_MUL too.
3229
3230 2019-07-30 Richard Biener <rguenther@suse.de>
3231
3232 PR tree-optimization/91291
3233 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
3234 constant values.
3235
3236 2019-07-30 Jakub Jelinek <jakub@redhat.com>
3237
3238 PR middle-end/91216
3239 * omp-low.c (global_nonaddressable_vars): New variable.
3240 (use_pointer_for_field): For global decls, if they are non-addressable,
3241 remember it in the global_nonaddressable_vars bitmap, if they are
3242 addressable and in the global_nonaddressable_vars bitmap, ignore their
3243 TREE_ADDRESSABLE bit.
3244 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
3245 vars in global_nonaddressable_vars bitmap.
3246 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
3247
3248 PR target/91150
3249 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
3250 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
3251 comparison to unsigned HOST_WIDE_INT before shifting it left.
3252
3253 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3254
3255 * config/i386/i386.md (movstrict<mode>): Use register_operand
3256 predicate for operand 0. Add expander condition. Assert that
3257 operand 0 is a SUBREG RTX.
3258 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
3259 Update operand constraints and insn condition.
3260 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
3261 (zero_extendqihi2_and): Do not call gen_movstrictqi.
3262 (*setcc_qi_slp): Use register_operand predicate for operand 0.
3263 Update operand 0 constraints.
3264 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
3265
3266 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3267
3268 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
3269 when -m{code,data}-region are used without -mlarge.
3270 * config/msp430/msp430.c (msp430_option_override): Error when a
3271 non-default code or data region is used without -mlarge.
3272 (msp430_section_attr): Emit a warning and do not add upper/lower/either
3273 attributes when they are used without -mlarge.
3274
3275 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3276
3277 PR target/70320
3278 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3279
3280 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3281
3282 PR middle-end/91242
3283 * wide-int.h (generic_wide_int::sext_elt): New function.
3284 * inchash.h (hash::add_wide_int): Use it instead of elt.
3285
3286 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3287
3288 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3289 CODE_FOR_arm_##.
3290 * config/arm/arm.md (<crc_variant>): Rename to...
3291 (arm_<crc_variant>): ... This.
3292 (<cdp>): Rename to...
3293 (arm_<cdp>): ... This.
3294 (<ldc>): Rename to...
3295 (arm_<ldc>): ... This.
3296 (<stc>): Rename to...
3297 (arm_<stc>): ... This.
3298 (<mcr>): Rename to...
3299 (arm_<mcr>): ... This.
3300 (<mrc>): Rename to...
3301 (arm_<mrc>): ... This.
3302 (<mcrr>): Rename to...
3303 (arm_<mcrr>): ... This.
3304 (<mrrc>): Rename to...
3305 (arm_<mrrc>): ... This.
3306
3307 2019-07-29 Richard Biener <rguenther@suse.de>
3308
3309 PR tree-optimization/91257
3310 * tree-ssa-sccvn.h (struct vn_avail): New.
3311 (struct vn_ssa_aux): Add avail member.
3312 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3313 member, add m_avail_freelist one.
3314 (rpo_elim::~rpo_elim): Remove.
3315 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3316 data structure.
3317 (rpo_elim::eliminate_push_avail): Likewise.
3318 (do_unwind): Likewise.
3319 (do_rpo_vn): Likewise.
3320
3321 2019-07-29 Richard Biener <rguenther@suse.de>
3322
3323 PR tree-optimization/91257
3324 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3325 most cases, instead call compare_values which handles the
3326 symbolic ranges we handle specially.
3327 (compare_values_warnv): Do not call operand_less_p but open-code
3328 the effective fold calls. Avoid converting so much.
3329
3330 2019-07-29 Martin Liska <mliska@suse.cz>
3331
3332 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3333 remove LHS of operator new call. It's handled latter.
3334
3335 2019-07-29 Richard Biener <rguenther@suse.de>
3336
3337 PR tree-optimization/91267
3338 * vr-values.c (vr_values::update_value_range): Add early return
3339 for effectively VARYING lattice entry.
3340
3341 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3342
3343 PR debug/86638
3344 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3345 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3346 necessary if keep_all_vdefs_p is true.
3347 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3348 that keep_all_vdefs_p is false.
3349 (mark_all_reaching_defs_necessary): Likewise.
3350 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3351
3352 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3353
3354 * common.opt (Og): Change the initial value of flag_dse to 0.
3355 * opts.c (default_options_table): Move OPT_ftree_dse from
3356 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3357 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3358 entry before the OPT_ftree_sra entry.
3359 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3360 of flags disabled by Og.
3361
3362 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3363
3364 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3365 variables for -Og.
3366
3367 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3368
3369 * doc/sourcebuild.texi (check-function-bodies): Document.
3370
3371 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3372
3373 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3374 VEC_DUPLICATE of a fixed-length vector even if the result
3375 is variable-length. Likewise fold a duplicate of a
3376 variable-length vector if the variable-length vector is
3377 itself a duplicate of a fixed-length sequence.
3378 (test_vector_ops_duplicate): Test more cases.
3379
3380 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3381
3382 * vector-builder.h (vector_builder): Add a shape template parameter.
3383 (vector_builder::new_unary_operation): New function, generalizing
3384 the old tree_vector_builder function.
3385 (vector_builder::new_binary_operation): Likewise.
3386 (vector_builder::binary_encoded_nelts): Likewise.
3387 * int-vector-builder.h (int_vector_builder): Update template
3388 parameters to vector_builder.
3389 (int_vector_builder::shape_nelts): New function.
3390 * rtx-vector-builder.h (rtx_vector_builder): Update template
3391 parameters to vector_builder.
3392 (rtx_vector_builder::shape_nelts): New function.
3393 (rtx_vector_builder::nelts_of): Likewise.
3394 (rtx_vector_builder::npatterns_of): Likewise.
3395 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3396 * tree-vector-builder.h (tree_vector_builder): Update template
3397 parameters to vector_builder.
3398 (tree_vector_builder::shape_nelts): New function.
3399 (tree_vector_builder::nelts_of): Likewise.
3400 (tree_vector_builder::npatterns_of): Likewise.
3401 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3402 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3403 (tree_vector_builder::new_binary_operation): Delete.
3404 (tree_vector_builder::binary_encoded_nelts): Likewise.
3405 * simplify-rtx.c: Include rtx-vector-builder.h.
3406 (distributes_over_addition_p): New function.
3407 (simplify_const_unary_operation)
3408 (simplify_const_binary_operation): Generalize handling of vector
3409 constants to include variable-length vectors.
3410 (test_vector_ops_series): Add more tests.
3411
3412 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3413
3414 PR lto/91222
3415 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3416 than INDENTIFIER_POINTER.
3417
3418 2019-07-28 Martin Liska <mliska@suse.cz>
3419
3420 PR ipa/89330
3421 * cgraph.c (symbol_table::create_edge): Always allocate
3422 a cgraph_edge.
3423 (symbol_table::free_edge): Store summary_id to
3424 edge_released_summary_ids if != -1;
3425 * cgraph.h (NEXT_FREE_NODE): Remove.
3426 (SET_NEXT_FREE_NODE): Likewise.
3427 (NEXT_FREE_EDGE): Likewise.
3428 (symbol_table::release_symbol): Store summary_id to
3429 cgraph_released_summary_ids if != -1;
3430 (symbol_table::allocate_cgraph_symbol): Always allocate
3431 a cgraph_node.
3432
3433 2019-07-28 Alan Modra <amodra@gmail.com>
3434
3435 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3436 gen_sibcall.
3437
3438 2019-07-28 Alan Modra <amodra@gmail.com>
3439
3440 PR target/91135
3441 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3442 define.
3443 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3444 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3445 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3446
3447 2019-07-28 Alan Modra <amodra@gmail.com>
3448
3449 PR target/91050
3450 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3451 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3452 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3453 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3454 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3455 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3456 in asm_default spec.
3457 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3458 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3459
3460 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3461
3462 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3463
3464 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3465
3466 PR target/89517
3467 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3468 * config/aarch64/aarch64-option-extensions.def: Add new comments
3469 and restore easier to read options.
3470
3471 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3472
3473 * convert.c (convert_to_real_1): Move part of conversion code...
3474 * match.pd: ...To here.
3475
3476 2019-07-26 Martin Jambor <mjambor@suse.cz>
3477
3478 PR ipa/89330
3479 * ipa-inline-transform.c (check_speculations_1): New function.
3480 (push_all_edges_in_set_to_vec): Likewise.
3481 (check_speculations): Use check_speculations_1, new parameter
3482 new_edges.
3483 (inline_call): Pass new_edges to check_speculations.
3484 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3485 NULL.
3486 (speculation_useful_p): Early return true if edge is inlined, remove
3487 later checks for inline_failed.
3488
3489 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3490
3491 PR rtl-optimization/91223
3492 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3493 matching with INOUT operand.
3494
3495 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3496
3497 * stmt.c (expand_case): Try to narrow the index type if it's larger
3498 than a word. Tidy up.
3499
3500 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3501
3502 * cif-code.def (NEVER_CALL): New code.
3503 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3504 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3505
3506 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3507
3508 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3509 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3510
3511 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3512
3513 * ipa-devirt.c (add_type_duplicate): Fix return value.
3514
3515 2019-07-25 Richard Biener <rguenther@suse.de>
3516
3517 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3518 type parameter and use it instead of guessing expression
3519 type from the first operand.
3520 (extract_range_from_binary_expr): Pass expr_type down.
3521
3522 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3523
3524 * config/arm/arm.md (SATrev): Change to code attribute.
3525 (*satsi_<SAT:code>): Adjust for the above.
3526 (*satsi_<SAT:code>_shift): Likewise.
3527
3528 2019-07-25 Richard Biener <rguenther@suse.de>
3529
3530 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3531 Make value_range * temporary const.
3532 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3533 Likewise.
3534 (evrp_range_analyzer::record_ranges_from_): Likewise.
3535 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3536 deal with having recorded a const one.
3537 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3538 Return a const value_range *.
3539 (evrp_range_analyzer::pop_value_range): Likewise.
3540 (evrp_range_analyzer::stack): Record const value_range *s.
3541 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3542 Adjust.
3543 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3544 (format_integer): Likewise.
3545 (sprintf_dom_walker::handle_gimple_call): Likewise.
3546 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3547 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3548 (vrp_prop::get_value_range): Adjust.
3549 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3550 modifying the lattice in-place.
3551 (vrp_prop::visit_stmt): Likewise.
3552 * vr-values.c (vr_values::get_lattice_entry): New private method.
3553 (vr_values::get_value_range): Wrap it and return a const
3554 value_range *.
3555 (vr_values::set_def_to_varying): New.
3556 (vr_values::set_defs_to_varying): Use it.
3557 (vr_values::update_value_range): Likewise.
3558 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3559 (values::op_with_constant_singleton_va): Likewise.
3560 (vr_values::extract_range_for_var_from_co): Likewise.
3561 (vr_values::extract_range_from_ssa_name): Likewise.
3562 (vr_values::extract_range_from_cond_expr): Likewise.
3563 (vr_values::extract_range_basic): Likewise.
3564 (compare_ranges): Take const value_range *, adjust.
3565 (compare_range_with_value): Likewise.
3566 (vrp_valueize): Adjust.
3567 (vrp_valueize_1): Likewise.
3568 (vr_values::get_vr_for_comparison): Return a const value_range *.
3569 (vr_values::compare_name_with_value): Adjust.
3570 (vr_values::compare_names): Likewise.
3571 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3572 Likewise.
3573 (vr_values::vrp_evaluate_conditional): Likewise.
3574 (find_case_label_ranges): Take a const value_range *.
3575 (vr_values::vrp_visit_switch_stmt): Adjust.
3576 (vr_values::extract_range_from_phi_node): Likewise.
3577 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3578 (vr_values::simplify_abs_using_ranges): Likewise.
3579 (test_for_singularity): Take a const value_range *.
3580 (range_fits_type_p): Likewise.
3581 (vr_values::simplify_cond_using_ranges_1): Adjust.
3582 (vr_values::simplify_cond_using_ranges_2): Likewise.
3583 (vr_values::simplify_switch_using_ranges): Likewise.
3584 (vr_values::simplify_float_conversion_usi): Likewise.
3585 (vr_values::two_valued_val_range_p): Likewise.
3586 * vr-values.h (vr_values::get_value_range): Return a const
3587 value_range *.
3588 (vr_values::set_def_to_varying): New.
3589 (vr_values::get_lattice_entry): New private method.
3590 (vr_values::get_vr_for_comparison): Return a const value_range *.
3591
3592 2019-07-25 Martin Liska <mliska@suse.cz>
3593 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3594
3595 PR c++/23383
3596 * common.opt: Add -fallocation-dce
3597 * gimple.c (gimple_call_operator_delete_p): New.
3598 * gimple.h (gimple_call_operator_delete_p): Likewise.
3599 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3600 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
3601 DECL_IS_OPERATOR_DELETE_P.
3602 (mark_all_reaching_defs_necessary_1): Likewise.
3603 (propagate_necessity): Likewise.
3604 (eliminate_unnecessary_stmts): Handle
3605 gimple_call_operator_delete_p.
3606 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
3607 Add packing of OPERATOR_DELETE.
3608 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
3609 Similarly here.
3610 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
3611 (DECL_SET_IS_OPERATOR_DELETE): New.
3612 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
3613
3614 2019-07-25 Martin Liska <mliska@suse.cz>
3615
3616 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
3617 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
3618 * coverage.c (coverage_begin_function): Likewise.
3619 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
3620 * gimple.c (gimple_call_nonnull_result_p): Likewise.
3621 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
3622 (sem_item::hash_referenced_symbol_properties): Likewise.
3623 * lto-streamer-out.c (hash_tree): Likewise.
3624 * predict.c (expr_expected_value_1): Likewise.
3625 * tree-inline.c (expand_call_inline): Likewise.
3626 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3627 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3628 * tree-core.h (enum function_decl_type): New enum.
3629 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
3630 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
3631 (set_function_decl_type): Likewise.
3632 (DECL_IS_OPERATOR_NEW_P): New.
3633 (DECL_SET_IS_OPERATOR_NEW): Likewise.
3634 (DECL_LAMBDA_FUNCTION): Likewise.
3635 (DECL_LAMBDA_FUNCTION_P): Likewise.
3636 (DECL_IS_OPERATOR_NEW): Remove.
3637 (DECL_SET_LAMBDA_FUNCTION): Likewise.
3638
3639 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
3640
3641 * ipa-profile.c (get_most_common_single_value): Use
3642 get_nth_most_common_value.
3643 * profile.c (sort_hist_value): New function.
3644 (compute_value_histograms): Call sort_hist_value to sort the
3645 values after loading from disk.
3646 * value-prof.c (get_most_common_single_value): Rename to ...
3647 get_nth_most_common_value. Add input params n, return
3648 the n_th value and count.
3649 (gimple_divmod_fixed_value_transform): Use
3650 get_nth_most_common_value.
3651 (gimple_ic_transform): Likewise.
3652 (gimple_stringops_transform): Likewise.
3653 * value-prof.h (get_most_common_single_value): Add input params
3654 n, default to 0.
3655
3656 2019-07-25 Richard Biener <rguenther@suse.de>
3657
3658 PR tree-optimization/91236
3659 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3660 size of CONSTRUCTOR write. Fix buffer size we pass to
3661 native_encode_expr.
3662
3663 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3664
3665 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
3666 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
3667 r273773.
3668
3669 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3670
3671 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
3672 explicitly disabled with --disable-initfini-array.
3673
3674 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3675
3676 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
3677 if-exists.
3678
3679 2019-07-24 Martin Sebor <msebor@redhat.com>
3680
3681 PR tree-optimization/91183
3682 PR tree-optimization/86688
3683 * builtins.c (compute_objsize): Handle MEM_REF.
3684 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
3685 (get_min_string_length): Remove.
3686 (count_nonzero_bytes): New function.
3687 (handle_char_store): Rename...
3688 (handle_store): to this. Handle multibyte stores via integer types.
3689 (strlen_check_and_optimize_stmt): Adjust conditional and the called
3690 function name.
3691
3692 2019-07-24 Martin Sebor <msebor@redhat.com>
3693
3694 PR driver/80545
3695 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
3696 (diagnostic_report_diagnostic): Same.
3697 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
3698 (diagnostic_context::lang_mask): New data member.
3699 * ipa-pure-const.c (suggest_attribute): Use
3700 lang_hooks.option_lang_mask ().
3701 * opts-common.c (option_enabled): Handle new argument.
3702 (get_option_state): Pass an additional argument.
3703 * opts.c (print_filtered_help): Print supported languages for
3704 unsupported options. Adjust printing of current state.
3705 * opts.h (option_enabled): Add argument.
3706 * toplev.c (print_switch_values): Use lang_mask.
3707 (general_init): Set global_dc->lang_mask.
3708
3709 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3710
3711 PR bootstrap/87030
3712 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
3713
3714 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
3715
3716 * cgraphunit.c (symbol_table::compile): Start and stop
3717 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
3718 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
3719
3720 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
3721
3722 * gimplify.c (flag_instrument_functions_exclude_p): Include
3723 namespace/class information in the printable name.
3724 * opts.c (add_comma_separated_to_vector): Add NUL terminator
3725 to tokens entered into the vector.
3726
3727 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
3728
3729 * tree-nested.c (build_simple_mem_ref_notrap): New function.
3730 (get_static_chain): Call it instead of build_simple_mem_ref.
3731 (get_frame_field): Likewise.
3732 (get_nonlocal_debug_decl): Likewise.
3733 (convert_nonlocal_reference_op): Likewise.
3734
3735 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
3736
3737 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
3738 declaration.
3739 (arc_compute_frame_size): Millicode is disabled when compiling
3740 ISR.
3741 (arc_return_address_register): Likewise.
3742 (arc_compute_function_type): Likewise.
3743 (arc_compute_frame_size): Likewise.
3744 (secondary_reload_info): Likewise.
3745 (arc_get_unalign): Likewise.
3746 (arc_can_use_return_insn): Declare.
3747 * config/arc/arc.c (AUX_LP_START): Define
3748 (AUX_LP_END): Likewise.
3749 (arc_frame_info): Update gmask member to 64-bit datum.
3750 (GMASK_LEN): Update.
3751 (arc_compute_function_type): Make it static, move it forward.
3752 (arc_must_save_register): Update, consider the extra regs.
3753 (arc_compute_millicode_save_restore_regs): Update to use the 64
3754 bit gmask.
3755 (arc_compute_frame_size): Likewise.
3756 (arc_enter_leave_p): Likewise.
3757 (arc_save_callee_saves): Likewise.
3758 (arc_restore_callee_saves): Likewise.
3759 (arc_save_callee_enter): Likewise.
3760 (arc_restore_callee_leave): Likewise.
3761 (arc_save_callee_milli): Likewise.
3762 (arc_restore_callee_milli): Likewise.
3763 (arc_expand_prologue): Add new interrupt handling.
3764 (arc_return_address_register): Make it static, move it forward.
3765 (arc_expand_epilogue): Add new interrupt handling.
3766 (arc_get_unalign): Delete.
3767 (arc_epilogue_uses): Make sure we do not remove the extra
3768 saved/restored registers when interrupt.
3769 (arc_can_use_return_insn): New function.
3770 (push_reg): Likewise.
3771 (pop_reg): Likewise.
3772 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
3773 procedures.
3774 (arc_restore_callee_saves): Likewise, but restoring.
3775 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
3776 (R33_REG): Likewise.
3777 (R34_REG): Likewise.
3778 (R35_REG): Likewise.
3779 (R36_REG): Likewise.
3780 (R37_REG): Likewise.
3781 (R38_REG): Likewise.
3782 (R39_REG): Likewise.
3783 (R45_REG): Likewise.
3784 (R46_REG): Likewise.
3785 (R47_REG): Likewise.
3786 (R48_REG): Likewise.
3787 (R49_REG): Likewise.
3788 (R50_REG): Likewise.
3789 (R51_REG): Likewise.
3790 (R52_REG): Likewise.
3791 (R53_REG): Likewise.
3792 (R54_REG): Likewise.
3793 (R55_REG): Likewise.
3794 (R56_REG): Likewise.
3795 (R58_REG): Likewise.
3796 (type): Add rtie attribute.
3797 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
3798 (movsi_insn): Accept moves to lp_count.
3799 (rtie): Update pattern.
3800 (simple_return): Simplify it, don't use this pattern as a return
3801 from an interrupt.
3802 (arc600_rtie): New pattern.
3803 (p_return_i): Clean up.
3804 (return): Likewise.
3805 * config/arc/builtins.def (rtie): Only available for non ARC6xx
3806 family CPUs.
3807 * config/arc/predicates.md (move_src_operand): Consider lp_count
3808 as a register.
3809
3810 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
3811
3812 * config/s390/predicates.md (addv_const_operand): New predicate.
3813 * config/s390/s390-modes.def (CCO): New condition code mode.
3814 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
3815 (s390_branch_condition_mask): Likewise.
3816 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
3817 ("mulv<mode>4"): New expanders.
3818 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
3819 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
3820 pattern definitions.
3821
3822 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3823
3824 PR middle-end/91166
3825 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
3826 (define_predicates): Add entry for uniform_vector_p.
3827 (vec_same_elem_p): New match pattern.
3828
3829 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3830
3831 PR bootstrap/87030
3832 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
3833 * config/i386/darwin32-biarch.h .. to here.
3834 * config/i386/darwin64-biarch.h: Adjust comments.
3835 * config/rs6000/darwin32-biarch.h: Likewise.
3836 * config/rs6000/darwin64-biarch.h: Likewise.
3837 * config.gcc: Missed commit from r273746
3838 (*-*-darwin*): Don't include CPU t-darwin here.
3839 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3840 an error message if i686-darwin configuration is attempted for
3841 Darwin >= 18.
3842
3843 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
3844
3845 PR bootstrap/87030
3846 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
3847 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3848 an error message if i686-darwin configuration is attempted for
3849 Darwin >= 18.
3850 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
3851 (powerpc-*-darwin*): Use biarch files where needed.
3852 (powerpc64-*-darwin*): Likewise.
3853 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
3854 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3855 arch case.
3856 * config/i386/darwin32-biarch.h: New.
3857 * config/i386/darwin64.h: Rename.
3858 * config/i386/darwin64-biarch.h: To this.
3859 * config/i386/t-darwin: Rename.
3860 * config/i386/t-darwin32-biarch: To this.
3861 * config/i386/t-darwin64: Rename.
3862 * config/i386/t-darwin64-biarch: To this.
3863 * config/rs6000/darwin32-biarch.h: New.
3864 * config/rs6000/darwin64.h: Rename.
3865 * config/rs6000/darwin64-biarch.h: To this.
3866 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3867 arch case.
3868 * config/rs6000/t-darwin8: Rename.
3869 * config/rs6000/t-darwin32-biarch: To this.
3870 * config/rs6000/t-darwin64 Rename.
3871 * config/rs6000/t-darwin64-biarch: To this.
3872
3873 2019-07-23 Martin Sebor <msebor@redhat.com>
3874
3875 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
3876
3877 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3878
3879 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
3880 (rh): New alias for it.
3881
3882 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3883
3884 * gdbhooks.py: Pass replace=True to
3885 gdb.printing.register_pretty_printer.
3886
3887 2019-07-23 Richard Biener <rguenther@suse.de>
3888
3889 PR debug/91231
3890 * lto-streamer-in.c (input_function): Drop inline-entry markers
3891 that ended up with an unknown location block.
3892
3893 2019-07-23 Richard Biener <rguenther@suse.de>
3894
3895 PR tree-optimization/83518
3896 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
3897 init from a constant even when partial defs are already recorded.
3898
3899 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3900
3901 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
3902 * config/i386/znver1.md: Enable patterns for znver2 and add store
3903 variants which use extra AGU unit.
3904
3905 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3906
3907 * config/i386/i386-options.c (ix86_option_override_internal): Default
3908 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
3909 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
3910 for ZNVER2.
3911
3912 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3913
3914 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
3915 (znver2_costs): Update 256 bit SSE costs and multiplication.
3916
3917 2019-07-23 Jan Beulich <jbeulich@suse.com>
3918
3919 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
3920 Require only AVX512F.
3921 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
3922 alternative expanding to vpternlog.
3923
3924 2019-07-23 Martin Liska <mliska@suse.cz>
3925
3926 * dwarf2out.c (gen_producer_string): Canonize -flto=N
3927 to -flto in dwarf producer string.
3928
3929 2019-07-23 Richard Biener <rguenther@suse.de>
3930
3931 * tree-cfg.c (label_for_bb): Remove global var.
3932 (main_block_label): Take label_for_bb as argument.
3933 (cleanup_dead_labels_eh): Likewise, adjust.
3934 (cleanup_dead_labels): Adjust.
3935
3936 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3937
3938 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
3939 Configurations): Add documentation for __builtin_mtfsf.
3940
3941 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
3942
3943 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
3944 * config/riscv/riscv.c (riscv_constant_alignment): Use
3945 riscv_align_data_type.
3946 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
3947 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3948 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3949 * config/riscv/riscv.opt (malign-data): New.
3950 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
3951
3952 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
3953
3954 * cgraph.c (dump_graphviz): New function.
3955 * cgraph.h (dump_graphviz): New function.
3956 * symtab.c (dump_graphviz): New function.
3957
3958 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
3959
3960 * config/aarch64/aarch64-simd.md
3961 (*aarch64_simd_sra<mode>): New.
3962 * config/aarch64/iterators.md
3963 (SHIFTRT): New iterator.
3964 (sra_op): New attribute.
3965
3966 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3967
3968 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
3969 callee-saved regs R4->R10 in an interrupt function that calls another
3970 function.
3971
3972 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3973
3974 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
3975 (_mm_blendv_epi8): New.
3976
3977 2019-07-22 Richard Biener <rguenther@suse.de>
3978
3979 PR tree-optimization/91221
3980 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
3981 restrict partial-def handling of empty constructors and
3982 memset to refs with known offset.
3983
3984 2019-07-22 Jan Beulich <jbeulich@suse.com>
3985
3986 * config/i386/sse.md (ternlogsuffix): New.
3987 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
3988 AVX512F is in use.
3989 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
3990
3991 2019-07-22 Martin Liska <mliska@suse.cz>
3992
3993 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
3994 comment.
3995 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
3996
3997 2019-07-22 Martin Liska <mliska@suse.cz>
3998
3999 * lto-section-in.c (lto_get_section_data):
4000 Use new function get_compression.
4001 * lto-streamer-out.c (produce_lto_section): Use
4002 set_compression to encode compression algorithm.
4003 * lto-streamer.h (struct lto_section): Do not
4004 use bitfields in the format.
4005
4006 2019-07-22 Martin Liska <mliska@suse.cz>
4007
4008 PR driver/91172
4009 * opts-common.c (decode_cmdline_option): Decode
4010 argument of -Werror and check it for a wrong language.
4011 * opts-global.c (complain_wrong_lang): Remove such case.
4012
4013 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
4014
4015 * config/arc/arc.c (prepare_move_operands): Always use an
4016 intermediate register when storing a TLS symbols.
4017
4018 2019-07-22 Stafford Horne <shorne@gmail.com>
4019
4020 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
4021 force_reg.
4022
4023 2019-07-22 Stafford Horne <shorne@gmail.com>
4024
4025 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
4026 and munordered-float validations.
4027 * config/or1k/constraints.md (d): New register constraint.
4028 * config/or1k/predicates.md (fp_comparison_operator): New.
4029 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
4030 operands.
4031 (or1k_expand_compare): Normalize unordered comparisons.
4032 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
4033 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
4034 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
4035 * config/or1k/or1k.md (type): Add fpu.
4036 (fpu): New instruction reservation.
4037 (F, f, fr, fi, FI, FOP, fop): New.
4038 (<fop><F:mode>3): New ALU instruction definition.
4039 (float<fi><F:mode>2): New conversion instruction definition.
4040 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
4041 (fpcmpcc): New code iterator.
4042 (*sf_fp_insn): New instruction definition.
4043 (cstore<F:mode>4): New expand definition.
4044 (cbranch<F:mode>4): New expand definition.
4045 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
4046 munordered-float): New options.
4047 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
4048 munordered-float.
4049
4050 2019-07-22 Stafford Horne <shorne@gmail.com>
4051
4052 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
4053 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
4054 documenation to be more clear.
4055 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
4056 more clear.
4057 * config/or1k/or1k.opt (mrori): New option.
4058 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
4059 msfimm, mshftimm): Rewrite documentation to be more clear.
4060 * config/or1k/or1k.md (insn_support): Add ror and rori.
4061 (enabled): Add conditions for ror and rori.
4062 (rotrsi3): Replace condition for shftimm with ror and rori.
4063
4064 2019-07-22 Stafford Horne <shorne@gmail.com>
4065
4066 PR target/90363
4067 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
4068 (extend<mode>si2): Update predicate.
4069 * config/or1k/predicates.md (volatile_mem_operand): New.
4070 (reg_or_mem_operand): New.
4071
4072 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
4073
4074 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
4075 * config/rs6000/rs6000-call.c: ... to here.
4076
4077 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4078
4079 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
4080 memory.
4081
4082 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4083
4084 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
4085
4086 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4087
4088 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
4089
4090 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4091
4092 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
4093 (any_memory_operand): New predicate.
4094 (reg_or_mem_operand): Use it.
4095
4096 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4097
4098 PR target/91204
4099 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
4100
4101 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
4102
4103 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
4104 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
4105
4106 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4107
4108 * tree.def (OMP_LOOP): New tree code.
4109 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
4110 (enum omp_clause_bind_kind): New enum.
4111 (struct tree_omp_clause): Add subcode.bind_kind.
4112 * tree.h (OMP_LOOP_CHECK): Rename to ...
4113 (OMP_LOOPING_CHECK): ... this.
4114 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
4115 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
4116 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
4117 (OMP_CLAUSE_BIND_KIND): Define.
4118 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4119 bind clause entries.
4120 (walk_tree_1): Handle OMP_CLAUSE_BIND.
4121 * tree-pretty-print.c (dump_omp_clause): Likewise.
4122 (dump_generic_node): Handle OMP_LOOP.
4123 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
4124 (in_omp_construct): New variable.
4125 (is_gimple_stmt): Handle OMP_LOOP.
4126 (gimplify_scan_omp_clauses): For lastprivate don't set
4127 check_non_private if code == OMP_LOOP. For reduction clause
4128 on OMP_LOOP combined with parallel or teams propagate as shared
4129 on the combined construct. Handle OMP_CLAUSE_BIND.
4130 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
4131 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
4132 for constructs from a loop construct to gimplify_scan_omp_clauses.
4133 Don't predetermine iterator linear on OMP_SIMD from loop construct.
4134 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
4135 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
4136 to match the implicit ORT_TARGET construct around whole body.
4137 Temporarily clear in_omp_construct when processing body.
4138 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
4139 etc. temporarily set in_omp_construct when processing body.
4140 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
4141 * omp-low.c (struct omp_context): Add loop_p.
4142 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
4143 in that the original var might be private.
4144 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
4145 (check_omp_nesting_restrictions): Adjust nesting restrictions for
4146 addition of loop construct.
4147 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
4148
4149 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
4150 lastprivate non-addressable iterator of a collapse(1) simd.
4151
4152 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
4153
4154 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
4155 as in rs6000.c.
4156
4157 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
4158
4159 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
4160 refer to default conditions. Warn for the 'y' spec which is ignored
4161 by current linkers.
4162
4163 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
4164
4165 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
4166 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4167 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4168 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4169 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4170 init_cumulative_args, rs6000_promote_function_mode,
4171 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4172 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4173 rs6000_function_arg_boundary, rs6000_parm_offset,
4174 rs6000_parm_start, rs6000_arg_size,
4175 rs6000_darwin64_record_arg_advance_flush,
4176 rs6000_darwin64_record_arg_advance_recurse,
4177 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4178 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4179 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4180 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4181 rs6000_finish_function_arg, rs6000_function_arg,
4182 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4183 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4184 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4185 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4186 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4187 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4188 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4189 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4190 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4191 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4192 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4193 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4194 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4195 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4196 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4197 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4198 get_element_number, altivec_expand_vec_set_builtin,
4199 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4200 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4201 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4202 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4203 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4204 rs6000_expand_builtin, rs6000_vector_type,
4205 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4206 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4207 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
4208 to rs6000-call.c.
4209 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
4210 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4211 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4212 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4213 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4214 init_cumulative_args, rs6000_promote_function_mode,
4215 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4216 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4217 rs6000_function_arg_boundary, rs6000_parm_offset,
4218 rs6000_parm_start, rs6000_arg_size,
4219 rs6000_darwin64_record_arg_advance_flush,
4220 rs6000_darwin64_record_arg_advance_recurse,
4221 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4222 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4223 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4224 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4225 rs6000_finish_function_arg, rs6000_function_arg,
4226 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4227 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4228 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4229 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4230 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4231 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4232 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4233 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4234 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4235 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4236 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4237 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4238 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4239 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4240 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4241 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4242 get_element_number, altivec_expand_vec_set_builtin,
4243 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4244 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4245 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4246 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4247 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4248 rs6000_expand_builtin, rs6000_vector_type,
4249 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4250 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4251 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
4252 to here from rs6000.c.
4253 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
4254 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
4255 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
4256 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
4257 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
4258 rs6000_return_in_memory, rs6000_return_in_msb,
4259 rs6000_pass_by_reference, setup_incoming_varargs,
4260 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
4261 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
4262 rs6000_function_arg_padding, rs6000_function_arg,
4263 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
4264 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
4265 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
4266 rs6000_passes_long_double, rs6000_passes_vector,
4267 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
4268 altivec_builtin_mask_for_load) Add declarations.
4269 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
4270 * config/config.gcc: Add new source file rs6000-call.c to garbage
4271 collector and extra_objs.
4272
4273 2019-07-19 Jeff Law <law@redhat.com>
4274
4275 PR tree-optimization/86061
4276 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4277 strncpy. Drop some trivial dead code.
4278 (maybe_trim_memstar_call): Handle strncpy.
4279
4280 2019-07-19 Richard Biener <rguenther@suse.de>
4281
4282 PR tree-optimization/91211
4283 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4284 memset encoding size.
4285
4286 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4287
4288 PR target/91204
4289 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4290
4291 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4292
4293 PR ipa/91194
4294 * ipa-inline.c (recursive_inlining): Fix limits check.
4295
4296 2019-07-19 Richard Biener <rguenther@suse.de>
4297
4298 PR tree-optimization/91200
4299 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4300 no PHI nodes in middle-bb.
4301
4302 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4303
4304 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4305 to +sve-bitperm.
4306 * config/aarch64/aarch64-option-extensions.def: Likewise.
4307
4308 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4309
4310 PR middle-end/91190
4311 * function.c (insert_temp_slot_address): Store into the hash table
4312 a copy of address to avoid RTL sharing issues.
4313
4314 2019-07-19 Richard Biener <rguenther@suse.de>
4315
4316 PR tree-optimization/91207
4317 Revert
4318 2019-07-17 Richard Biener <rguenther@suse.de>
4319
4320 PR tree-optimization/91178
4321 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4322 loads with a gap larger than the vector size always use
4323 VMAT_STRIDED_SLP.
4324 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4325 avoid loading vectors that are only contained in the gap
4326 and thus are not needed.
4327
4328 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4329
4330 * config/i386/i386.md (*addqi_2_slp): Remove.
4331 (*<code>qi_2_slp): Ditto.
4332
4333 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4334
4335 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4336 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4337 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4338 Rename function from rs6000_prefixed_address.
4339 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4340 TARGET_HAS_TOC.
4341 (TARGET_TOC): Likewise.
4342 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4343 rs6000.h.
4344 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4345 TARGET_HAS_TOC.
4346 (TARGET_TOC): Likewise.
4347 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4348 rs6000.h.
4349 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4350 TARGET_HAS_TOC.
4351 (TARGET_TOC): Likewise.
4352 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4353 check to require -mcmodel=medium for pc-relative addressing.
4354 (create_TOC_reference): Add assertion for TARGET_TOC.
4355 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4356 TARGET_NO_TOC.
4357 (rs6000_emit_move): Likewise.
4358 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4359 to 'TOC_alias_set'.
4360 (get_TOC_alias_set): Likewise.
4361 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4362 TARGET_NO_TOC.
4363 (rs6000_can_eliminate): Likewise.
4364 (rs6000_prefixed_address_mode_p): Rename function from
4365 rs6000_prefixed_address.
4366 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4367 TARGET_HAS_TOC and not pc-relative.
4368 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4369 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4370 TARGET_HAS_TOC.
4371 (TARGET_TOC): Likewise.
4372 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4373 rs6000.h.
4374
4375 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4376
4377 PR target/91188
4378 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4379 for operand 0. Do not use (match_dup) to match operand 1 with
4380 operand 0. Add check in insn constraint that either input operand
4381 matches operand 0. Use SWI12 mode iterator to also handle
4382 HImode operands.
4383 (*and<mode>_1_slp): Ditto.
4384 (*<code>qi_1_slp): Ditto.
4385 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4386 Do not use (match_dup) to match operand 1 with operand 0. Add
4387 check in insn constraint that operand 1 matches operand 0.
4388 Use SWI12 mode iterator to also handle HImode operands.
4389 (*ashl<mode>3_1_slp): Ditto.
4390 (*<shift_insn><mode>3_1_slp): Ditto.
4391 (*<rotate_insn><mode>3_1_slp): Ditto.
4392
4393 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4394
4395 * config/arm/arm-builtins.c
4396 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4397 (arm_expand_unop_builtin): Likewise.
4398 * config/arm/crypto.md
4399 (crypto_sha1h): Convert from define_insn to define_expand.
4400 (crypto_<crypto_pattern>): Likewise.
4401 (crypto_sha1h_lb): New define_insn.
4402 (crypto_<crypto_pattern>_lb): Likewise.
4403
4404 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4405
4406 PR target/90317
4407 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4408 (vsha1cq_u32): Likewise.
4409 (vsha1pq_u32): Likewise.
4410 (vsha1mq_u32): Likewise.
4411 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4412 vec select.
4413 (crypto_sha1c): Correct vec select.
4414 (crypto_sha1m): Likewise.
4415 (crypto_sha1p): Likewise.
4416
4417 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4418
4419 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4420 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4421 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4422 (subdi_zesidi_zesidi): Likewise.
4423 (negdi2_compare, negdi2_insn): Likewise.
4424 (negdi_extensidi): Likewise.
4425 (negdi_zero_extendsidi): Likewise.
4426 (arm_cmpdi_insn): Likewise.
4427 (subsi3_carryin): Use arm_borrow_operation.
4428 (subsi3_carryin_const): Likewise.
4429 (subsi3_carryin_const0): Likewise.
4430 (subsi3_carryin_compare): Likewise.
4431 (subsi3_carryin_compare_const): Likewise.
4432 (subsi3_carryin_compare_const0): Likewise.
4433 (subsi3_carryin_shift): Likewise.
4434 (rsbsi3_carryin_shift): Likewise.
4435 (negsi2_carryin_compare): Likewise.
4436
4437 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4438
4439 PR tree-optimization/91137
4440 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4441 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4442 Init, use and fini the above new field.
4443 (determine_base_object_1): New function.
4444 (determine_base_object): Reimplement using walk_tree.
4445
4446 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4447
4448 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4449 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4450 CLEANUP_FORCE_FAST_DCE is set.
4451 * ifcvt.c (rest_of_handle_if_conversion): Pass
4452 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4453 if-conversion succeeded.
4454
4455 2019-07-18 Richard Biener <rguenther@suse.de>
4456
4457 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4458 branches to make code less indented.
4459
4460 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4461
4462 PR middle-end/81824
4463 * attribs.c (decls_mismatched_attributes): Simplify the logic
4464 that avoids duplicates and false positives.
4465
4466 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4467
4468 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4469 data into data section when generating PIC code.
4470 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4471 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4472 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4473 return 2 for SOM and 0 for other targets.
4474
4475 2019-07-17 Jeff Law <law@redhat.com>
4476
4477 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4478 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4479 avoid unexpected switch statement fallthru.
4480
4481 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4482
4483 * config/i386/i386.md (*add<dwi>3_doubleword):
4484 Remove redundant constraints.
4485 (*add<mode>_1): Ditto.
4486 (*addhi_1): Ditto.
4487 (*addqi_1): Ditto.
4488 (*addqi_1_slp): Ditto.
4489 (*add<mode>_2): Ditto.
4490 (*addv<mode>4): Ditto.
4491 (*sub<dwi>3_doubleword): Ditto.
4492 (*sub<mode>_1): Ditto.
4493 (*subqi_1_slp): Ditto.
4494 (*sub<mode>_2): Ditto.
4495 (*subv<mode>4): Ditto.
4496 (*sub<mode>_3): Ditto.
4497 (@add<mode>3_carry): Ditto.
4498 (@sub<mode>3_carry): Ditto.
4499 (*add<mode>3_cc_overflow_1): Ditto.
4500 (*add<mode>3_zext_cc_overflow_2): Ditto.
4501 (*anddi_1): Ditto.
4502 (*and<mode>_1): Ditto.
4503 (*andqi_1): Ditto.
4504 (*andqi_1_slp): Ditto.
4505 (*anddi_2): Ditto.
4506 (*andqi_2_maybe_si): Ditto.
4507 (*and<mode>_2): Ditto.
4508 (*andqi_2_slp): Ditto.
4509 (*<code><mode>_1): Ditto.
4510 (*<code>qi_1): Ditto.
4511 (*<code>qi_1_slp): Ditto.
4512 (*<code><mode>_2): Ditto.
4513 (*<code>qi_2_slp): Ditto.
4514
4515 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4516
4517 * alias.c (record_component_aliases): Do not simplify pointed-to
4518 types of ODR types.
4519
4520 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4521
4522 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4523 partial reg stall on alternative 2.
4524
4525 2019-07-17 Richard Biener <rguenther@suse.de>
4526
4527 PR tree-optimization/91178
4528 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4529 lower SSA names to avoid quadratic behavior in the common case.
4530 * tree-data-ref.c (split_constant_offset): Add limit argument
4531 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4532 (split_constant_offset_1): Add limit argument and use it to
4533 limit SSA def walking. Optimize the common plus/minus case.
4534
4535 2019-07-17 Richard Biener <rguenther@suse.de>
4536
4537 PR tree-optimization/91178
4538 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4539 loads with a gap larger than the vector size always use
4540 VMAT_STRIDED_SLP.
4541 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4542 avoid loading vectors that are only contained in the gap
4543 and thus are not needed.
4544
4545 2019-07-17 Richard Biener <rguenther@suse.de>
4546
4547 PR tree-optimization/91180
4548 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4549 computation for memset partial defs.
4550
4551 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4552
4553 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4554 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4555 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4556 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4557 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4558 * omp-grid.c (grid_process_grid_body,
4559 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4560 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4561 == GF_OMP_FOR_KIND_SIMD.
4562 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4563 check_omp_nesting_restrictions, scan_omp_1_stmt,
4564 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4565 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4566 omp_find_scan): Likewise.
4567 * omp-expand.c (expand_omp_for): Likewise.
4568 * omp-general.c (omp_extract_for_data): Likewise.
4569
4570 PR tree-optimization/91157
4571 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4572 a vector boolean with scalar mode.
4573 (expand_vector_condition): Handle first operand being a vector boolean
4574 with scalar mode.
4575 (expand_vector_operations_1): For comparisons, don't bail out early
4576 if the return type is vector boolean with scalar mode, but comparison
4577 operand type is not.
4578
4579 2019-07-17 Richard Biener <rguenther@suse.de>
4580
4581 PR tree-optimization/91181
4582 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4583 IFN_LOADs as calls.
4584
4585 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4586
4587 * config/i386/i386.md (*testdi_1): Match CCZmode for
4588 constants that might have the SImode sign bit set.
4589 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4590 Use correct constraints for pentium pairing.
4591 (*test<mode>_1): Ditto.
4592
4593 2019-07-16 Jeff Law <law@redhat.com>
4594
4595 PR rtl-optimization/91173
4596 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4597 SSA_NAME with a constant value, fold its value into the offset
4598 and clear the base before calling gen_addr_rtx.
4599
4600 2019-07-16 Jakub Jelinek <jakub@redhat.com>
4601
4602 PR rtl-optimization/91164
4603 * dse.c (rest_of_handle_dse): If dead edges have been purged,
4604 invalidate dominance info.
4605
4606 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4607
4608 * read-md.h (md_reader::record_potential_iterator_use): Add a
4609 file_location parameter.
4610 * read-rtl.c (attribute_use::loc): New field.
4611 (map_attr_string): Take a file_location parameter. Report cases
4612 in which attributes map to multiple distinct values.
4613 (apply_attribute_uses): Update call accordingly.
4614 (md_reader::handle_overloaded_name): Likewise.
4615 (md_reader::apply_iterator_to_string): Likewise. Skip empty
4616 nonnull strings.
4617 (record_attribute_use): Take a file_location parameter.
4618 Initialize attribute_use::loc.
4619 (md_reader::record_potential_iterator_use): Take a file_location
4620 parameter. Update call to record_attribute_use.
4621 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
4622 (rtx_reader::read_rtx_code): Likewise.
4623 (rtx_reader::read_rtx_operand): Likewise. Record a location
4624 for implicitly-expanded empty strings.
4625
4626 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4627
4628 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
4629 Use file_location instead of separate fields.
4630 (md_reader::set_md_ptr_loc): Take a file_location instead of a
4631 separate filename and line number.
4632 * read-md.c (ptr_loc): As above.
4633 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
4634 (md_reader::fprint_md_ptr_loc): Likewise.
4635 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
4636 instead of a separate filename and line number.
4637 (md_reader::read_string): Update call accordingly.
4638
4639 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4640
4641 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4642 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
4643 leaving the choice between SFDF and P implicit.
4644 (*mov<mode>_update2): Likewise.
4645 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
4646 rather than leaving the choice betweem IBM128 and GPR implicit.
4647 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
4648 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
4649 QHSI implicit.
4650 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
4651 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
4652 * config/rs6000/vsx.md
4653 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
4654 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
4655 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
4656 and VSX_EXTRACT_I implicit.
4657
4658 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4659
4660 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
4661 Explicitly use <MOVEP1:MODE> for the mode attribute.
4662
4663 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
4664
4665 PR bootstrap/91176
4666 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
4667
4668 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
4669
4670 PR target/91050
4671 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
4672 .machine directive.
4673
4674 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
4675
4676 * config/i386/i386.md (@test<mode>_ccno_1):
4677 Rename from test<mode>_ccno_1.
4678 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
4679 (*testqi_1_maybe_si): Remove modrm attribute.
4680 (*test<mode>_1): Ditto.
4681 * config/i386/i386-expand.c (ix86_split_idivmod): Use
4682 gen_test_ccno_1 and gen_extend_insn.
4683
4684 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
4685
4686 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
4687 to 0.
4688
4689 2019-07-15 Richard Biener <rguenther@suse.de>
4690
4691 PR middle-end/91162
4692 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
4693 node make sure to replace all uses with something valid.
4694
4695 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
4696
4697 PR tree-optimization/88497
4698 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
4699 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
4700 function undistribute_bitref_for_vector.
4701 (undistribute_bitref_for_vector): New function.
4702 (cleanup_vinfo_map): Likewise.
4703 (sort_by_mach_mode): Likewise.
4704
4705 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
4706
4707 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
4708 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
4709 and testdi_ccno_1 using SWI48 mode attribute.
4710 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
4711 x86_64_szext_general_operand.
4712 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
4713 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
4714 instead of genera_operand mode attribute.
4715
4716 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
4717
4718 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
4719 fopen and fclose to their respective types.
4720 (DotFn.invoke): Ditto.
4721
4722 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
4723
4724 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
4725 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
4726 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
4727 (array_index_predicate): Remove.
4728 (analyze_function_body): Account cost for variable ofsetted array
4729 indexing.
4730 (estimate_node_size_and_time): Do not compute array index hint.
4731 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
4732 (inline_read_section): Do not read array index hint.
4733 (ipa_fn_summary_write): Do not write array index hint.
4734 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
4735 * ipa-cp.c (hint_time_bonus): Remove.
4736 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
4737 (ipa_fnsummary): Remove array_index.
4738 * ipa-inline.c (want_inline_small_function_p): Do not use
4739 array_index.
4740 (edge_badness): Likewise.
4741 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
4742
4743 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
4744
4745 PR target/91148
4746 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
4747 superfluous "builtin function" phrasing.
4748
4749 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
4750
4751 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
4752 Break out from ...
4753 (aliasing_component_refs_walk): Break out from ...
4754 (aliasing_component_refs_p): ... here.
4755
4756 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
4757
4758 PR target/91148
4759 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
4760 "builtin function" phrasing.
4761
4762 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4763
4764 PR target/90723
4765 * recog.h (temporary_volatile_ok): New class.
4766 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
4767 volatile_ok temporarily to true using temporary_volatile_ok.
4768 * expr.c (emit_block_move_via_cpymem): Likewise.
4769 * optabs.c (maybe_legitimize_operand): Likewise.
4770
4771 2019-07-13 Jakub Jelinek <jakub@redhat.com>
4772
4773 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
4774 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
4775 uses inside of order(concurrent) constructs.
4776 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
4777 OMP_CLAUSE_ORDER is seen.
4778 * omp-low.c (struct omp_context): Add order_concurrent member.
4779 (scan_sharing_clauses): Set ctx->order_concurrent if
4780 OMP_CLAUSE_ORDER is seen.
4781 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
4782 of simd order(concurrent). Diagnose constructs not allowed inside of
4783 for order(concurrent).
4784 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
4785 complaining about static double setjmp (double); or class static
4786 methods or non-global namespace setjmps.
4787 (omp_runtime_api_call): New function.
4788 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
4789 order(concurrent) loops.
4790
4791 2019-07-12 Martin Sebor <msebor@redhat.com>
4792
4793 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
4794 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
4795 * tree-vrp.c (vrp_prop::check_mem_ref): Use
4796 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4797
4798 2019-07-12 Jan Hubicka <jh@suse.cz>
4799
4800 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
4801 (indirect_refs_may_alias_p): ... here.
4802 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
4803 mem refs in the access paths.
4804
4805 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
4806
4807 PR tree-optimization/89430
4808 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
4809 store elimination for local variable without address escape.
4810
4811 2019-07-12 Jeff Law <law@redhat.com>
4812
4813 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
4814 for the ".far" section.
4815
4816 2019-07-12 Richard Biener <rguenther@suse.de>
4817
4818 PR tree-optimization/91145
4819 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
4820 chain check.
4821
4822 2019-07-12 Alexandre Oliva <oliva@adacore.com>
4823
4824 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
4825 rather than this_state as the lowering context for the ELSE
4826 seq in a GIMPLE_EH_ELSE.
4827
4828 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4829
4830 * vector-builder.h (vector_builder::elt): Allow already-supplied
4831 elements to be read back before building is complete.
4832
4833 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4834
4835 PR rtl-optimization/91136
4836 * df-core.c (ACCESSING REFS): Fix typos in comment.
4837 * resource.c (mark_target_live_reg): Add artificial defs that occur at
4838 the beginning of the block to the initial set of live registers.
4839
4840 2019-07-12 Richard Biener <rguenther@suse.de>
4841
4842 * fold-const.h (get_array_ctor_element_at_index): Adjust.
4843 * fold-const.c (get_array_ctor_element_at_index): Add
4844 ctor_idx output parameter informing the caller where in
4845 the constructor the element was (not) found. Add early exit
4846 for when the ctor is sorted.
4847 * gimple-fold.c (fold_array_ctor_reference): Support constant
4848 folding across multiple array elements.
4849
4850 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4851
4852 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
4853 doesn't have location, set the current location to the function's end.
4854
4855 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4856
4857 * config/aarch64/aarch64.md (*compare_condjump<mode>)
4858 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
4859 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
4860 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
4861 * config/aarch64/aarch64-simd.md
4862 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
4863 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
4864 * config/aarch64/aarch64-sve.md
4865 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
4866 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
4867
4868 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4869
4870 * doc/md.texi: Document that @ patterns can have different
4871 numbers of operands.
4872 * genemit.c (handle_overloaded_gen): Handle this case.
4873 * genopinit.c (handle_overloaded_gen): Likewise.
4874 * gensupport.c (replace_operands_with_dups): Iterate over
4875 the new rtx's format rather than the old one's.
4876
4877 2019-07-12 Jakub Jelinek <jakub@redhat.com>
4878
4879 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
4880 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4881 order clause entries.
4882 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
4883 * tree-pretty-print.c (dump_omp_clause): Likewise.
4884 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4885 Likewise.
4886 * omp-low.c (scan_sharing_clauses): Likewise.
4887 * tree-nested.c (convert_nonlocal_omp_clauses,
4888 convert_local_omp_clauses): Likewise.
4889
4890 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
4891
4892 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
4893 fallthrough target of current basic block isn't the placed
4894 right next.
4895
4896 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
4897
4898 PR target/90980
4899 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
4900 (_mm512_storeu_epi64): Likewise.
4901 (_mm512_loadu_epi32): Likewise.
4902 (_mm512_storeu_epi32): Likewise.
4903 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
4904 (_mm_storeu_epi64): Likewise.
4905 (_mm256_storeu_epi32): Likewise.
4906 (_mm_storeu_epi32): Likewise.
4907
4908 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4909
4910 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
4911
4912 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4913
4914 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
4915 Handle Modula-2.
4916
4917 2019-07-11 Jakub Jelinek <jakub@redhat.com>
4918
4919 PR target/91124
4920 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
4921 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4922 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
4923 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
4924 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
4925 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
4926 define_insns.
4927 (ufix_truncv2dfv2si2<mask_name>): Change into ...
4928 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
4929 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
4930 define_insns.
4931 (sse2_cvttpd2dq<mask_name>): Change into ...
4932 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
4933 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
4934 (*sse2_cvtpd2dq<mask_name>): Change into ...
4935 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4936 Add "C" constraint to const0_operand.
4937 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
4938 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
4939 changes.
4940
4941 PR target/91124
4942 * config/i386/i386-builtin-types.def
4943 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
4944 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
4945 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
4946 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
4947 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
4948 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
4949 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
4950 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
4951 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
4952 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
4953 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
4954 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
4955 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
4956 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
4957 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
4958 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
4959 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
4960 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
4961 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
4962 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
4963 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
4964 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
4965 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
4966 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
4967 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
4968 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
4969 __builtin_ia32_vpdpbusd_v4si_maskz,
4970 __builtin_ia32_vpdpbusds_v16si_mask,
4971 __builtin_ia32_vpdpbusds_v16si_maskz,
4972 __builtin_ia32_vpdpbusds_v8si_mask,
4973 __builtin_ia32_vpdpbusds_v8si_maskz,
4974 __builtin_ia32_vpdpbusds_v4si_mask,
4975 __builtin_ia32_vpdpbusds_v4si_maskz,
4976 __builtin_ia32_vpdpwssd_v16si_mask,
4977 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
4978 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
4979 __builtin_ia32_vpdpwssd_v4si_maskz,
4980 __builtin_ia32_vpdpwssds_v16si_mask,
4981 __builtin_ia32_vpdpwssds_v16si_maskz,
4982 __builtin_ia32_vpdpwssds_v8si_mask,
4983 __builtin_ia32_vpdpwssds_v8si_maskz,
4984 __builtin_ia32_vpdpwssds_v4si_mask,
4985 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
4986 suffixed types rather than *_INT.
4987 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
4988 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
4989 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
4990 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
4991 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
4992 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
4993
4994 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
4995
4996 * tree-vrp.c (intersect_ranges): If we know the intersection is
4997 empty, there is no need to conservatively add anything else to
4998 the set.
4999
5000 2019-07-11 Richard Biener <rguenther@suse.de>
5001
5002 PR middle-end/91131
5003 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
5004 when the object is volatile and we have not cleared it even though
5005 there are no nonzero elements.
5006
5007 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
5008
5009 * config/rs6000/predicates.md (cint34_operand): Update
5010 SIGNED_34BIT_OFFSET_P call.
5011 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
5012 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
5013 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
5014 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
5015 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
5016 argument.
5017 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
5018 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
5019 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
5020 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
5021 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
5022
5023 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
5024
5025 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
5026 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
5027 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
5028 (DEF_MIN_OSX_VERSION): New.
5029
5030 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5031
5032 * fold-const.c (fold_relational_const): Fix folding of
5033 vector-to-scalar NE_EXPRs.
5034 (test_vector_folding): Add more tests.
5035
5036 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5037
5038 PR target/91060
5039 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
5040 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
5041 (vec_setv2di_internal): Reexpress as...
5042 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
5043 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
5044 rather than gen_neon_vset_lane<mode>.
5045
5046 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
5047
5048 PR target/91102
5049 * lra-constraints.c (process_alt_operands): Don't match user
5050 defined regs only if they are early clobbers.
5051
5052 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
5053
5054 * wide-int.h (wi::lshift): Reject negative values for the fast path.
5055
5056 2019-07-10 Richard Biener <rguenther@suse.de>
5057
5058 PR tree-optimization/91126
5059 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
5060 native encoding offset for BYTES_BIG_ENDIAN.
5061 (vn_reference_lookup_3): Likewise.
5062
5063 2019-07-10 Richard Biener <rguenther@suse.de>
5064
5065 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
5066 LHS whenever possible.
5067
5068 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
5069
5070 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
5071 from ...; work also on duplicated types.
5072 (nonoverlapping_component_refs_since_match): ... here
5073 (ncr_type_uid): Break out from ...
5074 (ncr_compar): ... here; look for TYPE_UID of canonical type if
5075 available.
5076 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
5077 the types and nonoverlapping_component_refs_p_1 to disambiguate.
5078
5079 2019-07-09 Martin Sebor <msebor@redhat.com>
5080
5081 PR tree-optimization/90989
5082 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
5083 optimization to just single character stores.
5084
5085 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
5086
5087 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
5088 Swap operands only once.
5089
5090 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
5091
5092 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
5093 for both call instructions.
5094
5095 2019-07-09 John Darrington <john@darrington.wattle.id.au>
5096
5097 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
5098 rather than GET_MODE_BITSIZE to better handle partial integer modes.
5099
5100 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
5101
5102 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
5103 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
5104 function from rs6000-logue.c back to rs6000.c.
5105 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
5106
5107 2019-07-09 Martin Sebor <msebor@redhat.com>
5108
5109 PR c++/61339
5110 * auto-profile.c: Change class-key of PODs to struct and others
5111 to class.
5112 * basic-block.h: Same.
5113 * bitmap.c (bitmap_alloc): Same.
5114 * bitmap.h: Same.
5115 * builtins.c (expand_builtin_prefetch): Same.
5116 (expand_builtin_interclass_mathfn): Same.
5117 (expand_builtin_strlen): Same.
5118 (expand_builtin_mempcpy_args): Same.
5119 (expand_cmpstr): Same.
5120 (expand_builtin___clear_cache): Same.
5121 (expand_ifn_atomic_bit_test_and): Same.
5122 (expand_builtin_thread_pointer): Same.
5123 (expand_builtin_set_thread_pointer): Same.
5124 * caller-save.c (setup_save_areas): Same.
5125 (replace_reg_with_saved_mem): Same.
5126 (insert_restore): Same.
5127 (insert_save): Same.
5128 (add_used_regs): Same.
5129 * cfg.c (get_bb_copy): Same.
5130 (set_loop_copy): Same.
5131 * cfg.h: Same.
5132 * cfganal.h: Same.
5133 * cfgexpand.c (alloc_stack_frame_space): Same.
5134 (add_stack_var): Same.
5135 (add_stack_var_conflict): Same.
5136 (add_scope_conflicts_1): Same.
5137 (update_alias_info_with_stack_vars): Same.
5138 (expand_used_vars): Same.
5139 * cfghooks.c (redirect_edge_and_branch_force): Same.
5140 (delete_basic_block): Same.
5141 (split_edge): Same.
5142 (make_forwarder_block): Same.
5143 (force_nonfallthru): Same.
5144 (duplicate_block): Same.
5145 (lv_flush_pending_stmts): Same.
5146 * cfghooks.h: Same.
5147 * cfgloop.c (flow_loops_cfg_dump): Same.
5148 (flow_loop_nested_p): Same.
5149 (superloop_at_depth): Same.
5150 (get_loop_latch_edges): Same.
5151 (flow_loop_dump): Same.
5152 (flow_loops_dump): Same.
5153 (flow_loops_free): Same.
5154 (flow_loop_nodes_find): Same.
5155 (establish_preds): Same.
5156 (flow_loop_tree_node_add): Same.
5157 (flow_loop_tree_node_remove): Same.
5158 (flow_loops_find): Same.
5159 (find_subloop_latch_edge_by_profile): Same.
5160 (find_subloop_latch_edge_by_ivs): Same.
5161 (mfb_redirect_edges_in_set): Same.
5162 (form_subloop): Same.
5163 (merge_latch_edges): Same.
5164 (disambiguate_multiple_latches): Same.
5165 (disambiguate_loops_with_multiple_latches): Same.
5166 (flow_bb_inside_loop_p): Same.
5167 (glb_enum_p): Same.
5168 (get_loop_body_with_size): Same.
5169 (get_loop_body): Same.
5170 (fill_sons_in_loop): Same.
5171 (get_loop_body_in_dom_order): Same.
5172 (get_loop_body_in_custom_order): Same.
5173 (release_recorded_exits): Same.
5174 (get_loop_exit_edges): Same.
5175 (num_loop_branches): Same.
5176 (remove_bb_from_loops): Same.
5177 (find_common_loop): Same.
5178 (delete_loop): Same.
5179 (cancel_loop): Same.
5180 (verify_loop_structure): Same.
5181 (loop_preheader_edge): Same.
5182 (loop_exit_edge_p): Same.
5183 (single_exit): Same.
5184 (loop_exits_to_bb_p): Same.
5185 (loop_exits_from_bb_p): Same.
5186 (get_loop_location): Same.
5187 (record_niter_bound): Same.
5188 (get_estimated_loop_iterations_int): Same.
5189 (max_stmt_executions_int): Same.
5190 (likely_max_stmt_executions_int): Same.
5191 (get_estimated_loop_iterations): Same.
5192 (get_max_loop_iterations): Same.
5193 (get_max_loop_iterations_int): Same.
5194 (get_likely_max_loop_iterations): Same.
5195 * cfgloop.h (simple_loop_desc): Same.
5196 (get_loop): Same.
5197 (loop_depth): Same.
5198 (loop_outer): Same.
5199 (loop_iterator::next): Same.
5200 (loop_outermost): Same.
5201 * cfgloopanal.c (mark_irreducible_loops): Same.
5202 (num_loop_insns): Same.
5203 (average_num_loop_insns): Same.
5204 (expected_loop_iterations_unbounded): Same.
5205 (expected_loop_iterations): Same.
5206 (mark_loop_exit_edges): Same.
5207 (single_likely_exit): Same.
5208 * cfgloopmanip.c (fix_bb_placement): Same.
5209 (fix_bb_placements): Same.
5210 (remove_path): Same.
5211 (place_new_loop): Same.
5212 (add_loop): Same.
5213 (scale_loop_frequencies): Same.
5214 (scale_loop_profile): Same.
5215 (create_empty_if_region_on_edge): Same.
5216 (create_empty_loop_on_edge): Same.
5217 (loopify): Same.
5218 (unloop): Same.
5219 (fix_loop_placements): Same.
5220 (copy_loop_info): Same.
5221 (duplicate_loop): Same.
5222 (duplicate_subloops): Same.
5223 (loop_redirect_edge): Same.
5224 (can_duplicate_loop_p): Same.
5225 (duplicate_loop_to_header_edge): Same.
5226 (mfb_keep_just): Same.
5227 (has_preds_from_loop): Same.
5228 (create_preheader): Same.
5229 (create_preheaders): Same.
5230 (lv_adjust_loop_entry_edge): Same.
5231 (loop_version): Same.
5232 * cfgloopmanip.h: Same.
5233 * cgraph.h: Same.
5234 * cgraphbuild.c: Same.
5235 * combine.c (make_extraction): Same.
5236 * config/i386/i386-features.c: Same.
5237 * config/i386/i386-features.h: Same.
5238 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
5239 (ix86_emit_outlined_ms2sysv_restore): Same.
5240 (ix86_noce_conversion_profitable_p): Same.
5241 (ix86_init_cost): Same.
5242 (ix86_simd_clone_usable): Same.
5243 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
5244 Wstruct-not-pod.
5245 * coretypes.h: Same.
5246 * data-streamer-in.c (string_for_index): Change class-key of PODs
5247 to struct and others to class.
5248 (streamer_read_indexed_string): Same.
5249 (streamer_read_string): Same.
5250 (bp_unpack_indexed_string): Same.
5251 (bp_unpack_string): Same.
5252 (streamer_read_uhwi): Same.
5253 (streamer_read_hwi): Same.
5254 (streamer_read_gcov_count): Same.
5255 (streamer_read_wide_int): Same.
5256 * data-streamer.h (streamer_write_bitpack): Same.
5257 (bp_unpack_value): Same.
5258 (streamer_write_char_stream): Same.
5259 (streamer_write_hwi_in_range): Same.
5260 (streamer_write_record_start): Same.
5261 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
5262 (add_cross_iteration_register_deps): Same.
5263 (build_intra_loop_deps): Same.
5264 * df-core.c (df_analyze): Same.
5265 (loop_post_order_compute): Same.
5266 (loop_inverted_post_order_compute): Same.
5267 * df-problems.c (df_rd_alloc): Same.
5268 (df_rd_simulate_one_insn): Same.
5269 (df_rd_local_compute): Same.
5270 (df_rd_init_solution): Same.
5271 (df_rd_confluence_n): Same.
5272 (df_rd_transfer_function): Same.
5273 (df_rd_free): Same.
5274 (df_rd_dump_defs_set): Same.
5275 (df_rd_top_dump): Same.
5276 (df_lr_alloc): Same.
5277 (df_lr_reset): Same.
5278 (df_lr_local_compute): Same.
5279 (df_lr_init): Same.
5280 (df_lr_confluence_n): Same.
5281 (df_lr_free): Same.
5282 (df_lr_top_dump): Same.
5283 (df_lr_verify_transfer_functions): Same.
5284 (df_live_alloc): Same.
5285 (df_live_reset): Same.
5286 (df_live_init): Same.
5287 (df_live_confluence_n): Same.
5288 (df_live_finalize): Same.
5289 (df_live_free): Same.
5290 (df_live_top_dump): Same.
5291 (df_live_verify_transfer_functions): Same.
5292 (df_mir_alloc): Same.
5293 (df_mir_reset): Same.
5294 (df_mir_init): Same.
5295 (df_mir_confluence_n): Same.
5296 (df_mir_free): Same.
5297 (df_mir_top_dump): Same.
5298 (df_word_lr_alloc): Same.
5299 (df_word_lr_reset): Same.
5300 (df_word_lr_init): Same.
5301 (df_word_lr_confluence_n): Same.
5302 (df_word_lr_free): Same.
5303 (df_word_lr_top_dump): Same.
5304 (df_md_alloc): Same.
5305 (df_md_simulate_one_insn): Same.
5306 (df_md_reset): Same.
5307 (df_md_init): Same.
5308 (df_md_free): Same.
5309 (df_md_top_dump): Same.
5310 * df-scan.c (df_insn_delete): Same.
5311 (df_insn_rescan): Same.
5312 (df_notes_rescan): Same.
5313 (df_sort_and_compress_mws): Same.
5314 (df_install_mws): Same.
5315 (df_refs_add_to_chains): Same.
5316 (df_ref_create_structure): Same.
5317 (df_ref_record): Same.
5318 (df_def_record_1): Same.
5319 (df_find_hard_reg_defs): Same.
5320 (df_uses_record): Same.
5321 (df_get_conditional_uses): Same.
5322 (df_get_call_refs): Same.
5323 (df_recompute_luids): Same.
5324 (df_get_entry_block_def_set): Same.
5325 (df_entry_block_defs_collect): Same.
5326 (df_get_exit_block_use_set): Same.
5327 (df_exit_block_uses_collect): Same.
5328 (df_mws_verify): Same.
5329 (df_bb_verify): Same.
5330 * df.h (df_scan_get_bb_info): Same.
5331 * doc/tm.texi: Same.
5332 * dse.c (record_store): Same.
5333 * dumpfile.h: Same.
5334 * emit-rtl.c (const_fixed_hasher::equal): Same.
5335 (set_mem_attributes_minus_bitpos): Same.
5336 (change_address): Same.
5337 (adjust_address_1): Same.
5338 (offset_address): Same.
5339 * emit-rtl.h: Same.
5340 * except.c (dw2_build_landing_pads): Same.
5341 (sjlj_emit_dispatch_table): Same.
5342 * explow.c (allocate_dynamic_stack_space): Same.
5343 (emit_stack_probe): Same.
5344 (probe_stack_range): Same.
5345 * expmed.c (store_bit_field_using_insv): Same.
5346 (store_bit_field_1): Same.
5347 (store_integral_bit_field): Same.
5348 (extract_bit_field_using_extv): Same.
5349 (extract_bit_field_1): Same.
5350 (emit_cstore): Same.
5351 * expr.c (emit_block_move_via_cpymem): Same.
5352 (expand_cmpstrn_or_cmpmem): Same.
5353 (set_storage_via_setmem): Same.
5354 (emit_single_push_insn_1): Same.
5355 (expand_assignment): Same.
5356 (store_constructor): Same.
5357 (expand_expr_real_2): Same.
5358 (expand_expr_real_1): Same.
5359 (try_casesi): Same.
5360 * flags.h: Same.
5361 * function.c (try_fit_stack_local): Same.
5362 (assign_stack_local_1): Same.
5363 (assign_stack_local): Same.
5364 (cut_slot_from_list): Same.
5365 (insert_slot_to_list): Same.
5366 (max_slot_level): Same.
5367 (move_slot_to_level): Same.
5368 (temp_address_hasher::equal): Same.
5369 (remove_unused_temp_slot_addresses): Same.
5370 (assign_temp): Same.
5371 (combine_temp_slots): Same.
5372 (update_temp_slot_address): Same.
5373 (preserve_temp_slots): Same.
5374 * function.h: Same.
5375 * fwprop.c: Same.
5376 * gcc-rich-location.h: Same.
5377 * gcov.c: Same.
5378 * genattrtab.c (check_attr_test): Same.
5379 (check_attr_value): Same.
5380 (convert_set_attr_alternative): Same.
5381 (convert_set_attr): Same.
5382 (check_defs): Same.
5383 (copy_boolean): Same.
5384 (get_attr_value): Same.
5385 (expand_delays): Same.
5386 (make_length_attrs): Same.
5387 (min_fn): Same.
5388 (make_alternative_compare): Same.
5389 (simplify_test_exp): Same.
5390 (tests_attr_p): Same.
5391 (get_attr_order): Same.
5392 (clear_struct_flag): Same.
5393 (gen_attr): Same.
5394 (compares_alternatives_p): Same.
5395 (gen_insn): Same.
5396 (gen_delay): Same.
5397 (find_attrs_to_cache): Same.
5398 (write_test_expr): Same.
5399 (walk_attr_value): Same.
5400 (write_attr_get): Same.
5401 (eliminate_known_true): Same.
5402 (write_insn_cases): Same.
5403 (write_attr_case): Same.
5404 (write_attr_valueq): Same.
5405 (write_attr_value): Same.
5406 (write_dummy_eligible_delay): Same.
5407 (next_comma_elt): Same.
5408 (find_attr): Same.
5409 (make_internal_attr): Same.
5410 (copy_rtx_unchanging): Same.
5411 (gen_insn_reserv): Same.
5412 (check_tune_attr): Same.
5413 (make_automaton_attrs): Same.
5414 (handle_arg): Same.
5415 * genextract.c (gen_insn): Same.
5416 (VEC_char_to_string): Same.
5417 * genmatch.c (print_operand): Same.
5418 (lower): Same.
5419 (parser::parse_operation): Same.
5420 (parser::parse_capture): Same.
5421 (parser::parse_c_expr): Same.
5422 (parser::parse_simplify): Same.
5423 (main): Same.
5424 * genoutput.c (output_operand_data): Same.
5425 (output_get_insn_name): Same.
5426 (compare_operands): Same.
5427 (place_operands): Same.
5428 (process_template): Same.
5429 (validate_insn_alternatives): Same.
5430 (validate_insn_operands): Same.
5431 (gen_expand): Same.
5432 (note_constraint): Same.
5433 * genpreds.c (write_one_predicate_function): Same.
5434 (add_constraint): Same.
5435 (process_define_register_constraint): Same.
5436 (write_lookup_constraint_1): Same.
5437 (write_lookup_constraint_array): Same.
5438 (write_insn_constraint_len): Same.
5439 (write_reg_class_for_constraint_1): Same.
5440 (write_constraint_satisfied_p_array): Same.
5441 * genrecog.c (optimize_subroutine_group): Same.
5442 * gensupport.c (process_define_predicate): Same.
5443 (queue_pattern): Same.
5444 (remove_from_queue): Same.
5445 (process_rtx): Same.
5446 (is_predicable): Same.
5447 (change_subst_attribute): Same.
5448 (subst_pattern_match): Same.
5449 (alter_constraints): Same.
5450 (alter_attrs_for_insn): Same.
5451 (shift_output_template): Same.
5452 (alter_output_for_subst_insn): Same.
5453 (process_one_cond_exec): Same.
5454 (subst_dup): Same.
5455 (process_define_cond_exec): Same.
5456 (mnemonic_htab_callback): Same.
5457 (gen_mnemonic_attr): Same.
5458 (read_md_rtx): Same.
5459 * ggc-page.c: Same.
5460 * gimple-loop-interchange.cc (dump_reduction): Same.
5461 (dump_induction): Same.
5462 (loop_cand::~loop_cand): Same.
5463 (free_data_refs_with_aux): Same.
5464 (tree_loop_interchange::interchange_loops): Same.
5465 (tree_loop_interchange::map_inductions_to_loop): Same.
5466 (tree_loop_interchange::move_code_to_inner_loop): Same.
5467 (compute_access_stride): Same.
5468 (compute_access_strides): Same.
5469 (proper_loop_form_for_interchange): Same.
5470 (tree_loop_interchange_compute_ddrs): Same.
5471 (prune_datarefs_not_in_loop): Same.
5472 (prepare_data_references): Same.
5473 (pass_linterchange::execute): Same.
5474 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5475 (unroll_jam_possible_p): Same.
5476 (fuse_loops): Same.
5477 (adjust_unroll_factor): Same.
5478 (tree_loop_unroll_and_jam): Same.
5479 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5480 (loop_versioning::expensive_stmt_p): Same.
5481 (loop_versioning::version_for_unity): Same.
5482 (loop_versioning::dump_inner_likelihood): Same.
5483 (loop_versioning::find_per_loop_multiplication): Same.
5484 (loop_versioning::analyze_term_using_scevs): Same.
5485 (loop_versioning::record_address_fragment): Same.
5486 (loop_versioning::analyze_expr): Same.
5487 (loop_versioning::analyze_blocks): Same.
5488 (loop_versioning::prune_conditions): Same.
5489 (loop_versioning::merge_loop_info): Same.
5490 (loop_versioning::add_loop_to_queue): Same.
5491 (loop_versioning::decide_whether_loop_is_versionable): Same.
5492 (loop_versioning::make_versioning_decisions): Same.
5493 (loop_versioning::implement_versioning_decisions): Same.
5494 * gimple-ssa-evrp-analyze.c
5495 (evrp_range_analyzer::record_ranges_from_phis): Same.
5496 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5497 (count_multiple_uses): Same.
5498 (split_group): Same.
5499 (imm_store_chain_info::output_merged_store): Same.
5500 (pass_store_merging::process_store): Same.
5501 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5502 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5503 (is_max): Same.
5504 (alloca_call_type): Same.
5505 (pass_walloca::execute): Same.
5506 * gimple-streamer-in.c (input_phi): Same.
5507 (input_gimple_stmt): Same.
5508 * gimple-streamer.h: Same.
5509 * godump.c (go_force_record_alignment): Same.
5510 (go_format_type): Same.
5511 (go_output_type): Same.
5512 (go_output_fndecl): Same.
5513 (go_output_typedef): Same.
5514 (keyword_hash_init): Same.
5515 (find_dummy_types): Same.
5516 * graph.c (draw_cfg_nodes_no_loops): Same.
5517 (draw_cfg_nodes_for_loop): Same.
5518 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5519 * hsa-brig.c: Same.
5520 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5521 * hsa-dump.c (dump_hsa_cfun): Same.
5522 * hsa-gen.c (gen_function_def_parameters): Same.
5523 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5524 * input.c (dump_line_table_statistics): Same.
5525 (test_lexer): Same.
5526 * input.h: Same.
5527 * internal-fn.c (get_multi_vector_move): Same.
5528 (expand_load_lanes_optab_fn): Same.
5529 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5530 (expand_GOMP_SIMT_EXIT): Same.
5531 (expand_GOMP_SIMT_LAST_LANE): Same.
5532 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5533 (expand_GOMP_SIMT_VOTE_ANY): Same.
5534 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5535 (expand_GOMP_SIMT_XCHG_IDX): Same.
5536 (expand_addsub_overflow): Same.
5537 (expand_neg_overflow): Same.
5538 (expand_mul_overflow): Same.
5539 (expand_call_mem_ref): Same.
5540 (expand_mask_load_optab_fn): Same.
5541 (expand_scatter_store_optab_fn): Same.
5542 (expand_gather_load_optab_fn): Same.
5543 * ipa-cp.c (ipa_get_parm_lattices): Same.
5544 (print_all_lattices): Same.
5545 (ignore_edge_p): Same.
5546 (build_toporder_info): Same.
5547 (free_toporder_info): Same.
5548 (push_node_to_stack): Same.
5549 (ipcp_lattice<valtype>::set_contains_variable): Same.
5550 (set_agg_lats_to_bottom): Same.
5551 (ipcp_bits_lattice::meet_with): Same.
5552 (set_single_call_flag): Same.
5553 (initialize_node_lattices): Same.
5554 (ipa_get_jf_ancestor_result): Same.
5555 (ipcp_verify_propagated_values): Same.
5556 (propagate_scalar_across_jump_function): Same.
5557 (propagate_context_across_jump_function): Same.
5558 (propagate_bits_across_jump_function): Same.
5559 (ipa_vr_operation_and_type_effects): Same.
5560 (propagate_vr_across_jump_function): Same.
5561 (set_check_aggs_by_ref): Same.
5562 (set_chain_of_aglats_contains_variable): Same.
5563 (merge_aggregate_lattices): Same.
5564 (agg_pass_through_permissible_p): Same.
5565 (propagate_aggs_across_jump_function): Same.
5566 (call_passes_through_thunk_p): Same.
5567 (propagate_constants_across_call): Same.
5568 (devirtualization_time_bonus): Same.
5569 (good_cloning_opportunity_p): Same.
5570 (context_independent_aggregate_values): Same.
5571 (gather_context_independent_values): Same.
5572 (perform_estimation_of_a_value): Same.
5573 (estimate_local_effects): Same.
5574 (value_topo_info<valtype>::add_val): Same.
5575 (add_all_node_vals_to_toposort): Same.
5576 (value_topo_info<valtype>::propagate_effects): Same.
5577 (ipcp_propagate_stage): Same.
5578 (ipcp_discover_new_direct_edges): Same.
5579 (same_node_or_its_all_contexts_clone_p): Same.
5580 (cgraph_edge_brings_value_p): Same.
5581 (gather_edges_for_value): Same.
5582 (create_specialized_node): Same.
5583 (find_more_scalar_values_for_callers_subset): Same.
5584 (find_more_contexts_for_caller_subset): Same.
5585 (copy_plats_to_inter): Same.
5586 (intersect_aggregates_with_edge): Same.
5587 (find_aggregate_values_for_callers_subset): Same.
5588 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5589 (decide_about_value): Same.
5590 (decide_whether_version_node): Same.
5591 (spread_undeadness): Same.
5592 (identify_dead_nodes): Same.
5593 (ipcp_store_vr_results): Same.
5594 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5595 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5596 (redirect_to_unreachable): Same.
5597 (edge_set_predicate): Same.
5598 (evaluate_conditions_for_known_args): Same.
5599 (evaluate_properties_for_edge): Same.
5600 (ipa_fn_summary_t::duplicate): Same.
5601 (ipa_call_summary_t::duplicate): Same.
5602 (dump_ipa_call_summary): Same.
5603 (ipa_dump_fn_summary): Same.
5604 (eliminated_by_inlining_prob): Same.
5605 (set_cond_stmt_execution_predicate): Same.
5606 (set_switch_stmt_execution_predicate): Same.
5607 (compute_bb_predicates): Same.
5608 (will_be_nonconstant_expr_predicate): Same.
5609 (phi_result_unknown_predicate): Same.
5610 (analyze_function_body): Same.
5611 (compute_fn_summary): Same.
5612 (estimate_edge_devirt_benefit): Same.
5613 (estimate_edge_size_and_time): Same.
5614 (estimate_calls_size_and_time): Same.
5615 (estimate_node_size_and_time): Same.
5616 (remap_edge_change_prob): Same.
5617 (remap_edge_summaries): Same.
5618 (ipa_merge_fn_summary_after_inlining): Same.
5619 (ipa_fn_summary_generate): Same.
5620 (inline_read_section): Same.
5621 (ipa_fn_summary_read): Same.
5622 (ipa_fn_summary_write): Same.
5623 * ipa-fnsummary.h: Same.
5624 * ipa-hsa.c (ipa_hsa_read_section): Same.
5625 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
5626 * ipa-icf.c (sem_function::param_used_p): Same.
5627 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
5628 * ipa-inline.c (edge_badness): Same.
5629 (inline_small_functions): Same.
5630 * ipa-polymorphic-call.c
5631 (ipa_polymorphic_call_context::stream_out): Same.
5632 * ipa-predicate.c (predicate::remap_after_duplication): Same.
5633 (predicate::remap_after_inlining): Same.
5634 (predicate::stream_out): Same.
5635 * ipa-predicate.h: Same.
5636 * ipa-profile.c (ipa_profile_read_summary): Same.
5637 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
5638 (count_formal_params): Same.
5639 (ipa_dump_param): Same.
5640 (ipa_alloc_node_params): Same.
5641 (ipa_print_node_jump_functions_for_edge): Same.
5642 (ipa_print_node_jump_functions): Same.
5643 (ipa_load_from_parm_agg): Same.
5644 (get_ancestor_addr_info): Same.
5645 (ipa_compute_jump_functions_for_edge): Same.
5646 (ipa_analyze_virtual_call_uses): Same.
5647 (ipa_analyze_stmt_uses): Same.
5648 (ipa_analyze_params_uses_in_bb): Same.
5649 (update_jump_functions_after_inlining): Same.
5650 (try_decrement_rdesc_refcount): Same.
5651 (ipa_impossible_devirt_target): Same.
5652 (update_indirect_edges_after_inlining): Same.
5653 (combine_controlled_uses_counters): Same.
5654 (ipa_edge_args_sum_t::duplicate): Same.
5655 (ipa_write_jump_function): Same.
5656 (ipa_write_indirect_edge_info): Same.
5657 (ipa_write_node_info): Same.
5658 (ipa_read_edge_info): Same.
5659 (ipa_prop_read_section): Same.
5660 (read_replacements_section): Same.
5661 * ipa-prop.h (ipa_get_param_count): Same.
5662 (ipa_get_param): Same.
5663 (ipa_get_type): Same.
5664 (ipa_get_param_move_cost): Same.
5665 (ipa_set_param_used): Same.
5666 (ipa_get_controlled_uses): Same.
5667 (ipa_set_controlled_uses): Same.
5668 (ipa_get_cs_argument_count): Same.
5669 * ipa-pure-const.c (analyze_function): Same.
5670 (pure_const_read_summary): Same.
5671 * ipa-ref.h: Same.
5672 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
5673 * ipa-split.c (test_nonssa_use): Same.
5674 (dump_split_point): Same.
5675 (dominated_by_forbidden): Same.
5676 (split_part_set_ssa_name_p): Same.
5677 (find_split_points): Same.
5678 * ira-build.c (finish_loop_tree_nodes): Same.
5679 (low_pressure_loop_node_p): Same.
5680 * ira-color.c (ira_reuse_stack_slot): Same.
5681 * ira-int.h: Same.
5682 * ira.c (setup_reg_equiv): Same.
5683 (print_insn_chain): Same.
5684 (ira): Same.
5685 * loop-doloop.c (doloop_condition_get): Same.
5686 (add_test): Same.
5687 (record_reg_sets): Same.
5688 (doloop_optimize): Same.
5689 * loop-init.c (loop_optimizer_init): Same.
5690 (fix_loop_structure): Same.
5691 * loop-invariant.c (merge_identical_invariants): Same.
5692 (compute_always_reached): Same.
5693 (find_exits): Same.
5694 (may_assign_reg_p): Same.
5695 (find_invariants_bb): Same.
5696 (find_invariants_body): Same.
5697 (replace_uses): Same.
5698 (can_move_invariant_reg): Same.
5699 (free_inv_motion_data): Same.
5700 (move_single_loop_invariants): Same.
5701 (change_pressure): Same.
5702 (mark_ref_regs): Same.
5703 (calculate_loop_reg_pressure): Same.
5704 * loop-iv.c (biv_entry_hasher::equal): Same.
5705 (iv_extend_to_rtx_code): Same.
5706 (check_iv_ref_table_size): Same.
5707 (clear_iv_info): Same.
5708 (latch_dominating_def): Same.
5709 (iv_get_reaching_def): Same.
5710 (iv_constant): Same.
5711 (iv_subreg): Same.
5712 (iv_extend): Same.
5713 (iv_neg): Same.
5714 (iv_add): Same.
5715 (iv_mult): Same.
5716 (get_biv_step): Same.
5717 (record_iv): Same.
5718 (analyzed_for_bivness_p): Same.
5719 (record_biv): Same.
5720 (iv_analyze_biv): Same.
5721 (iv_analyze_expr): Same.
5722 (iv_analyze_def): Same.
5723 (iv_analyze_op): Same.
5724 (iv_analyze): Same.
5725 (iv_analyze_result): Same.
5726 (biv_p): Same.
5727 (eliminate_implied_conditions): Same.
5728 (simplify_using_initial_values): Same.
5729 (shorten_into_mode): Same.
5730 (canonicalize_iv_subregs): Same.
5731 (determine_max_iter): Same.
5732 (check_simple_exit): Same.
5733 (find_simple_exit): Same.
5734 (get_simple_loop_desc): Same.
5735 * loop-unroll.c (report_unroll): Same.
5736 (decide_unrolling): Same.
5737 (unroll_loops): Same.
5738 (loop_exit_at_end_p): Same.
5739 (decide_unroll_constant_iterations): Same.
5740 (unroll_loop_constant_iterations): Same.
5741 (compare_and_jump_seq): Same.
5742 (unroll_loop_runtime_iterations): Same.
5743 (decide_unroll_stupid): Same.
5744 (unroll_loop_stupid): Same.
5745 (referenced_in_one_insn_in_loop_p): Same.
5746 (reset_debug_uses_in_loop): Same.
5747 (analyze_iv_to_split_insn): Same.
5748 * lra-eliminations.c (lra_debug_elim_table): Same.
5749 (setup_can_eliminate): Same.
5750 (form_sum): Same.
5751 (lra_get_elimination_hard_regno): Same.
5752 (lra_eliminate_regs_1): Same.
5753 (eliminate_regs_in_insn): Same.
5754 (update_reg_eliminate): Same.
5755 (init_elimination): Same.
5756 (lra_eliminate): Same.
5757 * lra-int.h: Same.
5758 * lra-lives.c (initiate_live_solver): Same.
5759 * lra-remat.c (create_remat_bb_data): Same.
5760 * lra-spills.c (lra_spill): Same.
5761 * lra.c (lra_set_insn_recog_data): Same.
5762 (lra_set_used_insn_alternative_by_uid): Same.
5763 (init_reg_info): Same.
5764 (expand_reg_info): Same.
5765 * lto-cgraph.c (output_symtab): Same.
5766 (read_identifier): Same.
5767 (get_alias_symbol): Same.
5768 (input_node): Same.
5769 (input_varpool_node): Same.
5770 (input_ref): Same.
5771 (input_edge): Same.
5772 (input_cgraph_1): Same.
5773 (input_refs): Same.
5774 (input_symtab): Same.
5775 (input_offload_tables): Same.
5776 (output_cgraph_opt_summary): Same.
5777 (input_edge_opt_summary): Same.
5778 (input_cgraph_opt_section): Same.
5779 * lto-section-in.c (lto_free_raw_section_data): Same.
5780 (lto_create_simple_input_block): Same.
5781 (lto_free_function_in_decl_state_for_node): Same.
5782 * lto-streamer-in.c (lto_tag_check_set): Same.
5783 (lto_location_cache::revert_location_cache): Same.
5784 (lto_location_cache::input_location): Same.
5785 (lto_input_location): Same.
5786 (stream_input_location_now): Same.
5787 (lto_input_tree_ref): Same.
5788 (lto_input_eh_catch_list): Same.
5789 (input_eh_region): Same.
5790 (lto_init_eh): Same.
5791 (make_new_block): Same.
5792 (input_cfg): Same.
5793 (fixup_call_stmt_edges): Same.
5794 (input_struct_function_base): Same.
5795 (input_function): Same.
5796 (lto_read_body_or_constructor): Same.
5797 (lto_read_tree_1): Same.
5798 (lto_read_tree): Same.
5799 (lto_input_scc): Same.
5800 (lto_input_tree_1): Same.
5801 (lto_input_toplevel_asms): Same.
5802 (lto_input_mode_table): Same.
5803 (lto_reader_init): Same.
5804 (lto_data_in_create): Same.
5805 * lto-streamer-out.c (output_cfg): Same.
5806 * lto-streamer.h: Same.
5807 * modulo-sched.c (duplicate_insns_of_cycles): Same.
5808 (generate_prolog_epilog): Same.
5809 (mark_loop_unsched): Same.
5810 (dump_insn_location): Same.
5811 (loop_canon_p): Same.
5812 (sms_schedule): Same.
5813 * omp-expand.c (expand_omp_for_ordered_loops): Same.
5814 (expand_omp_for_generic): Same.
5815 (expand_omp_for_static_nochunk): Same.
5816 (expand_omp_for_static_chunk): Same.
5817 (expand_omp_simd): Same.
5818 (expand_omp_taskloop_for_inner): Same.
5819 (expand_oacc_for): Same.
5820 (expand_omp_atomic_pipeline): Same.
5821 (mark_loops_in_oacc_kernels_region): Same.
5822 * omp-offload.c (oacc_xform_loop): Same.
5823 * omp-simd-clone.c (simd_clone_adjust): Same.
5824 * optabs-query.c (get_traditional_extraction_insn): Same.
5825 * optabs.c (expand_vector_broadcast): Same.
5826 (expand_binop_directly): Same.
5827 (expand_twoval_unop): Same.
5828 (expand_twoval_binop): Same.
5829 (expand_unop_direct): Same.
5830 (emit_indirect_jump): Same.
5831 (emit_conditional_move): Same.
5832 (emit_conditional_neg_or_complement): Same.
5833 (emit_conditional_add): Same.
5834 (vector_compare_rtx): Same.
5835 (expand_vec_perm_1): Same.
5836 (expand_vec_perm_const): Same.
5837 (expand_vec_cond_expr): Same.
5838 (expand_vec_series_expr): Same.
5839 (maybe_emit_atomic_exchange): Same.
5840 (maybe_emit_sync_lock_test_and_set): Same.
5841 (expand_atomic_compare_and_swap): Same.
5842 (expand_atomic_load): Same.
5843 (expand_atomic_store): Same.
5844 (maybe_emit_op): Same.
5845 (valid_multiword_target_p): Same.
5846 (create_integer_operand): Same.
5847 (maybe_legitimize_operand_same_code): Same.
5848 (maybe_legitimize_operand): Same.
5849 (create_convert_operand_from_type): Same.
5850 (can_reuse_operands_p): Same.
5851 (maybe_legitimize_operands): Same.
5852 (maybe_gen_insn): Same.
5853 (maybe_expand_insn): Same.
5854 (maybe_expand_jump_insn): Same.
5855 (expand_insn): Same.
5856 * optabs.h (create_expand_operand): Same.
5857 (create_fixed_operand): Same.
5858 (create_output_operand): Same.
5859 (create_input_operand): Same.
5860 (create_convert_operand_to): Same.
5861 (create_convert_operand_from): Same.
5862 * optinfo.h: Same.
5863 * poly-int.h: Same.
5864 * predict.c (optimize_insn_for_speed_p): Same.
5865 (optimize_loop_for_size_p): Same.
5866 (optimize_loop_for_speed_p): Same.
5867 (optimize_loop_nest_for_speed_p): Same.
5868 (get_base_value): Same.
5869 (predicted_by_loop_heuristics_p): Same.
5870 (predict_extra_loop_exits): Same.
5871 (predict_loops): Same.
5872 (predict_paths_for_bb): Same.
5873 (predict_paths_leading_to): Same.
5874 (propagate_freq): Same.
5875 (pass_profile::execute): Same.
5876 * predict.h: Same.
5877 * profile-count.c (profile_count::differs_from_p): Same.
5878 (profile_probability::differs_lot_from_p): Same.
5879 * profile-count.h: Same.
5880 * profile.c (branch_prob): Same.
5881 * regrename.c (free_chain_data): Same.
5882 (mark_conflict): Same.
5883 (create_new_chain): Same.
5884 (merge_overlapping_regs): Same.
5885 (init_rename_info): Same.
5886 (merge_chains): Same.
5887 (regrename_analyze): Same.
5888 (regrename_do_replace): Same.
5889 (scan_rtx_reg): Same.
5890 (record_out_operands): Same.
5891 (build_def_use): Same.
5892 * regrename.h: Same.
5893 * reload.h: Same.
5894 * reload1.c (init_reload): Same.
5895 (maybe_fix_stack_asms): Same.
5896 (copy_reloads): Same.
5897 (count_pseudo): Same.
5898 (count_spilled_pseudo): Same.
5899 (find_reg): Same.
5900 (find_reload_regs): Same.
5901 (select_reload_regs): Same.
5902 (spill_hard_reg): Same.
5903 (fixup_eh_region_note): Same.
5904 (set_reload_reg): Same.
5905 (allocate_reload_reg): Same.
5906 (compute_reload_subreg_offset): Same.
5907 (reload_adjust_reg_for_icode): Same.
5908 (emit_input_reload_insns): Same.
5909 (emit_output_reload_insns): Same.
5910 (do_input_reload): Same.
5911 (inherit_piecemeal_p): Same.
5912 * rtl.h: Same.
5913 * sanopt.c (maybe_get_dominating_check): Same.
5914 (maybe_optimize_ubsan_ptr_ifn): Same.
5915 (can_remove_asan_check): Same.
5916 (maybe_optimize_asan_check_ifn): Same.
5917 (sanopt_optimize_walker): Same.
5918 * sched-deps.c (add_dependence_list): Same.
5919 (chain_to_prev_insn): Same.
5920 (add_insn_mem_dependence): Same.
5921 (create_insn_reg_set): Same.
5922 (maybe_extend_reg_info_p): Same.
5923 (sched_analyze_reg): Same.
5924 (sched_analyze_1): Same.
5925 (get_implicit_reg_pending_clobbers): Same.
5926 (chain_to_prev_insn_p): Same.
5927 (deps_analyze_insn): Same.
5928 (deps_start_bb): Same.
5929 (sched_free_deps): Same.
5930 (init_deps): Same.
5931 (init_deps_reg_last): Same.
5932 (free_deps): Same.
5933 * sched-ebb.c: Same.
5934 * sched-int.h: Same.
5935 * sched-rgn.c (add_branch_dependences): Same.
5936 (concat_insn_mem_list): Same.
5937 (deps_join): Same.
5938 (sched_rgn_compute_dependencies): Same.
5939 * sel-sched-ir.c (reset_target_context): Same.
5940 (copy_deps_context): Same.
5941 (init_id_from_df): Same.
5942 (has_dependence_p): Same.
5943 (change_loops_latches): Same.
5944 (bb_top_order_comparator): Same.
5945 (make_region_from_loop_preheader): Same.
5946 (sel_init_pipelining): Same.
5947 (get_loop_nest_for_rgn): Same.
5948 (make_regions_from_the_rest): Same.
5949 (sel_is_loop_preheader_p): Same.
5950 * sel-sched-ir.h (inner_loop_header_p): Same.
5951 (get_all_loop_exits): Same.
5952 * selftest.h: Same.
5953 * sese.c (sese_build_liveouts): Same.
5954 (sese_insert_phis_for_liveouts): Same.
5955 * sese.h (defined_in_sese_p): Same.
5956 * sreal.c (sreal::stream_out): Same.
5957 * sreal.h: Same.
5958 * streamer-hooks.h: Same.
5959 * target-globals.c (save_target_globals): Same.
5960 * target-globals.h: Same.
5961 * target.def: Same.
5962 * target.h: Same.
5963 * targhooks.c (default_has_ifunc_p): Same.
5964 (default_empty_mask_is_expensive): Same.
5965 (default_init_cost): Same.
5966 * targhooks.h: Same.
5967 * toplev.c: Same.
5968 * tree-affine.c (aff_combination_mult): Same.
5969 (aff_combination_expand): Same.
5970 (aff_combination_constant_multiple_p): Same.
5971 * tree-affine.h: Same.
5972 * tree-cfg.c (build_gimple_cfg): Same.
5973 (replace_loop_annotate_in_block): Same.
5974 (replace_uses_by): Same.
5975 (remove_bb): Same.
5976 (dump_cfg_stats): Same.
5977 (gimple_duplicate_sese_region): Same.
5978 (gimple_duplicate_sese_tail): Same.
5979 (move_block_to_fn): Same.
5980 (replace_block_vars_by_duplicates): Same.
5981 (move_sese_region_to_fn): Same.
5982 (print_loops_bb): Same.
5983 (print_loop): Same.
5984 (print_loops): Same.
5985 (debug): Same.
5986 (debug_loops): Same.
5987 * tree-cfg.h: Same.
5988 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
5989 (chrec_fold_multiply_poly_poly): Same.
5990 (chrec_evaluate): Same.
5991 (chrec_component_in_loop_num): Same.
5992 (reset_evolution_in_loop): Same.
5993 (is_multivariate_chrec): Same.
5994 (chrec_contains_symbols): Same.
5995 (nb_vars_in_chrec): Same.
5996 (chrec_convert_1): Same.
5997 (chrec_convert_aggressive): Same.
5998 * tree-chrec.h: Same.
5999 * tree-core.h: Same.
6000 * tree-data-ref.c (dump_data_dependence_relation): Same.
6001 (canonicalize_base_object_address): Same.
6002 (data_ref_compare_tree): Same.
6003 (prune_runtime_alias_test_list): Same.
6004 (get_segment_min_max): Same.
6005 (create_intersect_range_checks): Same.
6006 (conflict_fn_no_dependence): Same.
6007 (object_address_invariant_in_loop_p): Same.
6008 (analyze_ziv_subscript): Same.
6009 (analyze_siv_subscript_cst_affine): Same.
6010 (analyze_miv_subscript): Same.
6011 (analyze_overlapping_iterations): Same.
6012 (build_classic_dist_vector_1): Same.
6013 (add_other_self_distances): Same.
6014 (same_access_functions): Same.
6015 (build_classic_dir_vector): Same.
6016 (subscript_dependence_tester_1): Same.
6017 (subscript_dependence_tester): Same.
6018 (access_functions_are_affine_or_constant_p): Same.
6019 (get_references_in_stmt): Same.
6020 (loop_nest_has_data_refs): Same.
6021 (graphite_find_data_references_in_stmt): Same.
6022 (find_data_references_in_bb): Same.
6023 (get_base_for_alignment): Same.
6024 (find_loop_nest_1): Same.
6025 (find_loop_nest): Same.
6026 * tree-data-ref.h (dr_alignment): Same.
6027 (ddr_dependence_level): Same.
6028 * tree-if-conv.c (fold_build_cond_expr): Same.
6029 (add_to_predicate_list): Same.
6030 (add_to_dst_predicate_list): Same.
6031 (phi_convertible_by_degenerating_args): Same.
6032 (idx_within_array_bound): Same.
6033 (all_preds_critical_p): Same.
6034 (pred_blocks_visited_p): Same.
6035 (predicate_bbs): Same.
6036 (build_region): Same.
6037 (if_convertible_loop_p_1): Same.
6038 (is_cond_scalar_reduction): Same.
6039 (predicate_scalar_phi): Same.
6040 (remove_conditions_and_labels): Same.
6041 (combine_blocks): Same.
6042 (version_loop_for_if_conversion): Same.
6043 (versionable_outer_loop_p): Same.
6044 (ifcvt_local_dce): Same.
6045 (tree_if_conversion): Same.
6046 (pass_if_conversion::gate): Same.
6047 * tree-if-conv.h: Same.
6048 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
6049 * tree-loop-distribution.c (bb_top_order_cmp): Same.
6050 (free_rdg): Same.
6051 (stmt_has_scalar_dependences_outside_loop): Same.
6052 (copy_loop_before): Same.
6053 (create_bb_after_loop): Same.
6054 (const_with_all_bytes_same): Same.
6055 (generate_memset_builtin): Same.
6056 (generate_memcpy_builtin): Same.
6057 (destroy_loop): Same.
6058 (build_rdg_partition_for_vertex): Same.
6059 (compute_access_range): Same.
6060 (data_ref_segment_size): Same.
6061 (latch_dominated_by_data_ref): Same.
6062 (compute_alias_check_pairs): Same.
6063 (fuse_memset_builtins): Same.
6064 (finalize_partitions): Same.
6065 (find_seed_stmts_for_distribution): Same.
6066 (prepare_perfect_loop_nest): Same.
6067 * tree-parloops.c (lambda_transform_legal_p): Same.
6068 (loop_parallel_p): Same.
6069 (reduc_stmt_res): Same.
6070 (add_field_for_name): Same.
6071 (create_call_for_reduction_1): Same.
6072 (replace_uses_in_bb_by): Same.
6073 (transform_to_exit_first_loop_alt): Same.
6074 (try_transform_to_exit_first_loop_alt): Same.
6075 (transform_to_exit_first_loop): Same.
6076 (num_phis): Same.
6077 (gen_parallel_loop): Same.
6078 (gather_scalar_reductions): Same.
6079 (get_omp_data_i_param): Same.
6080 (try_create_reduction_list): Same.
6081 (oacc_entry_exit_single_gang): Same.
6082 (parallelize_loops): Same.
6083 * tree-pass.h: Same.
6084 * tree-predcom.c (determine_offset): Same.
6085 (last_always_executed_block): Same.
6086 (split_data_refs_to_components): Same.
6087 (suitable_component_p): Same.
6088 (valid_initializer_p): Same.
6089 (find_looparound_phi): Same.
6090 (insert_looparound_copy): Same.
6091 (add_looparound_copies): Same.
6092 (determine_roots_comp): Same.
6093 (predcom_tmp_var): Same.
6094 (initialize_root_vars): Same.
6095 (initialize_root_vars_store_elim_1): Same.
6096 (initialize_root_vars_store_elim_2): Same.
6097 (finalize_eliminated_stores): Same.
6098 (initialize_root_vars_lm): Same.
6099 (remove_stmt): Same.
6100 (determine_unroll_factor): Same.
6101 (execute_pred_commoning_cbck): Same.
6102 (base_names_in_chain_on): Same.
6103 (combine_chains): Same.
6104 (pcom_stmt_dominates_stmt_p): Same.
6105 (try_combine_chains): Same.
6106 (prepare_initializers_chain_store_elim): Same.
6107 (prepare_initializers_chain): Same.
6108 (prepare_initializers): Same.
6109 (prepare_finalizers_chain): Same.
6110 (prepare_finalizers): Same.
6111 (insert_init_seqs): Same.
6112 * tree-scalar-evolution.c (loop_phi_node_p): Same.
6113 (compute_overall_effect_of_inner_loop): Same.
6114 (add_to_evolution_1): Same.
6115 (add_to_evolution): Same.
6116 (follow_ssa_edge_binary): Same.
6117 (follow_ssa_edge_expr): Same.
6118 (backedge_phi_arg_p): Same.
6119 (follow_ssa_edge_in_condition_phi_branch): Same.
6120 (follow_ssa_edge_in_condition_phi): Same.
6121 (follow_ssa_edge_inner_loop_phi): Same.
6122 (follow_ssa_edge): Same.
6123 (analyze_evolution_in_loop): Same.
6124 (analyze_initial_condition): Same.
6125 (interpret_loop_phi): Same.
6126 (interpret_condition_phi): Same.
6127 (interpret_rhs_expr): Same.
6128 (interpret_expr): Same.
6129 (interpret_gimple_assign): Same.
6130 (analyze_scalar_evolution_1): Same.
6131 (analyze_scalar_evolution): Same.
6132 (analyze_scalar_evolution_for_address_of): Same.
6133 (get_instantiated_value_entry): Same.
6134 (loop_closed_phi_def): Same.
6135 (instantiate_scev_name): Same.
6136 (instantiate_scev_poly): Same.
6137 (instantiate_scev_binary): Same.
6138 (instantiate_scev_convert): Same.
6139 (instantiate_scev_not): Same.
6140 (instantiate_scev_r): Same.
6141 (instantiate_scev): Same.
6142 (resolve_mixers): Same.
6143 (initialize_scalar_evolutions_analyzer): Same.
6144 (scev_reset_htab): Same.
6145 (scev_reset): Same.
6146 (derive_simple_iv_with_niters): Same.
6147 (simple_iv_with_niters): Same.
6148 (expression_expensive_p): Same.
6149 (final_value_replacement_loop): Same.
6150 * tree-scalar-evolution.h (block_before_loop): Same.
6151 * tree-ssa-address.h: Same.
6152 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
6153 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
6154 (record_edge_info): Same.
6155 * tree-ssa-live.c (var_map_base_fini): Same.
6156 (remove_unused_locals): Same.
6157 * tree-ssa-live.h: Same.
6158 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
6159 (pass_ch_vect::execute): Same.
6160 (pass_ch::process_loop_p): Same.
6161 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
6162 (movement_possibility): Same.
6163 (outermost_invariant_loop): Same.
6164 (stmt_cost): Same.
6165 (determine_max_movement): Same.
6166 (invariantness_dom_walker::before_dom_children): Same.
6167 (move_computations): Same.
6168 (may_move_till): Same.
6169 (force_move_till_op): Same.
6170 (force_move_till): Same.
6171 (memref_free): Same.
6172 (record_mem_ref_loc): Same.
6173 (set_ref_stored_in_loop): Same.
6174 (mark_ref_stored): Same.
6175 (sort_bbs_in_loop_postorder_cmp): Same.
6176 (sort_locs_in_loop_postorder_cmp): Same.
6177 (analyze_memory_references): Same.
6178 (mem_refs_may_alias_p): Same.
6179 (find_ref_loc_in_loop_cmp): Same.
6180 (rewrite_mem_ref_loc::operator): Same.
6181 (first_mem_ref_loc_1::operator): Same.
6182 (sm_set_flag_if_changed::operator): Same.
6183 (execute_sm_if_changed_flag_set): Same.
6184 (execute_sm): Same.
6185 (hoist_memory_references): Same.
6186 (ref_always_accessed::operator): Same.
6187 (refs_independent_p): Same.
6188 (record_dep_loop): Same.
6189 (ref_indep_loop_p_1): Same.
6190 (ref_indep_loop_p): Same.
6191 (can_sm_ref_p): Same.
6192 (find_refs_for_sm): Same.
6193 (loop_suitable_for_sm): Same.
6194 (store_motion_loop): Same.
6195 (store_motion): Same.
6196 (fill_always_executed_in): Same.
6197 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
6198 (estimated_unrolled_size): Same.
6199 (loop_edge_to_cancel): Same.
6200 (remove_exits_and_undefined_stmts): Same.
6201 (remove_redundant_iv_tests): Same.
6202 (unloop_loops): Same.
6203 (estimated_peeled_sequence_size): Same.
6204 (try_peel_loop): Same.
6205 (canonicalize_loop_induction_variables): Same.
6206 (canonicalize_induction_variables): Same.
6207 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
6208 (name_info): Same.
6209 (stmt_after_inc_pos): Same.
6210 (contains_abnormal_ssa_name_p): Same.
6211 (niter_for_exit): Same.
6212 (find_bivs): Same.
6213 (mark_bivs): Same.
6214 (find_givs_in_bb): Same.
6215 (find_induction_variables): Same.
6216 (find_interesting_uses_cond): Same.
6217 (outermost_invariant_loop_for_expr): Same.
6218 (idx_find_step): Same.
6219 (add_candidate_1): Same.
6220 (add_iv_candidate_derived_from_uses): Same.
6221 (alloc_use_cost_map): Same.
6222 (prepare_decl_rtl): Same.
6223 (generic_predict_doloop_p): Same.
6224 (computation_cost): Same.
6225 (determine_common_wider_type): Same.
6226 (get_computation_aff_1): Same.
6227 (get_use_type): Same.
6228 (determine_group_iv_cost_address): Same.
6229 (iv_period): Same.
6230 (difference_cannot_overflow_p): Same.
6231 (may_eliminate_iv): Same.
6232 (determine_set_costs): Same.
6233 (cheaper_cost_pair): Same.
6234 (compare_cost_pair): Same.
6235 (iv_ca_cand_for_group): Same.
6236 (iv_ca_recount_cost): Same.
6237 (iv_ca_set_remove_invs): Same.
6238 (iv_ca_set_no_cp): Same.
6239 (iv_ca_set_add_invs): Same.
6240 (iv_ca_set_cp): Same.
6241 (iv_ca_add_group): Same.
6242 (iv_ca_cost): Same.
6243 (iv_ca_compare_deps): Same.
6244 (iv_ca_delta_reverse): Same.
6245 (iv_ca_delta_commit): Same.
6246 (iv_ca_cand_used_p): Same.
6247 (iv_ca_delta_free): Same.
6248 (iv_ca_new): Same.
6249 (iv_ca_free): Same.
6250 (iv_ca_dump): Same.
6251 (iv_ca_extend): Same.
6252 (iv_ca_narrow): Same.
6253 (iv_ca_prune): Same.
6254 (cheaper_cost_with_cand): Same.
6255 (iv_ca_replace): Same.
6256 (try_add_cand_for): Same.
6257 (get_initial_solution): Same.
6258 (try_improve_iv_set): Same.
6259 (find_optimal_iv_set_1): Same.
6260 (create_new_iv): Same.
6261 (rewrite_use_compare): Same.
6262 (remove_unused_ivs): Same.
6263 (determine_scaling_factor): Same.
6264 * tree-ssa-loop-ivopts.h: Same.
6265 * tree-ssa-loop-manip.c (create_iv): Same.
6266 (compute_live_loop_exits): Same.
6267 (add_exit_phi): Same.
6268 (add_exit_phis): Same.
6269 (find_uses_to_rename_use): Same.
6270 (find_uses_to_rename_def): Same.
6271 (find_uses_to_rename_in_loop): Same.
6272 (rewrite_into_loop_closed_ssa): Same.
6273 (check_loop_closed_ssa_bb): Same.
6274 (split_loop_exit_edge): Same.
6275 (ip_end_pos): Same.
6276 (ip_normal_pos): Same.
6277 (copy_phi_node_args): Same.
6278 (gimple_duplicate_loop_to_header_edge): Same.
6279 (can_unroll_loop_p): Same.
6280 (determine_exit_conditions): Same.
6281 (scale_dominated_blocks_in_loop): Same.
6282 (niter_for_unrolled_loop): Same.
6283 (tree_transform_and_unroll_loop): Same.
6284 (rewrite_all_phi_nodes_with_iv): Same.
6285 * tree-ssa-loop-manip.h: Same.
6286 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6287 (number_of_iterations_ne): Same.
6288 (assert_no_overflow_lt): Same.
6289 (assert_loop_rolls_lt): Same.
6290 (number_of_iterations_lt): Same.
6291 (adjust_cond_for_loop_until_wrap): Same.
6292 (tree_simplify_using_condition): Same.
6293 (simplify_using_initial_conditions): Same.
6294 (simplify_using_outer_evolutions): Same.
6295 (loop_only_exit_p): Same.
6296 (ssa_defined_by_minus_one_stmt_p): Same.
6297 (number_of_iterations_popcount): Same.
6298 (number_of_iterations_exit): Same.
6299 (find_loop_niter): Same.
6300 (finite_loop_p): Same.
6301 (chain_of_csts_start): Same.
6302 (get_val_for): Same.
6303 (loop_niter_by_eval): Same.
6304 (derive_constant_upper_bound_ops): Same.
6305 (do_warn_aggressive_loop_optimizations): Same.
6306 (record_estimate): Same.
6307 (get_cst_init_from_scev): Same.
6308 (record_nonwrapping_iv): Same.
6309 (idx_infer_loop_bounds): Same.
6310 (infer_loop_bounds_from_ref): Same.
6311 (infer_loop_bounds_from_array): Same.
6312 (infer_loop_bounds_from_pointer_arith): Same.
6313 (infer_loop_bounds_from_signedness): Same.
6314 (bound_index): Same.
6315 (discover_iteration_bound_by_body_walk): Same.
6316 (maybe_lower_iteration_bound): Same.
6317 (estimate_numbers_of_iterations): Same.
6318 (estimated_loop_iterations): Same.
6319 (estimated_loop_iterations_int): Same.
6320 (max_loop_iterations): Same.
6321 (max_loop_iterations_int): Same.
6322 (likely_max_loop_iterations): Same.
6323 (likely_max_loop_iterations_int): Same.
6324 (estimated_stmt_executions_int): Same.
6325 (max_stmt_executions): Same.
6326 (likely_max_stmt_executions): Same.
6327 (estimated_stmt_executions): Same.
6328 (stmt_dominates_stmt_p): Same.
6329 (nowrap_type_p): Same.
6330 (loop_exits_before_overflow): Same.
6331 (scev_var_range_cant_overflow): Same.
6332 (scev_probably_wraps_p): Same.
6333 (free_numbers_of_iterations_estimates): Same.
6334 * tree-ssa-loop-niter.h: Same.
6335 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6336 (idx_analyze_ref): Same.
6337 (analyze_ref): Same.
6338 (gather_memory_references_ref): Same.
6339 (mark_nontemporal_store): Same.
6340 (emit_mfence_after_loop): Same.
6341 (may_use_storent_in_loop_p): Same.
6342 (mark_nontemporal_stores): Same.
6343 (should_unroll_loop_p): Same.
6344 (volume_of_dist_vector): Same.
6345 (add_subscript_strides): Same.
6346 (self_reuse_distance): Same.
6347 (insn_to_prefetch_ratio_too_small_p): Same.
6348 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6349 (patch_loop_exit): Same.
6350 (find_or_create_guard_phi): Same.
6351 (easy_exit_values): Same.
6352 (connect_loop_phis): Same.
6353 (connect_loops): Same.
6354 (compute_new_first_bound): Same.
6355 (split_loop): Same.
6356 (tree_ssa_split_loops): Same.
6357 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6358 (is_maybe_undefined): Same.
6359 (tree_may_unswitch_on): Same.
6360 (simplify_using_entry_checks): Same.
6361 (tree_unswitch_single_loop): Same.
6362 (tree_unswitch_loop): Same.
6363 (tree_unswitch_outer_loop): Same.
6364 (empty_bb_without_guard_p): Same.
6365 (used_outside_loop_p): Same.
6366 (get_vop_from_header): Same.
6367 (hoist_guard): Same.
6368 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6369 (get_lsm_tmp_name): Same.
6370 * tree-ssa-loop.h: Same.
6371 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6372 (build_and_add_sum): Same.
6373 (no_side_effect_bb): Same.
6374 (get_ops): Same.
6375 (linearize_expr): Same.
6376 (should_break_up_subtract): Same.
6377 (linearize_expr_tree): Same.
6378 * tree-ssa-scopedtables.c: Same.
6379 * tree-ssa-scopedtables.h: Same.
6380 * tree-ssa-structalias.c (condense_visit): Same.
6381 (label_visit): Same.
6382 (dump_pred_graph): Same.
6383 (perform_var_substitution): Same.
6384 (move_complex_constraints): Same.
6385 (remove_preds_and_fake_succs): Same.
6386 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6387 (determine_bb_domination_status): Same.
6388 (duplicate_thread_path): Same.
6389 (thread_through_all_blocks): Same.
6390 * tree-ssa-threadupdate.h: Same.
6391 * tree-streamer-in.c (streamer_read_string_cst): Same.
6392 (input_identifier): Same.
6393 (unpack_ts_type_common_value_fields): Same.
6394 (unpack_ts_block_value_fields): Same.
6395 (unpack_ts_translation_unit_decl_value_fields): Same.
6396 (unpack_ts_omp_clause_value_fields): Same.
6397 (streamer_read_tree_bitfields): Same.
6398 (streamer_alloc_tree): Same.
6399 (lto_input_ts_common_tree_pointers): Same.
6400 (lto_input_ts_vector_tree_pointers): Same.
6401 (lto_input_ts_poly_tree_pointers): Same.
6402 (lto_input_ts_complex_tree_pointers): Same.
6403 (lto_input_ts_decl_minimal_tree_pointers): Same.
6404 (lto_input_ts_decl_common_tree_pointers): Same.
6405 (lto_input_ts_decl_non_common_tree_pointers): Same.
6406 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6407 (lto_input_ts_field_decl_tree_pointers): Same.
6408 (lto_input_ts_function_decl_tree_pointers): Same.
6409 (lto_input_ts_type_common_tree_pointers): Same.
6410 (lto_input_ts_type_non_common_tree_pointers): Same.
6411 (lto_input_ts_list_tree_pointers): Same.
6412 (lto_input_ts_vec_tree_pointers): Same.
6413 (lto_input_ts_exp_tree_pointers): Same.
6414 (lto_input_ts_block_tree_pointers): Same.
6415 (lto_input_ts_binfo_tree_pointers): Same.
6416 (lto_input_ts_constructor_tree_pointers): Same.
6417 (lto_input_ts_omp_clause_tree_pointers): Same.
6418 (streamer_read_tree_body): Same.
6419 * tree-streamer.h: Same.
6420 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6421 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6422 (vect_analyze_possibly_independent_ddr): Same.
6423 (vect_analyze_data_ref_dependence): Same.
6424 (vect_compute_data_ref_alignment): Same.
6425 (vect_enhance_data_refs_alignment): Same.
6426 (vect_analyze_data_ref_access): Same.
6427 (vect_check_gather_scatter): Same.
6428 (vect_find_stmt_data_reference): Same.
6429 (vect_create_addr_base_for_vector_ref): Same.
6430 (vect_setup_realignment): Same.
6431 (vect_supportable_dr_alignment): Same.
6432 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6433 (adjust_phi_and_debug_stmts): Same.
6434 (vect_set_loop_mask): Same.
6435 (add_preheader_seq): Same.
6436 (vect_maybe_permute_loop_masks): Same.
6437 (vect_set_loop_masks_directly): Same.
6438 (vect_set_loop_condition_masked): Same.
6439 (vect_set_loop_condition_unmasked): Same.
6440 (slpeel_duplicate_current_defs_from_edges): Same.
6441 (slpeel_add_loop_guard): Same.
6442 (slpeel_can_duplicate_loop_p): Same.
6443 (create_lcssa_for_virtual_phi): Same.
6444 (iv_phi_p): Same.
6445 (vect_update_ivs_after_vectorizer): Same.
6446 (vect_gen_vector_loop_niters_mult_vf): Same.
6447 (slpeel_update_phi_nodes_for_loops): Same.
6448 (slpeel_update_phi_nodes_for_guard1): Same.
6449 (find_guard_arg): Same.
6450 (slpeel_update_phi_nodes_for_guard2): Same.
6451 (slpeel_update_phi_nodes_for_lcssa): Same.
6452 (vect_do_peeling): Same.
6453 (vect_create_cond_for_alias_checks): Same.
6454 (vect_loop_versioning): Same.
6455 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6456 (vect_inner_phi_in_double_reduction_p): Same.
6457 (vect_analyze_scalar_cycles_1): Same.
6458 (vect_fixup_scalar_cycles_with_patterns): Same.
6459 (vect_get_loop_niters): Same.
6460 (bb_in_loop_p): Same.
6461 (vect_get_max_nscalars_per_iter): Same.
6462 (vect_verify_full_masking): Same.
6463 (vect_compute_single_scalar_iteration_cost): Same.
6464 (vect_analyze_loop_form_1): Same.
6465 (vect_analyze_loop_form): Same.
6466 (vect_active_double_reduction_p): Same.
6467 (vect_analyze_loop_operations): Same.
6468 (neutral_op_for_slp_reduction): Same.
6469 (vect_is_simple_reduction): Same.
6470 (vect_model_reduction_cost): Same.
6471 (get_initial_def_for_reduction): Same.
6472 (get_initial_defs_for_reduction): Same.
6473 (vect_create_epilog_for_reduction): Same.
6474 (vectorize_fold_left_reduction): Same.
6475 (vectorizable_reduction): Same.
6476 (vectorizable_induction): Same.
6477 (vectorizable_live_operation): Same.
6478 (loop_niters_no_overflow): Same.
6479 (vect_get_loop_mask): Same.
6480 (vect_transform_loop_stmt): Same.
6481 (vect_transform_loop): Same.
6482 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6483 (vect_determine_precisions): Same.
6484 (vect_pattern_recog_1): Same.
6485 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6486 * tree-vect-stmts.c (stmt_vectype): Same.
6487 (process_use): Same.
6488 (vect_init_vector_1): Same.
6489 (vect_truncate_gather_scatter_offset): Same.
6490 (get_group_load_store_type): Same.
6491 (vect_build_gather_load_calls): Same.
6492 (vect_get_strided_load_store_ops): Same.
6493 (vectorizable_simd_clone_call): Same.
6494 (vectorizable_store): Same.
6495 (permute_vec_elements): Same.
6496 (vectorizable_load): Same.
6497 (vect_transform_stmt): Same.
6498 (supportable_widening_operation): Same.
6499 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6500 (vec_info::free_stmt_vec_info): Same.
6501 (vect_free_loop_info_assumptions): Same.
6502 (vect_loop_vectorized_call): Same.
6503 (set_uid_loop_bbs): Same.
6504 (vectorize_loops): Same.
6505 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6506 * tree.c (add_tree_to_fld_list): Same.
6507 (fld_type_variant_equal_p): Same.
6508 (fld_decl_context): Same.
6509 (fld_incomplete_type_of): Same.
6510 (free_lang_data_in_binfo): Same.
6511 (need_assembler_name_p): Same.
6512 (find_decls_types_r): Same.
6513 (get_eh_types_for_runtime): Same.
6514 (find_decls_types_in_eh_region): Same.
6515 (find_decls_types_in_node): Same.
6516 (assign_assembler_name_if_needed): Same.
6517 * value-prof.c (stream_out_histogram_value): Same.
6518 * value-prof.h: Same.
6519 * var-tracking.c (use_narrower_mode): Same.
6520 (prepare_call_arguments): Same.
6521 (vt_expand_loc_callback): Same.
6522 (resolve_expansions_pending_recursion): Same.
6523 (vt_expand_loc): Same.
6524 * varasm.c (const_hash_1): Same.
6525 (compare_constant): Same.
6526 (tree_output_constant_def): Same.
6527 (simplify_subtraction): Same.
6528 (get_pool_constant): Same.
6529 (output_constant_pool_2): Same.
6530 (output_constant_pool_1): Same.
6531 (mark_constants_in_pattern): Same.
6532 (mark_constant_pool): Same.
6533 (get_section_anchor): Same.
6534 * vr-values.c (compare_range_with_value): Same.
6535 (vr_values::extract_range_from_phi_node): Same.
6536 * vr-values.h: Same.
6537 * web.c (unionfind_union): Same.
6538 * wide-int.h: Same.
6539
6540 2019-07-09 Martin Sebor <msebor@redhat.com>
6541
6542 PR c++/61339
6543 * align.h: Change class-key from class to struct and vice versa
6544 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6545 * alloc-pool.h: Same.
6546 * asan.c (shadow_mem_size): Same.
6547 * auto-profile.c: Same.
6548 * basic-block.h: Same.
6549 * bitmap.h: Same.
6550 * cfgexpand.c (set_rtl): Same.
6551 (expand_one_stack_var_at): Same.
6552 * cfghooks.h: Same.
6553 * cfgloop.h: Same.
6554 * cgraph.h: Same.
6555 * config/i386/i386.h: Same.
6556 * df-problems.c (df_print_bb_index): Same.
6557 * df-scan.c: Same.
6558 * df.h (df_single_use): Same.
6559 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6560 (layout::annotation_line_showed_range_p): Same.
6561 (get_printed_columns): Same.
6562 (correction::ensure_terminated): Same.
6563 (line_corrections::~line_corrections): Same.
6564 * dojump.h: Same.
6565 * dse.c: Same.
6566 * dump-context.h: Same.
6567 * dumpfile.h: Same.
6568 * dwarf2out.c: Same.
6569 * edit-context.c: Same.
6570 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6571 * flags.h: Same.
6572 * function.c (assign_stack_local): Same.
6573 * function.h: Same.
6574 * gcc.c: Same.
6575 * gcov.c (block_info::block_info): Same.
6576 * genattrtab.c: Same.
6577 * genextract.c: Same.
6578 * genmatch.c (comparison_code_p): Same.
6579 (id_base::id_base): Same.
6580 (decision_tree::print): Same.
6581 * genoutput.c: Same.
6582 * genpreds.c (write_one_predicate_function): Same.
6583 * genrecog.c (validate_pattern): Same.
6584 (find_operand_positions): Same.
6585 (optimize_subroutine_group): Same.
6586 (merge_pattern_transition::merge_pattern_transition): Same.
6587 (merge_pattern_info::merge_pattern_info): Same.
6588 (merge_state_result::merge_state_result): Same.
6589 (merge_into_state): Same.
6590 * gensupport.c: Same.
6591 * gensupport.h: Same.
6592 * ggc-common.c (init_ggc_heuristics): Same.
6593 * ggc-tests.c (test_union): Same.
6594 * gimple-loop-interchange.cc (dump_induction): Same.
6595 * gimple-loop-versioning.cc: Same.
6596 * gimple-match.h (gimple_match_cond::any_else): Same.
6597 * gimple-ssa-backprop.c: Same.
6598 * gimple-ssa-sprintf.c: Same.
6599 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6600 Same.
6601 (store_immediate_info::store_immediate_info): Same.
6602 (merged_store_group::apply_stores): Same.
6603 (get_location_for_stmts): Same.
6604 * gimple-ssa-strength-reduction.c: Same.
6605 * gimple-ssa-warn-alloca.c: Same.
6606 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
6607 * godump.c (go_type_decl): Same.
6608 * hash-map-tests.c (test_map_of_strings_to_int): Same.
6609 * hash-map.h: Same.
6610 * hash-set-tests.c (test_set_of_strings): Same.
6611 * hsa-brig.c: Same.
6612 * hsa-common.h: Same.
6613 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
6614 * input.c (assert_loceq): Same.
6615 * input.h: Same.
6616 * ipa-cp.c: Same.
6617 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
6618 * ipa-fnsummary.h: Same.
6619 * ipa-inline.h: Same.
6620 * ipa-prop.h: Same.
6621 * ipa-split.c (visit_bb): Same.
6622 * ira-int.h (minmax_set_iter_next): Same.
6623 * loop-invariant.c: Same.
6624 * loop-iv.c: Same.
6625 * lra-eliminations.c: Same.
6626 * lra-int.h: Same.
6627 * lra-lives.c (mark_regno_dead): Same.
6628 * lra-remat.c: Same.
6629 * lra-spills.c: Same.
6630 * lto-streamer.h: Same.
6631 * mem-stats.h: Same.
6632 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
6633 * omp-low.c (omp_clause_aligned_alignment): Same.
6634 * optabs-query.h (get_vcond_eq_icode): Same.
6635 * optabs.h: Same.
6636 * opts.c (wrap_help): Same.
6637 * poly-int.h: Same.
6638 * predict.c (predict_paths_leading_to_edge): Same.
6639 * pretty-print.h: Same.
6640 * profile-count.h: Same.
6641 * read-md.h: Same.
6642 * read-rtl-function.c: Same.
6643 * ree.c: Same.
6644 * reginfo.c: Same.
6645 * regrename.c: Same.
6646 * regrename.h: Same.
6647 * reload.h: Same.
6648 * rtl-iter.h: Same.
6649 * rtl.h (costs_add_n_insns): Same.
6650 * sanopt.c: Same.
6651 * sched-int.h: Same.
6652 * sel-sched-ir.h: Same.
6653 * selftest.h: Same.
6654 * sese.h (vec_find): Same.
6655 * stmt.c: Same.
6656 * target-globals.h: Same.
6657 * tree-affine.c (aff_combination_find_elt): Same.
6658 * tree-affine.h: Same.
6659 * tree-data-ref.h: Same.
6660 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
6661 * tree-predcom.c: Same.
6662 * tree-scalar-evolution.c (find_var_scev_info): Same.
6663 * tree-ssa-alias.h: Same.
6664 * tree-ssa-ccp.c: Same.
6665 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
6666 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
6667 (rewrite_mem_refs): Same.
6668 (execute_sm_if_changed): Same.
6669 (hoist_memory_references): Same.
6670 * tree-ssa-loop-ivopts.c (operator<=): Same.
6671 * tree-ssa-loop.h: Same.
6672 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
6673 * tree-ssa-structalias.c: Same.
6674 * tree-switch-conversion.h (cluster::cluster): Same.
6675 (simple_cluster::simple_cluster): Same.
6676 * tree-vect-patterns.c (type_conversion_p): Same.
6677 * tree-vectorizer.c (dump_stmt_cost): Same.
6678 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
6679 * tree.c (protected_set_expr_location): Same.
6680 * tree.h (desired_pro_or_demotion_p): Same.
6681 (fndecl_built_in_p): Same.
6682 * unique-ptr-tests.cc: Same.
6683 * var-tracking.c (delete_variable_part): Same.
6684 * varasm.c (assemble_real): Same.
6685 (tree_output_constant_def): Same.
6686 * vec.c: Same.
6687 * wide-int-bitmask.h: Same.
6688 * wide-int.h (decompose): Same.
6689
6690 2019-07-09 Richard Biener <rguenther@suse.de>
6691
6692 PR tree-optimization/91114
6693 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
6694 find a vector type isn't fatal.
6695
6696 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6697
6698 * config/aarch64/aarch64-simd.md
6699 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
6700 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
6701 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
6702 (*aarch64_crypto_aese_fused,
6703 *aarch64_crypto_aesd_fused): Update to new definition.
6704 * config/aarch64/aarch64.c
6705 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
6706
6707 2019-07-09 Richard Biener <rguenther@suse.de>
6708
6709 * gimple-match.h (gimple_match_op::resimplify): New.
6710 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
6711 gimple_resimplify4, gimple_resimplify5): Remove.
6712 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
6713 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
6714 Make static.
6715 (gimple_match_op::resimplify): New.
6716 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
6717 according to availability. Use gimple_match_op::resimplify.
6718
6719 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
6720
6721 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
6722
6723 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6724
6725 * config/arm/crypto.md:
6726 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
6727 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
6728 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
6729 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
6730 * config/arm/arm.c
6731 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
6732 * config/arm/aarch-common-protos.h
6733 (aarch_crypto_can_dual_issue): Remove.
6734 * config/arm/aarch-common.c
6735 (aarch_crypto_can_dual_issue): Likewise.
6736 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
6737 * config/arm/cortex-a53.md: Likewise.
6738 * config/arm/cortex-a57.md: Likewise.
6739 * config/arm/iterators.md:
6740 (CRYPTO_BINARY): Redefine.
6741 (CRYPTO_UNARY): Removed.
6742 (CRYPTO_AES, CRYPTO_AESMC): New.
6743
6744 2019-07-09 Richard Biener <rguenther@suse.de>
6745
6746 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
6747 (vn_reference_lookup_3): If the main ref has no access path recorded
6748 but orig_ref has use it to do access-path based disambiguation.
6749 (vn_reference_lookup_pieces): Adjust.
6750 (vn_reference_lookup): Pass down original ref if we valueized.
6751
6752 2019-07-09 Martin Liska <mliska@suse.cz>
6753
6754 * doc/extend.texi: Document influence on loop
6755 optimizers.
6756
6757 2019-07-09 Martin Liska <mliska@suse.cz>
6758
6759 * lto-compress.c (lto_normalized_zstd_level): Do not use
6760 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
6761 of libzstd. One can use 0 as a default compression level.
6762
6763 2019-07-09 Martin Liska <mliska@suse.cz>
6764
6765 * doc/invoke.texi: Add link from -fprofile-dir option.
6766 Use better wording for 'gcno filename'.
6767
6768 2019-07-08 Martin Sebor <msebor@redhat.com>
6769
6770 PR middle-end/71924
6771 PR middle-end/90549
6772 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
6773 comment.
6774 (args_loc_t): New type.
6775 (args_loc_t, locmap_t): same.
6776 (diag_returned_locals): New function.
6777 (is_addr_local): Same.
6778 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
6779 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
6780 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
6781
6782 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6783
6784 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
6785 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
6786 and casts in offset when different, both through gimple stmts
6787 and through trees. Rewritten using loops to minimize code duplication
6788 for each operand.
6789
6790 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
6791
6792 * emit-rtl.c (set_insn_locations): New function moved from...
6793 * function.c (set_insn_locations): ...here.
6794 * ira-emit.c (emit_moves): Propagate location of the first instruction
6795 to the inserted move instructions.
6796 * reg-stack.c (compensate_edge): Set the location if the sequence is
6797 inserted on the edge.
6798 * rtl.h (set_insn_locations): Declare.
6799
6800 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6801
6802 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
6803 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
6804 .machine string.
6805
6806 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6807
6808 PR rtl-optimization/88233
6809 * common.opt (fsplit-wide-types-early): New option.
6810 * common/config/rs6000/rs6000-common.c
6811 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
6812 OPT_LEVELS_ALL.
6813 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
6814 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
6815 flag_split_wide_types_early.
6816 (pass_data_lower_subreg3): New.
6817 (pass_lower_subreg3): New.
6818 (make_pass_lower_subreg3): New.
6819 * passes.def (pass_lower_subreg2): Move after the loop passes.
6820 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
6821 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
6822 the pass pipeline; its previous place is taken by ...
6823 (make_pass_lower_subreg3): ... this.
6824
6825 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6826
6827 * config/s390/s390.c (s390_shift_truncation_mask): Define.
6828 (TARGET_SHIFT_TRUNCATION_MASK): Define.
6829
6830 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6831
6832 * config/s390/constraints.md: Add new jsc constraint.
6833 * config/s390/predicates.md: New predicates.
6834 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
6835 * config/s390/s390.c (s390_valid_shift_count): New function.
6836 (print_shift_count_operand): Use s390_valid_shift_count.
6837 (print_operand): Likewise.
6838 * config/s390/s390.md: Use new predicate.
6839 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
6840 * config/s390/vector.md: Use new predicate.
6841
6842 2019-07-08 Andrew Waterman <andrew@sifive.com>
6843 Jim Wilson <jimw@sifive.com>
6844
6845 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
6846 bitsize instead of BITS_PER_WORD.
6847
6848 2019-07-08 Martin Liska <mliska@suse.cz>
6849
6850 * collect2.c (defined): Revert to before r254460.
6851 (scan_prog_file): Revert to before r254460.
6852
6853 2019-07-08 Richard Biener <rguenther@suse.de>
6854
6855 PR tree-optimization/83518
6856 * tree-ssa-sccvn.c: Include splay-tree.h.
6857 (struct pd_range, struct pd_data): New.
6858 (struct vn_walk_cb_data): Add data to track partial definitions.
6859 (vn_walk_cb_data::~vn_walk_cb_data): New.
6860 (vn_walk_cb_data::push_partial_def): New.
6861 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
6862 (vn_reference_lookup_2): When partial defs are registered give up.
6863 (vn_reference_lookup_3): Track partial defs for memset and
6864 constructor zeroing and for defs from constants.
6865
6866 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6867
6868 * doc/install.texi (bootstrap-Og): Document.
6869
6870 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6871
6872 * config/riscv/pic.md (*local_pic_load_s<mode>)
6873 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
6874 referenced by <mode>, giving...
6875 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
6876 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
6877 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
6878 use <X:MODE> for the mode attribute.
6879
6880 2019-07-07 Jeff Law <law@redhat.com>
6881
6882 PR tree-optimization/91090
6883 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
6884 in handling of ranges to simplify switch statements.
6885
6886 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6887
6888 * config/darwin.c (darwin_override_options): Make a final check on PIC
6889 options.
6890
6891 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6892
6893 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
6894 on for kernel code.
6895
6896 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6897
6898 PR target/91068
6899 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
6900 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
6901 instead of matching them to "l" output operands.
6902
6903 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6904
6905 * config/mips/mips.c (mips_split_move): Zero-initialize addr
6906 and check whether addr.reg is nonnull before using it.
6907
6908 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6909
6910 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
6911 ctx->for_simd_scan_phase simd copy the outer var to the privatized
6912 variable(s). For conditional lastprivate look through outer
6913 GIMPLE_OMP_SCAN context.
6914 (lower_omp_1): For conditional lastprivate look through outer
6915 GIMPLE_OMP_SCAN context.
6916
6917 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
6918 member to combined_into_simd_safelen1.
6919 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
6920 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
6921 clauses if ctx->combined_into_simd_safelen1 put statements after the
6922 predicate conditionalized block rather than into it.
6923
6924 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6925
6926 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
6927 operand 1.
6928 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
6929 Make the choice of <mode> explicit, giving...
6930 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
6931
6932 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6933
6934 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
6935 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
6936 of .md attributes.
6937 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
6938 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
6939 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
6940 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
6941 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
6942 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
6943 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
6944 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
6945 (*avx512f_scatterdi<mode>): Likewise.
6946 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
6947
6948 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6949
6950 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
6951 specify the mode iterator referenced by <mode>, giving...
6952 (*push1_h8300hs_<QHI:mode>): ...this.
6953
6954 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6955
6956 * config/gcn/gcn-valu.md
6957 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
6958 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
6959 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
6960 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
6961 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
6962 but using the _exec comparison patterns.
6963 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
6964 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
6965 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
6966 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
6967 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
6968 but using the _exec comparison patterns.
6969
6970 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6971
6972 * config/arm/sync.md
6973 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
6974 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
6975 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
6976 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
6977 <SIDI:cas_cmp_str>.
6978
6979 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6980
6981 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
6982 (maybe_lookup_ctx): Add forward declaration.
6983 (omp_find_scan): Likewise. Walk into body of simd if composited
6984 with worksharing loop.
6985 (scan_omp_simd_scan): New function.
6986 (scan_omp_1_stmt): Call it.
6987 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
6988 ctx->for_simd_scan_phase.
6989 (lower_rec_input_clauses): Do much less work for inscan reductions
6990 in ctx->for_simd_scan_phase is_simd regions.
6991 (lower_omp_scan): Set is_simd also on simd constructs composited
6992 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
6993 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
6994 emit their body after in simd constructs composited with worksharing
6995 loop.
6996 (lower_omp_for_scan): Handle worksharing loop composited with simd.
6997
6998 * omp-low.c (omp_find_scan): Make static.
6999 (lower_omp_for_scan): Fix order of merge arguments in input phase of
7000 the second loop, var2 represents the first partial sum and so needs
7001 to go before rprivb[ivar].
7002
7003 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
7004
7005 * config/rs6000/rs6000-logue.c: Remove unused code.
7006
7007 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7008
7009 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
7010
7011 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
7012
7013 PR target/90712
7014 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
7015 check with a frame laid out check.
7016
7017 2019-07-05 Richard Biener <rguenther@suse.de>
7018
7019 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
7020 when comparing against a store with possibly the same value.
7021
7022 2019-07-05 Richard Biener <rguenther@suse.de>
7023
7024 PR tree-optimization/91091
7025 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
7026 (walk_non_aliased_vuses): Likewise.
7027 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
7028 (get_continuation_for_phi): New tbaa_p parameter and pass
7029 it down.
7030 (walk_non_aliased_vuses): Likewise.
7031 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
7032 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
7033 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7034 Likewise.
7035 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
7036 (adjust_offsets_for_equal_base_address): New function.
7037 (vn_reference_lookup_3): Use it to catch more base equivalences.
7038 Handle and pass down tbaa_p flag.
7039 (vn_reference_lookup_pieces): Adjust.
7040 (vn_reference_lookup): Remove alias-set altering, instead pass
7041 down false as tbaa_p.
7042
7043 2019-07-05 Richard Biener <rguenther@suse.de>
7044
7045 PR tree-optimization/91091
7046 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
7047 accesses can happen with -fno-strict-aliasing.
7048
7049 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
7050
7051 * tree-ssa-alias.c (alias_stats): Add
7052 nonoverlapping_component_refs_since_match_p_must_overlap.
7053 (dump_alias_stats): Print it.
7054 (nonoverlapping_component_refs_since_match_p): Add early exit.
7055 (nonoverlapping_component_refs_p): Do not account early exit.
7056
7057 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7058
7059 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
7060 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
7061 (emit_eh_dispatch): Delete.
7062 (lower_catch): Emit the eh_dispatch manually and set the location of
7063 the first catch statement onto it.
7064 (lower_eh_filter): Emit the eh_dispatch manually and set location.
7065 (lower_eh_dispatch): Propagate location.
7066 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
7067 (eliminate_build): Likewise.
7068
7069 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7070
7071 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
7072 phi nodes if possible.
7073 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
7074 location info on the newly created statement.
7075 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
7076 newly created increment if needed.
7077
7078 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7079
7080 PR middle-end/78884
7081 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
7082 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
7083 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
7084 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
7085 ctx->add_safelen1 is set.
7086
7087 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
7088 GOMP_loop_start at the start of second worksharing loop in a scan.
7089 For nowait, don't emit GOMP_loop_end_nowait at the end of first
7090 worksharing loop in a scan even if there are conditional lastprivates,
7091 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
7092
7093 2019-07-04 Jan Hubicka <jh@suse.cz>
7094
7095 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7096 Fix check for match in the ref walk.
7097
7098 2019-07-04 Martin Liska <mliska@suse.cz>
7099
7100 * tree-ssa-loop-niter.c
7101 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
7102 (estimate_numbers_of_iterations):
7103 Support __builtin_expect_with_probability for analysis
7104 of # of loop iterations.
7105
7106 2019-07-04 Alexandre Oliva <oliva@adacore.com>
7107
7108 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
7109 * except.c: Likewise.
7110 * expr.c (expand_expr_real_1): Reject it.
7111 * gimplify.c (gimplify_expr): Gimplify it, within
7112 TRY_FINALLY_EXPR.
7113 * tree-dump.c (dequeue_and_dump): Dump it.
7114 * tree-pretty-print.c (dump_generic_node): Likewise.
7115 * tree.c (block_may_fallthru): Handle it.
7116 * tree.def (EH_ELSE_EXPR): Introduce it.
7117 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
7118 with GIMPLE_EH_ELSE as try/finally/else.
7119
7120 2019-07-04 Richard Biener <rguenther@suse.de>
7121
7122 PR ipa/91062
7123 * tree-pass.h (execute_all_ipa_transforms): Add a flag
7124 parameter whether to disable GC collection.
7125 * passes.c (execute_one_ipa_transform_pass): Likewise, and
7126 honor it.
7127 (execute_all_ipa_transforms): Likewise and pass it down.
7128 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
7129 collection from applying IPA transforms.
7130 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
7131 from applying IPA transforms.
7132
7133 2019-07-04 Richard Biener <rguenther@suse.de>
7134
7135 PR tree-optimization/90911
7136 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
7137 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
7138 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7139 scalar_loop_scaling.
7140 (vect_transform_loop): Scale scalar loop profile if needed.
7141 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
7142 the loop copy from if-conversion adjust edge probabilities
7143 and scale the vectorized loop body profile, queue the scalar
7144 profile for updating after peeling.
7145
7146 2019-07-04 Jan Hubicka <jh@suse.cz>
7147
7148 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
7149 parameters; return early for must-alias.
7150 (indirect_ref_may_alias_decl_p): Likewise; when establishing
7151 outer types match, try nonoverlapping_component_refs
7152 if must-alias is not obvious.
7153 (indirect_refs_may_alias_p): Likewise.
7154 (refs_may_alias_p_2): Likewise.
7155
7156 2019-07-04 Richard Biener <rguenther@suse.de>
7157
7158 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
7159 argument.
7160 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
7161 globals into...
7162 (struct vn_walk_cb_data): New callback data struct.
7163 (vn_reference_lookup_2): Adjust.
7164 (vn_reference_lookup_3): Likewise.
7165 (vn_reference_lookup_pieces): Likewise.
7166 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
7167 (visit_reference_op_load): Adjust.
7168
7169 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7170
7171 PR tree-optimization/91063
7172 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
7173 stmt from stmts sequence before calling vect_init_vector_1.
7174 Formatting fix.
7175
7176 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7177
7178 PR target/88833
7179 * fwprop.c (reg_single_def_p): New function.
7180 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
7181 (forward_propagate_into): New parameter reg_prop_only
7182 with default value false.
7183 Propagate def's src into loop only if SET_SRC and SET_DEST
7184 of def_set have single definitions.
7185 Likewise if reg_prop_only is set to true.
7186 (fwprop): New param fwprop_addr_p.
7187 Integrate fwprop_addr into fwprop.
7188 (fwprop_addr): Remove.
7189 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
7190 to true.
7191 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
7192 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
7193 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
7194
7195 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7196
7197 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
7198 in worksharing loop scans.
7199
7200 PR tree-optimization/91074
7201 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
7202 temporary.
7203
7204 PR rtl-optimization/90756
7205 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
7206 for VECTOR_TYPE_P.
7207
7208 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
7209
7210 * config/aarch64/aarch64.md: Remove redundant constraints from
7211 define_expand but keep some patterns untouched if they are
7212 specially selected by TARGET_SECONDARY_RELOAD hook.
7213 * config/aarch64/aarch64-sve.md: Likewise.
7214 * config/aarch64/atomics.md: Remove redundant constraints from
7215 define_expand.
7216 * config/aarch64/aarch64-simd.md: Likewise.
7217
7218 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7219
7220 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
7221 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
7222 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
7223 clauses.
7224 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
7225 DARWIN_NOPIE_SPEC.
7226
7227 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7228
7229 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
7230 (STARTFILE_SPEC): Split crt3 into a separate spec.
7231 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
7232 (DARWIN_CRT2_SPEC): New.
7233 (DARWIN_CRT3_SPEC): New.
7234 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
7235 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
7236 (DARWIN_CRT3_SPEC): New.
7237
7238 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
7239
7240 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
7241 Change the RTL attribute "length" from "4" to "*" to allow the
7242 length attribute to be adjusted automatically for prefixed load,
7243 store, and add immediate instructions.
7244 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
7245 Likewise.
7246 (extendsi<mode>2, EXTSI iterator): Likewise.
7247 (movsi_internal1): Likewise.
7248 (movsi_from_sf): Likewise.
7249 (movdi_from_sf_zero_ext): Likewise.
7250 (mov<mode>_internal): Likewise.
7251 (movcc_internal1, QHI iterator): Likewise.
7252 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
7253 (movsf_from_si): Likewise.
7254 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
7255 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
7256 (mov<mode>, FMOVE128 iterator): Likewise.
7257 (movdi_internal64): Likewise.
7258 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
7259 Likewise.
7260 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
7261 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
7262 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
7263 (vsx_splat_v4sf): Likewise.
7264
7265 2019-07-03 Mark Wielaard <mark@klomp.org>
7266
7267 PR debug/90981
7268 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
7269 DW_AT_addr_base if there is actually a .debug_addr section with
7270 addresses.
7271 (output_addr_table): Add DWARF5 table header generation here after
7272 checking there are actually any addresses from...
7273 (dwarf2out_finish): ...here.
7274
7275 2019-07-03 Richard Biener <rguenther@suse.de>
7276
7277 PR middle-end/91069
7278 * match.pd (vec_perm -> bit_insert): Fix element read from
7279 first vector.
7280
7281 2019-07-03 Martin Liska <mliska@suse.cz>
7282
7283 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7284 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7285 condition.
7286 * generic-match-head.c: Include dbgcnt.h.
7287 * gimple-match-head.c: Likewise.
7288
7289 2019-07-03 Martin Liska <mliska@suse.cz>
7290
7291 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7292 (GCOV_COUNTER_V_TOPN): New.
7293 (GCOV_COUNTER_V_INDIR): Use _topn.
7294 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7295 (GCOV_TOPN_VALUES): New.
7296 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7297 (GCOV_TOPN_VALUES_COUNTERS): New.
7298 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7299 * tree-profile.c:
7300 (gimple_init_gcov_profiler): Rename variables from one_value
7301 to topn_values.
7302 (gimple_gen_one_value_profiler): Remove.
7303 (gimple_gen_topn_values_profiler): New function.
7304 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7305 names instead of SINGLE_VALUE.
7306 (stream_out_histogram_value): Likewise.
7307 (stream_in_histogram_value): Likewise.
7308 (get_most_common_single_value): Likewise.
7309 (gimple_divmod_fixed_value_transform): Likewise.
7310 (gimple_stringops_transform): Likewise.
7311 (gimple_divmod_values_to_profile): Likewise.
7312 (gimple_stringops_values_to_profile): Likewise.
7313 (gimple_find_values_to_profile): Likewise.
7314 * value-prof.h (enum hist_type): Rename to TOPN.
7315 (gimple_gen_one_value_profiler): Remove.
7316 (gimple_gen_topn_values_profiler): New.
7317
7318 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7319
7320 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7321 if it has the DW_AT_data_member_location attribute.
7322
7323 2019-07-03 Richard Biener <rguenther@suse.de>
7324
7325 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7326 dumping.
7327
7328 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7329
7330 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7331 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7332 (tlsdesc_small_sve_<mode>): Likewise.
7333
7334 2019-07-03 Martin Liska <mliska@suse.cz>
7335
7336 * Makefile.in: Define ZSTD_LIB.
7337 * common.opt: Adjust compression level
7338 to support also zstd levels.
7339 * config.in: Regenerate.
7340 * configure: Likewise.
7341 * configure.ac: Add --with-zstd and --with-zstd-include options
7342 and detect ZSTD.
7343 * doc/install.texi: Mention zstd dependency.
7344 * gcc.c: Print supported LTO compression algorithms.
7345 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7346 (lto_compression_zstd): Likewise.
7347 (lto_uncompression_zstd): Likewise.
7348 (lto_end_compression): Dispatch in between zlib and zstd.
7349 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7350 (lto_uncompression_zlib): Make it static.
7351 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7352 * lto-section-in.c (lto_get_section_data): Pass info
7353 about used compression.
7354 * lto-streamer-out.c: By default use zstd when possible.
7355 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7356 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7357
7358 2019-07-03 Martin Liska <mliska@suse.cz>
7359
7360 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7361 * lto-section-out.c (lto_destroy_simple_output_block): Never
7362 compress LTO_section_lto section.
7363 * lto-streamer-out.c (produce_asm): Do not set major_version
7364 and minor_version.
7365 (lto_output_toplevel_asms): Likewise.
7366 (produce_lto_section): New function.
7367 (lto_output): Call produce_lto_section.
7368 (lto_write_mode_table): Do not set major_version and
7369 minor_version.
7370 (produce_asm_for_decls): Likewise.
7371 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7372 type.
7373 (struct lto_header): Remove.
7374 (struct lto_section): New struct.
7375 (struct lto_simple_header): Do not inherit from lto_header.
7376 (struct lto_file_decl_data): Add lto_section_header field.
7377
7378 2019-07-03 Martin Liska <mliska@suse.cz>
7379
7380 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7381 dead assignemts.
7382 * reg-stack.c (check_asm_stack_operands): Likewise.
7383 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7384 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7385 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7386 force_expand_binop.
7387
7388 2019-07-03 Martin Liska <mliska@suse.cz>
7389
7390 PR tree-optimization/90892
7391 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7392 in string constants.
7393
7394 2019-07-03 Martin Liska <mliska@suse.cz>
7395
7396 PR middle-end/90899
7397 * multiple_target.c (create_dispatcher_calls): Add to comdat
7398 group only if set for ifunc.
7399
7400 2019-07-03 Martin Liska <mliska@suse.cz>
7401
7402 PR target/88056
7403 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7404 Define local_object_name in outer scope in order to handle
7405 use-after-scope issue.
7406
7407 2019-07-03 Martin Liska <mliska@suse.cz>
7408
7409 * common.opt: Add fprofile-note.
7410 * coverage.c (coverage_init): Append the option
7411 to bbg_file_name.
7412 * doc/invoke.texi: Document -fprofile-note.
7413
7414 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7415
7416 PR tree-optimization/91033
7417 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7418 vect_analyze_data_refs): Add bool * arguments.
7419 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7420 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7421 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7422 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7423 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7424 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7425 vect_analyze_data_refs caller.
7426
7427 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7428 clause.
7429 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7430 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7431 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7432 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7433 OMP_CLAUSE__SCANTEMP_ entry.
7434 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7435 * tree-pretty-print.c (dump_omp_clause): Likewise.
7436 * tree-nested.c (convert_nonlocal_omp_clauses,
7437 convert_local_omp_clauses): Likewise.
7438 * omp-general.h (struct omp_for_data): Add have_scantemp and
7439 have_nonctrl_scantemp members.
7440 * omp-general.c (omp_extract_for_data): Initialize them.
7441 * omp-low.c (struct omp_context): Add scan_exclusive member.
7442 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7443 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7444 ctx->scan_exclusive.
7445 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7446 of !ctx->scan_inclusive.
7447 (lower_rec_input_clauses): Simplify gimplification of dtors using
7448 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7449 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7450 loops. Don't add barrier for reduction_omp_orig_ref if
7451 ctx->scan_??xclusive.
7452 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7453 (lower_omp_scan): Use ctx->scan_exclusive instead
7454 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7455 reductions. Use new_vard != new_var instead of repeated
7456 omp_is_reference calls.
7457 (omp_find_scan, lower_omp_for_scan): New functions.
7458 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7459 inscan reductions.
7460 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7461 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7462 and fd->have_scantemp.
7463
7464 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7465 on worksharing loop propagate it as shared clause to containing
7466 combined parallel.
7467
7468 * omp-expand.c (expand_omp_for_static_nochunk,
7469 expand_omp_for_static_chunk): For nowait worksharing loop with
7470 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7471 at the end.
7472
7473 2019-07-02 qing zhao <qing.zhao@oracle.com>
7474
7475 PR preprocessor/90581
7476 * doc/cppopts.texi: Add document for -fmax-include-depth.
7477 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7478
7479 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7480
7481 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7482 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7483 (mmx_packssdw): Ditto.
7484 (mmx_punpckhbw): Ditto.
7485 (mmx_punpcklbw): Ditto.
7486 (mmx_punpckhwd): Ditto.
7487 (mmx_punpcklwd): Ditto.
7488 (mmx_punpckhdq): Ditto.
7489 (mmx_punpckldq): Ditto.
7490 (*vec_dupv4hi): Ditto.
7491 (*vec_dupv2si): Ditto.
7492 (mmx_pmovmskb): Ditto.
7493 * config/i386/sse.md (sse_cvtpi2ps): Use
7494 TARGET_SSE2 && SSE_REG_P in split condition.
7495 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7496 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7497 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7498 (ssse3_pshufbv8qi3): Ditto.
7499 (ssse3_palignrdi): Ditto.
7500
7501 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7502
7503 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7504 with inlined save and restore.
7505
7506 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7507
7508 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7509 to be inserted on single successor edge of the entry block. Then call
7510 commit_edge_insertions instead of inserting the instructions manually.
7511 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7512 RTL expansion and rebuild jump labels chain.
7513
7514 2019-07-02 Richard Biener <rguenther@suse.de>
7515
7516 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7517 TI_CHREC_KNOWN.
7518 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7519 Define here.
7520 * tree.c (build_common_tree_nodes): Initialize them.
7521 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7522 Make declarations comments.
7523 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7524 chrec_known): Remove definitions.
7525 (initialize_scalar_evolutions_analyzer): Remove.
7526 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7527 * tree-streamer.c (preload_common_nodes): Do not preload
7528 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7529
7530 2019-07-02 Jan Hubicka <jh@suse.cz>
7531
7532 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7533 sanity check.
7534
7535 2019-07-02 Jan Hubicka <jh@suse.cz>
7536
7537 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7538 to ..
7539 (nonoverlapping_component_refs_since_match_p): ... this one;
7540 handle also non-decl bases; return -1 if search gave up.
7541 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7542 nonoverlapping_component_refs_of_decl_p_no_alias to
7543 nonoverlapping_component_refs_since_match_p_may_alias,
7544 nonoverlapping_component_refs_since_match_p_no_alias.
7545 (dump_alias_stats): Update dumping.
7546 (aliasing_matching_component_refs_p): Break out from ...;
7547 dispatch to nonoverlapping_component_refs_for_decl_p
7548 and nonoverlapping_component_refs_since_match_p.
7549 (aliasing_component_refs_p): ... here; call
7550 nonoverlapping_component_refs_p in scenarios where we can not
7551 precisely determine base match.
7552 (decl_refs_may_alias_p): Use
7553 nonoverlapping_component_refs_since_match_p.
7554 (indirect_ref_may_alias_decl_p): Do not call
7555 nonoverlapping_component_refs_p.
7556 (indirect_refs_may_alias_p): Likewise.
7557
7558 2019-07-02 Jan Hubicka <jh@suse.cz>
7559
7560 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7561 to clobber of return value.
7562
7563 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7564
7565 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7566 for is_neon_type instructions that have not already been categorized.
7567
7568 2019-07-02 Richard Biener <rguenther@suse.de>
7569
7570 PR tree-optimization/58483
7571 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7572 for MEM_REF base hashing.
7573 (equal_mem_array_ref_p): Likewise for base comparison.
7574
7575 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7576
7577 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7578 parameterized name.
7579 (signbit<mode>2): Use that name. Simplify.
7580
7581 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7582
7583 PR middle-end/66726
7584 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7585 Tune heuristic from PR71016 to allow MIN / MAX.
7586
7587 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7588
7589 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7590 parameterized name.
7591 (abs<mode>2): Use that name. Simplify.
7592
7593 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7594
7595 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7596 parameterized name.
7597 (neg<mode>2): Use that name. Simplify.
7598
7599 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7600
7601 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
7602 name.
7603 (abs<mode>2): Use that name. Simplify.
7604
7605 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7606
7607 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
7608 name.
7609 (neg<mode>2): Use that name. Simplify.
7610
7611 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
7612
7613 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
7614 ("enabled" attribute): Handle sse_noavx isa attribute.
7615 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
7616 Use TARGET_SSE && SSE_REGNO_P in split condition.
7617 (*vec_dupv2sf): Ditto.
7618
7619 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7620
7621 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
7622 name.
7623 (floatsi<mode>2): Use that name. Simplify.
7624
7625 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7626
7627 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
7628 parameterized name.
7629 (extenddf<mode>2_vsx): Make this a parameterized name.
7630 (extenddf<mode>2): Use those names. Simplify.
7631
7632 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7633
7634 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
7635 name.
7636 (eh_return): Use that name. Simplify.
7637
7638 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7639
7640 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
7641 (doloop_end): Use that name. Simplify.
7642
7643 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7644
7645 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
7646 parameterized name.
7647 (indirect_jump): Use that name. Simplify.
7648
7649 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7650
7651 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
7652 parameterized name.
7653 (abs<mode>2): Use that name. Simplify.
7654
7655 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7656
7657 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
7658 parameterized name.
7659 (fix_trunc<mode>si2): Use that name. Simplify.
7660
7661 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7662
7663 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
7664 (allocate_stack): Use that name. Simplify.
7665
7666 2019-07-01 Martin Sebor <msebor@redhat.com>
7667
7668 PR middle-end/90923
7669 * hash-map.h (hash_map::put): On insertion invoke element ctor.
7670 (hash_map::get_or_insert): Same. Reformat comment.
7671 * hash-set.h (hash_set::add): On insertion invoke element ctor.
7672 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7673 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7674 * hash-table.h (hash_table::operator=): Prevent copy assignment.
7675 (hash_table::hash_table (const hash_table&)): Use copy ctor
7676 instead of assignment to copy elements.
7677
7678 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
7679 John David Anglin <danglin@gcc.gnu.org>
7680
7681 PR target/90963
7682 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
7683 using saved frame pointer.
7684
7685 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
7686
7687 PR middle-end/64242
7688 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
7689 Add frame clobber and schedule blockage.
7690
7691 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
7692
7693 * doc/invoke.texi (Link Options): Further editorial changes to
7694 -flinker-output docs.
7695
7696 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7697
7698 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
7699 Load both operands of a PLUS into registers separately.
7700
7701 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
7702
7703 * config/s390/vector.md: Fix shift count operand printing.
7704
7705 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7706
7707 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
7708
7709 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7710
7711 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
7712 Use recog_data to test for an output operand.
7713
7714 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7715
7716 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
7717 exclude any others that are disparaged or that are bound to need
7718 a reload or spill.
7719 (ira_get_dup_out_num): Expand comment.
7720
7721 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7722
7723 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
7724 constraint string for each operand/alternative combo. Only handle
7725 '%' at the start of constraint strings, and look for it outside
7726 the main loop.
7727
7728 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7729
7730 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
7731 alternative_mask instead of HARD_REG_SET to represent a
7732 bitmask of alternatives.
7733 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7734 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
7735
7736 2019-07-01 Martin Liska <mliska@suse.cz>
7737
7738 * edit-context.c (test_applying_fixits_unreadable_file): Do not
7739 use () for a constructor call.
7740 (test_applying_fixits_line_out_of_range): Likewise.
7741 * ggc-page.c (alloc_page): Use (void *) for %p printf format
7742 argument.
7743 (free_page): Likewise.
7744
7745 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
7746
7747 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
7748 parameter names to match usage (no functional change).
7749 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
7750
7751 2019-07-01 Richard Biener <rguenther@suse.de>
7752
7753 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
7754 pass parameter.
7755 (pass_fre::execute): Honor it.
7756 * passes.def: Adjust pass_fre invocations to allow iterating,
7757 add non-iterating pass_fre before late threading/dom.
7758
7759 2019-07-01 Richard Biener <rguenther@suse.de>
7760
7761 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
7762 TARGET_MEM_REF handling to also handle address-taken ones.
7763
7764 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
7765
7766 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7767 hardware attributes): Document avx512vp2intersect.
7768
7769 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7770
7771 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
7772 (abs<mode>2): New expander.
7773 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
7774 Use CODE_FOR_ssse3_absv8qi2.
7775 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
7776 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
7777
7778 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7779
7780 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
7781 to sse, sse_noavx and avx. Update all uses.
7782
7783 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7784
7785 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
7786 (*mmx_<plusminus_insn><mode>3): Ditto.
7787 (*mmx_mulv4hi3"): Ditto.
7788 (*mmx_smulv4hi3_highpart): Ditto.
7789 (*mmx_umulv4hi3_highpart): Ditto.
7790 (*mmx_pmaddwd): Ditto.
7791 (*sse2_umulv1siv1di3): Ditto.
7792 (*mmx_<code>v4hi3): Ditto.
7793 (*mmx_<code>v8qi3): Ditto.
7794 (mmx_ashr<mode>3): Ditto.
7795 ("mmx_<shift_insn><mode>3): Ditto.
7796 (*mmx_eq<mode>3): Ditto.
7797 (mmx_gt<mode>3): Ditto.
7798 (mmx_andnot<mode>3): Ditto.
7799 (*mmx_<code><mode>3): Ditto.
7800 (*mmx_pinsrw): Ditto.
7801 (*mmx_pextrw): Ditto.
7802 (mmx_pshufw_1): Ditto.
7803 (*mmx_uavgv8qi3): Ditto.
7804 (*mmx_uavgv4hi3): Ditto.
7805 ("mmx_psadbw): Ditto.
7806 * config/i386/sse.md (sse_cvtps2pi): Ditto.
7807 (sse_cvttps2pi): Ditto.
7808 (ssse3_pmaddubsw): Ditto.
7809 (*ssse3_pmulhrswv4hi3): Ditto.
7810 (ssse3_psign<mode>3): Ditto.
7811
7812 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
7813
7814 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
7815 adjustment for bit-fields to all aggregate types.
7816
7817 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
7818
7819 * config/rs6000/predicates.md (pcrel_address): Use
7820 SYMBOL_REF_LOCAL_P to determine if a label is local.
7821 (pcrel_external_address): New predicate.
7822 (non_prefixed_mem_operand): Delete, predicate not used.
7823 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
7824 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
7825 addressing.
7826 (SYMBOL_REF_PCREL_P): Likewise.
7827
7828 PR target/91009
7829 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
7830 alternative.
7831 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
7832 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
7833 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
7834
7835 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7836
7837 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
7838 override on extra_headers.
7839
7840 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7841
7842 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
7843 * config/darwin-driver.c (darwin_default_min_version): Remove newline
7844 from warning.
7845 (darwin_driver_init): Likewise.
7846
7847 2019-06-28 Jan Beulich <jbeulich@suse.com>
7848
7849 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7850 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
7851 Eliminate redundant alternative.
7852
7853 2019-06-28 Jan Beulich <jbeulich@suse.com>
7854
7855 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7856 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
7857 Use vector_operand.
7858
7859 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
7860
7861 * config/arc/arc.c (arc_rtx_costs): All short instructions are
7862 having a lower cost regardless of the speed option.
7863
7864 2019-06-28 Jan Beulich <jbeulich@suse.com>
7865
7866 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
7867 vector_operand plus, on both alternatives, "Bm" constraint.
7868
7869 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
7870
7871 * config/arm/arm.md: Remove redundant constraints from
7872 define_expand but leave reload_inm and reload_outm patterns
7873 untouched since they need special constraints to work.
7874 * config/arm/arm-fixed.md: Remove redundant constraints from
7875 define_expand.
7876 * config/arm/iwmmxt.md: Likewise.
7877 * config/arm/neon.md: Likewise.
7878 * config/arm/sync.md: Likewise.
7879 * config/arm/thumb1.md: Likewise.
7880 * config/arm/vec-common.md: Likewise.
7881
7882 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
7883
7884 * doc/install.texi: Document --disable-tm-clone-registry.
7885
7886 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7887
7888 PR c++/91024
7889 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
7890 statements.
7891
7892 PR tree-optimization/91010
7893 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
7894 return true. Otherwise, don't call operand_equal_p if offset1 or
7895 offset2 is NULL and just return false.
7896
7897 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7898
7899 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
7900 user-specified float mode choice for kernel mode code.
7901
7902 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7903
7904 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
7905 spec.
7906
7907 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7908
7909 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
7910 use longcall for 64b code.
7911
7912 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
7913
7914 * builtins.c (get_memory_rtx): Fix comment.
7915 * optabs.def (movmem_optab): Change to cpymem_optab.
7916 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
7917 (emit_block_move_hints): Change movmem to cpymem.
7918 * defaults.h: Change movmem to cpymem.
7919 * targhooks.c (get_move_ratio): Change movmem to cpymem.
7920 (default_use_by_pieces_infrastructure_p): Ditto.
7921 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
7922 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
7923 to cpymem.
7924 * config/aarch64/aarch64.h: Change movmem to cpymem.
7925 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
7926 * config/alpha/alpha.h: Change movmem to cpymem in comment.
7927 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
7928 movmem to cpymem.
7929 * config/arc/arc-protos.h: Change movmem to cpymem.
7930 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
7931 * config/arc/arc.h: Change movmem to cpymem in comment.
7932 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
7933 * config/arm/arm-protos.h: Change movmem to cpymem in names.
7934 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
7935 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
7936 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
7937 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
7938 * config/avr/avr-protos.h: Change movmem to cpymem.
7939 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
7940 avr_out_movmem): Change movmem to cpymem.
7941 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
7942 Change movmem to cpymem.
7943 * config/bfin/bfin-protos.h: Change movmem to cpymem.
7944 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
7945 Change movmem to cpymem.
7946 * config/bfin/bfin.h: Change movmem to cpymem in comment.
7947 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
7948 * config/c6x/c6x-protos.h: Change movmem to cpymem.
7949 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
7950 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
7951 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
7952 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
7953 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
7954 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
7955 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
7956 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
7957 expand_small_cpymem_or_setmem,
7958 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
7959 expand_set_or_cpymem_constant_prologue,
7960 ix86_expand_set_or_cpymem): Change movmem to cpymem.
7961 * config/i386/i386-protos.h: Change movmem to cpymem.
7962 * config/i386/i386.h: Change movmem to cpymem in comment.
7963 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
7964 (setmem<mode>): Change expansion function name.
7965 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
7966 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
7967 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
7968 * config/m32c/m32c-protos.h: Change movmem to cpymem.
7969 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
7970 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
7971 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
7972 to cpymem.
7973 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
7974 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
7975 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
7976 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
7977 Change movmem to cpymem.
7978 * config/mips/mips.h: Change movmem to cpymem.
7979 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
7980 * config/nds32/nds32-memory-manipulation.c
7981 (nds32_expand_movmemsi_loop_unknown_size,
7982 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
7983 nds32_expand_movmemsi_unroll,
7984 nds32_expand_movmemsi): Change movmem to cpymem.
7985 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
7986 * config/nds32/nds32-protos.h: Change movmem to cpymem.
7987 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
7988 (pa_adjust_insn_length): Change call to compute_movmem_length.
7989 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
7990 movmemdi, movmemdi_prereload,
7991 movmemdi_postreload): Change movmem to cpymem.
7992 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
7993 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
7994 * config/riscv/riscv.c: Change movmem to cpymem in comment.
7995 * config/riscv/riscv.h: Change movmem to cpymem.
7996 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
7997 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
7998 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
7999 movmem to cpymem.
8000 * config/s390/s390-protos.h: Change movmem to cpymem.
8001 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
8002 s390_expand_insv): Change movmem to cpymem.
8003 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
8004 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
8005 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
8006 * config/sparc/sparc.h: Change movmem to cpymem in comment.
8007 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
8008 for nonexistent function.
8009 * config/vax/vax.h: Change movmem to cpymem in comment.
8010 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
8011 * config/visium/visium.h: Change movmem to cpymem in comment.
8012 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
8013 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
8014 * doc/md.texi: Change movmem to cpymem and update description to match.
8015 * doc/rtl.texi: Change movmem to cpymem.
8016 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
8017 * doc/tm.texi: Regenerate.
8018
8019 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
8020
8021 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
8022 -fvariable-expansion-in-unroller by default.
8023 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
8024 default for Power.
8025
8026 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
8027
8028 Revert
8029 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8030 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8031
8032 * config.gcc(rs6000-*-*): Define target_gtfiles.
8033
8034 2019-06-27 Jan Hubicka <jh@suse.cz>
8035
8036 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
8037 (add_type_duplicate): When odr hash is not allocated, to nothing.
8038 (odr_based_tbaa_p): New function.
8039 (set_type_canonical_for_odr_type): New function.
8040 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
8041 set_type_canonical_for_odr_type): New.
8042 * tree.c (gimple_canonical_types_compatible_p): ODR types with
8043 ODR based TBAA are not equivalent to non-ODR types.
8044
8045 2019-06-27 Martin Liska <mliska@suse.cz>
8046
8047 PR tree-optimization/90974
8048 PR rtl-optimization/90975
8049 PR rtl-optimization/90976
8050 PR target/91016
8051 PR tree-optimization/91017
8052 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
8053 unused tmp.
8054 * lra.c (lra_set_insn_recog_data): Remove a leftover from
8055 initial commit of IRA.
8056 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
8057 of op0 and op1.
8058 * tree-vect-loop.c (vect_create_epilog_for_reduction):
8059 Remove unused mode1.
8060 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
8061 to new_stmt_info.
8062
8063 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8064
8065 PR target/90991
8066 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
8067 instead of register_operand for operands[1], add m to its constraints
8068 if operands[2] uses "C" constraint. Ensure in condition that if
8069 operands[2] is not 0, then operands[1] is not a MEM. For last two
8070 alternatives, use unaligned loads instead of aligned if operands[1] is
8071 misaligned_operand.
8072
8073 2019-06-27 Martin Liska <mliska@suse.cz>
8074
8075 * asan.c (asan_emit_allocas_unpoison): Remove obviously
8076 dead assignments.
8077 * bt-load.c (move_btr_def): Likewise.
8078 * builtins.c (expand_builtin_apply_args_1): Likewise.
8079 (expand_builtin_apply): Likewise.
8080 * cfgexpand.c (expand_asm_stmt): Likewise.
8081 (construct_init_block): Likewise.
8082 * cfghooks.c (verify_flow_info): Likewise.
8083 * cfgloopmanip.c (remove_path): Likewise.
8084 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
8085 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
8086 * combine.c (simplify_if_then_else): Likewise.
8087 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8088 (choose_basereg): Likewise.
8089 (ix86_expand_prologue): Likewise.
8090 (ix86_preferred_output_reload_class): Likewise.
8091 * cselib.c (cselib_record_sets): Likewise.
8092 * df-scan.c (df_scan_alloc): Likewise.
8093 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
8094 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
8095 * emit-rtl.c (try_split): Likewise.
8096 * graphite-scop-detection.c (assign_parameter_index_in_region):
8097 Likewise.
8098 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
8099 * ira-color.c (setup_profitable_hard_regs): Likewise.
8100 * ira.c (rtx_moveable_p): Likewise.
8101 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8102 * read-rtl.c (read_subst_mapping): Likewise.
8103 * regrename.c (scan_rtx): Likewise.
8104 * reorg.c (fill_slots_from_thread): Likewise.
8105 * tree-inline.c (tree_function_versioning): Likewise.
8106 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
8107 * tree-ssa-sink.c (statement_sink_location): Likewise.
8108 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8109 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
8110 (vect_create_epilog_for_reduction): Likewise.
8111 * tree.c (build_nonstandard_integer_type): Likewise.
8112
8113 2019-06-27 Richard Biener <rguenther@suse.de>
8114
8115 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
8116
8117 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
8118
8119 PR tree-optimization/89772
8120 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
8121 out-of-bound accesses checking.
8122
8123 2019-06-27 Martin Liska <mliska@suse.cz>
8124
8125 PR tree-optimization/91014
8126 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
8127 when LHS is NULL_TREE.
8128
8129 2019-06-27 Martin Liska <mliska@suse.cz>
8130
8131 * symbol-summary.h (traverse): Pass
8132 argument a to the call of callback.
8133 (gt_ggc_mx): Mark arguments as unused.
8134 (gt_pch_nx): Likewise.
8135
8136 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
8137
8138 PR target/62147
8139 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
8140 finiteness.
8141
8142 2019-06-26 Jeff Law <law@redhat.com>
8143
8144 PR tree-optimization/90883
8145 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
8146 (delete_dead_or_redundant_assignment): Likewise.
8147
8148 PR tree-optimization/90883
8149 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
8150 * tree-ssa-dse.c: Update various comments to distinguish between
8151 dead and redundant stores.
8152 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
8153 (dse_optimize_redundant_stores): New function.
8154 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
8155 Distinguish between dead and redundant calls in dump output. All
8156 callers updated.
8157 (delete_dead_or_redundant_assignment): Similarly for assignments.
8158 (dse_optimize_stmt): Handle _CHK variants. For statements which
8159 store 0 into multiple memory locations, try to prove a subsequent
8160 store is redundant.
8161
8162 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
8163
8164 PR target/89021
8165 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
8166 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
8167
8168 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8169
8170 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
8171 (branch_islands): New extern.
8172 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
8173 * config/rs6000/rs6000.c: .. here.
8174
8175 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8176
8177 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
8178 (powerpc*-*-*) ... to here.
8179
8180 2019-06-26 Jeff Law <law@redhat.com>
8181
8182 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
8183 memcpy, memmove and memset builtins.
8184 (maybe_trim_memstar_call): Likewise.
8185
8186 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8187
8188 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
8189
8190 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8191
8192 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8193
8194 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8195
8196 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
8197 declaration.
8198 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
8199 "static".
8200 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
8201 declaration.
8202
8203 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8204
8205 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
8206
8207 2019-06-26 Richard Biener <rguenther@suse.de>
8208
8209 PR ipa/90982
8210 * tree-inline.c (remap_ssa_name): Copy SSA range info.
8211
8212 2019-06-26 Richard Biener <rguenther@suse.de>
8213
8214 * lto-streamer.h (lto_bitmap_alloc): Remove.
8215 (lto_bitmap_free): Likewise.
8216 * lto-streamer.c (lto_bitmap_alloc): Remove.
8217 (lto_bitmap_free): Likewise.
8218 (lto_obstack): Likewise.
8219 (lto_obstack_initialized): Likewise.
8220 * lto-streamer-out.c (lto_output): Use own obstack for local
8221 bitmap, free it consistently.
8222
8223 2019-06-26 Jakub Jelinek <jakub@redhat.com>
8224
8225 PR target/90991
8226 * config/i386/sse.md
8227 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
8228 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
8229 insns if operands[2] is misaligned_operand.
8230
8231 2019-06-26 Li Jia He <helijia@linux.ibm.com>
8232
8233 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
8234 TARGET_POWERPC64.
8235 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
8236 to GPR.
8237
8238 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8239
8240 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
8241
8242 2019-06-26 Martin Liska <mliska@suse.cz>
8243
8244 PR tree-optimization/90973
8245 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
8246 epilogue_cost_vec instead of prologue_cost_vec for
8247 a epilogue cost.
8248
8249 2019-06-26 Martin Liska <mliska@suse.cz>
8250
8251 * bb-reorder.c (connect_better_edge_p): Add missing else
8252 statement in the middle of if-else statements.
8253
8254 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
8255 H.J. Lu <hongjiu.lu@intel.com>
8256 Olga Makhotina <olga.makhotina@intel.com>
8257
8258 * common/config/i386/i386-common.c
8259 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
8260 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
8261 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
8262 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
8263 (ix86_handle_option): Handle -mavx512vp2intersect.
8264 * config/i386/avx512vp2intersectintrin.h: New.
8265 * config/i386/avx512vp2intersectvlintrin.h: New.
8266 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
8267 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8268 AVX512VP2INTERSECT.
8269 * config/i386/i386-builtin-types.def: Add new types.
8270 * config/i386/i386-builtin.def: Add new builtins.
8271 * config/i386/i386-builtins.c: (enum processor_features): Add
8272 F_AVX512VP2INTERSECT.
8273 (static const _isa_names_table isa_names_table): Ditto.
8274 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8275 __AVX512VP2INTERSECT__.
8276 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8277 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8278 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8279 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8280 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8281 * config/i386/i386-options.c (ix86_target_string): Add
8282 -mavx512vp2intersect.
8283 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8284 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8285 P2HImode and P2QImode.
8286 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8287 number for P2QImode and P2HImode.
8288 (ix86_regmode_natural_size): New function.
8289 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8290 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8291 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8292 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8293 * config/i386/i386.opt: Add -mavx512vp2intersect.
8294 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8295 avx512vp2intersectvlintrin.h.
8296 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8297 (define_mode_iterator VI48_AVX512VP2VL): New.
8298 (avx512vp2intersect_2intersect<mode>,
8299 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8300 * config.gcc: Add avx512vp2intersectvlintrin.h and
8301 avx512vp2intersectintrin.h to extra_headers.
8302 * doc/invoke.texi: Document -mavx512vp2intersect.
8303
8304 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8305
8306 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8307
8308 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8309
8310 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8311 savres_routine_syms, savres_routine_name, morestack_ref,
8312 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8313 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8314 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8315 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8316 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8317 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8318 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8319 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8320 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8321 get_stack_clash_protection_probe_interval,
8322 get_stack_clash_protection_guard_size,
8323 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8324 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8325 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8326 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8327 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8328 gen_frame_mem_offset, rs6000_savres_routine_name,
8329 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8330 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8331 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8332 rs6000_global_entry_point_prologue_needed_p,
8333 rs6000_get_separate_components, rs6000_components_for_bb,
8334 rs6000_disqualify_components, rs6000_emit_prologue_components,
8335 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8336 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8337 rs6000_output_savres_externs, rs6000_output_function_prologue,
8338 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8339 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8340 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8341 rs6000_output_function_epilogue, gen_add3_const,
8342 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8343 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8344 to rs6000-logue.c.
8345 (machine_function): Moved to rs6000.h.
8346 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8347 rs6000-internal.h.
8348 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
8349 savres_routine_syms, savres_routine_name, morestack_ref,
8350 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8351 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8352 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8353 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8354 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8355 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8356 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8357 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8358 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8359 get_stack_clash_protection_probe_interval,
8360 get_stack_clash_protection_guard_size,
8361 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8362 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8363 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8364 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8365 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8366 gen_frame_mem_offset, rs6000_savres_routine_name,
8367 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8368 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8369 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8370 rs6000_global_entry_point_prologue_needed_p,
8371 rs6000_get_separate_components, rs6000_components_for_bb,
8372 rs6000_disqualify_components, rs6000_emit_prologue_components,
8373 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8374 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8375 rs6000_output_savres_externs, rs6000_output_function_prologue,
8376 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8377 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8378 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8379 rs6000_output_function_epilogue, gen_add3_const,
8380 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8381 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8382 to here from rs6000.c.
8383 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8384 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8385 quad_address_offset_p) Moved to here from rs6000.c.
8386 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8387 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8388 collector.
8389
8390 2019-06-25 Martin Liska <mliska@suse.cz>
8391
8392 * hash-table.c (hashtab_chk_error): Move here from ...
8393 * hash-table.h (hashtab_chk_error): ... here.
8394
8395 2019-06-25 Martin Liska <mliska@suse.cz>
8396
8397 PR tree-optimization/90978
8398 * df-scan.c (df_update_entry_block_defs): Remove dead else
8399 branch.
8400 (df_update_exit_block_uses): Likewise.
8401
8402 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8403 Andrew Stubbs <ams@codesourcery.com>
8404
8405 * config.gcc (thread_file): Set to gcn for AMD GCN.
8406 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8407 (TARGET_EMUTLS_VAR_INIT): New hook.
8408
8409 2019-06-25 Martin Jambor <mjambor@suse.cz>
8410
8411 PR ipa/90939
8412 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8413
8414 2019-06-25 Richard Biener <rguenther@suse.de>
8415
8416 PR tree-optimization/90930
8417 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8418 into parallel form in the last pass instance.
8419
8420 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8421
8422 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8423 (arc_legitimize_pic_address): Simplify and cleanup the function.
8424 (SYMBOLIC_CONST): Remove.
8425 (prepare_pic_move): Likewise.
8426 (prepare_move_operands): Handle complex mov cases here.
8427 (arc_legitimize_address_0): Remove call to
8428 arc_legitimize_pic_address.
8429 (arc_legitimize_address): Remove call to
8430 arc_legitimize_tls_address.
8431 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8432 (movhi_insn): Likewise.
8433
8434 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8435
8436 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8437 PTRDIFF_TYPE.
8438 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8439 format of "__intN" types for UINTMAX_TYPE.
8440 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8441 format of "__intN" types for SIZETYPE.
8442 * tree.c (build_common_tree_nodes): Accept "__intN__"
8443 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8444 * doc/invoke.texi: Document that __intN__ disables pedantic
8445 warnings.
8446
8447 2019-06-25 Jan Hubicka <jh@suse.cz>
8448
8449 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8450 base2_alias_set is non-zero before doing TBAA based disambiguation.
8451
8452 2019-06-25 Martin Liska <mliska@suse.cz>
8453
8454 PR tree-optimization/90973
8455 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8456 of prologue and epilogue.
8457
8458 2019-06-24 Jan Hubicka <jh@suse.cz>
8459
8460 * ipa-utils.h (type_with_linkage_p): Verify that type is
8461 CXX_ODR_P.
8462 (odr_type_p): Remove extra return.
8463 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8464 hash STRING_FLAG only for arrays and integers.
8465 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8466 Update analogously.
8467 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8468 Likewise.
8469 * print-tree.c (print_node): Print cxx-odr-p
8470 and string-flag.
8471 * tree.c (need_assembler_name_p): Also check that type
8472 is CXX_ODR_TYPE_P
8473 (verify_type_variant): Update verification of SRING_FLAG;
8474 also check CXX_ODR_P.
8475 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8476 (TYPE_STRING_FLAG): Use it.
8477 (TYPE_CXX_ODR_P): New macro.
8478 * dwarf2out.c (gen_array_type_die): First check that type
8479 is an array and then test string flag.
8480
8481 2019-06-24 Richard Biener <rguenther@suse.de>
8482
8483 PR tree-optimization/90972
8484 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8485 in common code, dealing with STRING_CST properly.
8486
8487 2019-06-24 Richard Biener <rguenther@suse.de>
8488
8489 PR tree-optimization/90930
8490 PR tree-optimization/90316
8491 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8492 decrement of limit.
8493
8494 2019-06-24 Martin Sebor <msebor@redhat.com>
8495
8496 * tree-pretty-print.h: Remove unnecessary punctuation characters
8497 from a diagnostic.
8498 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8499
8500 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8501
8502 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8503 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8504 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8505
8506 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8507
8508 * config/rs6000/darwin.h: Handle GCC target pragma.
8509
8510 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8511
8512 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8513
8514 2019-06-22 Jeff Law <law@redhat.com>
8515
8516 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8517
8518 2019-06-22 Jan Hubicka <jh@suse.cz>
8519
8520 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8521 give up on bitfields; continue searching for different refs
8522 appearing later.
8523
8524 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8525
8526 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8527 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8528 containing the offset as possible simd lane access. Look through
8529 widening conversion. Move the
8530 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8531
8532 2019-06-21 Richard Biener <rguenther@suse.de>
8533
8534 PR tree-optimization/90930
8535 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8536 flag on new stmts to avoid re-processing them.
8537
8538 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8539
8540 PR c++/90875 - added -Wswitch-outside-range option
8541 * doc/invoke.texi (Wswitch-outside-range): Document.
8542
8543 2019-06-21 Jeff Law <law@redhat.com>
8544
8545 PR tree-optimization/90949
8546 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8547 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8548
8549 2019-06-21 Richard Biener <rguenther@suse.de>
8550
8551 PR debug/90914
8552 * dwarf2out.c (prune_unused_types_walk): Always consider
8553 function-local extern declarations as used.
8554
8555 2019-06-21 Richard Biener <rguenther@suse.de>
8556
8557 PR tree-optimization/90913
8558 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8559 the scalar variant of if-conversion versioning.
8560
8561 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8562
8563 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8564 create another "omp scan inscan exclusive" array if
8565 !ctx->scan_inclusive.
8566 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8567 (lower_omp_scan): Likewise.
8568 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8569 2-bit bitfield for simd_lane_access_p member.
8570 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8571 aux == (void *)-4 as simd lane access.
8572 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8573 comment with permutations to show the canonical permutation order.
8574 (vectorizable_scan_store): Handle exclusive scan.
8575 (vectorizable_store): Call vectorizable_scan_store even for
8576 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8577
8578 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8579 "omp simd array" arrays with one byte elements.
8580
8581 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8582
8583 * config/alpha/alpha.md (@unaligned_store<mode>):
8584 Rename from unaligned_store<mode>.
8585 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8586 * config/alpha/sync.md (@load_locked_<mode>): Rename
8587 from load_locked_<mode>.
8588 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8589 (@atomic_compare_and_swap<mode>_1): Rename
8590 from atomic_compare_and_swap<mode>_1.
8591 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8592 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8593 Use gen_reload_in_aligned and gen_unaligned_store.
8594 (emit_load_locked): Remove.
8595 (emit_store_conditional): Ditto.
8596 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8597 (alpha_split_compare_and_swap): Ditto.
8598 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8599 (alpha_split_compare_and_swap_12): Use gen_load_locked
8600 and gen_store_conditional.
8601 (alpha_split_atomic_exchange): Ditto.
8602 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
8603 (alpha_split_atomic_exchange_12): Use gen_load_locked
8604 and gen_store_conditional.
8605
8606 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
8607
8608 * config/aarch64/aarch64-errata.h: New file.
8609 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
8610 (CA53_ERR_843419_SPEC): Delete.
8611 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
8612 * config/aarch64/aarch64-linux.h: Likewise.
8613 * config/aarch64/aarch64-netbsd.h: Likewise.
8614 * config/aarch64/aarch64-freebsd.h: Likewise.
8615
8616 2019-06-20 Marek Polacek <polacek@redhat.com>
8617
8618 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
8619
8620 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
8621
8622 * config/rs6000/rs6000.md (isa attribute): Add support for
8623 for a future processor.
8624
8625 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
8626
8627 PR target/54855
8628 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
8629 standard scalar operation pattern for V2DF.
8630 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
8631 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
8632 (*ieee_<ieee_maxmin><mode>3): Likewise.
8633 (vec_setv2df_0): Likewise.
8634
8635 2019-06-20 Jan Hubicka <jh@suse.cz>
8636
8637 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
8638 parameter; it has no use in gimple memory model.
8639 (indirect_ref_may_alias_decl_p): Update.
8640
8641 2019-06-20 Martin Liska <mliska@suse.cz>
8642
8643 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
8644 to 10.
8645
8646 2019-06-20 Jakub Jelinek <jakub@redhat.com>
8647
8648 * tree-vect-stmts.c (enum scan_store_kind): New type.
8649 (scan_store_can_perm_p): Change last argument from int * to
8650 vec<enum scan_store_kind> *, record precisely which permutations
8651 need whole vector left shift or that plus VEC_COND_EXPR.
8652 (vectorizable_scan_store): Adjust caller, use whole vector left shift
8653 and additional VEC_COND_EXPR only for those iterations that need it.
8654
8655 2019-06-20 Alexandre Oliva <oliva@adacore.com>
8656
8657 * config.gcc: Fix ARM --with-fpu checking and error message.
8658
8659 2019-06-19 Marek Polacek <polacek@redhat.com>
8660
8661 PR c++/60364 - noreturn after first decl not diagnosed.
8662 * attribs.c (get_attribute_namespace): No longer static.
8663 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
8664 attributes.
8665 (attr_noreturn_exclusions): Make it extern.
8666 * attribs.h (get_attribute_namespace): Declare.
8667 * tree-inline.c (function_attribute_inlinable_p): Use
8668 get_attribute_name.
8669
8670 2019-06-19 Martin Sebor <msebor@redhat.com>
8671
8672 PR tree-optimization/90626
8673 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
8674
8675 PR tree-optimization/90626
8676 * tree-ssa-strlen.c (strxcmp_unequal): New function.
8677 (handle_builtin_string_cmp): Call it.
8678
8679 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8680
8681 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
8682 and DARWIN_NOPIE_SPEC.
8683 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
8684 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
8685 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
8686 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
8687 (DARWIN_EXPORT_DYNAMIC): Delete.
8688 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
8689 and pie options processing to darwin.h.
8690 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
8691
8692 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8693
8694 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
8695 in computing the number of options to be moved.
8696
8697 2019-06-19 Maya Rashish <coypu@sdf.org>
8698
8699 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
8700 (CLEAR_INSN_CACHE) Use it.
8701
8702 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
8703
8704 * config/i386/i386.md (cmpstrnsi): Remove dead code.
8705
8706 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
8707
8708 PR middle-end/84521
8709 * builtins.c (expand_builtin_setjmp_setup): Save
8710 hard_frame_pointer_rtx.
8711 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
8712 restore fp.
8713 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
8714 non-local goto.
8715 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
8716 elimination code.
8717 (remove_reg_equal_offset_note): Remove unused function.
8718 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
8719 code.
8720 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8721 (arc_builtin_setjmp_frame_value): Remove function.
8722 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8723 (avr_builtin_setjmp_frame_value): Remove function.
8724 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8725 (ix86_builtin_setjmp_frame_value): Remove function.
8726 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
8727 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8728 (sparc_builtin_setjmp_frame_value): Remove function.
8729 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8730 (vax_builtin_setjmp_frame_value): Remove function.
8731 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
8732 pointer if has_nonlocal_label.
8733
8734 2019-06-19 Jakub Jelinek <jakub@redhat.com>
8735
8736 * doc/md.texi: Document vec_shl_<mode> pattern.
8737 * optabs.def (vec_shl_optab): New optab.
8738 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
8739 argument, if == vec_shl_optab, check for left whole vector shift
8740 pattern rather than right shift.
8741 (expand_vec_perm_const): Add vec_shl_optab support.
8742 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
8743 in the comment.
8744 * tree-vect-generic.c (lower_vec_perm): Support permutations which
8745 can be handled by vec_shl_optab.
8746 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
8747 (check_scan_store): Use it.
8748 (vectorizable_scan_store): If target can't do normal permutations,
8749 try to use whole vector left shifts and if needed a VEC_COND_EXPR
8750 after it.
8751 * config/i386/sse.md (vec_shl_<mode>): New expander.
8752
8753 * omp-low.c (lower_rec_input_clauses): Handle references properly
8754 in inscan clauses.
8755 (lower_omp_scan): Likewise.
8756
8757 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8758
8759 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
8760 mem_mode is BLKmode.
8761
8762 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
8763
8764 PR target/90922
8765 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
8766 pointer adjustment for the case of no callee-saved registers and
8767 stack frame bigger than 128 bytes.
8768
8769 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8770
8771 PR middle-end/90862
8772 * omp-low.c (check_omp_nesting_restrictions): Handle
8773 GF_OMP_TARGET_KIND_OACC_DECLARE.
8774
8775 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
8776
8777 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
8778 (@add<mode>3_carry): Rename from add<mode>3_carry.
8779 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
8780 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
8781 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
8782 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
8783 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
8784 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
8785 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
8786 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
8787 (cmpstrnsi): Use gen_cmp_1.
8788 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
8789 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
8790 (@umonitor_<mode>): Rename from umonitor_<mode>.
8791 * config/i386/i386-expand.c (ix86_expand_copysign):
8792 Use gen_copysign3_const and gen_copysign3_var.
8793 (ix86_expand_xorsign): Use gen_xorsign3_1.
8794 (ix86_expand_branch): Use gen_sub3_carry_ccc,
8795 gen_sub3_carry_ccgz and gen_cmp1.
8796 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
8797 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
8798 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
8799 (ix86_split_lshr): Ditto.
8800 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
8801
8802 2019-06-18 Jason Merrill <jason@redhat.com>
8803
8804 * tree.c (build_constructor): Add MEM_STAT_DECL.
8805
8806 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8807
8808 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
8809 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
8810 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
8811 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
8812 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
8813 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
8814 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
8815 Use CC_NZC instead of CC.
8816 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
8817 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
8818 (aarch64_print_operand): Handle E_CC_NZCmode.
8819 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
8820 of gen_set_clobber_cc.
8821
8822 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8823
8824 * config/aarch64/aarch64-sve.md: Tabify file.
8825
8826 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8827
8828 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
8829 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
8830 * config/aarch64/aarch64-sve.md: Use it.
8831
8832 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8833
8834 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
8835 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
8836 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
8837 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
8838 (aarch64_expand_sve_vec_cmp_int): Use it.
8839 (aarch64_expand_sve_vec_cmp_float): Likewise.
8840 * config/aarch64/aarch64-sve.md: Likewise throughout.
8841
8842 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8843 Kugan Vivekanandarajah <kuganv@linaro.org>
8844
8845 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
8846 (*cond_<optab><mode>_z): Fold into...
8847 (*cond_<optab><mode>_any): ...here. Also handle cases in which
8848 operand 4 can be tied to operand 0 (either inherently or via RA).
8849
8850 2019-06-18 Richard Biener <rguenther@suse.de>
8851
8852 PR debug/90900
8853 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
8854 as if optimized away.
8855
8856 2019-06-18 Tom de Vries <tdevries@suse.de>
8857
8858 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
8859 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
8860 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
8861 Rename to ...
8862 (define_insn "@set_softstack_<mode>"): ... this.
8863 (define_insn "omp_simt_enter_<mode>"): Rename to ...
8864 (define_insn "@omp_simt_enter_<mode>"): ... this.
8865 (define_insn "omp_simt_exit_<mode>"): Rename to ...
8866 (define_insn "@omp_simt_exit_<mode>"): ... this.
8867
8868 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8869
8870 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
8871 vf parameter. Restore the previous iv step of nscalars_step,
8872 but give it iv_type rather than compare_type. Tweak code order
8873 to match the comments.
8874 (vect_set_loop_condition_masked): Update accordingly.
8875 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
8876 for iv_precision. Tweak comment formatting.
8877
8878 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8879
8880 * config/darwin.c: Strip trailing whitespace.
8881
8882 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8883
8884 * config/darwin.c (darwin_emit_unwind_label): New default to false.
8885 (darwin_override_options): Set darwin_emit_unwind_label as needed.
8886
8887 2019-06-18 Martin Jambor <mjambor@suse.cz>
8888
8889 PR ipa/90889
8890 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
8891 caller does not have flag_ipa_cp set.
8892
8893 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8894
8895 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
8896 from "*fold_left_plus_<mode>", updated operands order.
8897 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
8898 * internal-fn.c (mask_fold_left_direct): New define.
8899 (expand_mask_fold_left_optab_fn): Likewise.
8900 (direct_mask_fold_left_optab_supported_p): Likewise.
8901 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
8902 * optabs.def (mask_fold_left_plus_optab): New optab.
8903 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
8904 masked internal_fn for a reduction ifn.
8905 (vectorize_fold_left_reduction): Add support for masking reductions.
8906
8907 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
8908
8909 PR middle-end/80791
8910 * target.def (predict_doloop_p): New hook.
8911 * targhooks.h (default_predict_doloop_p): New declaration.
8912 * targhooks.c (default_predict_doloop_p): New function.
8913 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
8914 * doc/tm.texi: Regenerate.
8915 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
8916 (TARGET_PREDICT_DOLOOP_P): New macro.
8917 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
8918
8919 2019-06-17 Jakub Jelinek <jakub@redhat.com>
8920
8921 * omp-low.c (struct omp_context): Add scan_inclusive field.
8922 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
8923 if inclusive scan.
8924 (struct omplow_simd_context): Add lastlane member.
8925 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
8926 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
8927 1 or 2 argument.
8928 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
8929 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
8930 (lower_omp_scan): New function.
8931 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
8932 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
8933 check 3rd argument if present rather than 2nd.
8934 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
8935 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
8936 2-bit bitfield.
8937 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8938 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
8939 than 2nd.
8940 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
8941 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
8942 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
8943 init.
8944 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
8945 IFN_GOMP_SIMD_LANE argument.
8946 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
8947 encoded ->aux value.
8948 * tree-vect-stmts.c: Include attribs.h.
8949 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
8950 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
8951 functions.
8952 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
8953 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
8954
8955 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
8956
8957 PR target/62055
8958 * config/i386/i386.md (*nabstf2_1): New insn pattern.
8959 (*nabs<mode>2_1): Ditto.
8960 (nabs sse-reg splitter): New splitter.
8961 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
8962
8963 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8964
8965 PR bootstrap/90873.
8966 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8967 TMR index check.
8968
8969 2019-06-17 Tom de Vries <tdevries@suse.de>
8970
8971 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
8972 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
8973 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
8974 ...
8975 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
8976 match_operand 0.
8977 (define_insn "omp_simt_enter_insn"): Rename to ...
8978 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
8979 match_operand 0, 1 and 2, as well as the unspec_volatile result.
8980 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
8981 gen_omp_simt_enter_si.
8982 (define_expand "omp_simt_exit"): New.
8983 (define_insn "omp_simt_exit"): Rename to ...
8984 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
8985 match_operand 0.
8986
8987 2019-06-17 Matthew Green <mrg@eterna.com.au>
8988 Maya Rashish <coypu@sdf.org>
8989
8990 * config.gcc (aarch64*-*-netbsd*): New target.
8991 * config/aarch64/aarch64-netbsd.h: New file.
8992 * config/aarch64/t-aarch64-netbsd: Likewise.
8993
8994 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8995
8996 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
8997 the access path from base to first VIEW_CONVERT_EXPR or
8998 BIT_FIELD_REF.
8999
9000 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9001
9002 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
9003 access path on BIT_FIELD_REFs.
9004
9005 2019-06-17 Martin Liska <mliska@suse.cz>
9006
9007 PR ipa/90874
9008 * ipa-utils.h (odr_type_p): Remove dead code.
9009
9010 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9011
9012 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
9013 alternative Solaris 11.4 format.
9014 * configure: Regenerate.
9015
9016 2019-06-17 Tom de Vries <tdevries@suse.de>
9017
9018 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
9019 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
9020 match_operand 0.
9021 (define_insn "call_value_insn"): Rename to ...
9022 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
9023 match_operand 0.
9024 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
9025 DI.
9026
9027 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
9028
9029 PR middle-end/64242
9030 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
9031 frame clobbers and schedule block.
9032 (builtin_longjmp): Likewise.
9033
9034 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9035
9036 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
9037 describe how to perform MSPABI compliant 64-bit shift.
9038 * config/msp430/msp430.md (ashldi3): New define_expand.
9039 (ashrdi3): New define_expand.
9040 (lshrdi3): New define_expand.
9041
9042 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9043
9044 * doc/sourcebuild.texi: Document new effective target keyword
9045 longlong64.
9046
9047 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9048
9049 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
9050 indirect_refs_may_alias_p): Revert accidental commits.
9051
9052 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
9053 at the end of structures.
9054
9055 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9056
9057 * config/darwin.c (machopic_indirect_call_target): Use renamed
9058 darwin_picsymbol_stubs to decide on output.
9059 (darwin_override_options): Handle darwin_picsymbol_stubs.
9060 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
9061 (LD64_VERSION): Revise default.
9062 * config/darwin.opt: (mpic-symbol-stubs): New option.
9063 (darwin_picsymbol_stubs): New variable.
9064 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
9065 rename to TARGET_MACHO_PICSYM_STUBS.
9066 * config/i386/i386.c (output_pic_addr_const): Likewise.
9067 * config/i386/i386.h Likewise.
9068 * config/rs6000/darwin.h: Likewise.
9069 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
9070 darwin_picsymbol_stubs.
9071
9072 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9073
9074 * config/darwin.opt (prebind, noprebind, seglinkedit,
9075 noseglinkedit): Add RejectNegative.
9076
9077 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9078
9079 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
9080 in my previous patch.
9081
9082 2019-06-16 Tom de Vries <tdevries@suse.de>
9083
9084 PR tree-optimization/89376
9085 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
9086
9087 2019-06-15 Maya Rashish <coypu@sdf.org>
9088
9089 * doc/invoke.texi (Spec Files): Update location of the
9090 Fortran spec file.
9091
9092 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
9093
9094 * doc/extend.texi (Common Function Attributes): Clarify
9095 no_sanitize. Fix grammar.
9096
9097 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
9098
9099 * tree-ssa-alias.c (alias_stats): Add
9100 nonoverlapping_component_refs_p_may_alias,
9101 nonoverlapping_component_refs_p_no_alias,
9102 nonoverlapping_component_refs_of_decl_p_may_alias,
9103 nonoverlapping_component_refs_of_decl_p_no_alias.
9104 (dump_alias_stats): Dump them.
9105 (nonoverlapping_component_refs_of_decl_p): Add stats.
9106 (nonoverlapping_component_refs_p): Add stats; do not stop on first
9107 ARRAY_REF.
9108
9109 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
9110
9111 * config/i386/i386.md (and<mode>3): Generate zero-extends for
9112 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
9113 only.
9114 (*anddi3_doubleword): Split before reload. Merge with
9115 anddi->zext pre-reload splitter.
9116 (*andndi3_doubleword): Split before reload.
9117 (*<code>di3_doubleword): Ditto.
9118 (*one_cmpldi2_doubleword): Ditto.
9119
9120 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9121
9122 PR middle-end/90779
9123 * gimplify.c: Include omp-offload.h and context.h.
9124 (gimplify_bind_expr): Add "omp declare target" attributes
9125 to static block scope variables inside of target region or target
9126 functions.
9127
9128 2019-06-15 Tom de Vries <tdevries@suse.de>
9129
9130 PR tree-optimization/90009
9131 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
9132 Return NULL if bb contains IFN_UNIQUE.
9133
9134 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
9135
9136 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
9137 (un): New define_mode_attr.
9138 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
9139 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
9140 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
9141 merge into ...
9142 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
9143
9144 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
9145
9146 * config/darwin.opt: Add RejectNegative where needed, reorder
9147 and add minimal functional descriptions.
9148
9149 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9150
9151 PR rtl-optimization/90765
9152 * calls.c (update_stack_alignment_for_call): New function.
9153 (expand_call): Call update_stack_alignment_for_call when
9154 outgoing parameter is passed in the stack.
9155 (emit_library_call_value_1): Likewise.
9156 * function.c (locate_and_pad_parm): Don't update
9157 stack_alignment_needed and preferred_stack_boundary.
9158
9159 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9160
9161 PR target/90877
9162 * config/i386/i386-features.c
9163 (dimode_scalar_chain::compute_convert_gain): Replace
9164 mmxsse_to_integer with sse_to_integer.
9165 * config/i386/i386.c (ix86_register_move_cost): Verify that
9166 moves between MMX and non-MMX units require secondary memory.
9167 Correct costs of moves between SSE and integer units.
9168 * config/i386/i386.h (processor_costs): Rename cost of moving
9169 SSE register to integer to sse_to_integer. Rename cost of
9170
9171 2019-06-14 Matt Thomas <matt@3am-software.com>
9172 Matthew Green <mrg@eterna.com.au>
9173 Nick Hudson <skrll@netbsd.org>
9174 Maya Rashish <coypu@sdf.org>
9175 Richard Earnshaw <rearnsha@arm.com>
9176
9177 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
9178 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
9179 * config/arm/netbsd-eabi.h: New file.
9180 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
9181 redefining.
9182 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
9183 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
9184 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
9185 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
9186
9187 2019-06-14 Richard Biener <rguenther@suse.de>
9188
9189 * tree-loop-distribution.c (classify_partition): Return
9190 whether a reduction appeared in all partitions and do not
9191 stop builtin detection because of this.
9192 (distribute_loop): Sort a non-builtin partition last if
9193 there's a reduction in all partitions and make sure the
9194 partition prevailing as last is not a builtin.
9195
9196 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
9197
9198 PR ipa/90401
9199 * ipa-prop.c (add_to_agg_contents_list): New function.
9200 (clobber_by_agg_contents_list_p): Likewise.
9201 (extract_mem_content): Likewise.
9202 (get_place_in_agg_contents_list): Delete.
9203 (determine_known_aggregate_parts): Renamed from
9204 determine_locally_known_aggregate_parts. New parameter
9205 aa_walk_budget_p.
9206
9207 2019-06-13 Martin Sebor <msebor@redhat.com>
9208
9209 PR tree-optimization/90662
9210 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
9211 to the same type.
9212
9213 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9214
9215 PR bootstrap/90873
9216 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
9217 dbase is not TARGET_MEM_REF.
9218
9219 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9220
9221 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
9222 Update all uses.
9223 (and<mode>3): Use gen_extend_insn instead of indirect functions.
9224 Do not generate DImode extends for 32bit targets.
9225 (and->zext post-reload splitter): Use gen_extend_insn
9226 instead of indirect functions.
9227 (anddi->zext pre-reload splitter): New.
9228 (*zext<mode>_doubleword_and): Remove.
9229 (*zext<mode>_doubleword): Ditto.
9230 (*zextsi_doubleword): Dittto.
9231
9232 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9233
9234 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9235 Use gen_sub3_insn instead of indirect function.
9236 (ix86_expand_ashl_const): Use gen_add2_insn instead of
9237 indirect function.
9238 (ix86_adjust_counter): Ditto.
9239
9240 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
9241 Lijia He <helijia@linux.ibm.com>
9242
9243 PR tree-optimization/77820
9244 * tree-ssa-threadedge.c
9245 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
9246 function.
9247 (thread_across_edge): Add call to
9248 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
9249
9250 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
9251
9252 * config/darwin-driver.c (validate_macosx_version_min): New.
9253 (darwin_default_min_version): Cleanup and validate supplied version.
9254 (darwin_driver_init): Likewise and push cleaned version into opts.
9255
9256 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9257
9258 PR tree-optimization/90869
9259 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
9260 converts in MEM_REF referencing decl rather than view converts
9261 from decl type to MEM_REF type.
9262
9263 2019-06-13 Richard Biener <rguenther@suse.de>
9264
9265 PR tree-optimization/90856
9266 * tree-sra.c (build_ref_for_model): Only use
9267 build_reconstructed_reference when address-spaces are the same.
9268
9269 2019-06-13 Jakub Jelinek <jakub@redhat.com>
9270
9271 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
9272 wrap ei variable name in the declaration in ()s.
9273 (nvptx_single): Actually use mode_label variable. Formatting fix.
9274
9275 2019-06-13 Richard Biener <rguenther@suse.de>
9276
9277 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9278 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9279 also return the condition stmt.
9280 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9281 loop we can version and version that, reusing the loop version
9282 created by if-conversion instead of versioning again.
9283
9284 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9285
9286 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9287 may_contain_p.
9288 * tree-vrp (value_range_base::may_contain_p): Call into
9289 value_inside_range.
9290 (value_inside_range): Make private inside value_range_base class.
9291 Take min/max from *this.
9292 (range_includes_p): Remove.
9293 * tree-vrp.h (value_range_base): Add value_inside_range.
9294 (range_includes_p): Remove.
9295 (range_includes_zero_p): Call may_contain_p.
9296 * vr-values.c (compare_range_with_value): Same.
9297
9298 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9299
9300 * doc/extend.texi (ARC Function Attributes): Update info.
9301
9302 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9303
9304 PR tree-optimization/89713
9305 * doc/invoke.texi (-ffinite-loops): Document new option.
9306 * common.opt (-ffinite-loops): New option.
9307 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9308 IFN_GOACC_LOOP calls as necessary.
9309 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9310 is finite.
9311 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9312 IFN_GOACC_LOOP call is not used.
9313 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9314
9315 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9316
9317 PR target/88838
9318 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9319 compare_type is not with Pmode size, we will create an IV with
9320 Pmode size with truncated use (i.e. converted to the correct type).
9321 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9322 (vect_iv_limit_for_full_masking): New. Factored out of
9323 vect_set_loop_condition_masked.
9324 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9325 (vect_iv_limit_for_full_masking): Declare.
9326
9327 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9328
9329 PR target/88834
9330 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9331 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9332 (get_alias_ptr_type_for_ptr_address): Likewise.
9333 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9334 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9335 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9336 allow_reg_index_p.
9337
9338 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9339
9340 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9341
9342 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9343
9344 * common/config/pru/pru-common.c: New file.
9345 * config.gcc: Add PRU target.
9346 * config/pru/alu-zext.md: New file.
9347 * config/pru/constraints.md: New file.
9348 * config/pru/predicates.md: New file.
9349 * config/pru/pru-opts.h: New file.
9350 * config/pru/pru-passes.c: New file.
9351 * config/pru/pru-pragma.c: New file.
9352 * config/pru/pru-protos.h: New file.
9353 * config/pru/pru.c: New file.
9354 * config/pru/pru.h: New file.
9355 * config/pru/pru.md: New file.
9356 * config/pru/pru.opt: New file.
9357 * config/pru/t-pru: New file.
9358 * doc/extend.texi: Document PRU pragmas.
9359 * doc/invoke.texi: Document PRU-specific options.
9360 * doc/md.texi: Document PRU asm constraints.
9361
9362 2019-06-12 Martin Sebor <msebor@redhat.com>
9363
9364 PR middle-end/90676
9365 * tree-pretty-print.c (dump_mem_ref): New function. Include
9366 MEM_REF type in output when different size than operand.
9367 (dump_generic_node): Move code to dump_mem_ref and call it.
9368
9369 2019-06-12 Martin Sebor <msebor@redhat.com>
9370
9371 PR tree-optimization/90662
9372 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9373 to arrays.
9374
9375 2019-06-12 Tom de Vries <tdevries@suse.de>
9376
9377 PR tree-optimization/90009
9378 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9379
9380 2019-06-12 Martin Liska <mliska@suse.cz>
9381
9382 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9383 the created map.
9384 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9385 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9386 Do not sanitize created maps.
9387
9388 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9389
9390 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9391 value_range::singleton_p.
9392 * tree-vrp.c (value_range_constant_singleton): Remove.
9393 * tree-vrp.h (value_range_constant_singleton): Remove.
9394 * vr-values.c (vr_values::singleton): Use
9395 value_range::singleton_p.
9396
9397 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9398
9399 PR target/90811
9400 * cfgexpand.c (align_local_variable): Add really_expand argument,
9401 don't SET_DECL_ALIGN if it is false.
9402 (add_stack_var): Add really_expand argument, pass it through to
9403 align_local_variable.
9404 (expand_one_stack_var_1): Pass true as really_expand to
9405 align_local_variable.
9406 (expand_one_ssa_partition): Pass true as really_expand to
9407 add_stack_var.
9408 (expand_one_var): Pass really_expand through to add_stack_var.
9409
9410 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9411
9412 * config/arm/iterators.md (VABAL): New int iterator.
9413 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9414 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9415 UNSPEC_VABAL_U values.
9416
9417 2019-06-12 Martin Liska <mliska@suse.cz>
9418
9419 * value-prof.c (stream_out_histogram_value): Only first value
9420 can't be negative.
9421
9422 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9423
9424 PR c/90760
9425 * symtab.c (symtab_node::set_section): Allow being called on aliases
9426 as long as they aren't analyzed yet.
9427
9428 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9429
9430 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9431 to `mips_set_text_contents_type' to indicate whether a
9432 non-debug insn follows.
9433
9434 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9435
9436 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9437 enabling -mpcrel by default.
9438 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9439 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9440 that the test against -mcpu=future is done first. Then test if
9441 -mprefixed-addr is on for -mpcrel.
9442 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9443
9444 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9445
9446 PR target/90811
9447 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9448 instead of and.u%d.
9449
9450 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9451
9452 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9453
9454 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9455
9456 PR c++/90449 - add -Winaccessible-base option.
9457 * doc/invoke.texi (Winaccessible-base): Document.
9458
9459 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9460
9461 PR tree-optimization/62041
9462 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9463
9464 2019-06-11 Jason Merrill <jason@redhat.com>
9465
9466 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9467 * tree.c (get_tree_code_name): Likewise.
9468 * print-tree.c (print_node): Only briefly print a node with an
9469 invalid code.
9470
9471 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9472
9473 PR bootstrap/90819
9474 * trans-mem.c (tm_memopt_compute_available): Add assertion
9475 that blocks is not empty. Formatting fix.
9476
9477 2019-06-11 Martin Liska <mliska@suse.cz>
9478
9479 PR c++/87847
9480 * hash-table.h: Extend create_gcc, add one parameter
9481 that is passed into hash_table::hash_table.
9482
9483 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9484
9485 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9486 New prototype.
9487 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9488 Emit clobber also for non-sse operations.
9489 (ix86_split_fp_absneg_operator): New function.
9490 * config/i386/i386.md (SSEMODEF): New mode iterator.
9491 (ssevecmodef): New mode attribute.
9492 (<code>tf2): Use absneg code iterator.
9493 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9494 Add three-operand AVX alternatives.
9495 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9496 Use absneg code iterator and X87MODEF mode iterator.
9497 (absneg fp_reg non-sse splitter): Call absneg code iterator
9498 and X87MODEF mode iterator.
9499 (absneg general_reg non-sse splitter): Use absneg code iterator
9500 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9501 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9502 code iterator. Add three-operand AVX alternative.
9503 (absneg sse_reg splitter): Use absneg code iterator
9504 and SSEMODEF mode iterator. Handle AVX operands.
9505 (absneg fp_reg splitter): Use absneg code iterator
9506 and MODEF mode iterator.
9507 (absneg general_reg splitter): Merge splitters using MODEF mode
9508 iterator. Use absneg code iterator. Call
9509 ix86_split_fp_absneg_operator.
9510 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9511 Do not enable for non-sse modes before reload.
9512 (CSGNMODE): Remove.
9513 (CSGNVMODE): Ditto.
9514 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9515 ssevecmodef mode attribute instaed of CSGNVMODE.
9516 (copysign<mode>3_const): Ditto.
9517 (copysign<mode>3_var): Ditto.
9518 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9519 Use absneg code iterator. Simplify code using std::swap.
9520 * config/i386/predicates.md (absneg_operator): Remove.
9521
9522 2019-06-10 Martin Sebor <msebor@redhat.com>
9523
9524 * gimple-fold.c (get_range_strlen): Update comment that didn't
9525 make it into r267503 or related commits.
9526
9527 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9528
9529 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9530 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9531
9532 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9533
9534 * tree.def (OMP_SCAN): New tree code.
9535 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9536 OMP_CLAUSE_EXCLUSIVE.
9537 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9538 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9539 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9540 OMP_CLAUSE_{IN,EX}CLUSIVE.
9541 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9542 * tree-nested.c (convert_nonlocal_reference_stmt,
9543 convert_local_reference_stmt, convert_gimple_call): Handle
9544 GIMPLE_OMP_SCAN.
9545 * tree-pretty-print.c (dump_omp_clause): Handle
9546 OMP_CLAUSE_{IN,EX}CLUSIVE.
9547 (dump_generic_node): Handle OMP_SCAN.
9548 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9549 * gimple.h (gomp_scan): New type.
9550 (is_a_helper <gomp_scan *>::test,
9551 is_a_helper <const gomp_scan *>::test): New templates.
9552 (gimple_build_omp_scan): Declare.
9553 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9554 gimple_omp_scan_set_clauses): New inline functions.
9555 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9556 * gimple.c (gimple_build_omp_scan): New function.
9557 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9558 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9559 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9560 GIMPLE_OMP_TASKGROUP.
9561 (dump_gimple_omp_scan): New function.
9562 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9563 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9564 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9565 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9566 (is_gimple_stmt): Handle OMP_SCAN.
9567 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9568 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9569 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9570 mentioned in nested #pragma omp scan. Handle
9571 OMP_CLAUSE_{IN,EX}CLUSIVE.
9572 (gimplify_expr): Handle OMP_SCAN.
9573 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9574 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9575 simd constructs.
9576 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9577 GIMPLE_OMP_SCAN.
9578
9579 2019-06-10 Martin Liska <mliska@suse.cz>
9580
9581 * ipa-cp.c (ignore_edge_p): New function.
9582 (build_toporder_info): Use it.
9583 * ipa-inline.c (ignore_edge_p): New function.
9584 (inline_small_functions): Use it.
9585 * ipa-pure-const.c (ignore_edge_for_nothrow):
9586 Verify opt_for_fn for caller and callee.
9587 (ignore_edge_for_pure_const): Likewise.
9588 * ipa-reference.c (ignore_edge_p): Extend to check
9589 for opt_for_fn.
9590 * ipa-utils.c (searchc): Refactor.
9591 * ipa-utils.h: Fix coding style.
9592
9593 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9594
9595 * config/arc/arc.c (arc_rtx_costs): Update costs.
9596
9597 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9598
9599 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9600 (arc_split_ior): Likewise.
9601 (arc_check_mov_const): Likewise.
9602 (arc_split_mov_const): Likewise.
9603 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
9604 (arc_rtx_costs): Replace check Crr with Cax constraint.
9605 (prepare_move_operands): Cleanup, remove unused code.
9606 (arc_split_ior): New function.
9607 (arc_check_ior_const): Likewise.
9608 (arc_split_mov_const): Likewise.
9609 (arc_check_mov_const): Likewise.
9610 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
9611 in define_insn_and_split pattern.
9612 (iorsi3): Likewise.
9613 (mulsi3_v2): Add new matching variant.
9614 (andsi3_i): Cleanup pattern.
9615 (rotrsi3_cnt1): Update pattern.
9616 (rotrsi3_cnt8): New pattern.
9617 (ashlsi2_cnt8): Likewise.
9618 (ashlsi2_cnt16): Likewise.
9619 * config/arc/constraints.md (C0p): Update constraint.
9620 (Crr): Remove it.
9621 (C0x): New pattern.
9622 (Cax): New pattern.
9623
9624 2019-06-10 Martin Liska <mliska@suse.cz>
9625
9626 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
9627 Update coding style.
9628 (sem_item_optimizer::dump_cong_classes):
9629 Print how many items are in a non-singular class. Improve
9630 coding style.
9631
9632 2019-06-10 Martin Liska <mliska@suse.cz>
9633
9634 * value-prof.c (dump_histogram_value): Change dump format.
9635 (gimple_mod_subtract_transform): Remove legacy comment.
9636
9637 2019-06-10 Martin Liska <mliska@suse.cz>
9638
9639 * value-prof.c (dump_histogram_value): Print histogram values
9640 only if present.
9641
9642 2019-06-10 Martin Liska <mliska@suse.cz>
9643
9644 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
9645 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
9646 * ipa-profile.c (ipa_profile_generate_summary):
9647 Use get_most_common_single_value.
9648 * tree-profile.c (gimple_init_gcov_profiler):
9649 Instrument with __gcov_one_value_profiler_v2
9650 and __gcov_indirect_call_profiler_v4.
9651 * value-prof.c (dump_histogram_value):
9652 Print all values for HIST_TYPE_SINGLE_VALUE.
9653 (stream_out_histogram_value): Update assert for
9654 N values.
9655 (stream_in_histogram_value): Set number of
9656 counters for HIST_TYPE_SINGLE_VALUE.
9657 (get_most_common_single_value): New.
9658 (gimple_divmod_fixed_value_transform):
9659 Use get_most_common_single_value.
9660 (gimple_ic_transform): Likewise.
9661 (gimple_stringops_transform): Likewise.
9662 (gimple_find_values_to_profile): Set number
9663 of counters for HIST_TYPE_SINGLE_VALUE.
9664 * value-prof.h (get_most_common_single_value): New.
9665
9666 2019-06-10 Martin Liska <mliska@suse.cz>
9667
9668 * hash-map.h: Pass default value to hash_table ctor.
9669 * hash-table.h: Add default value to call of a ctor.
9670
9671 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
9672
9673 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
9674 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
9675
9676 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
9677
9678 PR target/90751
9679 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
9680 Call pa_output_function_label.
9681 (TARGET_ASM_FUNCTION_PROLOGUE): define.
9682 * config/pa/pa-protos.h (pa_output_function_label): Declare.
9683 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
9684 to declaration.
9685 (pa_linux_output_function_prologue): Declare.
9686 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
9687 (pa_output_function_label): New.
9688 (pa_output_function_prologue): Revise to use pa_output_function_label.
9689 (pa_linux_output_function_prologue): New.
9690 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
9691
9692 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
9693
9694 * tree-vrp.h (value_range_base::intersect): New.
9695 (value_range::intersect_helper): Move from here...
9696 (value_range_base::intersect_helper): ...to here.
9697 * tree-vrp.c (value_range::intersect_helper): Rename to...
9698 (value_range_base::intersect_helper): ...this, and rewrite to
9699 return a value instead of modifying THIS in place.
9700 Also, move equivalence handling...
9701 (value_range::intersect): ...here, while calling intersect_helper.
9702 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
9703 calling intersect.
9704 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
9705 Same.
9706 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
9707
9708 2019-06-07 Jakub Jelinek <jakub@redhat.com>
9709
9710 * Makefile.in (genprogerr): Add condmd.
9711 (genprog): Remove it here.
9712
9713 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
9714
9715 * doc/invoke.texi (AMD GCN Options): Add gfx906.
9716
9717 2019-06-07 Richard Biener <rguenther@suse.de>
9718
9719 PR debug/90574
9720 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
9721 that appear after user labels.
9722
9723 2019-06-07 Martin Liska <mliska@suse.cz>
9724
9725 * cselib.c (cselib_init): Disable hash table
9726 sanitization.
9727 * hash-set.h: Pass new default argument to m_table.
9728 * hash-table.c: Add global variable with hash table
9729 sanitization limit.
9730 * hash-table.h (Allocator>::hash_table): Add new argument
9731 to ctor.
9732 (hashtab_chk_error): New.
9733 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
9734 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
9735 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
9736
9737 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9738
9739 * common.opt (flto-odr-type-merging): Ignore.
9740 * invoke.texi (-flto-odr-type-merging): Remove.
9741 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
9742 (can_be_vtable_hashed_p): Remove.
9743 (hash_odr_vtable): Remove.
9744 (odr_vtable_hasher::hash): Remove.
9745 (types_same_for_odr): Remove.
9746 (types_odr_comparable): Remove.
9747 (odr_vtable_hasher::equal): Remove.
9748 (odr_vtable_hash_type, odr_vtable_hash): Remove.
9749 (add_type_duplicate): Do not synchronize vtable and name hashtables.
9750 (get_odr_type): Do not use vtable hash.
9751 (dump_odr_type): Remove commented out code.
9752 (build_type_inheritance_graph): Do not allocate vtable hash.
9753 (rebuild_type_inheritance_graph): Do not delete vtable hash.
9754 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
9755 (odr_type_p): Likewise.
9756 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
9757 test.
9758
9759 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9760
9761 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
9762 immediately after same_types_for_tbaa_p returns -1 and continue
9763 looking for possible exact match; if matching types are arrays
9764 watch for partial overlaps.
9765 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
9766 (indirect_refs_may_alias_p): Do type based disambiguation first;
9767 update comment.
9768
9769 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
9770
9771 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
9772
9773 2019-06-07 Martin Liska <mliska@suse.cz>
9774
9775 * doc/invoke.texi: Remove param.
9776 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
9777 Remove.
9778 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
9779 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
9780 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
9781 * profile.c (instrument_values): Remove
9782 HIST_TYPE_INDIR_CALL_TOPN.
9783 * tree-profile.c (init_ic_make_global_vars):
9784 Always build __gcov_indirect_call only.
9785 (gimple_init_gcov_profiler): Remove usage
9786 of PARAM_INDIR_CALL_TOPN_PROFILE.
9787 (gimple_gen_ic_profiler): Likewise.
9788 * value-prof.c (dump_histogram_value): Likewise.
9789 (stream_in_histogram_value): Likewise.
9790 (gimple_indirect_call_to_profile): Likewise.
9791 (gimple_find_values_to_profile): Likewise.
9792 * value-prof.h (enum hist_type): Likewise.
9793
9794 2019-06-07 Martin Liska <mliska@suse.cz>
9795
9796 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
9797 function.
9798
9799 2019-06-07 Martin Liska <mliska@suse.cz>
9800
9801 PR tree-optimization/78902
9802 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
9803 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
9804 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9805 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9806 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
9807 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9808 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
9809 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
9810 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9811 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9812 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9813 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
9814 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
9815 New.
9816 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
9817 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
9818 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
9819 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9820 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9821 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
9822 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9823 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9824 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
9825 warn_unused_result attribute.
9826 (BUILT_IN_STRDUP): Likewise.
9827 (BUILT_IN_STRNDUP): Likewise.
9828 (BUILT_IN_ALLOCA): Likewise.
9829 (BUILT_IN_CALLOC): Likewise.
9830 (BUILT_IN_MALLOC): Likewise.
9831 (BUILT_IN_REALLOC): Likewise.
9832
9833 2019-06-06 Jim Wilson <jimw@sifive.com>
9834
9835 PR target/89955
9836 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
9837 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
9838 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
9839
9840 2019-06-06 Martin Sebor <msebor@redhat.com>
9841
9842 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
9843 (handle_builtin_malloc): Remove trailing spaces.
9844 (handle_builtin_memset): Same.
9845 (handle_builtin_memcmp): Same.
9846 (compute_string_length): Same.
9847 (determine_min_objsize): Same.
9848 (handle_builtin_string_cmp): Same.
9849 (handle_char_store): Same. Break up excessively long line.
9850
9851 2019-06-06 Martin Jambor <mjambor@suse.cz>
9852
9853 * tree-sra.c (build_reconstructed_reference): Drop the alignment
9854 check.
9855
9856 2019-06-06 Martin Jambor <mjambor@suse.cz>
9857
9858 * tree-sra.c (struct access): New field grp_same_access_path.
9859 (dump_access): Dump it.
9860 (build_reconstructed_reference): New function.
9861 (build_ref_for_model): Use it if possible.
9862 (path_comparable_for_same_access): New function.
9863 (same_access_path_p): Likewise.
9864 (sort_and_splice_var_accesses): Set the new flag.
9865 (analyze_access_subtree): Likewise.
9866 (propagate_subaccesses_across_link): Propagate zero value of the new
9867 flag down the access tree.
9868
9869 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
9870
9871 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
9872 * config/gcn/gcn.opt (gpu_type): Add gfx906.
9873 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
9874 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
9875 Add gfx906.
9876
9877 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9878
9879 PR tree-optimization/90332
9880 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
9881 Handle VALS containing two vectors.
9882 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
9883 to...
9884 (@aarch64_combinez<mode>): ... This.
9885 (*aarch64_combinez_be<mode>): Rename to...
9886 (@aarch64_combinez_be<mode>): ... This.
9887 (vec_init<mode><Vhalf>): New define_expand.
9888 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
9889
9890 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9891
9892 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
9893 library functions only when not optimizing for size.
9894 (ashlsi3): Likewise.
9895 (ashrhi3): Likewise.
9896 (ashrsi3): Likewise.
9897 (lshrhi3): Likewise.
9898 (lshrsi3): Likewise.
9899
9900 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
9901
9902 PR rtl-optimization/88751
9903 * ira.c (ira): Use the number of the actually referenced registers
9904 when calculating the threshold.
9905
9906 2019-06-06 Jakub Jelinek <jakub@redhat.com>
9907
9908 * configure: Regenerate.
9909
9910 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9911
9912 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
9913 register if it is in memory, so the shift can be emulated with a rotate
9914 instruction.
9915 (ashrhi3): Likewise.
9916 (lshrhi3): Likewise.
9917
9918 2019-06-06 Martin Liska <mliska@suse.cz>
9919
9920 PR tree-optimization/87954
9921 * match.pd: Simplify mult where both arguments are 0 or 1.
9922
9923 2019-06-06 Richard Biener <rguenther@suse.de>
9924
9925 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
9926 put equivalences on UNDEFINED ranges.
9927 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9928 Make sure to drop defs of stmts added during simplification
9929 to VARYING.
9930
9931 2019-06-06 Richard Biener <rguenther@suse.de>
9932
9933 * tree-ssa-structalias.c: Include tree-cfg.h.
9934 (make_heapvar): Do not make heap vars artificial.
9935 (find_func_aliases_for_builtin_call): Handle stack allocation
9936 functions.
9937 (find_func_aliases): Delay processing of simple enough returns
9938 in non-IPA mode.
9939 (set_uids_in_ptset): Adjust.
9940 (find_what_var_points_to): Likewise.
9941 (solve_constraints): Do not dump points-to sets here.
9942 (compute_points_to_sets): Post-process return statements,
9943 amending the escaped solution. Dump points-to sets afterwards.
9944 (ipa_pta_execute): Dump points-to sets.
9945
9946 2019-06-06 Martin Liska <mliska@suse.cz>
9947
9948 PR web/87933
9949 * doc/install.texi: Fix HTML headers and
9950 titles for 'Installing GCC' pages.
9951
9952 2019-06-06 Martin Liska <mliska@suse.cz>
9953
9954 * ipa-icf-gimple.h (dump_message_1): Remove.
9955 (dump_message): Likewise.
9956 (return_false_with_message_1): Print also file.
9957 (return_false_with_msg): Likewise.
9958 (return_with_result): Likewise.
9959 (return_with_debug): Likewise.
9960 * ipa-icf.c (sem_function::equals_private): Remove call
9961 to dump_message.
9962
9963 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9964
9965 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
9966 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
9967 memory operand for it.
9968 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
9969
9970 2019-06-05 Martin Sebor <msebor@redhat.com>
9971
9972 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
9973 Adjust quoting and hyphenation.
9974 * convert.c (convert_to_real_1): Same.
9975 * gcc.c (driver_wrong_lang_callback): Same.
9976 (driver::handle_unrecognized_options): Same.
9977 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
9978 * opts-common.c (cmdline_handle_error): Same.
9979 (read_cmdline_option): Same.
9980 * opts-global.c (complain_wrong_lang): Same.
9981 (print_ignored_options): Same.
9982 (handle_common_deferred_options): Same.
9983 * pretty-print.h: Same.
9984 * print-rtl.c (debug_bb_n_slim): Same.
9985 * sched-rgn.c (make_pass_sched_fusion): Same.
9986 * tree-cfg.c (verify_gimple_assign_unary): Same.
9987 (verify_gimple_label): Same.
9988 * tree-ssa-operands.c (verify_ssa_operands): Same.
9989 * varasm.c (do_assemble_alias): Same.
9990 (assemble_alias): Same.
9991
9992 2019-06-05 Richard Henderson <rth@twiddle.net>
9993
9994 * config/alpha/alpha.c (direct_return): Move down after
9995 struct machine_function definition; use saved frame_size;
9996 return bool.
9997 (struct machine_function): Add sa_mask, sa_size, frame_size.
9998 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
9999 (alpha_compute_frame_layout): ... new function.
10000 (TARGET_COMPUTE_FRAME_LAYOUT): New.
10001 (alpha_initial_elimination_offset): Use saved sa_size.
10002 (alpha_vms_initial_elimination_offset): Likewise.
10003 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
10004 (alpha_expand_prologue): Use saved frame data. Merge integer
10005 and fp register save loops.
10006 (alpha_expand_epilogue): Likewise.
10007 (alpha_start_function): Use saved frame data.
10008 * config/alpha/alpha-protos.h (direct_return): Update.
10009 (alpha_sa_size): Remove.
10010
10011 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
10012
10013 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
10014 multiplication by a power-of-two value.
10015 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
10016 and turn the modulo operation into a masking operation.
10017
10018 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10019
10020 PR debug/90733
10021 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
10022 with VOIDmode inner operands.
10023
10024 2019-06-05 Richard Biener <rguenther@suse.de>
10025
10026 PR middle-end/90726
10027 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10028 turn an expression graph into a tree.
10029
10030 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10031
10032 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
10033 member.
10034 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
10035 treat it like explicit monotonic schedule modifier.
10036 (expand_omp_for): Initialize has_lastprivate_conditional.
10037 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
10038 schedule modifier.
10039
10040 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
10041 references, lookup in in hash map MEM_REF operand instead of the
10042 MEM_REF itself.
10043 (lower_omp_1): When looking for lastprivate conditional assignments,
10044 handle MEM_REFs with REFERENCE_TYPE operands.
10045
10046 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
10047 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
10048 and references a VLA. Handle references to non-VLAs if is_simd
10049 all privatization clauses like reductions.
10050 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
10051 If omp_is_reference, use always omp simd arrays and set
10052 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
10053 fails, emit reference initialization.
10054
10055 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10056
10057 PR target/89803
10058 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
10059 _mm_mask_fpclass_sd_mask): New intrinsics.
10060 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
10061 * config/i386/i386-builtin.def
10062 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
10063 New builtins.
10064 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
10065 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
10066 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
10067 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
10068 case QI_FTYPE_V2SF_INT): Ditto.
10069 * config/i386/sse.md
10070 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
10071 Extended to insnstructions with mask operands.
10072
10073 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10074
10075 * config/rs6000/constraints.md (define_register_constraint "wp"):
10076 Delete.
10077 (define_register_constraint "wq"): Delete.
10078 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10079 (rs6000_init_hard_regno_mode_ok): Adjust.
10080 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10081 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
10082 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
10083 (define_mode_attr VSa): Delete.
10084 (define_mode_attr VSisa): New.
10085 (rest of file): Adjust.
10086 * doc/md.texi (Machine Constraints): Adjust.
10087
10088 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10089
10090 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
10091 (define_attr "enabled"): Handle those new isa values.
10092
10093 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10094
10095 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
10096 (define_mode_attr VSr5): Delete.
10097 (define_mode_attr VStype_sqrt): Delete.
10098 (define_mode_iterator VSX_SPDP): Delete.
10099 (define_mode_attr VS_spdp_res): Delete.
10100 (define_mode_attr VS_spdp_insn): Delete.
10101 (define_mode_attr VS_spdp_type): Delete.
10102 (*vsx_sqrt<mode>2): Adjust.
10103 (vsx_<VS_spdp_insn>): Delete, split to...
10104 (vsx_xscvdpsp): ... this. New. And...
10105 (vsx_xvcvspdp): ... this. New. And...
10106 (vsx_xvcvdpsp): ... this. New.
10107
10108 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10109
10110 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
10111 and V2DF.
10112 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
10113 (rest of file): Adjust.
10114
10115 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10116
10117 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
10118 (vsx_extract_<mode>_var): Ditto.
10119
10120 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10121
10122 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
10123 with just "wa".
10124
10125 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10126
10127 * config/rs6000/constraints.md (define_register_constraint "ww"):
10128 Delete.
10129 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10130 (rs6000_init_hard_regno_mode_ok): Adjust.
10131 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10132 RS6000_CONSTRAINT_ww.
10133 * config/rs6000/rs6000.md: Adjust.
10134 * config/rs6000/vsx.md: Adjust.
10135 * doc/md.texi (Machine Constraints): Adjust.
10136
10137 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10138
10139 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
10140 (define_mode_attr sd): New.
10141 (define_mode_attr s): New.
10142 (define_mode_attr Ftrad): Delete.
10143 (define_mode_attr Fvsx): Delete.
10144 (define_mode_attr Fs): Delete.
10145 (rest of file): Use the new mode attributes.
10146 * config.rs6000/vsx.md: Use the new mode attributes.
10147
10148 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10149
10150 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
10151 with just "wa".
10152
10153 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10154
10155 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
10156 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
10157 used with VSX_B, VSX_D, or VSX_F, with just "wa".
10158
10159 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
10160
10161 PR target/78263
10162 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
10163 C++ with strict ANSI requirements.
10164
10165 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
10166
10167 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
10168 computations when step is 1.
10169
10170 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10171
10172 * config/rs6000/constraints.md (define_register_constraint "wf"):
10173 Delete.
10174 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10175 (rs6000_init_hard_regno_mode_ok): Adjust.
10176 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10177 RS6000_CONSTRAINT_wf.
10178 * config/rs6000/rs6000.md: Adjust.
10179 * config/rs6000/vsx.md: Adjust.
10180 * doc/md.texi (Machine Constraints): Adjust.
10181
10182 2019-06-04 Andrew Pinski <apinski@marvell.com>
10183
10184 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
10185 Fix ILP32 value.
10186
10187 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10188
10189 * config/rs6000/constraints.md (define_register_constraint "wd"):
10190 Delete.
10191 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10192 (rs6000_init_hard_regno_mode_ok): Adjust.
10193 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10194 RS6000_CONSTRAINT_wd.
10195 * config/rs6000/rs6000.md: Adjust.
10196 * config/rs6000/vsx.md: Adjust.
10197 * doc/md.texi (Machine Constraints): Adjust.
10198
10199 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10200
10201 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
10202 (rest of file): Adjust.
10203
10204 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10205
10206 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
10207 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
10208 (vsx_splat_<mode>_reg): Adjust.
10209
10210 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10211
10212 * config/rs6000/constraints.md (define_register_constraint "ws"):
10213 Delete.
10214 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10215 (rs6000_init_hard_regno_mode_ok): Adjust.
10216 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10217 RS6000_CONSTRAINT_ws.
10218 * config/rs6000/rs6000.md: Adjust.
10219 * config/rs6000/vsx.md: Adjust.
10220 * doc/md.texi (Machine Constraints): Adjust.
10221
10222 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10223
10224 * config/rs6000/constraints.md (define_register_constraint "wv"):
10225 Delete.
10226 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10227 (rs6000_init_hard_regno_mode_ok): Adjust.
10228 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10229 RS6000_CONSTRAINT_wv.
10230 * config/rs6000/rs6000.md: Adjust.
10231 * config/rs6000/vsx.md: Adjust.
10232 * doc/md.texi (Machine Constraints): Adjust.
10233
10234 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10235
10236 * config/rs6000/constraints.md (define_register_constraint "wi"):
10237 Delete.
10238 (define_register_constraint "wt"): Delete.
10239 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10240 (rs6000_init_hard_regno_mode_ok): Adjust.
10241 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10242 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
10243 * config/rs6000/rs6000.md: Adjust.
10244 * config/rs6000/vsx.md: Adjust.
10245 * doc/md.texi (Machine Constraints): Adjust.
10246
10247 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10248
10249 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
10250 const.
10251 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
10252 default_elf_asm_output_external.
10253
10254 2019-06-04 Martin Liska <mliska@suse.cz>
10255
10256 * ipa-icf.c (INCLUDE_LIST): Remove.
10257 (sem_item_optimizer::execute): Remove call to init_wpa.
10258 * ipa-icf.h (init_wpa): Remove.
10259
10260 2019-06-04 Jakub Jelinek <jakub@redhat.com>
10261
10262 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
10263 conditional on combined for simd.
10264 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
10265 member.
10266 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
10267 constructs, don't remove lastprivate_conditional_map, but instead set
10268 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
10269 to parent construct temporaries.
10270 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
10271 like !ctx->lastprivate_conditional_map.
10272 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
10273 use up->outer context instead of up.
10274 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
10275 gimple_omp_for_combined_p.
10276 (expand_omp_for_static_nochunk): Likewise.
10277 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10278 probably moved over into expand_omp_for_generic rather than being copied
10279 there.
10280
10281 2019-06-04 Martin Liska <mliska@suse.cz>
10282
10283 * value-prof.c (dump_histogram_value): Fix typo.
10284 (gimple_mod_subtract_transform): Likewise.
10285
10286 2019-06-04 Richard Biener <rguenther@suse.de>
10287
10288 PR middle-end/90726
10289 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10290 (tree_contains_chrecs): Likewise.
10291 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10292 exponential behaivor from ...
10293 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10294 ... here.
10295 (expression_expensive_p): Avoid exponential behavior and compute
10296 expanded size, rejecting any expansion.
10297 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10298 (idx_contains_abnormal_ssa_name_p): Likewise.
10299 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10300 (contains_abnormal_ssa_name_p): Simplify and use
10301 walk_tree_without_duplicates.
10302
10303 2019-06-04 Richard Biener <rguenther@suse.de>
10304
10305 PR tree-optimization/90738
10306 Revert
10307 2019-06-03 Richard Biener <rguenther@suse.de>
10308
10309 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10310 full reference tree and record in ref->ref.
10311 (vn_reference_lookup_3): Pass in original ref to
10312 ao_ref_init_from_vn_reference.
10313 (vn_reference_lookup): Likewise.
10314 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10315 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10316 Handle non-decl bases in the original reference.
10317
10318 2019-06-04 Martin Liska <mliska@suse.cz>
10319
10320 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10321 number of references.
10322 (sem_item_optimizer::do_congruence_step):
10323 (sem_item_optimizer::worklist_push): Dump how references
10324 a class has.
10325 (sem_item_optimizer::worklist_pop): Use heap.
10326 (sem_item_optimizer::process_cong_reduction): Likewise.
10327 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10328
10329 2019-06-04 Martin Liska <mliska@suse.cz>
10330
10331 * ipa-icf.h (struct sem_usage_pair_hash): New.
10332 (sem_usage_pair_hash::hash): Likewise.
10333 (sem_usage_pair_hash::equal): Likewise.
10334 (struct sem_usage_hash): Likewise.
10335 * ipa-icf.c (sem_item::sem_item): Initialize
10336 referenced_by_count.
10337 (sem_item::add_reference): Register a reference
10338 in ref_map and not in target->usages.
10339 (sem_item::setup): Remove initialization of
10340 dead vectors.
10341 (sem_item::~sem_item): Remove usage of dead vectors.
10342 (sem_item::dump): Remove dump of references.
10343 (sem_item_optimizer::sem_item_optimizer): Initialize
10344 m_references.
10345 (sem_item_optimizer::read_section): Remove useless
10346 dump.
10347 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10348 (sem_item_optimizer::build_graph): Pass m_references
10349 to ::add_reference.
10350 (sem_item_optimizer::verify_classes): Remove usage of dead
10351 vectors.
10352 (sem_item_optimizer::traverse_congruence_split): Return true
10353 when a class is split.
10354 (sem_item_optimizer::do_congruence_step_for_index): Use
10355 hash_map for look up of (sem_item *, index). That brings
10356 significant speed up.
10357 (sem_item_optimizer::do_congruence_step): Return true
10358 when a split is done.
10359 (congruence_class::is_class_used): Use referenced_by_count.
10360
10361 2019-06-04 Alan Modra <amodra@gmail.com>
10362
10363 PR target/90689
10364 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10365 error.
10366
10367 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10368
10369 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10370 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10371 (rs6000_secondary_reload_simple_move): Adjust.
10372 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10373 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10374 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10375 comment.
10376 (power6x): Adjust.
10377 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10378 (floatunssi<mode>2_lfiwzx): Adjust.
10379 (fix_trunc<mode>si2_stfiwx): Adjust.
10380 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10381 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10382 (mfpgpr): Mark as deprecated.
10383 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10384 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10385 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10386
10387 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10388
10389 * config/rs6000/constraints.md (define_register_constraint "wg"):
10390 Delete.
10391 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10392 RS6000_CONSTRAINT_wg.
10393 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10394 (rs6000_init_hard_regno_mode_ok): Adjust.
10395 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10396 Delete "wg" alternatives.
10397 * doc/md.texi (Machine Constraints): Adjust.
10398
10399 2019-06-03 Alan Modra <amodra@gmail.com>
10400
10401 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10402 (get_uncond_jump_length): Assert length less than INT_MAX and
10403 non-negative.
10404
10405 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10406
10407 PR middle-end/64242
10408 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10409 block.
10410 (expand_builtin_nonlocal_goto): Likewise.
10411
10412 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10413
10414 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10415 (aarch64_asm_output_external): Declare.
10416 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10417 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10418 (aarch64_asm_output_alias): New.
10419 (aarch64_asm_output_external): New.
10420 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10421 (ASM_OUTPUT_EXTERNAL): Define.
10422
10423 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10424 * tree-vrp.h (value_range_base::nonzero_p): New.
10425 (value_range_base::set_nonnull): Rename to...
10426 (value_range_base::set_nonzero): ...this.
10427 (value_range_base::set_null): Rename to...
10428 (value_range_base::set_zero): ...this.
10429 (value_range::set_nonnull): Remove.
10430 (value_range::set_null): Remove.
10431 * tree-vrp.c (range_is_null): Remove.
10432 (range_is_nonnull): Remove.
10433 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10434 instead of range_is_*null.
10435 (extract_range_from_unary_expr): Same.
10436 (value_range_base::set_nonnull): Rename to...
10437 (value_range_base::set_nonzero): ...this.
10438 (value_range::set_nonnull): Remove.
10439 (value_range_base::set_null): Rename to...
10440 (value_range_base::set_zero): ...this.
10441 (value_range::set_null): Remove.
10442 (extract_range_from_binary_expr): Rename set_*null uses to
10443 set_*zero.
10444 (extract_range_from_unary_expr): Same.
10445 (union_helper): Same.
10446 * vr-values.c (get_value_range): Use set_*zero instead of
10447 set_*null.
10448 (vr_values::extract_range_from_binary_expr): Same.
10449 (vr_values::extract_range_basic): Same.
10450
10451 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10452
10453 PR driver/90684
10454 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10455
10456 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10457
10458 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10459 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10460 Rename to...
10461 (aarch64_<su>abd<mode>_3): ... This.
10462 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10463
10464 2019-06-03 Richard Biener <rguenther@suse.de>
10465
10466 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10467 full reference tree and record in ref->ref.
10468 (vn_reference_lookup_3): Pass in original ref to
10469 ao_ref_init_from_vn_reference.
10470 (vn_reference_lookup): Likewise.
10471 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10472 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10473 Handle non-decl bases in the original reference.
10474
10475 2019-06-03 Martin Liska <mliska@suse.cz>
10476
10477 * doc/generic.texi: Remove Java Trees.
10478
10479 2019-06-03 Martin Liska <mliska@suse.cz>
10480
10481 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10482 returns 0 when operands are equal.
10483
10484 2019-06-03 Richard Biener <rguenther@suse.de>
10485
10486 PR tree-optimization/90716
10487 * tree-loop-distribution.c (destroy_loop): Process blocks in
10488 correct order.
10489
10490 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10491
10492 PR target/88837
10493 * vector-builder.h (vector_builder::count_dups): New method.
10494 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10495 Declare prototype.
10496 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10497 (vec_init<mode><Vel>): New pattern.
10498 * config/aarch64/aarch64.c (emit_insr): New function.
10499 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10500 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10501 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10502 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10503
10504 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10505
10506 PR tree-optimization/90681
10507 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10508 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10509 special case for SLP, but fail on non-groupped loads.
10510
10511 2019-06-03 Martin Liska <mliska@suse.cz>
10512
10513 * cfg.c (debug): Use TDF_DETAILS for debug and
10514 print edge info only once.
10515
10516 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10517
10518 PR fortran/90539
10519 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10520
10521 2019-06-01 Martin Sebor <msebor@redhat.com>
10522
10523 PR middle-end/90694
10524 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10525
10526 2019-05-31 Jan Hubicka <jh@suse.cz>
10527
10528 * alias.c: Include ipa-utils.h.
10529 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10530 * ipa-devirt.c (prevailing_odr_type): New.
10531 * ipa-utils.h (previaling_odr_type): Declare.
10532
10533 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10534 Hongtao Liu <hongtao.liu@intel.com>
10535
10536 PR target/89355
10537 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10538 NOTE_INSN_DELETED_LABEL check.
10539
10540 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10541 Robert Suchanek <robert.suchanek@mips.com>
10542
10543 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10544 and 3rd operands of the fmadd/fmsub/maddv builtin.
10545
10546 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10547
10548 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10549 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10550 on OMP_SIMD if not nested inside of worksharing loop that also has
10551 lastprivate conditional clause for the same decl.
10552 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10553 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10554 on simd.
10555 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10556 on simd construct.
10557 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10558 on simd construct.
10559 (lower_lastprivate_clauses): Likewise.
10560 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10561 calling lower_rec_input_clauses.
10562 (lower_omp_for): Likewise.
10563 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10564 clause on simd construct.
10565 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10566 OMP_CLAUSE__CONDTEMP_ clause is present.
10567
10568 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10569 ivar and lvar.
10570
10571 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10572
10573 PR c/43673
10574 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10575 TEX_D32, TEX_D64 or TEX_D128.
10576
10577 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10578
10579 * match.pd (~(vec?cst1:cst2)): New transformation.
10580
10581 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10582
10583 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10584 ((size_t)(A /[ex] B) CMP C): New transformation.
10585
10586 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10587
10588 * doc/md.texi: Document define_insn_and_rewrite.
10589 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10590 * gensupport.c (queue_elem): Update comment.
10591 (replace_operands_with_dups): New function.
10592 (gen_rewrite_sequence): Likewise.
10593 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10594 * read-rtl.c (apply_subst_iterator): Likewise.
10595 (add_condition_to_rtx, named_rtx_p): Likewise.
10596 (rtx_reader::read_rtx_operand): Likewise.
10597 * config/aarch64/aarch64-sve.md
10598 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10599 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10600 define_insn_and_rewrite.
10601 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
10602 Remove separate define_split.
10603
10604 2019-05-31 Jan Hubicka <jh@suse.cz>
10605
10606 * tree-ssa-alias.c (type_has_components_p): New function.
10607 (aliasing_component_refs_p): Use it.
10608
10609 2019-05-31 Martin Liska <mliska@suse.cz>
10610
10611 * gdbhooks.py: Add const_tree to TreePrinter.
10612
10613 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
10614
10615 PR debug/86964
10616 * common.opt (feliminate-unused-debug-symbols): Enable by default.
10617 * doc/invoke.texi (Debugging Options): Document new default of
10618 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
10619
10620 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10621
10622 PR tree-optimization/90671
10623 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
10624 template_block used to be empty on the first call, don't use
10625 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
10626 seq with bb_seq and set it with set_bb_seq.
10627
10628 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
10629
10630 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
10631
10632 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10633 Michael Meissner <meissner@linux.ibm.com>
10634
10635 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
10636 (prefixed_mem_operand): Likewise.
10637 (non_prefixed_mem_operand): Likewise.
10638 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
10639 prototype.
10640 * config/rs6000/rs6000.c (print_operand_address): Handle
10641 PC-relative addresses.
10642 (mode_supports_prefixed_address_p): New function.
10643 (rs6000_prefixed_address): New function.
10644 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
10645 (SYMBOL_REF_PCREL_P): Likewise.
10646
10647 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10648
10649 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
10650 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
10651 (gimplify_omp_for): If worksharing loop with lastprivate conditional
10652 is nested inside of parallel region, add _condtemp_ clause to both.
10653 * tree-nested.c (convert_nonlocal_omp_clauses,
10654 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
10655 assertion failure.
10656 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
10657 member.
10658 * omp-general.c (omp_extract_for_data): Compute it.
10659 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
10660 (lower_rec_input_clauses): Likewise.
10661 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
10662 clause is already present, just add one further one after it.
10663 (lower_lastprivate_clauses): Handle cond_ptr with array type.
10664 (lower_send_shared_vars): Clear _condtemp_ vars.
10665 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
10666 or section or taskgroup.
10667 * omp-expand.c (determine_parallel_type): Disallow combining only if
10668 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
10669 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
10670 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10671 expand_omp_for_static_chunk, expand_omp_for): Use
10672 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
10673 determine if a special set of API routines are needed and if condtemp
10674 needs to be initialized, while always initialize cond_var if
10675 fd->lastprivate_conditional is non-zero.
10676
10677 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10678 Michael Meissner <meissner@linux.ibm.com>
10679
10680 * config/rs6000/constraints.md (eI): New constraint.
10681 * config/rs6000/predicates.md (cint34_operand): New predicate.
10682 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
10683 (SIGNED_34BIT_OFFSET_P): Likewise.
10684 * doc/md.texi (eI): Document constraint.
10685
10686 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
10687
10688 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
10689
10690 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10691 Michael Meissner <meissner@linux.ibm.com>
10692
10693 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
10694 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
10695 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
10696 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
10697 (OTHER_FUTURE_MASKS): Likewise.
10698 (POWERPC_MASKS): Likewise.
10699 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
10700 specified without -mprefixed-addr or -mcpu=future. Error if
10701 -mprefixed-addr is specified without -mcpu=future.
10702 (rs6000_opt_masks): Add entry for prefixed-addr.
10703 * rs6000.opt (mprefixed-addr): New option.
10704
10705 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
10706
10707 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
10708 cfun->is_thunk check.
10709
10710 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10711
10712 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
10713 to length.
10714
10715 2019-05-30 Martin Liska <mliska@suse.cz>
10716
10717 * gdbinit.in: Fix 'ptc' command. Add trt
10718 that prints TREE_TYPE($).
10719
10720 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
10721 Alan Modra <amodra@gmail.com>
10722
10723 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
10724 calls here...
10725 (rs6000_indirect_call_template_1): ...and here.
10726 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
10727 plt16_ha, plt16_lo, mtctr indirect calls. Use
10728 rs6000_pltseq_enum.
10729 (rs6000_decl_ok_for_sibcall): New function.
10730 (rs6000_function_ok_for_sibcall): Refactor.
10731 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
10732 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
10733 when pcrel. Reorganize.
10734 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
10735 * rs6000.h (rs6000_pltseq_enum): New enum.
10736 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
10737 (*pltseq_tocsave): Use rs6000_pltseq_enum.
10738 (*pltseq_plt16_ha): Likewise.
10739 (*pltseq_plt16_lo): Likewise.
10740 (*pltseq_mtctr): Likewise.
10741 (*pltseq_plt_pcrel): New insn.
10742 (*call_local_aix): Handle @notoc calls.
10743 (*call_value_local_aix): Likewise.
10744 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
10745 (*call_value_nonlocal_aix): Likewise.
10746 (*call_indirect_pcrel): New insn.
10747 (*call_value_indirect_pcrel): Likewise.
10748
10749 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
10750
10751 * config/i386/sse.md (*save_multiple<mode>): Rename from
10752 save_multiple<mode>.
10753 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
10754 (*restore_multiple_and_return<mode>): Rename from
10755 restore_multiple_and_return<mode>.
10756 (*restore_multiple_leave_return<mode>): Rename from
10757 restore_multiple_leave_return<mode>.
10758
10759 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
10760
10761 * config.gcc (rx-*-linux*): New target.
10762 * config/rx/elf.opt: New file.
10763 * config/rx/linux.h: Likewise.
10764 * config/rx/t-linux: Likewise.
10765 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
10766 make it zero.
10767 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
10768 (ASM_APP_OFF): Likewise.
10769 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
10770 moved elsewhere.
10771
10772 2019-05-29 Jan Hubicka <jh@suse.cz>
10773
10774 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
10775 variants are pointer equivalent.
10776
10777 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10778
10779 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
10780 * config/aarch64/aarch64-sve2.md: New file.
10781 (<u>avg<mode>3_floor): New pattern.
10782 (<u>avg<mode>3_ceil): Likewise.
10783 (*<sur>h<addsub><mode>): Likewise.
10784 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
10785 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
10786
10787 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10788
10789 PR bootstrap/90543
10790 * optc-save-gen.awk: In cl_optimization_print, use correct condition
10791 for var_opt_string printing. In cl_optimization_print_diff, print
10792 (null) instead of invoking undefined behavior if one of the
10793 var_opt_string pointers is NULL and use && instead of first || in the
10794 guarding condition. For var_target_other options, handle const char *
10795 target variables similarly to const char * optimize node variables.
10796
10797 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
10798
10799 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
10800 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
10801 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
10802 Add autib1716 and pacib1716 initialisation.
10803 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
10804 for autib1716 and pacib1716.
10805 * config/aarch64/aarch64-protos.h (aarch64_key_type,
10806 aarch64_post_cfi_startproc): Define.
10807 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
10808 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
10809 aarch64_handle_pac_ret_protection): Set default sign key to A.
10810 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
10811 aarch64_expand_prologue): Add check for b-key.
10812 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
10813 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
10814 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
10815 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
10816 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
10817 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
10818 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10819 * config/aarch64/aarch64.md (do_return): Add check for b-key.
10820 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
10821 pauth_hint_num_a with pauth_hint_num.
10822 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
10823 pauth_hint_num_a with pauth_hint_num.
10824 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
10825 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
10826 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10827 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
10828 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
10829 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
10830 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
10831 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10832 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
10833 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
10834 UNSPEC_AUTIA1716 respectively.
10835 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
10836 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
10837 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
10838 * doc/invoke.texi (-mbranch-protection): Add b-key type.
10839 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
10840 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
10841
10842 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10843
10844 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
10845 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
10846 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
10847 explicit clause on combined parallel into implicit shared clause.
10848 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
10849 and firstprivate if the decl has one too from combined parallel to
10850 the worksharing construct.
10851
10852 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
10853 Michael Meissner <meissner@linux.ibm.com>
10854
10855 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
10856
10857 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
10858
10859 * rtl.h (LABEL_REF_P): New #define.
10860
10861 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
10862
10863 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
10864
10865 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10866
10867 * internal-fn.c: Marked mask_load_direct as vectorizable.
10868 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
10869 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
10870 combined even if masks different with allow_slp_p param.
10871 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
10872 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
10873 dissolve SLP-only vectorizable groups when SLP has been discarded.
10874 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
10875 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
10876 masks.
10877 (vect_build_slp_tree_1): Fixed comment typo.
10878 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
10879 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
10880 loads for SLP only.
10881 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
10882 vectorizable.
10883 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
10884
10885 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10886
10887 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
10888 Remove obsolete use_thunk reference.
10889 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10890 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10891 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10892 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10893 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10894 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10895 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10896 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10897 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10898
10899 2019-05-28 Nathan Sidwell <nathan@acm.org>
10900
10901 * tree.h (IDENTIFIER_ANON_P): New.
10902 (anon_aggrname_format, anon_aggname_p): Don't declare.
10903 (make_anon_name): Declare.
10904 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
10905 (hash_tree): Likewise.
10906 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
10907 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
10908 (anon_cnt, make_anon_name): New.
10909
10910 2019-05-28 Martin Liska <mliska@suse.cz>
10911
10912 PR other/90315
10913 * opts-global.c (decode_options): Print help for all
10914 help_option_arguments.
10915 * opts.c (print_help): Add new argument.
10916 (common_handle_option): Remember all values into
10917 help_option_arguments.
10918 * opts.h (print_help): Add new argument.
10919
10920 2019-05-28 Martin Liska <mliska@suse.cz>
10921
10922 PR ipa/90555
10923 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
10924 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
10925 (func_checker::compare_bb): Call compare_loops.
10926
10927 2019-05-27 Jakub Jelinek <jakub@redhat.com>
10928
10929 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10930 on sections construct.
10931 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
10932 construct.
10933 (lower_omp_sections): Handle lastprivate conditional.
10934 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
10935 lastprivate_conditional_map.
10936 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
10937
10938 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
10939 critical, taskgroup and section regions when looking for a region
10940 with non-NULL lastprivate_conditional_map.
10941
10942 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10943
10944 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
10945 (*ix86_gen_sub3): Ditto.
10946 (*ix86_gen_sub3_carry): Ditto.
10947 (*ix86_gen_one_cmpl2): Ditto.
10948 (*ix86_gen_andsp): Ditto.
10949 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
10950 (gen_and2_insn): New static function.
10951 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
10952 Use gen_add3_insn instead of ix86_gen_add3.
10953 (ix86_expand_split_stack_prologue): Use gen_add2_insn
10954 instead of ix86_gen_add3.
10955 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
10956 Use gen_sub3_insn instead of ix86_gen_sub3.
10957 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
10958 instead of ix86_gen_add3.
10959 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
10960 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
10961 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
10962 * config/i386/i386-options.c (ix86_option_override_internal):
10963 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
10964 ix86_gen_one_cmpl2 and ix86_gen_andsp.
10965
10966 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
10967
10968 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
10969 and DW_OP_GNU_const_index opcodes.
10970
10971 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10972
10973 * config/i386/i386.h (STACK_SIZE_MODE): Define.
10974
10975 2019-05-27 Richard Biener <rguenther@suse.de>
10976
10977 PR tree-optimization/90637
10978 * tree-ssa-sink.c (statement_sink_location): Honor the
10979 computed sink location for single-uses.
10980
10981 2019-05-27 Richard Biener <rguenther@suse.de>
10982
10983 PR middle-end/90610
10984 * match.pd (vec_perm): Avoid clobbering op0 when not generating
10985 a bit-insert.
10986
10987 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10988
10989 * config/i386/i386.md (@sub<mode>3_carry): Rename
10990 from sub<mode>3_carry.
10991 (@leave_<mode>): New expander.
10992 (*leave): Rename from leave.
10993 (*leave_rex64): Rename from leave_rex64.
10994 (@monitorx_<mode>): Rename from monitorx_<mode>.
10995 (@clzero_<mode>): Rename from clzero_<mode>.
10996 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
10997 from sse3_monitor_<mode>.
10998 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
10999 (*ix86_gen_leave): Ditto.
11000 (*ix86_gen_monitor): Ditto.
11001 (*ix86_gen_monitorx): Ditto.
11002 (*ix86_gen_clzero): Ditto.
11003 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
11004 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
11005 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
11006 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
11007 Use gen_sse3_monitor instead of ix86_gen_monitor.
11008 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
11009 instead of ix86_gen_monitorx.
11010 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
11011 instead of ix86_gen_clzero.
11012 * config/i386/i386-options.c (ix86_option_override_internal):
11013 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
11014 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
11015
11016 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11017
11018 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
11019 Rename from tls_global_dynamic_64_<mode>.
11020 (@tls_local_dynamic_base_64_<mode>): Rename from
11021 tls_local_dynamic_base_64_<mode>.
11022 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
11023 Remove indirect function.
11024 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
11025 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
11026 instead of ix86_gen_tls_global_dynamic_64.
11027 Use gen_tls_local_dynamic_base_64 instead of
11028 ix86_gen_tls_local_dynamic_base_64.
11029 * config/i386/i386-options.c (ix86_option_override_internal):
11030 Do not initialize ix86_gen_tls_global_dynamic_64 and
11031 ix86_gen_tls_local_dynamic_base_64.
11032
11033 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11034
11035 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
11036 Rename from pro_epilogue_adjust_stack_<mode>_add.
11037 (@pro_epilogue_adjust_stack_sub_<mode>)
11038 Rename from pro_epilogue_adjust_stack_<mode>_sub.
11039 (@allocate_stack_worker_probe_<mode>):
11040 Rename from allocate_stack_worker_probe_<mode>.
11041 (allocate_stack): Use gen_allocate_stack_worker_probe.
11042 (probe_stack): Use gen_probe_stack_1.
11043 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
11044 (@adjust_stack_and_probe_<mode>): Rename from
11045 adjust_stack_and_probe<mode>.
11046 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
11047 (stack_protect_set): Use gen_stack_protect_set_1.
11048 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
11049 (stack_protect_test): Use gen_stack_protect_test_1.
11050 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
11051 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
11052 Remove indirect function.
11053 (*ix86_gen_adjust_stack_and_probe): Ditto.
11054 (*ix86_gen_probe_stack_range): Ditto.
11055 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
11056 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
11057 (ix86_adjust_stack_and_probe_stack_clash): Use
11058 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
11059 (ix86_adjust_stack_and_probe): Ditto.
11060 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
11061 of ix86_gen_probe_stack_range.
11062 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
11063 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
11064 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
11065 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
11066 CODE_FOR_stack_protect_test_{si,di}.
11067 * config/i386/i386-options.c (ix86_option_override_internal):
11068 Do not initialize ix86_gen_allocate_stack_worker,
11069 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
11070
11071 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
11072
11073 * doc/invoke.texi (Link Options): Many editorial changes around
11074 -flinker-output.
11075
11076 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11077
11078 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
11079 pre-Solaris 11 referene and most Studio compiler details.
11080
11081 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
11082
11083 PR target/90530
11084 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
11085 DImode to SImode in floating-point registers on 64-bit target.
11086 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
11087 register_operand in xmpyu patterns.
11088
11089 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11090
11091 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
11092 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
11093 OMP_CLAUSE__REDUCTEMP_.
11094 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11095 OMP_CLAUSE__CONDTEMP_.
11096 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
11097 * tree-pretty-print.c (dump_omp_clause): Likewise.
11098 * tree-nested.c (convert_nonlocal_omp_clauses,
11099 convert_local_omp_clauses): Likewise.
11100 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
11101 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
11102 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
11103 on OMP_FOR.
11104 (gimplify_omp_for): Warn and disable conditional modifier from
11105 lastprivate on loop iterators.
11106 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
11107 member.
11108 * omp-general.c (omp_extract_for_data): Initialize it.
11109 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
11110 member.
11111 (delete_omp_context): Delete it.
11112 (lower_lastprivate_conditional_clauses): New function.
11113 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
11114 handle lastprivate conditional clauses.
11115 (lower_reduction_clauses): Add CLIST argument, emit it into
11116 the critical section if any.
11117 (lower_omp_sections): Adjust lower_lastprivate_clauses and
11118 lower_reduction_clauses callers.
11119 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
11120 to lower_lastprivate_clauses.
11121 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
11122 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
11123 clist into a critical section if not emitted there already by
11124 lower_reduction_clauses.
11125 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
11126 callers.
11127 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
11128 conditional variables.
11129 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
11130 clause is present.
11131 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11132 expand_omp_for_static_chunk): Handle lastprivate conditional.
11133 (expand_omp_for): Handle fd.lastprivate_conditional like
11134 fd.have_reductemp.
11135
11136 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11137
11138 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
11139 kernel does not exit cleanly.
11140 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
11141
11142 2019-05-24 Jason Merrill <jason@redhat.com>
11143
11144 Revert:
11145 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11146
11147 2019-05-24 Richard Biener <rguenther@suse.de>
11148
11149 PR testsuite/90607
11150 * tree-loop-distribution.c (struct partition): Add location
11151 member.
11152 (partition_alloc): Initialize all fields.
11153 (generate_memset_builtin): Use the location recorded in the
11154 partition for the generated call.
11155 (generate_memcpy_builtin): Likewise.
11156 (classify_partition): Record the location of a single store
11157 as location for the partition.
11158
11159 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11160
11161 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
11162 for lo-part.
11163
11164 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
11165
11166 PR target/90588
11167 * common/config/aarch64/aarch64-common.c
11168 (aarch64_rewrite_selected_cpu): Change local temporary variable
11169 type from unsigned long to uint64_t.
11170 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
11171 aarch64_get_extension_string_for_isa_flags): Change declaration to
11172 match new definition by replacing unsigned long with uint64_t.
11173
11174 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11175
11176 PR target/90568
11177 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
11178 gen_attr_type just once instead of 4-7 times. Formatting fixes.
11179 Handle stack_protect_test_<mode> codegen similarly to corresponding
11180 sub instruction.
11181
11182 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
11183
11184 * config/i386/darwin.h: Reject -mfentry*.
11185 * doc/sourcebuild.texi: Document mfentry target support.
11186
11187 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11188
11189 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
11190 Rename to rs6000_global_entry_point_prologue_needed_p. Return
11191 false for PC-relative functions.
11192 (rs6000_output_function_prologue): Change called function name to
11193 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
11194 name,1" for PC-relative functions.
11195 (rs6000_elf_declare_function_name): Change called function name to
11196 rs6000_global_entry_point_prologue_needed_p.
11197
11198 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
11199
11200 PR target/90552
11201 * config/i386/i386.c (gen_rtx_cost):
11202 Use ix86_tune_cost instead of ix86_cost.
11203
11204 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11205 Michael Meissner <meissner@linux.ibm.com>
11206 Segher Boessenkool <segher@kernel.crashing.org>
11207
11208 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
11209 OPTION_MASK_PCREL.
11210 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
11211 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
11212 (rs6000_fndecl_pcrel_p): Likewise.
11213 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
11214 error if -mpcrel is requested without -mcpu=future.
11215 (rs6000_opt_masks): Add entry for pcrel.
11216 (rs6000_fndecl_pcrel_p): New function.
11217 (rs6000_pcrel_p): Likewise.
11218 * config/rs6000/rs6000.opt (mpcrel): New option.
11219 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
11220
11221 2019-05-23 Jan Hubicka <jh@suse.cz>
11222 Martin Liska <mliska@suse.cz>
11223
11224 PR tree-optimization/90576
11225 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
11226 poly_int_tree_p.
11227 (aliasing_component_refs_p): Fix three way size compare conditional;
11228 give up earlier in case we can not decide on equivalence.
11229
11230 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11231 Michael Meissner <meissner@linux.ibm.com>
11232 Segher Boessenkool <segher@kernel.crashing.org>
11233
11234 * config.gcc: Add future cpu.
11235 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
11236 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
11237 #define.
11238 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
11239 (RS6000_CPU): New instantiation for future cpu.
11240 * config/rs6000/rs6000-opts.h (enum processor_type): Add
11241 PROCESSOR_FUTURE.
11242 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
11243 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
11244 * config/rs6000/rs6000-tables.opt: Regenerate.
11245 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
11246 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
11247 (rs6000_machine_from_flags): Handle future cpu.
11248 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
11249 PROCESSOR_POWER9 for now.
11250 (rs6000_adjust_cost): Likewise.
11251 (rs6000_issue_rate): Likewise.
11252 (rs6000_register_move_cost): Likewise.
11253 (rs6000_opt_masks): Add entry for future.
11254 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
11255 (MASK_FUTURE): New #define.
11256 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
11257 * config/rs6000/rs6000.opt (mfuture): New target option.
11258 * doc/invoke.texi (mcpu): Add future cpu.
11259
11260 2019-05-23 Martin Liska <mliska@suse.cz>
11261
11262 PR c++/90587
11263 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
11264 operation points to a temporary (pointed via tree_to_wide_ref)
11265 that is out of scope after the &.
11266
11267 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
11268
11269 PR c++/90592
11270 * doc/extend.texi (Function Names): Add missing word.
11271
11272 2019-05-23 Richard Biener <rguenther@suse.de>
11273
11274 PR tree-optimization/88440
11275 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11276 at -O[2s]+.
11277 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11278 generated call.
11279 (generate_memcpy_builtin): Likewise.
11280 (distribute_loop): Pass in whether to only distribute patterns.
11281 (prepare_perfect_loop_nest): Also allow size optimization.
11282 (pass_loop_distribution::execute): When optimizing a loop
11283 nest for size allow pattern replacement.
11284
11285 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11286
11287 PR target/90568
11288 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11289 of xor.
11290
11291 2019-05-23 Martin Liska <mliska@suse.cz>
11292
11293 PR sanitizer/90570
11294 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11295 expression similarly to gimplify_decl_expr.
11296
11297 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11298
11299 * cse.c (cse_dump_path): s/dump_file/f.
11300
11301 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11302
11303 PR c++/90462
11304 * diagnostic-format-json.cc: Include "selftest.h".
11305 (json_from_expanded_location): Only add "file" key for non-NULL
11306 file strings.
11307 (json_from_location_range): Don't add "start" and "finish"
11308 children if they are UNKNOWN_LOCATION.
11309 (selftest::test_unknown_location): New selftest.
11310 (selftest::test_bad_endpoints): New selftest.
11311 (selftest::diagnostic_format_json_cc_tests): New function.
11312 * json.cc (json::object::get): New function.
11313 (selftest::test_object_get): New selftest.
11314 (selftest::json_cc_tests): Call it.
11315 * json.h (json::object::get): New decl.
11316 * selftest-run-tests.c (selftest::run_tests): Call
11317 selftest::diagnostic_format_json_cc_tests.
11318 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11319 decl.
11320
11321 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11322 Andrew Stubbs <amd@codesourcery.com>
11323
11324 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11325 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11326 (kernel): Rename to...
11327 (main_kernel): ... this.
11328 (load_image): Load _init_array and _fini_array kernels.
11329 (run): Add argument for kernel to run.
11330 (main): Run init_array_kernel before main_kernel, and
11331 fini_array_kernel after.
11332 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11333 amdgpu_hsa_kernel attribute on functions.
11334 (gcn_disable_constructors): Delete.
11335 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11336 * config/gcn/crt0.c (size_t): Define.
11337 (_init_array, _fini_array): New.
11338 (__preinit_array_start, __preinit_array_end,
11339 __init_array_start, __init_array_end,
11340 __fini_array_start, __fini_array_end): Declare weak references.
11341
11342 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11343
11344 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11345
11346 2019-05-22 Jason Merrill <jason@redhat.com>
11347
11348 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11349
11350 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11351
11352 PR target/88483
11353 * config/i386/i386-options.c (ix86_init_machine_status): Set
11354 stack_frame_required to true.
11355 * config/i386/i386.c (ix86_get_frame_size): New function.
11356 (ix86_frame_pointer_required): Replace get_frame_size with
11357 ix86_get_frame_size.
11358 (ix86_compute_frame_layout): Likewise.
11359 (ix86_find_max_used_stack_alignment): Changed to void. Set
11360 stack_frame_required.
11361 (ix86_finalize_stack_frame_flags): Always call
11362 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11363 ix86_get_frame_size.
11364 * config/i386/i386.h (machine_function): Add stack_frame_required.
11365
11366 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11367
11368 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11369
11370 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11371
11372 * common/config/aarch64/aarch64-common.c
11373 (struct aarch64_option_extension, struct processor_name_to_arch,
11374 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11375 aarch64_contains_opt,
11376 aarch64_get_extension_string_for_isa_flags): Change type of
11377 variables storing flags to uint64_t.
11378 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11379 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11380 * config/aarch64/aarch64.c (struct processor,
11381 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11382 aarch64_validate_march, aarch64_override_options,
11383 aarch64_option_print, aarch64_handle_attr_isa_flags,
11384 aarch64_declare_function_name, aarch64_start_file): Make flag
11385 variables uint64_t.
11386 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11387 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11388 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11389 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11390 * config/aarch64/driver-aarch64.c
11391 (struct aarch64_arch_extension, struct aarch64_core_data,
11392 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11393 flag variables uint64_t.
11394 * doc/invoke.texi: Add documentation for new arguments.
11395
11396 2019-05-22 Richard Biener <rguenther@suse.de>
11397
11398 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11399 rewrite ...
11400 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11401
11402 2019-05-22 Martin Liska <mliska@suse.cz>
11403
11404 PR lto/90500
11405 * doc/extend.texi: Document the change.
11406
11407 2019-05-22 Richard Biener <rguenther@suse.de>
11408
11409 PR tree-optimization/90450
11410 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11411 (mem_ref_hasher::equal): Check it.
11412 (mem_ref_alloc): Initialize it.
11413 (gather_mem_refs_stmt): Set it.
11414
11415 2019-05-22 Richard Biener <rguenther@suse.de>
11416
11417 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11418 Add ABS_EXPR.
11419 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11420 as ABSU_EXPR.
11421
11422 2019-05-22 Alan Modra <amodra@gmail.com>
11423
11424 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11425 (ASM_CPU_SPEC): Conditionally add -many.
11426 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11427 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11428 (rs6000_file_start): ..extracted from here, and modified to
11429 test all ISA bits.
11430 (rs6000_output_function_prologue): Emit .machine as necessary.
11431
11432 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11433
11434 PR middle-end/90553
11435 * ira-lives.c (process_bb_node_lives): Consider defs
11436 for a call insn to be die before the call, not after.
11437
11438 * function.c (assign_parm_setup_block): Raise alignment of
11439 stacked parameter only for STRICT_ALIGNMENT targets.
11440
11441 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11442
11443 * config/rs6000/constraints.md (define_register_constraint "wz"):
11444 Delete.
11445 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11446 RS6000_CONSTRAINT_wz.
11447 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11448 (rs6000_init_hard_regno_mode_ok): Adjust.
11449 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11450 * doc/md.texi (Machine Constraints): Adjust.
11451
11452 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11453
11454 * config/rs6000/constraints.md (define_register_constraint "wl"):
11455 Delete.
11456 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11457 RS6000_CONSTRAINT_wl.
11458 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11459 (rs6000_init_hard_regno_mode_ok): Adjust.
11460 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11461 * doc/md.texi (Machine Constraints): Adjust.
11462
11463 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11464
11465 * config/rs6000/constraints.md (define_register_constraint "wm"):
11466 Delete.
11467 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11468 RS6000_CONSTRAINT_wm.
11469 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11470 (rs6000_init_hard_regno_mode_ok): Adjust.
11471 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11472 * doc/md.texi (Machine Constraints): Adjust.
11473
11474 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11475
11476 * config/rs6000/constraints.md (define_register_constraint "wk"):
11477 Delete.
11478 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11479 RS6000_CONSTRAINT_wk.
11480 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11481 (rs6000_init_hard_regno_mode_ok): Adjust.
11482 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11483 * doc/md.texi (Machine Constraints): Adjust.
11484
11485 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11486
11487 * config/rs6000/constraints.md (define_register_constraint "wj"):
11488 Delete.
11489 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11490 RS6000_CONSTRAINT_wj.
11491 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11492 (rs6000_init_hard_regno_mode_ok): Adjust.
11493 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11494 (VS_64dm): Delete.
11495 * config/rs6000/vsx.md: Ditto.
11496 * doc/md.texi (Machine Constraints): Adjust.
11497
11498 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11499
11500 * config/rs6000/constraints.md (define_register_constraint "wh"):
11501 Delete.
11502 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11503 RS6000_CONSTRAINT_wh.
11504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11505 (rs6000_init_hard_regno_mode_ok): Adjust.
11506 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11507 * doc/md.texi (Machine Constraints): Adjust.
11508
11509 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11510
11511 PR target/90547
11512 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11513 Avoid calling gen_lowpart with CONST operand.
11514
11515 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11516
11517 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11518 field template_last_to_copy.
11519 (ssa_create_duplicates): Set it, and use it. Attempt to
11520 preserve more debug stmts.
11521
11522 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11523
11524 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11525 (signbit<mode>2): New expander
11526
11527 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11528
11529 PR bootstrap/87338
11530 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11531 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11532
11533 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11534
11535 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11536 %ebx and %ecx bafore calling cpuid with leaf 1 or
11537 non-constant leaf argument.
11538
11539 2019-05-21 Alan Modra <amodra@gmail.com>
11540
11541 PR target/90545
11542 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11543 power9 direct move cost.
11544
11545 2019-05-21 Richard Biener <rguenther@suse.de>
11546
11547 PR middle-end/90510
11548 * fold-const.c (fold_read_from_vector): New function.
11549 * fold-const.h (fold_read_from_vector): Declare.
11550 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11551 single-element insert permutations. Canonicalize selector
11552 further and fix issue with last commit.
11553
11554 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11555
11556 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11557 parameter with default value false to declaration.
11558 (split_edges_for_insertion): New inline function. Wrapper for
11559 split_critical_edges with for_edge_insertion_p = true.
11560 * tree-cfg.c (split_critical_edges): Don't split non-critical
11561 edges if for_edge_insertion_p is false. Fix whitespace.
11562 * tree-ssa-pre.c (pass_pre::execute): Call
11563 split_edges_for_insertion instead of split_critical_edges.
11564 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11565 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11566 (pass_data_sink_code): Update function name in the comment.
11567
11568 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11569
11570 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11571 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11572 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11573 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11574 positives.
11575
11576 2019-05-21 Martin Liska <mliska@suse.cz>
11577
11578 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11579 an extra newline.
11580 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11581 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11582 vec_lvsr.
11583 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11584 Quote a C type.
11585 (rs6000_function_arg): Likewise.
11586 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11587 (rs6000_expand_ternop_builtin): Use interval syntax.
11588 (get_element_number): Likewise.
11589 (altivec_expand_builtin): Likewise.
11590 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11591
11592 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11593
11594 PR c++/59813
11595 PR target/90418
11596 * function.h (struct function): Add calls_eh_return member.
11597 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11598 gimplifying __builtin_eh_return call.
11599 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11600 to cfun.
11601 (expand_call_inline): Or in src_cfun->calls_eh_return into
11602 dst_cfun->calls_eh_return.
11603 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
11604 cfun->calls_eh_return.
11605 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
11606 * lto-streamer-out.c (output_struct_function_base): Write
11607 calls_eh_return.
11608
11609 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
11610
11611 PR rtl-optimization/43147
11612 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
11613 IX86_BUILTIN_SHUFPD.
11614
11615 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11616
11617 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
11618 (refs_may_alias_p_1): ... here; update stats.
11619 (refs_may_alias_p): Do not update stats here.
11620
11621 2019-05-20 Richard Biener <rguenther@suse.de>
11622
11623 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
11624 doesn't produce pointers.
11625 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
11626 the first operand points to.
11627
11628 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11629
11630 * tree-ssa-alias.c (compare_sizes): New function.
11631 (sompare_type_sizes): New function
11632 (aliasing_component_refs_p): Use it.
11633 (indirect_ref_may_alias_decl_p): Likewise.
11634
11635 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11636
11637 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
11638
11639 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11640
11641 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
11642 (LIBLSAN_EARLY_SPEC): Likewise.
11643 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
11644
11645 2019-05-20 Martin Liska <mliska@suse.cz>
11646
11647 * config/i386/i386.c (ix86_libc_has_fast_function):
11648 Add ATTRIBUTE_UNUSED for the argument.
11649
11650 2019-05-20 Richard Biener <rguenther@suse.de>
11651
11652 * gimple-match-head.c: Include vec-perm-indices.h.
11653 * generic-match-head.c: Likewise.
11654 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
11655 is included.
11656 * fold-const.c (fold_vec_perm): Export.
11657 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
11658 (match.pd): ...here.
11659
11660 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11661
11662 * cfgloop.h (struct loop): Add simdlen member.
11663 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
11664 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
11665 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
11666 as new argument to autovectorize_vector_sizes target hook. If
11667 loop->simdlen, pick up vector size where the vectorization factor
11668 is equal to loop->simd, and if there is none, fall back to the first
11669 successful one.
11670 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
11671 caller.
11672 * omp-low.c (omp_clause_aligned_alignment): Likewise.
11673 * omp-general.c (omp_max_vf): Likewise.
11674 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
11675 * tree-vect-slp.c (vect_slp_bb): Likewise.
11676 * target.def (autovectorize_vector_sizes): Add ALL argument and
11677 document it.
11678 * doc/tm.texi: Adjust documentation.
11679 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
11680 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
11681 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
11682 bool argument.
11683 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
11684 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
11685 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
11686 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
11687 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
11688 preferred vector size is not 512-bit or 256-bit, just put those
11689 unpreferred ones last.
11690
11691 2019-05-20 Martin Liska <mliska@suse.cz>
11692
11693 * targhooks.c (default_libc_has_fast_function): New function.
11694 * targhooks.h (default_libc_has_fast_function): Likewise.
11695
11696 2019-05-20 Martin Liska <mliska@suse.cz>
11697
11698 PR middle-end/90263
11699 * builtins.c (expand_builtin_memory_copy_args): When having a
11700 target with fast mempcpy implementation do now use memcpy.
11701 * config/i386/i386.c (ix86_libc_has_fast_function): New.
11702 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
11703 * doc/tm.texi: Likewise.
11704 * doc/tm.texi.in: Likewise.
11705 * target.def:
11706 * expr.c (emit_block_move_hints): Add 2 new arguments.
11707 * expr.h (emit_block_move_hints): Bail out when libcall
11708 to memcpy would be used.
11709
11710 2019-05-20 Martin Liska <mliska@suse.cz>
11711
11712 * profile-count.c: Add vertical spacing in order
11713 to separate functions.
11714 * profile-count.h: Likewise.
11715
11716 2019-05-20 Martin Liska <mliska@suse.cz>
11717
11718 * profile-count.h: Do not use full qualified
11719 names if possible.
11720 * profile-count.c (profile_count::to_frequency): Likewise.
11721
11722 2019-05-20 Martin Liska <mliska@suse.cz>
11723
11724 * profile-count.h (enum profile_quality): Use capital letters
11725 for enum value names. Use the adjusted names.
11726 * profile-count.c: Use the adjusted names.
11727
11728 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11729
11730 * config/rs6000/constraints.md (define_register_constraint "wH"):
11731 Delete.
11732 (define_register_constraint "wI"): Delete.
11733 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11734 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
11735 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11736 (rs6000_init_hard_regno_mode_ok): Adjust.
11737 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
11738 resp. "d", or with "wa" as appropriate, all with "p8v".
11739 * config/rs6000/vsx.md: Ditto.
11740 * doc/md.texi (Machine Constraints): Adjust.
11741
11742 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11743
11744 * config/rs6000/constraints.md (define_register_constraint "wy"):
11745 Delete.
11746 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11747 RS6000_CONSTRAINT_wy.
11748 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11749 (rs6000_init_hard_regno_mode_ok): Adjust.
11750 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
11751 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
11752 (define_mode_attr Fisa): New.
11753 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
11754 * doc/md.texi (Machine Constraints): Adjust.
11755
11756 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11757
11758 * config/rs6000/constraints.md (define_register_constraint "wu"):
11759 Delete.
11760 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11761 RS6000_CONSTRAINT_wu.
11762 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11763 (rs6000_init_hard_regno_mode_ok): Adjust.
11764 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
11765 both with "p8v".
11766 (define_mode_attr Fa): Delete.
11767 * config/rs6000/vsx.md: Ditto.
11768 * doc/md.texi (Machine Constraints): Adjust.
11769
11770 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11771
11772 * config/rs6000/constraints.md (define_register_constraint "wJ"):
11773 Delete.
11774 (define_register_constraint "wK"): Delete.
11775 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11776 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
11777 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11778 (rs6000_init_hard_regno_mode_ok): Adjust.
11779 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
11780 Replace "wK" constraint by "wH" with "p9v".
11781 * config/rs6000/vsx.md: Ditto.
11782 * doc/md.texi (Machine Constraints): Adjust.
11783
11784 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11785
11786 * config/rs6000/constraints.md (define_register_constraint "wb"):
11787 Delete.
11788 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11789 RS6000_CONSTRAINT_wb.
11790 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11791 (rs6000_init_hard_regno_mode_ok): Adjust.
11792 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
11793 * config/rs6000/vsx.md: Ditto.
11794 * doc/md.texi (Machine Constraints): Adjust.
11795
11796 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11797
11798 * config/rs6000/constraints.md (define_register_constraint "wo"):
11799 Delete.
11800 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11801 RS6000_CONSTRAINT_wo.
11802 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11803 (rs6000_init_hard_regno_mode_ok): Adjust.
11804 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
11805 * config/rs6000/altivec.md: Ditto.
11806 * doc/md.texi (Machine Constraints): Adjust.
11807
11808 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11809
11810 * config/darwin-c.c (darwin_register_objc_includes): Do not
11811 prepend the sysroot when building gnu-runtime header search
11812 paths.
11813
11814 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11815
11816 * config/darwin.c (darwin_file_end): Use switch_to_section ()
11817 instead of direct output of the asm.
11818
11819 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11820
11821 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
11822 argument to be type bool (was int before).
11823 (rs6000_emit_epilogue): Simplify some code. Declare some variables
11824 at first use. Use type bool for some variables. Fix a theoretical
11825 eh_return bug for svr4.
11826
11827 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11828
11829 * config/rs6000/rs6000.md (isa): New attribute.
11830 (enabled): New attribute.
11831
11832 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
11833
11834 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
11835 assemble_start_function and assemble_end_function.
11836
11837 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
11838
11839 PR middle-end/89433
11840 * omp-general.c (oacc_verify_routine_clauses): Change formal
11841 parameters. Add checking if already marked with an OpenACC
11842 'routine' directive. Adjust all users.
11843
11844 PR middle-end/89433
11845 * omp-general.c (oacc_build_routine_dims): Move some of its
11846 processing into...
11847 (oacc_verify_routine_clauses): ... this new function.
11848 * omp-general.h (oacc_verify_routine_clauses): New prototype.
11849
11850 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11851
11852 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
11853 formating of picbase labels to match other ports.
11854
11855 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11856
11857 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
11858 in the generated code.
11859
11860 2019-05-16 Martin Sebor <msebor@redhat.com>
11861
11862 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
11863 identifiers, keywords, operators, and types in diagnostics. Correct
11864 quoting, spelling, and sentence capitalization issues.
11865 (expand_builtin_atomic_is_lock_free): Same.
11866 (fold_builtin_next_arg): Same.
11867 * cfgexpand.c (expand_one_var): Same.
11868 (tree_conflicts_with_clobbers_p): Same.
11869 (expand_asm_stmt): Same.
11870 (verify_loop_structure): Same.
11871 * cgraphunit.c (process_function_and_variable_attributes): Same.
11872 * collect-utils.c (collect_execute): Same.
11873 * collect2.c (maybe_run_lto_and_relink): Same.
11874 (is_lto_object_file): Same.
11875 (scan_prog_file): Same.
11876 * convert.c (convert_to_real_1): Same.
11877 * dwarf2out.c (dwarf2out_begin_prologue): Same.
11878 * except.c (verify_eh_tree): Same.
11879 * gcc.c (execute): Same.
11880 (eval_spec_function): Same.
11881 (run_attempt): Same.
11882 (driver::set_up_specs): Same.
11883 (compare_debug_auxbase_opt_spec_function): Same.
11884 * gcov-tool.c (unlink_gcda_file): Same.
11885 (do_merge): Same.
11886 (do_rewrite): Same.
11887 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
11888 * gimplify.c (gimplify_asm_expr): Same.
11889 (gimplify_adjust_omp_clauses): Same.
11890 * hsa-gen.c (gen_hsa_addr_insns): Same.
11891 (gen_hsa_insns_for_load): Same.
11892 (gen_hsa_cmp_insn_from_gimple): Same.
11893 (gen_hsa_insns_for_operation_assignment): Same.
11894 (gen_get_level): Same.
11895 (gen_hsa_alloca): Same.
11896 (omp_simple_builtin::generate): Same.
11897 (gen_hsa_atomic_for_builtin): Same.
11898 (gen_hsa_insns_for_call): Same.
11899 * input.c (dump_location_info): Same.
11900 * ipa-devirt.c (compare_virtual_tables): Same.
11901 * ira.c (ira_setup_eliminable_regset): Same.
11902 * lra-assigns.c (lra_assign): Same.
11903 * lra-constraints.c (lra_constraints): Same.
11904 * lto-streamer-in.c (lto_input_mode_table): Same.
11905 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
11906 (merge_and_complain): Same.
11907 (compile_offload_image): Same.
11908 (compile_images_for_offload_targets): Same.
11909 (debug_objcopy): Same.
11910 (run_gcc): Same.
11911 (main): Same.
11912 * opts.c (print_specific_help): Same.
11913 (parse_no_sanitize_attribute): Same.
11914 (print_help): Same.
11915 (handle_param): Same.
11916 * plugin.c (add_new_plugin): Same.
11917 (parse_plugin_arg_opt): Same.
11918 (try_init_one_plugin): Same.
11919 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
11920 operators, and types in diagnostics. Correct quoting and spelling
11921 issues.
11922 * read-rtl-function.c (parse_edge_flag_token): Same.
11923 (function_reader::parse_enum_value): Same.
11924 * reg-stack.c (check_asm_stack_operands): Same.
11925 * regcprop.c (validate_value_data): Same.
11926 * sched-rgn.c (make_pass_sched_fusion): Same.
11927 * stmt.c (check_unique_operand_names): Same.
11928 * targhooks.c (default_target_option_pragma_parse): Same.
11929 * tlink.c (recompile_files): Same.
11930 * toplev.c (process_options): Same.
11931 (do_compile): Same.
11932 * trans-mem.c (diagnose_tm_1): Same.
11933 (ipa_tm_scan_irr_block): Same.
11934 (ipa_tm_diagnose_transaction): Same.
11935 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
11936 format a tree code name in a diagnostic.
11937 (verify_types_in_gimple_min_lval): Same.
11938 (verify_types_in_gimple_reference): Same.
11939 (verify_gimple_call): Same.
11940 (verify_gimple_assign_unary): Same.
11941 (verify_gimple_assign_binary): Same.
11942 (verify_gimple_assign_ternary): Same.
11943 (verify_gimple_assign_single): Same.
11944 (verify_gimple_switch): Same.
11945 (verify_gimple_label): Same.
11946 (verify_gimple_phi): Same.
11947 (verify_gimple_in_seq): Same.
11948 (verify_eh_throw_stmt_node): Same.
11949 (collect_subblocks): Same.
11950 (gimple_verify_flow_info): Same.
11951 (do_warn_unused_result): Same.
11952 * tree-inline.c (expand_call_inline): Same.
11953 * tree-into-ssa.c (update_ssa): Same.
11954 * tree.c (tree_int_cst_elt_check_failed): Same.
11955 (tree_vec_elt_check_failed): Same.
11956 (omp_clause_operand_check_failed): Same.
11957 (verify_type_variant): Same.
11958 (verify_type): Same.
11959 * value-prof.c (verify_histograms): Same.
11960 * varasm.c (assemble_start_function): Same.
11961
11962 2019-05-16 Martin Sebor <msebor@redhat.com>
11963
11964 * config/i386/i386-expand.c (get_element_number): Quote keywords
11965 and other internal names in diagnostics. Adjust other diagnostic
11966 formatting issues noted by -Wformat-diag.
11967 * config/i386/i386-features.c
11968 (ix86_mangle_function_version_assembler_name): Same.
11969 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
11970 * config/i386/i386.c (ix86_function_type_abi): Same.
11971 (ix86_function_ms_hook_prologue): Same.
11972 (classify_argument): Same.
11973 (ix86_expand_prologue): Same.
11974 (ix86_md_asm_adjust): Same.
11975 (ix86_memmodel_check): Same.
11976
11977 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11978
11979 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
11980 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
11981 and fpxx modes.
11982
11983 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
11984
11985 PR target/90497
11986 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
11987 intrinsics without SSE/SSE2/SSSE3.
11988 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
11989 check.
11990 (*mmx_uavgv8qi3): Likewise.
11991
11992 2019-05-17 Richard Biener <rguenther@suse.de>
11993
11994 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
11995 VEC_PERM_EXPR as __VEC_PERM with -gimple.
11996
11997 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
11998
11999 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
12000 vec_sldw insn pattern.
12001
12002 2019-05-17 Richard Biener <rguenther@suse.de>
12003
12004 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
12005
12006 2019-05-17 Martin Liska <mliska@suse.cz>
12007
12008 PR driver/90496
12009 * toplev.c (output_stack_usage): With LTO and sanitizer it
12010 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
12011 has no file location.
12012
12013 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12014
12015 PR c++/90484
12016 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
12017 sz0 is equal to sz1, instead return false in that case.
12018
12019 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
12020 has non-constant expression, force sctx.lane and use two
12021 argument IFN_GOMP_SIMD_LANE instead of single argument.
12022 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
12023 two argument IFN_GOMP_SIMD_LANE without lhs.
12024 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
12025 member.
12026 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
12027 Define.
12028 (LOOP_REQUIRES_VERSIONING): Or in
12029 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
12030 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12031 simd_if_cond.
12032 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
12033 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
12034 from simd if clause if needed.
12035
12036 2019-05-16 Richard Biener <rguenther@suse.de>
12037
12038 * tree-affine.c (expr_to_aff_combination): New function split
12039 out from...
12040 (tree_to_aff_combination): ... here.
12041 (aff_combination_expand): Avoid building a GENERIC tree.
12042
12043 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
12044
12045 * cgraphunit.c (cgraph_node::expand_thunk): Remove
12046 assemble_start_function and assemble_end_function calls.
12047 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
12048 assemble_start_function and assemble_end_function.
12049 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
12050 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
12051 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
12052 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
12053 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
12054 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
12055 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
12056 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
12057 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12058 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12059 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12060 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
12061 Likewise.
12062 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12063 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
12064 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
12065 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
12066 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12067 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12068 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
12069 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
12070 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12071 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12072 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12073 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12074 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
12075 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
12076 Likewise.
12077 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12078 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12079 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
12080
12081 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
12082
12083 * tree-ssa-alias.c (alias_stats): Add
12084 aliasing_component_refs_p_may_alias and
12085 aliasing_component_refs_p_no_alias.
12086 (dump_alias_stats): Print aliasing_component_refs_p stats.
12087 (aliasing_component_refs_p): Update stats.
12088
12089 2019-05-16 Martin Liska <mliska@suse.cz>
12090
12091 PR lto/90500
12092 * multiple_target.c (expand_target_clones): Do not allow
12093 target_clones being used with a symbol that is an alias.
12094
12095 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
12096
12097 PR tree-optimization/90394
12098 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
12099 positives rather than ICE for cases where (code2 == NE_EXPR
12100 && code1 == BIT_AND_EXPR).
12101
12102 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12103
12104 PR fortran/90329
12105 * tree-core.h (struct tree_decl_common): Document
12106 decl_nonshareable_flag for PARM_DECLs.
12107 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
12108 * calls.c (expand_call): Don't try tail call if caller
12109 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
12110 passed on the stack and callee needs to pass any arguments on the
12111 stack.
12112 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12113 else if instead of series of mutually exclusive ifs. Handle
12114 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
12115 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12116
12117 * lto-streamer.h (LTO_major_version): Bump to 9.
12118
12119 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
12120
12121 PR tree-optimization/90106
12122 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
12123 new parameter as new internal function call, also move it to new
12124 basic block.
12125 (use_internal_fn): Pass internal function call to
12126 shrink_wrap_one_built_in_call_with_conds.
12127
12128 2019-05-15 Jakub Jelinek <jakub@redhat.com>
12129
12130 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
12131 max_vf to 1.
12132 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
12133 safelen_int and set loop->dont_vectorize.
12134
12135 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12136
12137 PR target/89021
12138 * config/i386/i386-builtin.def: Enable MMX intrinsics with
12139 SSE/SSE2/SSSE3.
12140 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12141 Likewise.
12142 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
12143 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
12144 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
12145 is defined.
12146
12147 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12148
12149 PR target/89021
12150 * config/i386/mmx.md (*vec_dupv2sf): Changed to
12151 define_insn_and_split to support SSE emulation.
12152 (*vec_extractv2sf_0): Likewise.
12153 (*vec_extractv2sf_1): Likewise.
12154 (*vec_extractv2si_0): Likewise.
12155 (*vec_extractv2si_1): Likewise.
12156 (*vec_extractv2si_zext_mem): Likewise.
12157 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
12158 (vec_extractv2sf_1 splitter): Likewise.
12159 (vec_extractv2sfsf): Likewise.
12160 (vec_setv2si): Likewise.
12161 (vec_extractv2si_1 splitter): Likewise.
12162 (vec_extractv2sisi): Likewise.
12163 (vec_setv4hi): Likewise.
12164 (vec_extractv4hihi): Likewise.
12165 (vec_setv8qi): Likewise.
12166 (vec_extractv8qiqi): Likewise.
12167 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12168 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
12169 (vec_extractv2sisi): Likewise.
12170 (vec_extractv4hihi): Likewise.
12171 (vec_extractv8qiqi): Likewise.
12172 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12173 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
12174 (vec_initv2sisi): Likewise.
12175 (vec_initv4hihi): Likewise.
12176 (vec_initv8qiqi): Likewise.
12177 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
12178 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
12179 (vec_setv4hi): Likewise.
12180 (vec_setv8qi): Likewise.
12181
12182 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12183
12184 PR target/89021
12185 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
12186 TARGET_MMX_WITH_SSE.
12187 (MMXMODE:*mov<mode>_internal): Likewise.
12188 (MMXMODE:movmisalign<mode>): Likewise.
12189
12190 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
12191
12192 PR target/89021
12193 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
12194 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
12195 (sse2_cvtpd2pi): Ditto.
12196 (sse2_cvttpd2pi): Ditto.
12197 (*vec_concatv2sf_sse4_1): Ditto.
12198 (*vec_concatv2sf_sse): Ditto.
12199 (*vec_concatv2si_sse4_1): Ditto.
12200 (*vec_concatv2si): Ditto.
12201 (*vec_concatv4si_0): Ditto.
12202 (*vec_concatv2di_0): Ditto.
12203
12204 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12205
12206 PR target/89021
12207 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
12208
12209 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12210
12211 PR target/89021
12212 * config/i386/sse.md (ssse3_palignrdi): Changed to
12213 define_insn_and_split to support SSE emulation.
12214
12215 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12216
12217 PR target/89021
12218 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
12219
12220 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12221
12222 PR target/89021
12223 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
12224 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12225 SSE emulation.
12226
12227 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12228
12229 PR target/89021
12230 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
12231 or TARGET_MMX_WITH_SSE.
12232 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
12233
12234 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12235
12236 PR target/89021
12237 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
12238
12239 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12240
12241 PR target/89021
12242 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
12243 Changed to define_insn_and_split to support SSE emulation.
12244
12245 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12246
12247 PR target/89021
12248 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
12249 Changed to define_insn_and_split to support SSE emulation.
12250
12251 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12252
12253 PR target/89021
12254 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
12255 (*mmx_<emms>): This.
12256 (mmx_<emms>): New expander.
12257
12258 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12259
12260 PR target/89021
12261 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
12262 support.
12263 (*sse2_umulv1siv1di3): Add SSE2 emulation.
12264
12265 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12266
12267 PR target/89021
12268 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
12269
12270 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12271
12272 PR target/89021
12273 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
12274
12275 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12276
12277 PR target/89021
12278 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12279 TARGET_MMX_WITH_SSE.
12280 (*mmx_uavgv4hi3): Add SSE emulation.
12281
12282 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12283
12284 PR target/89021
12285 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12286 and TARGET_MMX_WITH_SSE.
12287 (*mmx_uavgv8qi3): Add SSE emulation.
12288
12289 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12290
12291 PR target/89021
12292 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12293 maskmovdqu for __MMX_WITH_SSE__.
12294
12295 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12296
12297 PR target/89021
12298 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12299 TARGET_MMX and TARGET_MMX_WITH_SSE.
12300 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12301
12302 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12303
12304 PR target/89021
12305 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12306 define_insn_and_split to support SSE emulation.
12307
12308 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12309
12310 PR target/89021
12311 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12312 and TARGET_MMX_WITH_SSE.
12313 (mmx_<code>v8qi3): Likewise.
12314 (smaxmin:<code>v4hi3): New.
12315 (umaxmin:<code>v8qi3): Likewise.
12316 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12317 (umaxmin:*mmx_<code>v8qi3): Likewise.
12318
12319 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12320
12321 PR target/89021
12322 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12323 TARGET_MMX_WITH_SSE.
12324 (*mmx_pinsrw): Add SSE emulation.
12325
12326 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12327
12328 PR target/89021
12329 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12330
12331 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12332
12333 PR target/89021
12334 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12335 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12336 SSE emulation.
12337
12338 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12339
12340 PR target/89021
12341 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12342 (sse_cvttps2pi): Likewise.
12343
12344 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12345
12346 PR target/89021
12347 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12348 TARGET_MMX_WITH_SSE.
12349 (mmx_pshufw_1): Add SSE emulation.
12350 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12351 TARGET_MMX_WITH_SSE to support SSE emulation.
12352
12353 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12354
12355 PR target/89021
12356 * config/i386/constraints.md (Yw): New constraint.
12357 * config/i386/mmx.md (*vec_dupv2si): Changed to
12358 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12359 support SSE emulation.
12360
12361 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12362
12363 PR target/89021
12364 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12365 TARGET_MMX_WITH_SSE.
12366 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12367 support.
12368 (mmx_gt<mode>3): Likewise.
12369
12370 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12371
12372 PR target/89021
12373 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12374 TARGET_MMX_WITH_SSE. Add SSE support.
12375
12376 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12377
12378 PR target/89021
12379 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12380 TARGET_MMX_WITH_SSE.
12381 (any_logic:<code><mode>3): New.
12382 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12383 Add SSE support.
12384
12385 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12386
12387 PR target/89021
12388 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12389 TARGET_MMX_WITH_SSE. Add SSE emulation.
12390 (mmx_<shift_insn><mode>3): Likewise.
12391 (ashr<mode>3): New.
12392 (<shift_insn><mode>3): Likewise.
12393
12394 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12395
12396 PR target/89021
12397 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12398 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12399
12400 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12401
12402 PR target/89021
12403 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12404 TARGET_MMX_WITH_SSE.
12405 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12406 SSE support.
12407
12408 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12409
12410 PR target/89021
12411 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12412 TARGET_MMX_WITH_SSE.
12413 (mulv4hi3): New.
12414 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12415 support.
12416
12417 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12418
12419 PR target/89021
12420 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12421 (plusminus:mmx_<plusminus_insn><mode>3): Check
12422 TARGET_MMX_WITH_SSE.
12423 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12424 (<plusminus_insn><mode>3): New.
12425 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12426 (*mmx_<plusminus_insn><mode>3): Likewise.
12427
12428 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12429
12430 PR target/89021
12431 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12432 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12433 prototype.
12434 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12435 define_insn_and_split to support SSE emulation.
12436 (mmx_punpcklbw): Likewise.
12437 (mmx_punpckhwd): Likewise.
12438 (mmx_punpcklwd): Likewise.
12439 (mmx_punpckhdq): Likewise.
12440 (mmx_punpckldq): Likewise.
12441
12442 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12443 Uros Bizjak <ubizjak@gmail.com>
12444
12445 PR target/89021
12446 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12447 New function.
12448 (ix86_split_mmx_pack): Likewise.
12449 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12450 New prototype.
12451 (ix86_split_mmx_pack): Likewise.
12452 * config/i386/i386.md (mmx_isa): New.
12453 (enabled): Also check mmx_isa.
12454 * config/i386/mmx.md (any_s_truncate): New code iterator.
12455 (s_trunsuffix): New code attr.
12456 (mmx_packsswb): Removed.
12457 (mmx_packssdw): Likewise.
12458 (mmx_packuswb): Likewise.
12459 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12460 MMX packsswb/packuswb with SSE2.
12461 (mmx_packssdw): Likewise.
12462 * config/i386/predicates.md (register_mmxmem_operand): New.
12463
12464 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12465
12466 PR target/89021
12467 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12468 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12469 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12470 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12471 (ix86_vector_mode_supported_p): Likewise.
12472 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12473
12474 2019-05-15 Martin Liska <mliska@suse.cz>
12475
12476 PR middle-end/90478
12477 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12478 Check for overflow.
12479
12480 2019-05-15 Richard Biener <rguenther@suse.de>
12481
12482 * tree-into-ssa.c (pass_build_ssa::execute): Run
12483 update_address_taken before going into SSA.
12484
12485 2019-05-15 Richard Biener <rguenther@suse.de>
12486
12487 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12488 as __BIT_FIELD_REF with type with -gimple.
12489
12490 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12491
12492 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12493 semantically equivalent branches (left over after prior refactorings).
12494
12495 2019-05-15 Richard Biener <rguenther@suse.de>
12496
12497 PR tree-optimization/88828
12498 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12499 bogus check.
12500
12501 2019-05-14 Richard Biener <rguenther@suse.de>
12502
12503 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12504 as __VIEW_CONVERT with -gimple.
12505
12506 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12507
12508 PR target/82920
12509 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12510 Darwin.
12511
12512 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12513
12514 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12515 define_split to become a define_insn_and_split.
12516
12517 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12518
12519 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12520 arguments.
12521 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12522 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12523 (sibcall_epilogue): Adjust.
12524 (epilogue): Adjust.
12525
12526 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12527
12528 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12529 to unsupported ones.
12530 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12531 * config.host: Likewise.
12532 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12533 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12534 __svr4__]: Remove "brand" fallback.
12535 [!KSTAT_DATA_STRING]: Remove.
12536 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12537 to *-*-solaris2*.
12538 (comdat_group): Likewise.
12539 (set_have_as_tls): Likewise.
12540 (gcc_cv_target_dl_iterate_phdr): Likewise.
12541 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12542 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12543 * configure: Regenerate.
12544 * doc/install.texi: Simplify Solaris target triplets.
12545 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12546 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12547 Remove Solaris 10 references.
12548 Remove obsolete Solaris bug reference.
12549 (Specific, sparc-sun-solaris2.10): Remove.
12550
12551 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12552
12553 * config/i386/i386.md (any_div): New code iterator.
12554 (paired_mod): New code attribute.
12555 (sgnprefix): Handle DIV and UDIV RTXes.
12556 (u): Ditto.
12557 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12558 and udivmod<mode>4 patterns using any_div code iterator.
12559 (divmod splitters): Macroize splitters using any_div code iterator.
12560 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12561 (*udivmodsi4_pow2_zext_2): Ditto.
12562 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12563 and *udivmod<mode>4_noext patterns using any_div code iterator.
12564 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12565 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12566 patterns using any_div code iterator.
12567 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12568 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12569 patterns using any_div code iterator.
12570 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12571 udivmodhiqi3 patterns using any_extend code iterator.
12572
12573 2019-05-14 Richard Biener <rguenther@suse.de>
12574 H.J. Lu <hongjiu.lu@intel.com>
12575
12576 PR tree-optimization/88828
12577 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12578 permuting in a single non-constant element not extracted
12579 from a vector.
12580
12581 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12582
12583 * internal-fn.def (SIGNBIT): New.
12584 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12585 defined.
12586 (signbitv4sf2): Likewise.
12587
12588 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12589
12590 PR target/90357
12591 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12592 next insn when the SRC reg is dead.
12593
12594 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12595
12596 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12597 (alloc_cand_and_find_basis): Ditto.
12598 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12599 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12600 (create_add_imm_cand, slsr_process_cast): Ditto.
12601 (slsr_process_copy, replace_mult_candidate): Ditto.
12602 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
12603 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
12604 (pass_strength_reduction::execute): Init the first NULL element.
12605
12606 2019-05-13 Nathan Sidwell <nathan@acm.org>
12607
12608 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
12609 (run_attempt): Reformat line break.
12610
12611 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
12612
12613 PR target/90418
12614 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
12615 data registers in sibcall epilogues.
12616 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12617
12618 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
12619
12620 PR target/89221
12621 * configure.ac (--enable-frame-pointer):
12622 Disable by default for cygwin and mingw.
12623 * configure: Regenerate.
12624
12625 2019-05-13 Nathan Sidwell <nathan@acm.org>
12626
12627 * dwarf2out.c (breakout_comdat_types): Move comment to correct
12628 piece of code.
12629 (const_ok_for_output_1): Balance parens around #if/#else/#endif
12630 (gen_member_die): Move abstract origin check earlier. Only VARs
12631 can be static_inline_p. Simplify splicing control flow.
12632
12633 2019-05-13 Richard Biener <rguenther@suse.de>
12634
12635 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
12636 VIEW_CONVERT_EXPR.
12637 (vect_build_slp_tree_1): Likewise.
12638
12639 2019-05-13 Richard Biener <rguenther@suse.de>
12640
12641 PR tree-optimization/90402
12642 * tree-if-conv.c (tree_if_conversion): Value number only
12643 the loop body by making the latch an exit of the region
12644 as well.
12645 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
12646 processing PHIs.
12647 (do_rpo_vn): Deal with multiple edges into the entry block
12648 that are not backedges inside the region by skipping PHIs
12649 of the entry block.
12650
12651 2019-05-13 Richard Biener <rguenther@suse.de>
12652
12653 PR tree-optimization/90316
12654 * tree-ssa-pre.c (insert_aux): Fold into ...
12655 (insert): ... this function. Use a RPO walk to reduce the
12656 number of required iterations.
12657
12658 2019-05-13 Martin Liska <mliska@suse.cz>
12659
12660 PR tree-optimization/90416
12661 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
12662 string instead of passing the second part as va_arg argument.
12663
12664 2019-05-13 Martin Liska <mliska@suse.cz>
12665
12666 PR gcov-profile/90380
12667 * gcov.c (handle_cycle): Do not support zero cycle count,
12668 it should not be possible.
12669 (path_contains_zero_cycle_arc): New function.
12670 (circuit): Ignore zero cycle arc counts.
12671
12672 2019-05-13 Martin Liska <mliska@suse.cz>
12673
12674 PR gcov-profile/90380
12675 * gcov.c (enum loop_type): Remove the enum and
12676 the operator.
12677 (handle_cycle): Assert that we should not reach
12678 a negative count.
12679 (circuit): Use loop_found instead of a tri-state loop_type.
12680 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
12681 happen.
12682
12683 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12684
12685 PR target/82920
12686 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
12687 (ix86_output_indirect_branch_via_reg): Use output mechanism
12688 accounting for __USER_LABEL_PREFIX__.
12689 (ix86_output_indirect_branch_via_push): Likewise.
12690 (ix86_output_function_return): Likewise.
12691 (ix86_output_indirect_function_return): Likewise.
12692
12693 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
12694
12695 * doc/md.texi: Document use of code attributes in rtx patterns.
12696 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
12697 * read-rtl.c (find_code): Split out search loops into...
12698 (maybe_find_code): ...this new function.
12699 (check_code_iterator): Make the error message more informative.
12700 (check_code_attribute): New function.
12701 (rtx_reader::rtx_alloc_for_name): Likewise.
12702 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
12703 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
12704 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
12705 <max_opp> directly as an rtx code instead of via a match_operator.
12706 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
12707 (<su>abd<mode>_3): Update accordingly.
12708
12709 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12710
12711 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
12712 is given, print the state of the EH "save world" computation for
12713 Darwin.
12714
12715 2019-05-11 Jakub Jelinek <jakub@redhat.com>
12716
12717 PR c++/59813
12718 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
12719 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12720
12721 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
12722
12723 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
12724 Use pinsrd for TARGET_SSE4_1.
12725 * config/i386/sse.md (movdi_to_sse): Ditto.
12726
12727 2019-05-10 Richard Biener <rguenther@suse.de>
12728
12729 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
12730 (do_rpo_vn): Initialize next_value_id.
12731
12732 2019-05-10 Martin Liska <mliska@suse.cz>
12733
12734 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12735 Fix plural form.
12736
12737 2019-05-10 Jakub Jelinek <jakub@redhat.com>
12738
12739 PR tree-optimization/90385
12740 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
12741 arguments of the exit phis.
12742
12743 PR c++/90383
12744 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
12745 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
12746 id->do_not_fold.
12747 (copy_tree_body_r): Likewise.
12748 (copy_fn): Set id.do_not_fold to true.
12749
12750 2019-05-10 Martin Liska <mliska@suse.cz>
12751
12752 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
12753 Reapply changes from r269790.
12754
12755 2019-05-10 Martin Liska <mliska@suse.cz>
12756
12757 PR middle-end/90340
12758 * doc/invoke.texi: New params.
12759 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
12760 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
12761 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12762 Use it.
12763 * tree-switch-conversion.h (struct jump_table_cluster):
12764 Likewise.
12765
12766 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
12767
12768 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
12769
12770 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
12771
12772 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
12773
12774 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
12775
12776 PR rtl-optimization/88879
12777 * sel-sched.c (sel_target_adjust_priority): Remove assert.
12778
12779 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
12780
12781 PR target/90405
12782 * config/arm/arm.c (callee_saved_reg_p): Move before
12783 thumb_find_work_register.
12784 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
12785 thumb_find_work_register. Only call df_get_live_out once.
12786 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
12787 (thumb_find_work_register): Use
12788 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
12789 algorithms to locate a spare call clobbered reg.
12790
12791 2019-05-09 Martin Liska <mliska@suse.cz>
12792
12793 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
12794 and MAX_EXPR in GIMPLE FE format.
12795
12796 2019-05-09 Martin Liska <mliska@suse.cz>
12797
12798 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
12799 * gimple-pretty-print.c (dump_gimple_bb_header):
12800 Dump BB count.
12801 (pp_cfg_jump): Dump edge probability.
12802 * profile-count.c (profile_quality_as_string): Simplify
12803 with a static array.
12804 (parse_profile_quality): New function.
12805 (profile_count::dump): Simplify with a static array.
12806 (profile_count::from_gcov_type): Add new argument.
12807 * profile-count.h (parse_profile_quality): Likewise.
12808 * predict.h (set_hot_bb_threshold): New.
12809 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12810 New param.
12811 * predict.c (get_hot_bb_threshold): Set from the new param.
12812 (set_hot_bb_threshold): New.
12813
12814 2019-05-09 Richard Biener <rguenther@suse.de>
12815
12816 PR tree-optimization/90395
12817 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
12818 rewrite vector stores that throw internally.
12819
12820 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
12821
12822 * cif-code.def (CHKP): Remove.
12823
12824 PR target/89221
12825 * configure.ac (--enable-frame-pointer): Disable by default for
12826 GNU systems.
12827 * configure: Regenerate.
12828
12829 2019-05-09 Alan Modra <amodra@gmail.com>
12830
12831 PR target/89271
12832 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
12833 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
12834 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
12835 cost for general <-> vsx when direct moves are available.
12836 Cost union classes at minimal cost for any reg in the class.
12837 Correct calculation for moves between vsx, float, and altivec.
12838 Don't return a low cost for moves between special regs. Don't
12839 use hard coded register numbers.
12840 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
12841 (rs6000_ira_change_pseudo_allocno_class): New function.
12842 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
12843 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
12844 alternatives.
12845 (movsi_internal1): Don't disparage vector alternatives.
12846 (mov<mode>_internal): Likewise, excepting alternative that
12847 will be split.
12848 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
12849 we <- b alternative.
12850
12851 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12852
12853 PR c++/59813
12854 PR tree-optimization/89060
12855 * tree-ssa-live.h (live_vars_map): New typedef.
12856 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
12857 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
12858 (struct compute_live_vars_data): New type.
12859 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
12860 live_vars_at_stmt, destroy_live_vars): New functions.
12861 * tree-tailcall.c: Include tree-ssa-live.h.
12862 (live_vars, live_vars_vec): New global variables.
12863 (find_tail_calls): Perform variable life analysis before punting.
12864 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
12865 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
12866 member.
12867 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
12868 Perform variable life analysis to select variables that really need
12869 clobbers added.
12870 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
12871 instead set id->eh_landing_pad_dest and assert it is the same.
12872 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
12873
12874 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
12875 Richard Earnshaw <rearnsha@arm.com>
12876
12877 PR target/88167
12878 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
12879 function.
12880 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
12881 (thumb1_compute_save_core_reg_mask): Don't force a spare work
12882 register if both the epilogue and prologue can use call-clobbered
12883 regs.
12884 (thumb1_unexpanded_epilogue): Use
12885 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
12886 picking temporaries for restoring high regs to match that of the
12887 prologue where possible.
12888 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
12889 the list of work registers. Detect if the return address is still live
12890 at the end of the prologue and avoid using it for a work register if so.
12891 If the return address is not live, add LR to the list of pushable regs
12892 after the first pass.
12893
12894 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12895
12896 PR tree-optimization/90078
12897 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
12898 (INFTY): Increase the value for infinite cost.
12899 (struct comp_cost): Promote type of members to int64_t.
12900 (infinite_cost): Don't set complexity in initialization.
12901 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
12902 overflows to infinite_cost.
12903 (adjust_setup_cost): Promote type of parameter and cost computation
12904 to int64_t.
12905 (struct ainc_cost_data, struct iv_ca): Promote type of member to
12906 int64_t.
12907 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
12908 cost computation to int64_t.
12909 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
12910 int64_t's format specifier in dump.
12911
12912 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12913
12914 PR tree-optimization/90240
12915 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
12916 with respect to scaling factor pre-computed for each basic block.
12917 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
12918 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
12919 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
12920 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
12921 live range for array of loop's basic blocks. Cleanup aux field of
12922 loop's basic blocks.
12923
12924 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12925
12926 PR tree-optimization/90356
12927 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
12928
12929 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
12930
12931 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
12932 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
12933 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
12934 (ix86_handle_option): Handle -mavx512bf16.
12935 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
12936 to extra_headers.
12937 * config/i386/avx512bf16vlintrin.h: New.
12938 * config/i386/avx512bf16intrin.h: New.
12939 * config/i386/cpuid.h (bit_AVX512BF16): New.
12940 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
12941 * config/i386/i386-builtin-types.def: Add new types.
12942 * config/i386/i386-builtin.def: Add new builtins.
12943 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12944 __AVX512BF16__.
12945 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
12946 (ix86_option_override_internal): Handle BF16.
12947 (ix86_valid_target_attribute_inner_p): Ditto.
12948 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
12949 * config/i386/i386-builtin.c (enum processor_features): Add
12950 F_AVX512BF16.
12951 (static const _isa_names_table isa_names_table): Ditto.
12952 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
12953 (PTA_AVX512BF16): Ditto.
12954 * config/i386/i386.opt: Add -mavx512bf16.
12955 * config/i386/immintrin.h: Include avx512bf16intrin.h
12956 and avx512bf16vlintrin.h.
12957 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
12958 avx512f_cvtneps2bf16_<mode><mask_name>,
12959 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
12960 * config/i386/subst.md (mask_half): Add new subst.
12961 * doc/invoke.texi: Document -mavx512bf16.
12962
12963 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12964
12965 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
12966 Delete declaration.
12967 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
12968 (rs6000_debug_legitimize_reload_address): Delete.
12969 (rs6000_legitimize_reload_address_ptr): Delete.
12970 (rs6000_option_override_internal): Adjust.
12971 (mem_operand_gpr): Adjust comment.
12972 (legitimate_lo_sum_address_p): Ditto.
12973 (rs6000_legitimize_reload_address): Delete.
12974 (rs6000_debug_legitimize_reload_address): Delete.
12975 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
12976
12977 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
12978
12979 PR target/89765
12980 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12981 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
12982 to compute vector element selector for both constant and variable
12983 operands.
12984
12985 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12986
12987 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
12988 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
12989 ashrdi3_cvt using SWI48 mode iterator.
12990
12991 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12992
12993 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
12994 (aarch64_<su>abd<mode>_3): Likewise.
12995 (*aarch64_<su>abd<mode>_3): New define_insn.
12996 (<sur>sad<vsi2qi>): New define_expand.
12997 * config/aarch64/iterators.md: Added MAX_OPP attribute.
12998 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
12999 (build_vect_cond_expr): Likewise.
13000
13001 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13002
13003 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
13004 clobbers outside of accessible_reg_set.
13005 * config/i386/i386.c (ix86_conditional_register_usage):
13006 Disable register sets by clearing corresponding bits in
13007 accessible_reg_set. Do not set corresponding bits in fixed_regs,
13008 call_used_regs and don't clear corresponding reg_names array members.
13009
13010 2019-05-07 Richard Biener <rguenther@suse.de>
13011
13012 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
13013 not specified still compute a comp_vectype for invariant
13014 compares.
13015
13016 2019-05-07 Richard Biener <rguenther@suse.de>
13017
13018 PR tree-optimization/90316
13019 * tree-ssa-pre.c (translate_vuse_through_block): When
13020 same_valid is NULL do not bother to search for a virtual
13021 PHI continuation.
13022 (phi_translate_1): When operands changed we cannot keep
13023 the same value-number so do not bother to ask whether
13024 that's possible from translate_vuse_through_block.
13025
13026 2019-05-07 Martin Liska <mliska@suse.cz>
13027
13028 * bitmap.c (bitmap_register): Come up with
13029 alloc_descriptor_max_uid and assign it for
13030 a new bitmap.
13031 (register_overhead): Use get_descriptor as
13032 a descriptor.
13033 (release_overhead): New.
13034 (bitmap_elem_to_freelist): Call it.
13035 (bitmap_elt_clear_from): Likewise.
13036 (bitmap_obstack_free): Likewise.
13037 (bitmap_move): Sensitively release memory.
13038 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
13039 (bitmap_initialize): Initialize alloc_descriptor to zero.
13040 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
13041
13042 2019-05-07 Richard Biener <rguenther@suse.de>
13043
13044 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
13045 we build a SLP node. Remove max_size and limiting.
13046 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
13047
13048 2019-05-07 Richard Biener <rguenther@suse.de>
13049
13050 PR tree-optimization/90316
13051 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
13052 limit by reference.
13053 (walk_non_aliased_vuses): Take walking limit argument.
13054 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
13055 walking if it is reached instead of just counting.
13056 (get_continuation_for_phi): Likewise.
13057 (walk_non_aliased_vuses): Likewise, instead of leaving counter
13058 limiting to the callback.
13059 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
13060 (vn_reference_lookup_3): Likewise.
13061 (vn_reference_lookup_pieces): Likewise.
13062 (vn_reference_lookup): Likewise.
13063 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
13064 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
13065 (avail_exprs_stack::lookup_avail_expr): Likewise.
13066
13067 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
13068
13069 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
13070 for comparaible types in the second direction even if first one
13071 hits incomparable type.
13072
13073 2019-05-07 Richard Biener <rguenther@suse.de>
13074
13075 PR lto/90369
13076 * lto-wrapper.c (debug_objcopy): Use the original filename
13077 including archive offset for the filename used for -save-temps.
13078
13079 2019-05-07 Li Jia He <helijia@linux.ibm.com>
13080
13081 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
13082 detection.
13083
13084 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
13085 Hongtao Liu <hongtao.liu@intel.com>
13086
13087 PR target/89750
13088 PR target/86444
13089 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
13090 Modified, original implementation isn't correct.
13091
13092 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13093
13094 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
13095 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
13096 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
13097 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
13098 (FRAME_POINTER_REGNUM): Change numbering.
13099 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
13100 (alt_reg_names): Adjust.
13101 (rs6000_conditional_register_usage): Don't mark hard register 64 as
13102 fixed.
13103 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13104 (DWARF_FRAME_REGISTERS): Delete.
13105 (DWARF2_FRAME_REG_OUT): Fix whitespace.
13106 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13107 Adjust.
13108 (REG_ALLOC_ORDER): Adjust.
13109 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
13110 (REG_CLASS_CONTENTS): Adjust.
13111 (RETURN_ADDR_RTX): Change comment.
13112 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
13113 instead of 67.
13114 (REGISTER_NAMES): Adjust.
13115 (ADDITIONAL_REGISTER_NAMES): Adjust.
13116 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13117
13118 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13119
13120 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
13121 Delete.
13122 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13123 (DWARF_FRAME_REGISTERS): Adjust.
13124 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13125 Adjust.
13126 (REG_ALLOC_ORDER): Adjust.
13127 (enum reg_class): Delete SPR_REGS.
13128 (REG_CLASS_NAMES): Delete SPR_REGS.
13129 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
13130 (REGISTER_NAMES): Adjust.
13131 (ADDITIONAL_REGISTER_NAMES): Adjust.
13132 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13133 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
13134 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
13135 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
13136 (htm_spr_regno): Delete.
13137 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
13138 argument.
13139 (rs6000_dbx_register_number): Adjust.
13140
13141 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13142
13143 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
13144
13145 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13146
13147 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
13148 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
13149
13150 2019-05-06 Jakub Jelinek <jakub@redhat.com>
13151
13152 PR tree-optimization/88709
13153 PR tree-optimization/90271
13154 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
13155 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
13156 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
13157 variable.
13158 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
13159 of the store merging group is larger than
13160 PARAM_STORE_MERGING_MAX_SIZE parameter.
13161 (split_group): Add bzero_first argument. If set, always emit first
13162 the first store which must be = {} of the whole area and then for the
13163 rest of the stores consider all zero bytes as paddings.
13164 (imm_store_chain_info::output_merged_store): Check if first store
13165 is = {} of the whole area and if yes, determine which setting of
13166 bzero_first for split_group gives smaller number of stores. Adjust
13167 split_group callers.
13168 (lhs_valid_for_store_merging_p): Allow decls.
13169 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
13170 no elts.
13171 (pass_store_merging::process_store): Likewise.
13172
13173 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
13174
13175 PR target/89424
13176 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13177 handling of V1TImode.
13178
13179 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
13180
13181 PR target/89221
13182 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
13183 and enable_frame_pointer ...
13184 * configure.ac: ... here. Update help strings for
13185 --enable-frame-pointer.
13186 * configure: Regenerate.
13187 * config/i386/i386-options.c (ix86_option_override_internal): Remove
13188 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
13189 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
13190 (USE_X86_64_FRAME_POINTER): Ditto.
13191
13192 2019-05-06 Martin Liska <mliska@suse.cz>
13193
13194 * config.gcc: Append to target_gtfiles and fix indentation.
13195
13196 2019-05-06 Richard Biener <rguenther@suse.de>
13197
13198 PR tree-optimization/90358
13199 * tree-vect-stmts.c (get_group_load_store_type): Properly
13200 detect unused upper half of load.
13201 (vectorizable_load): Likewise.
13202
13203 2019-05-06 Richard Biener <rguenther@suse.de>
13204
13205 PR tree-optimization/88828
13206 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
13207 (simplify_vector_constructor): ...here. Handle constants in
13208 the constructor.
13209
13210 2019-05-06 Richard Biener <rguenther@suse.de>
13211
13212 PR tree-optimization/90328
13213 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
13214 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
13215 is valid in the loop nest before using it.
13216 (initialize_data_dependence_relation): Adjust.
13217 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
13218 loop as loop-nest to dr_may_alias_p.
13219
13220 2019-05-06 Richard Biener <rguenther@suse.de>
13221
13222 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
13223
13224 2019-05-06 Richard Biener <rguenther@suse.de>
13225
13226 PR tree-optimization/90316
13227 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
13228 compute target on demand.
13229 (get_continuation_for_phi): Remove code walking stmts to
13230 get to a target virtual operand which could end up being
13231 quadratic.
13232
13233 2019-05-06 Martin Liska <mliska@suse.cz>
13234
13235 PR sanitizer/90312
13236 * config/i386/i386-options.c (ix86_option_override_internal): Error only
13237 when -mabi is selected to a non-default version.
13238
13239 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
13240 Martin Liska <mliska@suse.cz>
13241
13242 * Makefile.in: Add lto-dump.texi.
13243 * cgraph.h: Add new functions get_visibility_string and
13244 get_symtab_type_string.
13245 * doc/gcc.texi: Include lto-dump section.
13246 * doc/lto-dump.texi: New file.
13247 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
13248 (parse_dump_option): Factor out this function.
13249 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
13250 (parse_dump_option): Export the function.
13251 * symtab.c (symtab_node::get_visibility_string): New function.
13252 (symtab_node::get_symtab_type_string): Likewise.
13253
13254 2019-05-06 Martin Liska <mliska@suse.cz>
13255
13256 * config/i386/i386-builtins.c: New file.
13257 * config/i386/i386-builtins.h: New file.
13258 * config/i386/i386-expand.c: New file.
13259 * config/i386/i386-expand.h: New file.
13260 * config/i386/i386-features.c: New file.
13261 * config/i386/i386-features.h: New file.
13262 * config/i386/i386-options.c: New file.
13263 * config/i386/i386-options.h: New file.
13264 * config.gcc: Add new files into extra_objs and
13265 target_gtfiles.
13266 * config/i386/i386.c: Split content of the file
13267 into newly introduced files.
13268 * config/i386/i386.h: Declare common variables
13269 and macros.
13270 * config/i386/t-i386: Define dependencies for new files.
13271
13272 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
13273
13274 PR target/89400
13275 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
13276 Restrict 'all' variant to 32-bit configurations.
13277 (unaligned_loadhiu): Likewise.
13278 (unaligned_storehi): Likewise.
13279 (unaligned_storesi): Likewise.
13280 (unaligned_loadhis): Disable when compiling for thumb1.
13281
13282 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13283
13284 PR tree-optimization/90269
13285 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13286 Ignore clobbers.
13287
13288 2019-05-03 Martin Liska <mliska@suse.cz>
13289
13290 * hash-map.h: Add is_empty function.
13291 * hash-set.h: Likewise.
13292 * hash-table.h: Likewise.
13293 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13294 elements () == 0 (and similar usages).
13295 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13296 * gimplify.c (gimplify_bind_expr): Likewise.
13297 (gimplify_switch_expr): Likewise.
13298 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13299 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13300 * postreload-gcse.c (dump_hash_table): Likewise.
13301 (gcse_after_reload_main): Likewise.
13302 * predict.c (combine_predictions_for_bb): Likewise.
13303 * tree-parloops.c (reduction_phi): Likewise.
13304 (separate_decls_in_region): Likewise.
13305 (transform_to_exit_first_loop): Likewise.
13306 (gen_parallel_loop): Likewise.
13307 (gather_scalar_reductions): Likewise.
13308 (try_create_reduction_list): Likewise.
13309 * var-tracking.c (dump_vars): Likewise.
13310 (emit_notes_for_changes): Likewise.
13311 (vt_emit_notes): Likewise.
13312
13313 2019-05-03 Richard Biener <rguenther@suse.de>
13314
13315 PR tree-optimization/90316
13316 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13317 before running VN.
13318
13319 2019-05-03 Richard Biener <rguenther@suse.de>
13320
13321 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13322 peeling for gaps by loading only lower halves of vectors
13323 if possible.
13324 (vectorizable_load): Likewise.
13325
13326 2019-05-03 Richard Biener <rguenther@suse.de>
13327
13328 PR middle-end/89518
13329 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13330
13331 2019-05-03 Richard Biener <rguenther@suse.de>
13332
13333 PR middle-end/87314
13334 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13335 Handle STRING_CST vs DECL or STRING_CST.
13336
13337 2019-05-03 Richard Biener <rguenther@suse.de>
13338
13339 PR tree-optimization/88963
13340 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13341 vector loads feeding only BIT_FIELD_REFs to component
13342 loads. Rewrite stores fed by CONSTRUCTORs to component
13343 stores.
13344
13345 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13346
13347 * opts.h (finish_options): Remove lang_mask argument.
13348 (print_help, help_option_argument): Declare.
13349 * opts.c (print_help): Remove forward declaration, no longer static.
13350 (finish_options): Remove lang_mask argument, don't call print_help
13351 here.
13352 * opts-global.c (decode_options): Adjust finish_option caller, call
13353 print_help here.
13354
13355 PR tree-optimization/90303
13356 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13357 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13358
13359 2019-05-03 Richard Biener <rguenther@suse.de>
13360
13361 PR tree-optimization/89698
13362 * gimple-fold.c (canonicalize_constructor_val): Early out
13363 for constants, handle unfolded INTEGER_CSTs as they appear in
13364 C++ virtual table ctors.
13365
13366 2019-05-03 Richard Biener <rguenther@suse.de>
13367
13368 * passes.c (execute_function_todo): Remove dead code.
13369
13370 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13371
13372 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13373 the internal register number, for any "real" register.
13374
13375 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13376
13377 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13378 correct numbers for TFHAR, TFIAR, TEXASR.
13379
13380 2019-05-02 Richard Biener <rguenther@suse.de>
13381
13382 PR tree-optimization/89653
13383 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13384 update-address-taken before the pass.
13385 * passes.def (pass_tree_loop_init): Put comment before it.
13386
13387 2019-05-02 Richard Biener <rguenther@suse.de>
13388
13389 PR tree-optimization/89509
13390 * tree-ssa-structalias.c (compute_dependence_clique): Look
13391 at the first subvar when determining whether it is restrict.
13392
13393 2019-05-02 Richard Biener <rguenther@suse.de>
13394
13395 PR tree-optimization/90273
13396 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13397 useless debug stmts.
13398
13399 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13400
13401 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13402 ACLE branch.
13403 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13404 SVE ACLE branch.
13405 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13406 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13407 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13408 (vectorizable_reduction): Use the functions above to vectorize in a
13409 fully masked loop codes that don't have a conditional internal
13410 function.
13411
13412 2019-05-02 Martin Liska <mliska@suse.cz>
13413
13414 * cgraphclones.c: Call valid_attribute_p with 1 for
13415 target_clone.
13416 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13417 it's for target attribute.
13418 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13419 Add new boolean argument.
13420 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13421 Likewise.
13422 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13423 to ix86_valid_target_attribute_inner_p.
13424 (ix86_valid_target_attribute_p): Pass flags argument to
13425 ix86_valid_target_attribute_inner_p.
13426 (get_builtin_code_for_version): Use 0 as it's target attribute.
13427
13428 2019-05-02 Martin Liska <mliska@suse.cz>
13429
13430 * gcc.c (process_command): Add dummy file only
13431 if n_infiles == 0.
13432 * opts-global.c (decode_options): Pass lang_mask.
13433 * opts.c (print_help): New function.
13434 (finish_options): Print --help if help_option_argument
13435 is set.
13436 (common_handle_option): Factor out content of OPT__help_
13437 into print_help.
13438 * opts.h (finish_options): Add new argument.
13439
13440 2019-05-02 Martin Liska <mliska@suse.cz>
13441
13442 PR target/88809
13443 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13444 With -minline-all-stringops use inline expansion using 4B loop.
13445 * doc/invoke.texi: Document the change of
13446 -minline-all-stringops.
13447
13448 2019-05-01 Jeff Law <law@redhat.com>
13449
13450 PR tree-optimization/88797
13451 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13452 PHI feeds a conditional on the RHS of an assignment.
13453
13454 2019-04-30 Andrew Waterman <andrew@sifive.com>
13455 Jim Wilson <jimw@sifive.com>
13456
13457 * config/riscv/constraints.md (L): New.
13458 * config/riscv/predicates.md (lui_operand): New.
13459 (sfb_alu_operand): New.
13460 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13461 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13462 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13463 * config/riscv/risc.md (type): Add sfb_alu.
13464 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13465 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13466 (branch_zero<mode>): Delete.
13467 (mov<mode>cc): New.
13468 (mov<GPR:mode><X:mode>cc): Likewise.
13469 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13470
13471 2019-04-30 Nathan Sidwell <nathan@acm.org>
13472
13473 * tree.h (MARK_TS_EXP): New.
13474
13475 2019-04-30 Martin Liska <mliska@suse.cz>
13476
13477 * opts.c (enable_warning_as_error): Provide hints
13478 for unknown options.
13479
13480 2019-04-30 Martin Liska <mliska@suse.cz>
13481
13482 PR debug/90288
13483 * doc/invoke.texi: Add missing dash for gas-locview-support
13484 and gno-as-locview-support.
13485
13486 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13487
13488 PR target/89093
13489 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13490 whitespace at the start of target attribute string.
13491
13492 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13493
13494 PR target/86538
13495 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13496 Define __ARM_FEATURE_ATOMICS.
13497
13498 2019-04-30 Martin Liska <mliska@suse.cz>
13499
13500 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13501 into built_in_function enum. Remove code for endp == 2 and
13502 use BUILT_IN_* constants.
13503 (gimple_fold_builtin): Call the function with fcode.
13504
13505 2019-04-30 Martin Liska <mliska@suse.cz>
13506
13507 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13508 DECL_FUNCTION_CODE into ix86_builtins enum before
13509 the switch statement.
13510
13511 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13512
13513 PR tree-optimization/89475
13514 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13515 calls.
13516
13517 2019-04-30 Martin Liska <mliska@suse.cz>
13518
13519 PR translation/90274
13520 * opts.c (print_filtered_help): Wrap string in _(...).
13521
13522 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13523
13524 PR tree-optimization/90240
13525 Revert:
13526 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13527
13528 PR tree-optimization/90078
13529 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13530 checks for infinite_cost overflow.
13531
13532 2019-04-29 Jeff Law <law@redhat.com>
13533
13534 * passes.def: Move -Wrestrict pass after copy propagation.
13535
13536 2019-04-29 Maya Rashish <coypu@sdf.org>
13537
13538 * config.gcc (default_gnu_indirect_function): Default to yes
13539 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13540 sparc*-*-netbsd*, x86_64-*-netbsd*.
13541
13542 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13543
13544 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13545 where cond2 is NE_EXPR.
13546 (is_value_included_in): Update comment.
13547
13548 2019-04-29 Richard Biener <rguenther@suse.de>
13549
13550 PR tree-optimization/90278
13551 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13552 EH on comparison simplification.
13553
13554 2019-04-29 Jason Merrill <jason@redhat.com>
13555
13556 PR c++/82081 - tail call optimization breaks noexcept
13557 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13558 nothrow function to a might-throw function into a tail call.
13559
13560 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13561
13562 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13563 (DDR_INNER_LOOP): Likewise.
13564 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13565 (initialize_data_dependence_relation): Likewise.
13566 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13567
13568 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13569
13570 PR rtl-optimization/90257
13571 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13572 return value.
13573
13574 Revert the revert:
13575 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13576
13577 PR target/90178
13578 Revert:
13579 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13580
13581 Revert the revert:
13582 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13583
13584 Revert:
13585 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13586
13587 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13588
13589 2019-04-29 Richard Biener <rguenther@suse.de>
13590
13591 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13592 rhs issue a reset.
13593
13594 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13595
13596 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13597 varasm.h, and netbsd-protos.h.
13598
13599 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13600
13601 PR target/89261
13602 * config/i386/i386-protos.h (ix86_data_alignment): Change
13603 the second argument type to unsigned int.
13604 * config/i386/i386.c (ix86_data_alignment): Change "align"
13605 argument type to unsigned int.
13606
13607 2019-04-27 Martin Liska <mliska@suse.cz>
13608
13609 PR middle-end/90258
13610 * opt-suggestions.c (option_proposer::build_option_suggestions):
13611 When get_valid_option_values returns empty values, add the
13612 misspelling candidate.
13613
13614 2019-04-26 Jim Wilson <jimw@sifive.com>
13615
13616 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
13617 parameter.
13618 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
13619 Pass orig_mode to riscv_build_integer.
13620 (riscv_split_integer): Pass mode to riscv_move_integer.
13621 (riscv_legitimize_const_move): Likewise.
13622 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
13623 promoted_mode. Replace force_reg call with code to load constant into
13624 promoted reg and then subreg it for the store.
13625 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
13626 riscv_move_integer.
13627
13628 2018-04-26 Eugene Sharygin <eush@ispras.ru>
13629
13630 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
13631 corrupt codes.
13632
13633 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
13634
13635 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
13636 commentary about the encoding of precision.
13637
13638 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
13639
13640 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
13641 * config/i386/t-freebsd64: New file.
13642 * config.gcc: Add the t-freebsd64 for multilib support.
13643
13644 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
13645
13646 * doc/extend.texi (vector_size): Add missing comma after @xref.
13647
13648 2019-04-25 Jakub Jelinek <jakub@redhat.com>
13649
13650 * BASE-VER: Set to 10.0.0.
13651
13652 2019-04-25 Richard Biener <rguenther@suse.de>
13653
13654 PR middle-end/89765
13655 * gimplify.c (gimplify_expr): Avoid turning a lvalue
13656 VIEW_CONVERT_EXPR into one operating on an rvalue.
13657
13658 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
13659
13660 PR target/89929
13661 * config/i386/i386.c (feature_priority): Moved to file scope.
13662 (processor_features): Likewise.
13663 (processor_model): Likewise.
13664 (_arch_names_table): Likewise.
13665 (arch_names_table): Likewise.
13666 (_feature_list): Removed.
13667 (feature_list): Likewise.
13668 (_isa_names_table): Moved to file scope. Add priority.
13669 (isa_names_table): Likewise.
13670 (get_builtin_code_for_version): Replace feature_list with
13671 isa_names_table. Update error message for P_ZERO priority.
13672
13673 2019-04-25 Richard Biener <rguenther@suse.de>
13674
13675 * tree-pass.h (make_pass_phi_only_cprop): Remove.
13676 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
13677
13678 2019-04-24 Jeff Law <law@redhat.com>
13679
13680 PR tree-optimization/90037
13681 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
13682 * passes.def: Replace all instance of phi-only cprop with the
13683 lattice propagator. Move propagation pass from after erroneous
13684 path isolation to before erroneous path isolation.
13685 * tree-ssa-phionlycprop.c: Remove.
13686
13687 2019-04-24 Richard Biener <rguenther@suse.de>
13688
13689 PR middle-end/90213
13690 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
13691 by size and BITS_PER_UNIT on poly-wide-ints.
13692
13693 2019-04-25 Richard Biener <rguenther@suse.de>
13694
13695 PR middle-end/90194
13696 * match.pd: Add pattern to simplify view-conversion of an
13697 empty constructor.
13698
13699 2019-04-24 Clement Chigot <clement.chigot@atos.net>
13700
13701 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
13702 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
13703 for Go on 32 bit AIX.
13704 * config/rs6000/aix72.h: Likewise.
13705
13706 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13707
13708 PR target/90193
13709 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
13710 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
13711
13712 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
13713
13714 PR target/89952
13715 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
13716 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
13717 for restored hard frame pointer.
13718 (s390_sched_dependencies_evaluation): Implement new target hook.
13719 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
13720
13721 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
13722
13723 * config/arc/arc-options.def: Fix typos and spelling mistakes.
13724 * config/arc/arc.c (arc_init): Cleanup warning message.
13725 (arc_override_options): Likewise.
13726
13727 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13728
13729 PR target/90187
13730 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
13731 a register if both if_true and if_false are MEMs.
13732
13733 PR tree-optimization/90208
13734 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
13735 after labels of new_bb, not before them.
13736
13737 PR tree-optimization/90211
13738 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
13739 which are not SSA_NAMEs.
13740
13741 2018-04-23 Sudakshina Das <sudi.das@arm.com>
13742
13743 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
13744 AArch64.
13745 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
13746
13747 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13748
13749 PR rtl-optimization/87979
13750 * modulo-sched.c (sms_schedule): Start ii value "mii" should
13751 not equal zero.
13752
13753 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13754
13755 PR rtl-optimization/84032
13756 * modulo-sched.c (ps_insn_find_column): Change condition so that
13757 branch will always be the last insn in a row inside partial
13758 schedule.
13759
13760 2019-04-23 Richard Biener <rguenther@suse.de>
13761
13762 PR debug/90131
13763 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
13764 dest_single_pred_p argument.
13765 (remove_forwarder_block): Adjust.
13766 (remove_forwarder_block_with_phi): Likewise.
13767
13768 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13769 Bernd Edlinger <bernd.edlinger@hotmail.de>
13770 Jakub Jelinek <jakub@redhat.com>
13771
13772 PR target/89093
13773 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
13774 if used with general-regs-only.
13775 (arm_conditional_register_usage): Don't add non-general regs if
13776 general-regs-only.
13777 (arm_valid_target_attribute_rec): Handle general-regs-only.
13778 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
13779 general-regs-only.
13780 (TARGET_HARD_FLOAT_SUB): Define.
13781 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
13782 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
13783 (TARGET_REALLY_IWMMXT2): Likewise.
13784 * config/arm/arm.opt: Add -mgeneral-regs-only.
13785 * doc/extend.texi: Document ARM general-regs-only target.
13786 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
13787
13788 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13789
13790 PR tree-optimization/90078
13791 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13792 checks for infinite_cost overflow.
13793
13794 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13795
13796 PR tree-optimization/90021
13797 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
13798 and check univariate against it.
13799 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
13800 * tree-data-ref.c (add_other_self_distances): Pass new argument.
13801
13802 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13803
13804 PR target/90178
13805 Revert:
13806 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13807
13808 Revert the revert:
13809 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13810
13811 Revert:
13812 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13813
13814 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13815
13816 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
13817
13818 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
13819 names using operand format, rather than hard-wired.
13820 (speculation_barrier): Likewise.
13821
13822 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
13823
13824 PR tree-optimization/88055
13825 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
13826 (gen_one_condition): Use it if !HONOR_NANS.
13827
13828 2019-04-19 Jakub Jelinek <jakub@redhat.com>
13829
13830 PR middle-end/90139
13831 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
13832 assign_temp instead of gen_reg_rtx.
13833
13834 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
13835
13836 PR translation/90118
13837 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13838 Add missing space before %<.
13839
13840 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
13841
13842 PR rtl-optimization/87871
13843 * ira-lives.c (make_object_dead): Don't add conflicts to
13844 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
13845
13846 2019-04-18 Martin Sebor <msebor@redhat.com>
13847
13848 PR middle-end/89797
13849 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
13850 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
13851 assuming type size fits in SHWI.
13852
13853 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
13854
13855 PR ipa/85051
13856 * ipa-inline.c (flatten_function): New parameter UPDATE.
13857 (ipa_inline, early_inliner): Use it.
13858
13859 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13860
13861 * fold-const.c (int_const_binop): Return early on failure.
13862
13863 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13864
13865 PR middle-end/85164
13866 * combine.c (force_int_to_mode): Cast the argument rather than
13867 the result of known_alignment.
13868 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
13869
13870 2019-04-18 Richard Biener <rguenther@suse.de>
13871
13872 PR debug/90131
13873 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
13874 out from ...
13875 (remove_forwarder_block): ... here.
13876 (remove_forwarder_block_with_phi): Also move debug stmts here.
13877
13878 2019-04-18 Jakub Jelinek <jakub@redhat.com>
13879
13880 PR translation/79183
13881 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
13882 inform where appropriate.
13883
13884 2019-04-18 Richard Biener <rguenther@suse.de>
13885
13886 * tree.c (get_qualified_type): Put found type variants at the
13887 head of the variant list.
13888
13889 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13890
13891 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
13892
13893 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
13894
13895 PR target/90125
13896 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
13897 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
13898 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
13899 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
13900 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
13901
13902 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
13903
13904 * ira-conflicts.c (print_allocno_conflicts): Always print something,
13905 even for allocno's with no conflicts.
13906 (print_conflicts): Print an extra newline.
13907
13908 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13909
13910 * auto-inc-dec.c (attempt_change): Set the alignment of the
13911 temporary memory to that of the original.
13912
13913 2019-04-17 Joao Moreira <jmoreira@suse.de>
13914
13915 * targhooks.c (default_print_patchable_function_entry): Emit
13916 __patchable_function_entries section with writable flags to allow
13917 relocation resolution.
13918
13919 2019-04-17 Jonny Grant <jg@jguk.org>
13920
13921 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
13922
13923 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13924
13925 PR middle-end/90095
13926 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
13927 on lowpart SUBREGs.
13928
13929 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
13930
13931 * config/arc/arc.c (arc_init): Format diagnostic string.
13932 (arc_override_options): Likewise.
13933 (check_if_valid_regno_const): Likewise.
13934 (arc_reorg): Likewise.
13935
13936 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13937
13938 PR target/17108
13939 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
13940 name.
13941 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
13942 name.
13943 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
13944 (*movdi_update1): Use Pmode.
13945 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
13946 (movdi_<mode>_update_stack): Rename to ...
13947 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
13948 use Pmode.
13949 (*movsi_update1): Use Pmode.
13950 (*movsi_update2): Use Pmode.
13951 (movsi_update): Rename to ...
13952 (movsi_<mode>_update): ... this. Use Pmode.
13953 (movsi_update_stack): Fix condition.
13954 (*movhi_update1): Use Pmode. Fix argument to
13955 avoiding_indexed_address_p.
13956 (*movhi_update2): Ditto.
13957 (*movhi_update3): Ditto.
13958 (*movhi_update4): Ditto.
13959 (*movqi_update1): Ditto.
13960 (*movqi_update2): Ditto.
13961 (*movqi_update3): Ditto.
13962 (*movsf_update1, *movdf_update1): Merge, rename to...
13963 (*mov<mode>_update1): This. Use Pmode. Fix argument to
13964 avoiding_indexed_address_p. Add "size" attribute.
13965 (*movsf_update2, *movdf_update2): Merge, rename to...
13966 (*mov<mode>_update2): This. Ditto.
13967 (*movsf_update3): Use Pmode. Fix argument to
13968 avoiding_indexed_address_p.
13969 (*movsf_update4): Ditto.
13970 (allocate_stack): Simplify condition. Adjust pattern names.
13971
13972 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13973
13974 PR target/89093
13975 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
13976 whitespace at the start of target attribute string.
13977
13978 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
13979
13980 PR target/84369
13981 * config/rs6000/power9.md: Add store forwarding bypass.
13982
13983 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
13984
13985 PR debug/89528
13986 * valtrack.c (dead_debug_insert_temp): Reset debug references
13987 to the return value of a call being removed.
13988
13989 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13990
13991 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
13992 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
13993 implement target hook.
13994 (arc_memory_move_cost): New function.
13995 (TARGET_REGISTER_MOVE_COST): Define.
13996 (TARGET_MEMORY_MOVE_COST): Likewise.
13997 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
13998 (MEMORY_MOVE_COST): Likewise.
13999
14000 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14001
14002 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
14003 (sibcall_value_insn): Likewise.
14004 * config/arc/constraints.md (Rs5): Remove.
14005
14006 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14007
14008 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
14009 for last two fake registers.
14010 (arc_conditional_register_usage): Make sure fake frame and arg
14011 pointer regs are in general regs class.
14012 (FRAME_POINTER_MASK): Remove.
14013 (RETURN_ADDR_MASK): Remove.
14014 (arc_must_save_register): Use hard frame regnum.
14015 (frame_restore_reg): Use hard_frame_pointer_rtx.
14016 (arc_save_callee_saves): Likewise.
14017 (arc_restore_callee_saves): Likewise.
14018 (arc_save_callee_enter): Likewise.
14019 (arc_restore_callee_leave): Likewise.
14020 (arc_save_callee_milli): Likewise.
14021 (arc_eh_return_address_location): Likewise.
14022 (arc_check_multi): Use hard frame regnum.
14023 (arc_can_eliminate): Likewise.
14024 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
14025 for register allocator.
14026 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
14027 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
14028 (FRAME_POINTER_REGNUM): Change it to a fake register.
14029 (HARD_FRAME_POINTER_REGNUM): Defined.
14030 (ARG_POINTER_REGNUM): Change it to a new fake register.
14031 (ELIMINABLE_REGS): Update.
14032 (REGISTER_NAMES): Update names.
14033 * config/arc/arc.md (LP_START): Remove.
14034 (LP_END): Likewise.
14035 (shift_si3_loop): Update pattern.
14036
14037 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14038
14039 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
14040 to avoid delay slot scheduling.
14041 (arc_must_save_register): Don't save SP.
14042 * config/arc/arc.md (stack_tie): Remove.
14043 (UNSPEC_ARC_STKTIE): Likewise.
14044
14045 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
14046 Shiva Chen <shiva0217@gmail.com>
14047
14048 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
14049 code gen with large shift amount.
14050
14051 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
14052
14053 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
14054 subreg.
14055
14056 2019-04-16 Jakub Jelinek <jakub@redhat.com>
14057
14058 PR target/90096
14059 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
14060 print -m64/-mx32/-m32 if it is true.
14061 (ix86_debug_options, ix86_function_specific_print): Pass true as
14062 ADD_ABI_P to ix86_target_string.
14063 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
14064 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
14065 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
14066
14067 PR rtl-optimization/90082
14068 * dce.c (can_delete_call): New function.
14069 (deletable_insn_p, mark_insn): Use it.
14070
14071 PR tree-optimization/90090
14072 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
14073 throw internally.
14074 (is_division_by_square): Likewise. Formatting fix.
14075
14076 2019-04-16 Richard Biener <rguenther@suse.de>
14077
14078 PR tree-optimization/56049
14079 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
14080 equality check if alias-set zero will prevail.
14081
14082 2019-04-15 Jeff Law <law@redhat.com>
14083
14084 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
14085 size and alignment as unsigned.
14086
14087 2019-04-15 Richard Biener <rguenther@suse.de>
14088
14089 PR debug/90074
14090 * tree-loop-distribution.c (destroy_loop): Preserve correct
14091 debug info.
14092
14093 2019-04-15 Richard Biener <rguenther@suse.de>
14094
14095 PR tree-optimization/90071
14096 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
14097 abnormal operands from def stmts.
14098
14099 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
14100
14101 PR rtl-optimization/89794
14102 * combine.c (count_auto_inc): New function.
14103 (try_combine): Count how many auto_inc expressions there were in the
14104 original instructions. Ensure we have the same number in the new
14105 instructions. Remove the code that tried to ensure auto_inc side
14106 effects on i1 and i0 are not lost.
14107
14108 2019-04-15 Richard Biener <rguenther@suse.de>
14109
14110 PR ipa/88936
14111 * tree.h (auto_var_p): Declare.
14112 * tree.c (auto_var_p): New function, split out from ...
14113 (auto_var_in_fn_p): ... here.
14114 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
14115 member.
14116 (new_var_info): Initialize it.
14117 (set_uids_in_ptset): Also set the shadow variable uid if required.
14118 (ipa_pta_execute): Postprocess points-to solutions assigning
14119 shadow variable uids for locals that may reach their containing
14120 function recursively.
14121 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
14122 assert but instead check whether the points-to solution is
14123 a singleton.
14124
14125 2019-04-15 Martin Jambor <mjambor@suse.cz>
14126
14127 PR ipa/pr89693
14128 * cgraph.c (clone_of_p): Loop over clone chain for each step in
14129 the thunk chain.
14130
14131 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14132
14133 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
14134
14135 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14136 Kito Cheng <kito.cheng@gmail.com>
14137 Shiva Chen <shiva0217@gmail.com>
14138
14139 * config/nds32/nds32-md-auxiliary.c
14140 (nds32_legitimize_pic_address): Use new PIC pattern.
14141 (nds32_legitimize_tls_address): Use new TLS pattern.
14142 (nds32_output_symrel): New.
14143 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
14144 (nds32_alloc_relax_group_id): Ditto.
14145 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
14146 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
14147 relax_group_id.
14148 (nds32_group_tls_insn): Ditto.
14149 (nds32_group_float_insns): Ditto.
14150 * config/nds32/nds32.md (tls_le): New.
14151 (sym_got): Ditto.
14152
14153 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
14154
14155 * configure: Add nds32 target for dwarf2 debug_line checking.
14156 * configure.ac: Regenerated.
14157
14158 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
14159
14160 PR lto/89358
14161 * ipa-devirt.c (skip_in_fields_list_p): New.
14162 (odr_types_equivalent_p): Use it.
14163
14164 2019-04-13 Jakub Jelinek <jakub@redhat.com>
14165
14166 PR target/89093
14167 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
14168 instead of strncmp when checking for thumb and arm. Formatting fixes.
14169
14170 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
14171
14172 * doc/install.texi: Document --with-target-system-zlib.
14173
14174 2019-04-12 Martin Sebor <msebor@redhat.com>
14175
14176 PR c/88383
14177 PR c/89288
14178 PR c/89798
14179 PR c/89797
14180 * targhooks.c (default_vector_alignment): Avoid assuming
14181 argument fits in SHWI.
14182 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
14183 a shift expression.
14184 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
14185
14186 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14187
14188 PR rtl-optimization/89965
14189 * dce.c: Include rtl-iter.h.
14190 (struct check_argument_load_data): New type.
14191 (check_argument_load): New function.
14192 (find_call_stack_args): Check for loads from stack slots still tracked
14193 in sp_bytes and punt if any is found.
14194
14195 * config/mips/loongson-mmiintrin.h: Fix up #error message.
14196
14197 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
14198
14199 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
14200 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
14201
14202 2019-04-12 Martin Liska <mliska@suse.cz>
14203
14204 PR middle-end/89970
14205 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
14206 in error message.
14207 (separate_attrs): Handle multiple 'default's.
14208 (expand_target_clones): Rework error handling code.
14209
14210 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
14211
14212 PR target/87532
14213 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
14214 mode of vector rather than mode of destination for move instruction.
14215 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
14216 Use QI inner mode with V16QI vector mode.
14217
14218 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14219
14220 PR target/52726
14221 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
14222 "invalid %%t operand" in output_operand_lossage message.
14223
14224 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
14225
14226 * config/s390/predicates.md (permute_pattern_operand): New
14227 predicate.
14228 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
14229 operand for the permute pattern.
14230 ("*vec_perm<mode>"): New insn definition.
14231 ("bswap<mode>"): Generate the permute pattern operand in the
14232 expander and perform the operand reloads for pre arch13 level
14233 already.
14234 ("*bswap<mode>_emu"): Rename to ...
14235 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
14236 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
14237 Add the USE operand for the permute pattern.
14238 ("*vec_set_bswap_vec<mode>"): Likewise.
14239
14240 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14241
14242 PR c/89946
14243 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
14244 and gcc_unreachable if it fails, just call tree_to_uhwi which
14245 verifies that too. Test TREE_CHAIN instead of list_length > 1.
14246 Start warning message with a lower-case letter. Formatting fixes.
14247
14248 PR rtl-optimization/90026
14249 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
14250 successors, look for BARRIERs inside of the whole BB_FOOTER chain
14251 rather than just at the start of it. If e->src BB_FOOTER is not NULL
14252 in cfglayout mode, use emit_barrier_after_bb.
14253
14254 2018-04-11 Steve Ellcey <sellcey@marvell.com>
14255
14256 PR rtl-optimization/87763
14257 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
14258 New Instruction.
14259
14260 2019-04-11 Tom de Vries <tdevries@suse.de>
14261
14262 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
14263 max macro using statement expression.
14264
14265 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
14266
14267 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
14268 * xcoffout.c (xcoff_private_rodata_section_name): Define.
14269 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
14270 read_only_private_data_section using xcoff_private_rodata_section_name.
14271 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
14272
14273 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
14274
14275 PR target/90016
14276 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14277
14278 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14279
14280 PR rtl-optimization/89965
14281 * dce.c (sp_based_mem_offset): New function.
14282 (find_call_stack_args): Use sp_based_mem_offset.
14283
14284 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14285
14286 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14287
14288 2019-04-11 Richard Biener <rguenther@suse.de>
14289
14290 PR tree-optimization/90020
14291 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14292 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14293 * tree-ssa-pre.c (compute_avail): Use it to not put
14294 possibly trapping references after a call that might not
14295 return into EXP_GEN.
14296 * gcse.c (compute_hash_table_work): Do not elide
14297 marking a block containing a call if the call might not
14298 return.
14299
14300 2019-04-11 Richard Biener <rguenther@suse.de>
14301
14302 PR tree-optimization/90018
14303 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14304 Test both SLP and interleaving variants.
14305
14306 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14307
14308 * config/s390/8561.md: New file.
14309 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14310 Add arch13 cpu model.
14311 * config/s390/s390-opts.h (enum processor_type): Likewise.
14312 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14313 (s390_get_unit_mask): Likewise.
14314 (s390_is_fpd): Likewise.
14315 (s390_is_fxd): Likewise.
14316 * config/s390/s390.h (s390_tune_attr): Likewise.
14317 * config/s390/s390.md: Include arch13 pipeline description.
14318 * config/s390/s390.opt: Add arch13.
14319
14320 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14321
14322 PR rtl-optimization/87763
14323 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14324 New prototype.
14325 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14326 New function.
14327 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14328 New instruction.
14329 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14330 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14331 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14332 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14333
14334 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14335
14336 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14337 "Although" in -fipa-icf documentation.
14338
14339 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14340 of using multiple -g options.
14341
14342 2019-04-10 Martin Liska <mliska@suse.cz>
14343
14344 PR gcov-profile/89959
14345 * doc/gcov.texi: Make documentation of -x option
14346 more precise.
14347
14348 2019-04-10 Richard Biener <rguenther@suse.de>
14349
14350 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14351 member.
14352 (DR_GROUP_SAME_DR_STMT): Remove.
14353 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14354 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14355 replace with assert.
14356 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14357 (vect_record_grouped_load_vectors): Remove unreachable code.
14358
14359 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14360
14361 PR target/90016
14362 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14363 obsolete reference to N.
14364
14365 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14366
14367 PR middle-end/90025
14368 * expr.c (store_expr): Set properly size on the MEM passed to
14369 clear_storage.
14370
14371 PR c++/90010
14372 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14373 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14374 translation is needed, and when translation is needed, only append
14375 ... if the string length is hostsz or more bytes long. Avoid using
14376 strncpy or strcat.
14377
14378 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14379
14380 PR target/90024
14381 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14382 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14383 into three.
14384 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14385 differences directly.
14386 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14387
14388 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14389
14390 PR translation/90011
14391 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14392 from diagnostics.
14393 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14394 diagnostics.
14395 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14396 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14397 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14398 trailing space from -gsplit-dwarf diagnostics.
14399
14400 PR tree-optimization/89998
14401 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14402 instead of integer_type_node if possible, don't add ranges if return
14403 type is not compatible with int.
14404 * gimple-fold.c (gimple_fold_builtin_sprintf,
14405 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14406 integer_type_node.
14407
14408 2019-04-09 Martin Liska <mliska@suse.cz>
14409
14410 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14411 * doc/install.texi: Document the new config.
14412
14413 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14414
14415 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14416 use gimple_expr_type for load and store calls. Skip over the
14417 condition argument in a conditional internal function.
14418 Protect use of TREE_INT_CST_LOW.
14419
14420 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14421
14422 PR target/90015
14423 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14424 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14425 trailing period from it too.
14426
14427 2019-04-08 wu yuan <wuyuan5@huawei.com>
14428
14429 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14430 * config/aarch64/aarch64.md : Add "tsv110.md"
14431 * config/aarch64/tsv110.md: New file.
14432
14433 2019-04-08 Richard Biener <rguenther@suse.de>
14434
14435 PR tree-optimization/90006
14436 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14437 calls like lrint.
14438
14439 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14440
14441 PR target/83033
14442 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14443 construction.
14444 (fma_root_node): Likewise.
14445 (func_fma_steering): Likewise.
14446
14447 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14448
14449 PR rtl-optimization/89865
14450 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14451
14452 PR rtl-optimization/89865
14453 * config/i386/i386.md
14454 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14455 numbers not to clash with the additional operands[4].
14456 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14457 with extra register copy in the middle.
14458
14459 2019-04-08 Martin Liska <mliska@suse.cz>
14460
14461 PR gcov-profile/89961
14462 * doc/gcov.texi: Document data_file.
14463 * gcov.c (generate_results): Add data_info into JSON output.
14464
14465 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14466
14467 PR tree-optimization/89725
14468 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14469 loop's chrec as invariant symbol.
14470 * tree-chrec.h (chrec_contains_symbols): New parameter.
14471 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14472 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14473 function of loops not in DDR's loop_nest.
14474 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14475
14476 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14477
14478 PR target/89623
14479 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14480 Mask.
14481
14482 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14483
14484 PR target/89945
14485 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14486 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14487
14488 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14489
14490 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14491 targetm.fixed_condition_code_regs.
14492
14493 2019-04-05 Richard Biener <rguenther@suse.de>
14494
14495 PR debug/89892
14496 PR debug/89905
14497 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14498 debug bind stmts but reset them if they are not valid at the
14499 destination.
14500
14501 2019-04-05 Martin Liska <mliska@suse.cz>
14502
14503 PR translation/89936
14504 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14505 order to wrap keywords or arguments.
14506 * collect2.c (main): Likewise.
14507 (scan_prog_file): Likewise.
14508 (scan_libraries): Likewise.
14509 * common/config/riscv/riscv-common.c
14510 (riscv_subset_list::parsing_subset_version): Likewise.
14511 (riscv_subset_list::parse_std_ext): Likewise.
14512 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14513 Likewise.
14514 * config/arm/arm.c (arm_option_override): Likewise.
14515 * config/cris/cris.c (cris_print_operand): Likewise.
14516 * config/darwin-c.c (darwin_pragma_options): Likewise.
14517 (darwin_pragma_unused): Likewise.
14518 (darwin_pragma_ms_struct): Likewise.
14519 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14520 * config/i386/i386.c (print_reg): Likewise.
14521 (ix86_print_operand): Likewise.
14522 * config/i386/xm-djgpp.h: Likewise.
14523 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14524 * config/m32c/m32c.c (m32c_option_override): Likewise.
14525 * config/msp430/msp430.c (msp430_option_override): Likewise.
14526 * config/nds32/nds32.c (nds32_option_override): Likewise.
14527 * config/nvptx/mkoffload.c (main): Likewise.
14528 * config/rx/rx.c (rx_print_operand): Likewise.
14529 (valid_psw_flag): Likewise.
14530 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14531 (vms_pragma_nomember_alignment): Likewise.
14532 (vms_pragma_extern_model): Likewise.
14533 * lto-wrapper.c (compile_offload_image): Likewise.
14534 * omp-offload.c (oacc_parse_default_dims): Likewise.
14535 * symtab.c (symtab_node::verify_base): Likewise.
14536 * tlink.c (recompile_files): Likewise.
14537 (start_tweaking): Likewise.
14538 * tree-profile.c (parse_profile_filter): Likewise.
14539
14540 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14541
14542 PR tree-optimization/89956
14543 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14544 multiple negates of the same value.
14545
14546 2019-04-04 Martin Sebor <msebor@redhat.com>
14547
14548 PR middle-end/89957
14549 PR middle-end/89911
14550 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14551 have the same precision since the function crashes otherwise.
14552 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14553 has non-zero arguments.
14554
14555 2019-04-04 Martin Sebor <msebor@redhat.com>
14556
14557 PR middle-end/89934
14558 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14559 out if the number of arguments is less than expected.
14560
14561 2019-04-04 Jeff Law <law@redhat.com>
14562
14563 PR rtl-optimization/89399
14564 * ree.c (combine_set_extension): Use single_set rather than
14565 digging into PATTERN for items on the candidate list.
14566 (combine_reaching_defs): Likewise.
14567
14568 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14569
14570 PR rtl-optimization/46590
14571 * loop-invariant.c (find_defs): Move df_remove_problem and
14572 df_process_deferred_rescans to move_invariants.
14573 Move df_live_add_problem and df_live_set_all_dirty calls
14574 to move_invariants.
14575 (move_invariants): Likewise.
14576 (move_loop_invariants): Likewise, making the df_live calls
14577 conditional on -O. Remove the problem again if we added it
14578 locally.
14579
14580 2019-04-03 qing zhao <qing.zhao@oracle.com>
14581
14582 PR tree-optimization/89730
14583 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14584 -flive-patching=inline-only-static.
14585 (can_inline_edge_by_limits_p): Add the checking for
14586 -flive-patching=inline-only-static and grant always_inline
14587 even when -flive-patching=inline-only-static is specified.
14588
14589 2019-04-03 Jeff Law <law@redhat.com>
14590
14591 PR rtl-optimization/81025
14592 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14593
14594 2019-04-03 Richard Biener <rguenther@suse.de>
14595
14596 PR tree-optimization/84101
14597 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14598 regs.h for hard_regno_nregs.
14599 (cfun_returns): New helper.
14600 (vect_model_store_cost): When vectorizing a store to a decl
14601 we return and the function ABI returns in a multi-reg location
14602 account for the possible spilling that will happen.
14603
14604 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
14605
14606 * config/s390/s390.c (s390_legitimate_address_p): Reject long
14607 displacement addresses for vector mode operands.
14608
14609 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
14610
14611 * config/arc/arc.c (GMASK_LEN): Define.
14612 (arc_restore_callee_saves): Restore first blink when
14613 !optimize_size.
14614
14615 2019-04-03 Sudakshina Das <sudi.das@arm.com>
14616
14617 * doc/extend.texi: Add deprecated comment on sign-return-address
14618 function attribute and add mbranch-protection.
14619 * doc/invoke.texi: Add bti to the options for mbranch-protection.
14620
14621 2019-04-03 Richard Biener <rguenther@suse.de>
14622
14623 PR lto/89896
14624 * lto-wrapper.c (run_gcc): Avoid implicit rules making
14625 the all target phony.
14626
14627 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
14628
14629 PR target/89902
14630 PR target/89903
14631 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14632 Return false for variable DImode shifts.
14633 (dimode_scalar_chain::compute_convert_gain): Do not handle
14634 register count operand in variable DImode shifts.
14635 (dimode_scalar_chain::make_vector_copies): Remove support to copy
14636 count argument of a variable shift instruction to a vector register.
14637 (dimode_scalar_chain::convert_reg): Remove support to convert
14638 count argument of a variable shift instruction.
14639
14640 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14641
14642 PR rtl-optimization/84206
14643 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
14644 iterating over loop headers.
14645
14646 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14647
14648 PR rtl-optimization/85876
14649 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
14650 beyond the original fence.
14651
14652 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
14653
14654 * config.gcc: Mark spu* targets as deprecated/obsolete.
14655
14656 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14657
14658 * config/s390/s390-builtin-types.def: New builtin function type
14659 definitions. Remove unused types.
14660 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
14661 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
14662 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
14663 overloaded builtins.
14664 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
14665 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
14666 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
14667 (vec_double, vec_signed, vec_unsigned): Define to use the new
14668 overloaded builtins.
14669 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
14670 Remove expanders.
14671
14672 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14673
14674 * config/s390/s390-builtin-types.def: New builtin function type
14675 definitions.
14676 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
14677 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
14678 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
14679 (s390_vstrszh, s390_vstrszf): New low-level builtins.
14680 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
14681 constant definitions.
14682 * config/s390/vecintrin.h (vec_search_string_cc)
14683 (vec_search_string_until_zero_cc): New builtin name definitions.
14684 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
14685 expanders.
14686 ("vec_vstrs<mode>"): New insn definition.
14687
14688 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14689
14690 * config/s390/s390-builtin-types.def: Add new builtin function
14691 types.
14692 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
14693 New overloaded builtins.
14694 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
14695 s390_vsrd.
14696 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
14697 (UNSPEC_VEC_SLDBYTE): ... this.
14698 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
14699 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
14700 definitions.
14701 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
14702 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
14703 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
14704
14705 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14706
14707 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
14708 New insn definition.
14709 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
14710 * config/s390/vector.md (V_HW_HSD): ... here.
14711
14712 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14713
14714 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
14715 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
14716 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
14717 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
14718 New insn definitions.
14719
14720 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14721
14722 * config/s390/s390-builtin-types.def: Add new builtin function type.
14723 * config/s390/s390-builtins.def: Add overloaded builtin
14724 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
14725 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
14726 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
14727 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
14728 ("eltswap<mode>"): New expander.
14729 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
14730 insn definitions.
14731
14732 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14733
14734 * config/s390/s390-builtin-types.def: Add new builtin function types.
14735 * config/s390/s390-builtins.def: Add overloaded builtin
14736 s390_vec_revb. Add low-level builtins for vlbr and vstbr
14737 instructions.
14738 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
14739 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
14740 ("bswap<mode>"): New expander.
14741 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
14742
14743 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14744
14745 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
14746 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
14747 vector builtin version number in __VEC__.
14748
14749 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14750
14751 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
14752 iterators.
14753 (SFSI): New mode attribute.
14754 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
14755 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
14756 rename to ...
14757 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
14758 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
14759 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
14760 ("floatsi<mode>2"): Add wcefb instruction.
14761
14762 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14763
14764 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
14765 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
14766 mode iterators.
14767 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
14768 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
14769 support 32 bit fp-int conversions. Rename to ...
14770 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14771 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14772 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
14773 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
14774 ... to these.
14775
14776 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14777
14778 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
14779 if-then-else constructs if we can use the select instruction.
14780 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
14781
14782 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14783
14784 * config/s390/s390.md ("*popcountdi_arch13_cc")
14785 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
14786 definition.
14787 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
14788 Append _z196 to make it ...
14789 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
14790 ("popcounthi2_z196"): ... this.
14791 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
14792 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
14793
14794 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14795
14796 * config/s390/s390.c (s390_canonicalize_comparison): Convert
14797 certain compares for arch13 in order to make use of the condition
14798 code result produced by the new instructions.
14799 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
14800 nxrk, and nxgrk instruction patterns.
14801 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
14802 (inv_no): Add new code iterator together with some attributes.
14803 ("*andc_split_<mode>"): Disable splitter for arch13.
14804 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
14805 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
14806 ("*<ANDOR:bitops_name>c<GPR:mode>")
14807 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
14808 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
14809 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
14810 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
14811
14812 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14813
14814 * common/config/s390/s390-common.c (processor_flags_table): New
14815 entry for arch13.
14816 * config.gcc: Support arch13 with the --with-arch= configure flag.
14817 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14818 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
14819 * config/s390/s390.c (s390_get_sched_attrmask)
14820 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
14821 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
14822 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
14823 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
14824 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
14825 definitions.
14826 * config/s390/s390.opt: Support arch13 as processor type in
14827 command line options.
14828
14829 2019-04-02 Martin Liska <mliska@suse.cz>
14830
14831 PR translation/89912
14832 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
14833 Fix param description of graphite-max-arrays-per-scop.
14834
14835 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
14836
14837 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
14838 (ASAN_CC1_SPEC): Use it in 64-bit mode.
14839 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
14840
14841 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14842
14843 PR rtl-optimization/85412
14844 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
14845 sel_sched_region_1, not after.
14846
14847 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14848
14849 PR rtl-optimization/86928
14850 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
14851 compute_live if necessary.
14852 (sel_redirect_edge_and_branch): Likewise.
14853
14854 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
14855
14856 PR rtl-optimization/89865
14857 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
14858 register if it is a part of small class.
14859
14860 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14861
14862 PR rtl-optimization/87273
14863 * sel-sched-ir.c (merge_fences): Remove assert.
14864
14865 2019-04-01 Richard Biener <rguenther@suse.de>
14866
14867 PR tree-optimization/46590
14868 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
14869 (dom_walker::m_reachability): Add in place of...
14870 (dom_walker::m_skip_unreachable_blocks): ...this.
14871 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
14872 Move complex initialization ...
14873 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
14874 lazily and initialize edge flags on each invocation.
14875 (dom_walker::bb_reachable): Use m_reachability.
14876
14877 2019-04-01 Martin Liska <mliska@suse.cz>
14878
14879 PR driver/89861
14880 * opt-suggestions.c (option_proposer::build_option_suggestions):
14881 Add variant without any argument in order to provide better
14882 hints.
14883
14884 2019-04-01 Richard Biener <rguenther@suse.de>
14885
14886 PR c/71598
14887 * gimple.c: Include langhooks.h.
14888 (gimple_get_alias_set): Treat enumeral types as the underlying
14889 integer type.
14890
14891 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14892 Eric Botcazou <ebotcazou@adacore.com>
14893
14894 PR rtl-optimization/89862
14895 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
14896 that operates on the full registers for WORD_REGISTER_OPERATIONS
14897 architectures.
14898
14899 2019-03-29 Jim Wilson <jimw@sifive.com>
14900
14901 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
14902 Clear MASK_RVC and then set if C subset supported.
14903
14904 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14905
14906 PR c/89872
14907 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
14908 non-addressable complit into its initializer if it is volatile.
14909
14910 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
14911
14912 * opts-common.c (integral_argument): Set errno properly in one case.
14913
14914 2019-03-29 Martin Liska <mliska@suse.cz>
14915
14916 * doc/invoke.texi: Remove -Wchkp from documentation.
14917
14918 2019-03-29 Martin Liska <mliska@suse.cz>
14919
14920 * dbgcnt.c (print_limit_reach): New function.
14921 (dbg_cnt): Use it.
14922
14923 2019-03-29 Martin Liska <mliska@suse.cz>
14924
14925 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
14926 (dbg_cnt_process_opt): Parse first tokens aas
14927 dbg_cnt_process_single_pair is also using strtok.
14928
14929 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14930
14931 PR rtl-optimization/87485
14932 * function.c (expand_function_end): Move stack_protect_epilogue
14933 before loading of return value into hard register(s).
14934
14935 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14936
14937 PR middle-end/89621
14938 * tree-inline.h (struct copy_body_data): Add
14939 dont_remap_vla_if_no_change flag.
14940 * tree-inline.c (remap_type_3, remap_type_2): New functions.
14941 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
14942 and remap_type_2 returns false.
14943 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
14944 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
14945 only from where it is copied to nested contexts.
14946
14947 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14948
14949 PR target/89865
14950 * config/i386/i386.md (RMW operation with LEA peephole):
14951 Use LEAMODE mode attribute instead of SWI mode iterator for
14952 LEA pattern.
14953
14954 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14955
14956 PR target/89848
14957 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
14958 Also process XEXP (src, 0) of a shift insn.
14959
14960 2019-03-28 David Malcolm <dmalcolm@redhat.com>
14961
14962 PR middle-end/89725
14963 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
14964 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
14965
14966 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14967
14968 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
14969 test.
14970 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
14971 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
14972 immediately after first one with df_analyze in between, but rather
14973 process all bbs, queueing ones that need second pass in a worklist,
14974 df_analyze, process queued debug insn changes and if second pass is
14975 needed, process bbs from worklist, df_analyze, process queued debug
14976 insns again.
14977
14978 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
14979 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
14980 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
14981
14982 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
14983
14984 PR c/79022
14985 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
14986 definition.
14987
14988 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
14989
14990 PR target/85667
14991 * config/i386/i386.c (ix86_function_value_1): Call the newly added
14992 function for 32-bit MS_ABI.
14993 (function_value_ms_32): New function.
14994
14995 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
14996
14997 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
14998 (movdi): Call gen_movdi_symbol_save_scc.
14999 (gen_movdi_symbol_save_scc): New insn and split.
15000
15001 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
15002
15003 PR rtl-optimization/89313
15004 * function.c (matching_constraint_num): New static function.
15005 (match_asm_constraints_1): Use it. Fixup white space and comment.
15006 Don't replace inputs with non-matching constraints which conflict
15007 with early clobber outputs.
15008
15009 2019-03-27 Jeff Law <law@redhat.com>
15010
15011 PR rtl-optimization/87761
15012 PR rtl-optimization/89826
15013 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
15014 slightly later.
15015 (pass_cprop_hardreg::execute): Call df_analyze after adding the
15016 note problem to get REG_DEAD/REG_UNUSED notes updated.
15017
15018 2019-03-27 Richard Biener <rguenther@suse.de>
15019
15020 PR tree-optimization/89463
15021 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
15022 queue edges to remove.
15023 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
15024 dead stmts. Delay edge removal until PHIs are removed to
15025 make debug-stmt creation not confused by seemingly degenerate
15026 PHIs.
15027
15028 2019-03-27 Alan Modra <amodra@gmail.com>
15029
15030 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
15031 throughout file.
15032 * config/rs6000/darwin.h: Likewise.
15033 * config/rs6000/rs6000.c: Likewise.
15034
15035 2019-03-27 Alan Modra <amodra@gmail.com>
15036
15037 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
15038 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
15039
15040 2019-03-26 Andrew Waterman <andrew@sifive.com>
15041 Jim Wilson <jimw@sifive.com>
15042
15043 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
15044 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
15045 (generic_idivdi, generic_fmul_single, generic_fmul_double)
15046 (generic_fdiv, generic_fsqrt): Add check for generic tune.
15047 (generic_alu): Add auipc to type list.
15048 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
15049 (riscv_microarchitecture): Declare.
15050 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
15051 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
15052 field.
15053 (riscv_microarchitecture): New.
15054 (sifive_7_tune_info): New.
15055 (riscv_cpu_info_table): Add microarchitecture value for rocket and
15056 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
15057 entries.
15058 (riscv_store_data_bypass_p): New.
15059 (riscv_option_override): Set riscv_microarchitecture from
15060 cpu->microarchitecture.
15061 * config/riscv/riscv.md: Include sifive-7.md.
15062 (type): Add auipc.
15063 (tune): New.
15064 (auipc<mode>): Change type to auipc.
15065 (restore_stack_nonlocal): New.
15066 * config/riscv/sifive-7.md: New.
15067 * doc/invoke.texi (RISC-V Options): Update mtune docs.
15068
15069 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
15070
15071 PR target/89827
15072 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
15073 Also process XEXP (src, 0) of a shift insn.
15074
15075 2019-03-26 Richard Biener <rguenther@suse.de>
15076
15077 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
15078 (copy_debug_stmt): Likewise.
15079 (expand_call_inline): Likewise.
15080 (copy_bb): Avoid redundant lookup & set of gimple_block.
15081 * gimple-low.c (lower_gimple_return): Likewise.
15082 (lower_builtin_setjmp): Likewise.
15083
15084 2019-03-26 Jakub Jelinek <jakub@redhat.com>
15085
15086 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
15087 is constant 0, turn into static const data member initialized to false.
15088 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
15089 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
15090
15091 2019-03-26 Jason Merrill <jason@redhat.com>
15092 Jakub Jelinek <jakub@redhat.com>
15093
15094 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
15095 method.
15096 (mem_alloc_description::release_object_overhead): Fix comment typos.
15097 * hash-table.h (hash_table::~hash_table): Call
15098 release_instance_overhead only if m_entries is non-NULL, otherwise
15099 call unregister_descriptor.
15100
15101 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
15102
15103 PR tree-optimization/81740
15104 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15105 In case of outer loop vectorization, check for backward dependence
15106 at the inner loop if outer loop dependence is reversed.
15107
15108 2019-03-26 Alan Modra <amodra@gmail.com>
15109
15110 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
15111 rs6000_vector_mem init. Correct wI and wJ comment.
15112
15113 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
15114
15115 PR rtl-optimization/88347
15116 PR rtl-optimization/88423
15117 * sched-deps.c (sched_analyze_insn): Take into account that for
15118 tablejumps the barrier appears after a label and a jump_table_data.
15119
15120 2019-03-25 Martin Sebor <msebor@redhat.com>
15121
15122 PR c/89812
15123 * c-common.c (check_user_alignment): Rename local. Correct maximum
15124 alignment in diagnostic. Avoid assuming argument fits in SHWI,
15125 convert it to UHWI when it fits.
15126
15127 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
15128
15129 PR debug/86964
15130 * dwarf2out.c (premark_used_variables): New function.
15131 (prune_unused_types_walk): Do not mark not premarked external
15132 variables.
15133 (prune_unused_types): Call premark_used_variables.
15134
15135 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
15136
15137 PR rtl-optimization/89676
15138 * lra-constraints.c (curr_insn_transform): Do match reload for
15139 early clobbers when the match was successful only for different
15140 registers.
15141
15142 2019-03-25 Martin Sebor <msebor@redhat.com>
15143
15144 * doc/extend.texi (Common Type Attributes): Document vector_size.
15145 (Common Variable Attributes): Mention size constraint. Correct
15146 quoting and typos.
15147 (Vector Extensions): Use @dfn when defining bas type. Clarify
15148 base type and size constraints.
15149
15150 2019-03-25 Richard Biener <rguenther@suse.de>
15151
15152 PR tree-optimization/89789
15153 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
15154 changes from non-undefined back to undefined.
15155
15156 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
15157
15158 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
15159 heap string and a gc string, but since this variable is unknown to
15160 ggc the gc string might get reused and corrupted. Fixed by always
15161 using a heap string.
15162
15163 2019-03-25 Richard Biener <rguenther@suse.de>
15164
15165 PR tree-optimization/89779
15166 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
15167 to remove IV defs, delay actual removal.
15168 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
15169 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
15170 very end, properly also reset loop control IV information.
15171
15172 2019-03-25 Richard Biener <rguenther@suse.de>
15173
15174 PR tree-optimization/89802
15175 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
15176 move EH data to folded stmt.
15177
15178 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15179
15180 * config/s390/s390-builtin-types.def: Remove few unused types and
15181 fix sort order for others.
15182
15183 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15184
15185 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
15186 expected and found types with -mdebug during builtin matching.
15187
15188 2019-03-25 Richard Biener <rguenther@suse.de>
15189
15190 PR middle-end/89790
15191 * fold-const.c (operand_equal_p): Revert last change with
15192 updated comment.
15193
15194 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
15195
15196 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
15197 notes for the result of the __tls_get_addr calls.
15198 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
15199
15200 2019-03-24 Jeff Law <law@redhat.com>
15201
15202 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
15203
15204 PR rtl-optimization/87761
15205 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
15206 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
15207 as needed.
15208 (pass_cprop_hardreg::execute): Add df note problem and defer insn
15209 rescans. Reprocess blocks as needed, calling df_analyze before
15210 reprocessing. Always call df_analyze before fixing up debug bind
15211 insns.
15212
15213 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
15214
15215 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
15216 big endian.
15217
15218 2019-03-22 Andrew Pinski <apinski@marvell.com>
15219
15220 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
15221 attrribute for uxtw.
15222
15223 2019-03-26 Jeff Law <law@redhat.com>
15224
15225 PR rtl-optimization/87761
15226 * config/mips/mips-protos.h (mips_split_move): Add new argument.
15227 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
15228 (mips_split_move): Accept new INSN argument. Try to forward SRC
15229 into the next instruction.
15230 (mips_split_move_insn): Pass INSN through to mips_split_move.
15231
15232 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
15233
15234 PR rtl-optimization/89676
15235 * lra-constraints.c (curr_insn_transform): Do match reload for
15236 early clobbers even if the match was successful.
15237
15238 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15239
15240 PR c++/87481
15241 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
15242
15243 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
15244
15245 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
15246
15247 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15248
15249 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
15250 <avx512>_fmsub_<mode>_mask3<round_name>,
15251 <avx512>_fnmadd_<mode>_mask3<round_name>,
15252 <avx512>_fnmsub_<mode>_mask3<round_name>,
15253 avx512f_vmfmadd_<mode>_mask3<round_name>,
15254 avx512f_vmfmsub_<mode>_mask3<round_name>,
15255 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
15256 instead of register_operand and %v instead of v for match_operand 1.
15257 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
15258 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
15259 <round_nimm_predicate> instead of register_operand and %v instead of v
15260 for match_operand 1.
15261
15262 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
15263 <avx512>_fmadd_<mode>_mask3<round_name>,
15264 <avx512>_fmsub_<mode>_mask<round_name>,
15265 <avx512>_fmsub_<mode>_mask3<round_name>,
15266 <avx512>_fnmadd_<mode>_mask<round_name>,
15267 <avx512>_fnmadd_<mode>_mask3<round_name>,
15268 <avx512>_fnmsub_<mode>_mask<round_name>,
15269 <avx512>_fnmsub_<mode>_mask3<round_name>,
15270 <avx512>_fmaddsub_<mode>_mask<round_name>,
15271 <avx512>_fmaddsub_<mode>_mask3<round_name>,
15272 <avx512>_fmsubadd_<mode>_mask<round_name>,
15273 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
15274 <round_nimm_predicate> instead of nonimmediate_operand.
15275 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
15276 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15277 Use register_operand instead of <round_nimm_predicate> for the
15278 operand that needs to match output.
15279 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15280 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15281 Likewise. Formatting fixes.
15282
15283 PR target/89784
15284 * config/i386/i386.c (enum ix86_builtins): Remove
15285 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15286 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15287 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15288 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15289 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15290 __builtin_ia32_vfmsubss3_mask3): New builtins.
15291 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15292 avx512f_vmfmadd_<mode>_mask3<round_name>,
15293 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15294 *avx512f_vmfmsub_<mode>_mask<round_name>,
15295 avx512f_vmfmsub_<mode>_mask3<round_name>,
15296 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15297 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15298 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15299 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15300 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15301 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15302 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15303 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15304 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15305 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15306 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15307 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15308 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15309 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15310 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15311 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15312 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15313 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15314 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15315 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15316 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15317 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15318 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15319 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15320 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15321 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15322 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15323 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15324
15325 2019-03-21 Martin Sebor <msebor@redhat.com>
15326
15327 PR tree-optimization/89350
15328 * builtins.c (compute_objsize): Also ignore offsets whose upper
15329 bound is negative.
15330 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15331 (builtin_memref::builtin_memref): Initialize new member.
15332 Allow EXPR to be null.
15333 (builtin_memref::extend_offset_range): Replace local with a member.
15334 Avoid assuming pointer offsets are unsigned.
15335 (builtin_memref::set_base_and_offset): Determine base object
15336 before computing offset range.
15337 (builtin_access::builtin_access): Handle memset.
15338 (builtin_access::generic_overlap): Replace local with a member.
15339 (builtin_access::strcat_overlap): Same.
15340 (builtin_access::overlap): Same.
15341 (maybe_diag_overlap): Same.
15342 (maybe_diag_access_bounds): Same.
15343 (wrestrict_dom_walker::check_call): Handle memset.
15344 (check_bounds_or_overlap): Same.
15345
15346 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15347 Jakub Jelinek <jakub@redhat.com>
15348
15349 PR lto/89692
15350 * tree.c (fld_type_variant, fld_incomplete_type_of,
15351 fld_process_array_type): Call fld->pset.add and don't call
15352 add_tree_to_fld_list if it returns true.
15353 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15354 non-marked types from TYPE_NEXT_VARIANT list.
15355 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15356
15357 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15358
15359 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15360 to false, if true, don't alloc_entries during construction, but defer
15361 it to the first method that needs m_entries allocated.
15362 (hash_table::hash_table, hash_table::~hash_table,
15363 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15364 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15365 hash_table::clear_slot, hash_table::traverse_noresize,
15366 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15367 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15368 false.
15369 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15370 NO_INSERT instead of find_with_hash.
15371 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15372 hash_set::m_table): Add Lazy to template params of hash_table.
15373 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15374 * attribs.c (test_attribute_exclusions): Likewise.
15375 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15376 hash_set. Add tests for hash_set with Lazy = true.
15377
15378 2019-03-21 Richard Biener <rguenther@suse.de>
15379
15380 PR tree-optimization/89779
15381 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15382 checks with respect to released SSA names now having error_mark_node
15383 type.
15384 * fold-const.c (operand_equal_p): Likewise.
15385
15386 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15387
15388 PR target/89775
15389 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15390 available to ...
15391 (s390_optimize_register_info): Use global_not_special_regno_p to
15392 check for global regs.
15393
15394 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15395
15396 PR target/89752
15397 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15398 update this_alternative nor this_alternative_set.
15399
15400 2019-03-19 Jim Wilson <jimw@sifive.com>
15401
15402 PR target/89411
15403 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15404 align, size, offset. Use them to handle a BLKmode reference. Update
15405 comment.
15406 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15407
15408 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15409
15410 PR rtl-optimization/89768
15411 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15412 instead of GEN_INT.
15413 (unroll_loop_runtime_iterations): Likewise.
15414
15415 2019-03-19 Martin Sebor <msebor@redhat.com>
15416
15417 PR tree-optimization/89644
15418 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15419 rather than endptr as an indicator of nul-termination.
15420
15421 PR tree-optimization/89644
15422 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15423 arrays in determining sequence sizes in strncpy and stpncpy.
15424
15425 2019-03-19 Martin Liska <mliska@suse.cz>
15426
15427 PR middle-end/89737
15428 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15429 unlikely_edges if there's an edge that belongs to both these sets.
15430
15431 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15432
15433 PR target/89746
15434 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15435 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15436 go via a stack temporary.
15437
15438 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15439
15440 PR target/89378
15441 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15442 instead of gen_rtx_SUBREG.
15443 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15444
15445 2019-03-19 Richard Biener <rguenther@suse.de>
15446
15447 PR debug/88389
15448 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15449
15450 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15451
15452 PR lto/87809
15453 PR lto/89335
15454 * tree.c (free_lang_data_in_decl): Do not free context of C++
15455 destrutors.
15456
15457 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15458
15459 PR target/89506
15460 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15461 subs for the first alternative except when operands[3] is 1.
15462
15463 PR target/89752
15464 * gimplify.c (gimplify_asm_expr): For output argument with
15465 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15466 diagnose error.
15467
15468 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15469
15470 PR rtl-optimization/89753
15471 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15472 explicit unrolling factor even more robust.
15473
15474 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15475
15476 PR target/89726
15477 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15478 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15479 signed zeros, do another copysign after the compensation.
15480
15481 2019-03-18 Martin Sebor <msebor@redhat.com>
15482
15483 PR tree-optimization/89720
15484 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15485 more conservatively, the same as anti-range.
15486
15487 2019-03-18 Richard Biener <rguenther@suse.de>
15488
15489 PR middle-end/88945
15490 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15491 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15492 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15493 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15494
15495 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15496
15497 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15498 Extend queue to 1024 entries.
15499 Add "consumed" field.
15500 (gomp_print_output): Remove print_index parameter.
15501 Add final parameter.
15502 Change limit to unsigned.
15503 Use consumed field to implement circular buffer.
15504 Detect interrupted print in final pass.
15505 Flush output at the end.
15506 (run): Update gomp_print_output usage.
15507 (main): Initialize kernargs->output_data.consumed.
15508
15509 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15510
15511 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15512 calculation of the minimum number of scalar iterations for
15513 fully-predicated loops.
15514
15515 2019-03-18 Martin Jambor <mjambor@suse.cz>
15516
15517 PR tree-optimization/89546
15518 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15519 any propagation to its children took place.
15520
15521 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15522
15523 PR target/89627
15524 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15525 parameter, and make use of it.
15526 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15527
15528 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15529
15530 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15531 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15532 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15533 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15534 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15535 match what the ops is doing.
15536 (push_multi_fp_blink): Likewise.
15537 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15538 compiling for size and elf target.
15539 (arc_save_callee_enter): Adjust note to match what enter/leave
15540 operation does.
15541
15542 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15543
15544 * config/arc/arc.md (tst_movb): Fix constraint.
15545
15546 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15547
15548 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15549
15550 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15551
15552 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15553 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15554 reg_alloc_order references.
15555 (size_alloc_order): Define.
15556 (arc_adjust_reg_alloc_order): New function.
15557 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15558 order.
15559 (ADJUST_REG_ALLOC_ORDER): Define.
15560 (HONOR_REG_ALLOC_ORDER): Likewise.
15561
15562 2019-03-18 Richard Biener <rguenther@suse.de>
15563
15564 PR target/87561
15565 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15566 loads and stores a bit more.
15567
15568 2019-03-18 Richard Biener <rguenther@suse.de>
15569
15570 PR target/87561
15571 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15572 load pessimization to stores as well.
15573
15574 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15575
15576 PR middle-end/86979
15577 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15578 successor, use NULL as its av set.
15579
15580 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15581
15582 PR rtl-optimization/89721
15583 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15584
15585 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15586
15587 PR target/87532
15588 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15589 When handling vec_extract, use modular arithmetic to allow
15590 constant selectors greater than vector length.
15591 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15592 V1TImode vectors to have constant selector values greater than 0.
15593 Use modular arithmetic to compute vector index.
15594 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15595 index for in-memory vectors. Correct code generation for
15596 in-register vectors.
15597 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15598 compute index.
15599
15600 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
15601
15602 PR c++/88534
15603 PR c++/88537
15604 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
15605 VAR_DECL args.
15606
15607 2019-03-15 Jakub Jelinek <jakub@redhat.com>
15608
15609 PR c++/89709
15610 * tree.c (inchash::add_expr): Strip any location wrappers.
15611 * fold-const.c (operand_equal_p): Move stripping of location wrapper
15612 after hash verification.
15613
15614 PR debug/89704
15615 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
15616 SIGN_EXTEND and ZERO_EXTEND.
15617
15618 2019-03-14 Jason Merrill <jason@redhat.com>
15619 Jakub Jelinek <jakub@redhat.com>
15620
15621 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
15622 than if is_empty (*slot).
15623 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
15624 existing elt and for elt removal.
15625 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
15626 of already removed elt.
15627
15628 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
15629
15630 PR target/89650
15631 * config/i386/i386.c (remove_partial_avx_dependency): Handle
15632 REG_EH_REGION note.
15633
15634 2019-03-14 Martin Liska <mliska@suse.cz>
15635
15636 PR other/89712
15637 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
15638
15639 2019-03-14 Richard Biener <rguenther@suse.de>
15640
15641 PR target/89711
15642 * config/i386/i386.c (make_resolver_func): Properly set
15643 DECL_CONTEXT on the RESULT_DECL.
15644 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
15645
15646 2019-03-14 Richard Biener <rguenther@suse.de>
15647
15648 * gimple-pretty-print.c: Include cfgloop.h.
15649 (dump_gimple_phi): Adjust.
15650 (dump_gimple_bb_header): Dump loop header for GIMPLE.
15651 (pp_cfg_jump): Adjust.
15652 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
15653 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
15654 (lower_phi_internal_fn): Remove.
15655 (verify_gimple_call): Remove IFN_PHI special-casing.
15656 (dump_function_to_file): Dump IL state.
15657 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
15658 done to deal with PHI nodes being present in non-SSA state.
15659
15660 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15661
15662 PR ipa/89684
15663 * multiple_target.c (create_dispatcher_calls): Change
15664 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
15665 In the node->iterate_referring loop, push *ref rather than ref, call
15666 ref->remove_reference () and always pass 0 to iterate_referring.
15667
15668 PR rtl-optimization/89679
15669 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
15670 would contain a paradoxical SUBREG.
15671
15672 2019-03-14 Richard Biener <rguenther@suse.de>
15673
15674 PR tree-optimization/89710
15675 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
15676 safe_dyn_cast.
15677
15678 2019-03-14 Martin Liska <mliska@suse.cz>
15679
15680 * coverage.c (coverage_begin_function): Stream also
15681 end_column.
15682 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
15683 documentation about function declaration location.
15684 * gcov-dump.c (tag_function): Print whole range
15685 of function declaration.
15686 * gcov.c (struct function_info): Add end_column field.
15687 (function_info::function_info): Initialize it.
15688 (output_json_intermediate_file): Output {start,end}_column
15689 fields.
15690 (read_graph_file): Read end_column.
15691
15692 2019-03-14 Richard Biener <rguenther@suse.de>
15693
15694 PR middle-end/89698
15695 * fold-const.c (operand_equal_p): For INDIRECT_REF check
15696 that the access types are similar.
15697
15698 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15699
15700 PR tree-optimization/89703
15701 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
15702 aren't compatible also with builtin_decl_explicit. Check pure
15703 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
15704 and BUILT_IN_STPNCPY{,_CHK}.
15705
15706 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
15707
15708 PR target/89523
15709 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
15710 addr32 prefix to VSIB address for X32.
15711 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
15712 "%M2" to opcode.
15713 (*avx512pf_gatherpf<mode>df_mask): Likewise.
15714 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
15715 (*avx512pf_scatterpf<mode>df_mask): Likewise.
15716 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
15717 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
15718 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
15719 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
15720 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
15721 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
15722 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
15723 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
15724 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
15725 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
15726 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
15727 (*avx512f_scatterdi<mode>): Likewise.
15728
15729 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
15730
15731 PR target/85860
15732 * lra-constraints.c (inherit_in_ebb): Update
15733 potential_reload_hard_regs along with live_hard_regs.
15734
15735 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15736
15737 PR debug/89498
15738 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
15739 DWARF_OFFSET_SIZE.
15740 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
15741
15742 2019-03-13 Martin Sebor <msebor@redhat.com>
15743
15744 PR tree-optimization/89662
15745 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
15746 has a size.
15747
15748 2019-03-13 Richard Biener <rguenther@suse.de>
15749
15750 PR middle-end/89677
15751 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
15752 throw FP expressions at tree-affine.
15753
15754 2019-03-14 Richard Biener <rguenther@suse.de>
15755
15756 * tree-pretty-print.c (dump_generic_node): For -gimple properly
15757 dump negative integer constants using _Literal (type) -num.
15758
15759 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15760
15761 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
15762 nonlocal_value member.
15763
15764 PR middle-end/88588
15765 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
15766 (ipa_simd_modify_function_body): Handle PHIs.
15767
15768 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15769
15770 * config/s390/s390.c (s390_option_override_internal): Use more
15771 aggressive inlining parameters.
15772
15773 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15774
15775 * config/s390/3906.md: New file.
15776 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15777 (LONGRUNNING_THRESHOLD): Remove.
15778 (MAX_SCHED_MIX_SCORE): Decrease.
15779 (MAX_SCHED_MIX_DISTANCE): Decrease.
15780 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
15781 (struct s390_sched_state): New struct to hold scheduling state.
15782 (S390_SCHED_STATE_NORMAL): Remove.
15783 (S390_SCHED_STATE_CRACKED): Remove.
15784 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
15785 (s390_get_sched_attrmask): Use new attribute.
15786 (s390_get_unit_mask): Use new units.
15787 (s390_is_fpd): New function.
15788 (s390_is_fxd): New function.
15789 (s390_is_longrunning): New function.
15790 (s390_sched_score): Use new functions.
15791 (s390_sched_reorder): Likewise.
15792 (s390_sched_variable_issue): Rework and use new functions.
15793 (s390_sched_init): Use new functions.
15794 * config/s390/s390.h (s390_tune_attr): Add z14.
15795 * config/s390/s390.md: Add z14.
15796
15797 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15798
15799 * config/s390/2964.md: Update pipeline description.
15800 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15801 (LONGRUNNING_THRESHOLD): Remove.
15802 (LATENCY_FACTOR): Remove.
15803 (s390_get_unit_mask): Add unit.
15804 (s390_sched_score): Use fxd/fpd.
15805 (s390_sched_variable_issue): Use fxd/fpd.
15806
15807 2019-03-12 Martin Liska <mliska@suse.cz>
15808
15809 * config/i386/i386.c: Reword an error message.
15810
15811 2019-03-12 Martin Jambor <mjambor@suse.cz>
15812
15813 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
15814 terminate with newline.
15815
15816 2019-03-12 Jakub Jelinek <jakub@redhat.com>
15817
15818 PR target/52726
15819 * config/s390/s390.md (tabort): Use %wd instead of
15820 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
15821 letters and periods.
15822 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
15823 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
15824 's with %< and %>.
15825
15826 PR middle-end/89663
15827 * builtins.c (expand_builtin_int_roundingfn,
15828 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
15829 gcc_unreachable if validate_arglist fails.
15830
15831 2019-03-12 Richard Biener <rguenther@suse.de>
15832
15833 PR tree-optimization/89664
15834 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
15835 free the occurance tree after the early out.
15836
15837 2019-03-11 Jakub Jelinek <jakub@redhat.com>
15838
15839 PR middle-end/89655
15840 PR bootstrap/89656
15841 * vr-values.c (vr_values::update_value_range): If
15842 old_vr->varying_p (), don't update it, make new_vr also VARYING
15843 and return false.
15844
15845 2019-03-11 Martin Liska <mliska@suse.cz>
15846
15847 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15848 Fix double string quoting.
15849
15850 2019-03-11 Martin Liska <mliska@suse.cz>
15851
15852 * collect-utils.c (collect_wait): Wrap apostrophes
15853 in gcc internal format with %'.
15854 * collect2.c (main): Likewise.
15855 (scan_prog_file): Likewise.
15856 (scan_libraries): Likewise.
15857 * config/i386/i386.c (ix86_expand_call): Likewise.
15858 (ix86_handle_interrupt_attribute): Likewise.
15859 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15860 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
15861 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
15862 * lto-wrapper.c (find_crtoffloadtable): Likewise.
15863 * symtab.c (symtab_node::verify_base): Likewise.
15864 * tree-cfg.c (verify_gimple_label): Likewise.
15865 * tree.c (verify_type_variant): Likewise.
15866
15867 2019-03-11 Martin Liska <mliska@suse.cz>
15868
15869 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
15870 in a string format message and fix GNU coding style.
15871 (expand_builtin_set_thread_pointer): Likewise.
15872 * common/config/aarch64/aarch64-common.c
15873 (aarch64_rewrite_selected_cpu): Likewise.
15874 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
15875 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
15876 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
15877 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
15878 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
15879 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
15880 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
15881 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
15882 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
15883 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
15884 Likewise.
15885 * common/config/riscv/riscv-common.c
15886 (riscv_subset_list::parsing_subset_version): Likewise.
15887 (riscv_subset_list::parse_std_ext): Likewise.
15888 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
15889 (riscv_subset_list::parse): Likewise.
15890 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
15891 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
15892 (aarch64_override_options_internal): Likewise.
15893 (aarch64_validate_mcpu): Likewise.
15894 (aarch64_validate_march): Likewise.
15895 (aarch64_validate_mtune): Likewise.
15896 (aarch64_override_options): Likewise.
15897 * config/alpha/alpha.c (alpha_option_override): Likewise.
15898 * config/arc/arc.c (arc_init): Likewise.
15899 (parse_mrgf_banked_regs_option): Likewise.
15900 (arc_override_options): Likewise.
15901 (arc_expand_builtin_aligned): Likewise.
15902 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
15903 (arm_expand_builtin): Likewise.
15904 * config/arm/arm.c (arm_option_check_internal): Likewise.
15905 (arm_configure_build_target): Likewise.
15906 (arm_option_override): Likewise.
15907 (arm_options_perform_arch_sanity_checks): Likewise.
15908 (arm_handle_cmse_nonsecure_entry): Likewise.
15909 (arm_handle_cmse_nonsecure_call): Likewise.
15910 (arm_tls_referenced_p): Likewise.
15911 (thumb1_expand_prologue): Likewise.
15912 * config/avr/avr.c (avr_option_override): Likewise.
15913 * config/bfin/bfin.c (bfin_option_override): Likewise.
15914 * config/c6x/c6x.c (c6x_option_override): Likewise.
15915 * config/cr16/cr16.c (cr16_override_options): Likewise.
15916 * config/cris/cris.c (cris_option_override): Likewise.
15917 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
15918 * config/darwin-c.c (macosx_version_as_macro): Likewise.
15919 * config/darwin.c (darwin_override_options): Likewise.
15920 * config/frv/frv.c (frv_expand_builtin): Likewise.
15921 * config/h8300/h8300.c (h8300_option_override): Likewise.
15922 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
15923 (ix86_option_override_internal): Likewise.
15924 (warn_once_call_ms2sysv_xlogues): Likewise.
15925 (ix86_expand_prologue): Likewise.
15926 (split_stack_prologue_scratch_regno): Likewise.
15927 (ix86_warn_parameter_passing_abi): Likewise.
15928 * config/ia64/ia64.c (fix_range): Likewise.
15929 * config/m68k/m68k.c (m68k_option_override): Likewise.
15930 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
15931 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
15932 (mips_set_compression_mode): Likewise.
15933 * config/mmix/mmix.c (mmix_option_override): Likewise.
15934 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
15935 * config/msp430/msp430.c (msp430_option_override): Likewise.
15936 * config/nds32/nds32.c (nds32_option_override): Likewise.
15937 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
15938 (nios2_option_override): Likewise.
15939 (nios2_expand_custom_builtin): Likewise.
15940 * config/nvptx/mkoffload.c (main): Likewise.
15941 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
15942 * config/pa/pa.c (fix_range): Likewise.
15943 (pa_option_override): Likewise.
15944 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
15945 (riscv_option_override): Likewise.
15946 * config/rl78/rl78.c (rl78_option_override): Likewise.
15947 * config/rs6000/aix61.h: Likewise.
15948 * config/rs6000/aix71.h: Likewise.
15949 * config/rs6000/aix72.h: Likewise.
15950 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
15951 * config/rs6000/freebsd64.h: Likewise.
15952 * config/rs6000/linux64.h: Likewise.
15953 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
15954 (rs6000_expand_zeroop_builtin): Likewise.
15955 (rs6000_expand_mtfsb_builtin): Likewise.
15956 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
15957 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
15958 (rs6000_invalid_builtin): Likewise.
15959 (rs6000_expand_split_stack_prologue): Likewise.
15960 * config/rs6000/rtems.h: Likewise.
15961 * config/rx/rx.c (valid_psw_flag): Likewise.
15962 (rx_expand_builtin): Likewise.
15963 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15964 * config/s390/s390.c (s390_expand_builtin): Likewise.
15965 (s390_function_profiler): Likewise.
15966 (s390_option_override_internal): Likewise.
15967 (s390_option_override): Likewise.
15968 * config/sh/sh.c (sh_option_override): Likewise.
15969 (sh_builtin_saveregs): Likewise.
15970 (sh_fix_range): Likewise.
15971 * config/sh/vxworks.h: Likewise.
15972 * config/sparc/sparc.c (sparc_option_override): Likewise.
15973 * config/spu/spu.c (spu_option_override): Likewise.
15974 (fix_range): Likewise.
15975 * config/visium/visium.c (visium_option_override): Likewise.
15976 (visium_handle_interrupt_attr): Likewise.
15977 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
15978 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
15979 (dbg_cnt_process_opt): Likewise.
15980 * dwarf2out.c (output_dwarf_version): Likewise.
15981 * except.c (expand_eh_return): Likewise.
15982 * gcc.c (defined): Likewise.
15983 (driver_handle_option): Likewise.
15984 (process_command): Likewise.
15985 (compare_files): Likewise.
15986 (driver::prepare_infiles): Likewise.
15987 (driver::do_spec_on_infiles): Likewise.
15988 (driver::maybe_run_linker): Likewise.
15989 * omp-offload.c (oacc_parse_default_dims): Likewise.
15990 * opts-global.c (handle_common_deferred_options): Likewise.
15991 * opts.c (parse_sanitizer_options): Likewise.
15992 (common_handle_option): Likewise.
15993 (enable_warning_as_error): Likewise.
15994 * passes.c (enable_disable_pass): Likewise.
15995 * plugin.c (parse_plugin_arg_opt): Likewise.
15996 (default_plugin_dir_name): Likewise.
15997 * targhooks.c (default_expand_builtin_saveregs): Likewise.
15998 (default_pch_valid_p): Likewise.
15999 * toplev.c (init_asm_output): Likewise.
16000 (process_options): Likewise.
16001 (toplev::run_self_tests): Likewise.
16002 * tree-cfg.c (verify_gimple_call): Likewise.
16003 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
16004 (tree_inlinable_function_p): Likewise.
16005 * var-tracking.c (vt_find_locations): Likewise.
16006
16007 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
16008
16009 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
16010 only on the else branch.
16011
16012 2019-03-11 Martin Liska <mliska@suse.cz>
16013
16014 * gcov.c (output_intermediate_json_line): Print function
16015 name of each line.
16016 (output_json_intermediate_file): Add new argument.
16017 * doc/gcov.texi: Document the change.
16018
16019 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
16020
16021 PR rtl-optimization/89588
16022 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16023 explicit unrolling factor more robust.
16024
16025 2019-03-11 Richard Biener <rguenther@suse.de>
16026
16027 PR tree-optimization/89649
16028 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
16029 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
16030 on the prolog and epilog loops.
16031 (vect_loop_versioning): Return copy of loop.
16032 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
16033 on the non-vectorized version of the loop.
16034
16035 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
16036
16037 PR target/68924
16038 * config/i386/sse.md (*vec_extractv2di_0_sse):
16039 Add (=r,x) alternative and corresponding splitter.
16040
16041 2019-03-10 Martin Jambor <mjambor@suse.cz>
16042
16043 PR tree-optimization/85762
16044 PR tree-optimization/87008
16045 PR tree-optimization/85459
16046 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
16047 it points to if there is a type changing MEM_REF. Adjust all callers.
16048 (build_accesses_from_assign): Disable total scalarization if
16049 contains_vce_or_bfcref_p returns true through the new parameter, for
16050 both rhs and lhs.
16051
16052 2019-03-09 Jakub Jelinek <jakub@redhat.com>
16053
16054 PR c/88568
16055 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
16056 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
16057
16058 PR target/79645
16059 * common.opt (fdiagnostics-show-labels,
16060 fdiagnostics-show-line-numbers, fdiagnostics-format=,
16061 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
16062 gas-locview-support, ginline-points, ginternal-reset-location-views):
16063 Terminate description text with a dot.
16064 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
16065 * config/mcore/mcore.opt (m210, m340): Likewise.
16066 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
16067 mnops=): Start description text with a capital letter.
16068 * config/arc/arc.opt (msize-level=): Likewise.
16069 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
16070 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
16071 mnewlib): Likewise.
16072 * config/ft32/ft32.opt (msim): Likewise.
16073 (mft32b, mcompress): Likewise. Terminate description text with a dot.
16074 (mnodiv, mnopm): Terminate description text with a dot.
16075 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
16076 a colon.
16077 * config/i386/i386.opt (prefer_vector_width, instrument_return):
16078 Likewise.
16079 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
16080 text.
16081
16082 PR rtl-optimization/89634
16083 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
16084 are modified in BB_END (e->src) instruction.
16085
16086 2019-03-08 David Malcolm <dmalcolm@redhat.com>
16087
16088 PR target/79926
16089 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
16090 messages more amenable to translation, and improve wording.
16091
16092 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
16093
16094 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
16095 ud- and du-chains between phases.
16096
16097 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
16098
16099 PR debug/89631
16100 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
16101 instead of POLY_INT_CST.
16102
16103 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
16104
16105 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
16106 requirement.
16107
16108 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
16109
16110 PR target/68924
16111 PR target/78782
16112 PR target/87558
16113 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
16114 (_mm_storeu_si64): Ditto.
16115
16116 2019-03-08 Martin Liska <mliska@suse.cz>
16117
16118 PR target/86952
16119 * config/i386/i386.c (ix86_option_override_internal): Disable
16120 jump tables when retpolines are used.
16121
16122 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
16123
16124 PR go/63560
16125 * ipa-split.c (execute_split_functions): Do not split
16126 'noinline' or 'section' function.
16127
16128 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16129
16130 PR target/79846
16131 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
16132 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
16133 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
16134
16135 PR ipa/80000
16136 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
16137 from diagnostics. Formatting fixes.
16138
16139 PR target/85665
16140 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
16141 warn_odr diagnostics.
16142
16143 PR other/80058
16144 * lra-constraints.c (process_alt_operands): Avoid one space before
16145 " at the end of line and another after " on another line in a string
16146 literal.
16147 * attribs.c (handle_dll_attribute): Likewise.
16148 * config/avr/avr-devices.c (avr_texinfo): Likewise.
16149
16150 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
16151 warning_at or inform messages in G_() if there is no ?:.
16152
16153 PR tree-optimization/89550
16154 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
16155 returned true. Formatting fixes.
16156 (expand_builtin_strnlen): Formatting fixes.
16157 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
16158 if warning_at returned true.
16159 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
16160
16161 2019-03-08 Richard Biener <rguenther@suse.de>
16162
16163 PR middle-end/89578
16164 * cfgloop.h (struct loop): Add owned_clique field.
16165 * cfgloopmanip.c (copy_loop_info): Copy it.
16166 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
16167 cliques.
16168 * tree-inline.c (copy_loops): Remap owned_clique.
16169 * lto-streamer-in.c (input_cfg): Stream owned_clique.
16170 * lto-streamer-out.c (output_cfg): Likewise.
16171
16172 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16173
16174 PR target/80190
16175 * config/darwin.c: Include intl.h.
16176 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
16177 composing the message out of two separate parts.
16178
16179 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16180
16181 PR target/80003
16182 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
16183 doesn't start with a capital letter and doesn't end with a dot.
16184 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
16185 with a capital letter.
16186 (ix86_mangle_function_version_assembler_name): Likewise.
16187 (ix86_generate_version_dispatcher_body): Likewise.
16188 (fold_builtin_cpu): Likewise.
16189 (get_builtin_code_for_version): Likewise. Remove extraneous space.
16190 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
16191 translators, wrap full type name in %qs.
16192
16193 PR translation/79999
16194 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
16195 depend clause with source (or sink) modifier.
16196 * omp-expand.c (expand_omp_ordered_sink): Likewise.
16197
16198 PR target/89602
16199 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
16200 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
16201 (avx512f_load<mode>_mask): New define_expand.
16202 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
16203 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
16204 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
16205 __builtin_ia32_movess_mask): New builtins.
16206 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
16207 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
16208 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
16209 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
16210
16211 2019-03-07 Martin Jambor <mjambor@suse.cz>
16212
16213 PR lto/87525
16214 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
16215 for extern inline functions.
16216
16217 2019-03-07 Martin Jambor <mjambor@suse.cz>
16218
16219 PR ipa/88235
16220 * cgraph.h (cgraph_node): New inline method former_thunk_p.
16221 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
16222 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
16223 have multiple callees. At the end check if declarations match as
16224 opposed to cgraph_nodes.
16225
16226 2019-03-07 Martin Liska <mliska@suse.cz>
16227
16228 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
16229 which is equivalent to searching for this in clones chain.
16230 * symtab.c (symtab_node::verify_base): Similarly compare ASM
16231 names with a neighbour and special case first node in a chain.
16232
16233 2019-01-25 Jason Merrill <jason@redhat.com>
16234
16235 PR c++/80916 - spurious "static but not defined" warning.
16236 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
16237 for an internal symbol with DECL_EXTERNAL.
16238
16239 2019-04-07 Richard Biener <rguenther@suse.de>
16240
16241 PR middle-end/89618
16242 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
16243 * tree-inline.c (copy_loops): Simplify.
16244
16245 2019-03-07 Martin Liska <mliska@suse.cz>
16246
16247 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
16248
16249 2019-03-07 Richard Biener <rguenther@suse.de>
16250
16251 PR tree-optimization/89595
16252 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
16253 stmt iterator as reference, take boolean output parameter to
16254 indicate whether the stmt was removed and thus the iterator
16255 already advanced.
16256 (dom_opt_dom_walker::before_dom_children): Re-iterate over
16257 stmts created by folding.
16258
16259 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16260
16261 PR c++/89585
16262 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
16263 at toplevel.
16264
16265 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
16266
16267 PR rtl-optimization/88845
16268 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
16269 LRA.
16270 * lra.c (remove_scratches_1): New function.
16271 (remove_scratches): Use it.
16272 (lra_emit_move): Likewise.
16273
16274 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
16275
16276 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16277 unaligned_access variable.
16278 * config/arc/arc.c (arc_override_options): Set unaligned access
16279 default on for HS CPUs.
16280 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16281
16282 2019-03-06 Martin Liska <mliska@suse.cz>
16283
16284 PR gcov-profile/89577
16285 * doc/gcov.texi: Prefer to use --coverage.
16286 * doc/sourcebuild.texi: Likewise.
16287
16288 2019-03-02 Jason Merrill <jason@redhat.com>
16289
16290 PR c++/86485 - -Wmaybe-unused with empty class ?:
16291 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16292
16293 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16294
16295 PR target/89587
16296 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16297 if_multiarch.
16298
16299 PR middle-end/89590
16300 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16301 exactly one argument.
16302
16303 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16304 Richard Sandiford <richard.sandiford@arm.com>
16305
16306 PR tree-optimization/89570
16307 * match.pd (vec_cond into cond_op simplification): Don't use
16308 get_conditional_internal_fn, use as_internal_fn (cond_op).
16309
16310 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16311
16312 PR target/89222
16313 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16314 to decide when to split off a non-zero offset from a symbol.
16315 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16316 in function symbols.
16317
16318 2019-03-05 Richard Biener <rguenther@suse.de>
16319
16320 PR tree-optimization/89594
16321 * tree-if-conv.c (pass_if_conversion::execute): Handle
16322 case where .LOOP_VECTORIZED_FUNCTION was removed.
16323
16324 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16325
16326 PR bootstrap/89560
16327 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16328 instead alloca it only when needed with the needed size.
16329
16330 PR tree-optimization/89570
16331 * match.pd (vec_cond into cond_op simplification): Guard with
16332 vectorized_internal_fn_supported_p test and #if GIMPLE.
16333
16334 PR tree-optimization/89566
16335 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16336 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16337 Punt if get_user_idx_format succeeds, but idx_format argument is
16338 not provided or doesn't have pointer type, or if idx_args is above
16339 number of provided arguments.
16340
16341 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16342
16343 PR tree-optimization/89437
16344 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16345
16346 2019-03-04 Richard Biener <rguenther@suse.de>
16347
16348 PR middle-end/89572
16349 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16350 safe_dyn_cast.
16351
16352 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16353
16354 PR tree-optimization/89487
16355 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16356 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16357 (distribute_loop): Don't do runtime alias check if there is non-
16358 addressable data reference.
16359 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16360 is a register variable.
16361
16362 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16363
16364 PR target/89506
16365 * config/arm/arm.md (cmpsi2_addneg): Use
16366 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16367 If operands[2] is 0 or INT_MIN, force use of subs.
16368 (*compare_scc splitter): Use gen_int_mode.
16369 (*negscc): Likewise.
16370 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16371
16372 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16373 Monk Chiang <sh.chiang04@gmail.com>
16374
16375 * common/config/riscv/riscv-common.c: Include sstream.
16376 (riscv_subset_list::to_string): New.
16377 (riscv_arch_str): Likewise.
16378 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16379 * config.in: Regen.
16380 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16381 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16382 (riscv_emit_attribute): New.
16383 (riscv_file_start): Emit attribute if needed.
16384 (riscv_option_override): Init riscv_emit_attribute_p.
16385 * config/riscv/riscv.opt (mriscv-attribute): New option.
16386 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16387 * configure: Regen.
16388 * doc/install.texi: Document --with-riscv-attribute.
16389 * doc/invoke.texi: Document -mriscv-attribute.
16390
16391 * common/config/riscv/riscv-common.c:
16392 Include config/riscv/riscv-protos.h.
16393 (INCLUDE_STRING): Defined.
16394 (RISCV_DONT_CARE_VERSION): Defined.
16395 (riscv_subset_t): Declare.
16396 (riscv_subset_t::riscv_subset_t): New.
16397 (riscv_subset_list): Declare.
16398 (riscv_subset_list::riscv_subset_list): New.
16399 (riscv_subset_list::~riscv_subset_list): Likewise.
16400 (riscv_subset_list::parsing_subset_version): Likewise.
16401 (riscv_subset_list::parse_std_ext): Likewise.
16402 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16403 (riscv_subset_list::add): Likewise.
16404 (riscv_subset_list::lookup): Likewise.
16405 (riscv_subset_list::xlen): Likewise.
16406 (riscv_subset_list::parse): Likewise.
16407 (riscv_supported_std_ext): Likewise.
16408 (current_subset_list): Likewise.
16409 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16410 parse.
16411
16412 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16413
16414 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16415 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16416 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16417
16418 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16419
16420 PR rtl-optimization/85899
16421 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16422 fallthru edges leading to the exit block.
16423
16424 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16425
16426 PR target/89517
16427 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16428 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16429
16430 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16431
16432 PR tree-optimization/89535
16433 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16434 for each operand. Calculate the fallback choice for mask operands
16435 and pass it to vect_get_vec_def_for_operand.
16436
16437 2019-03-01 Richard Biener <rguenther@suse.de>
16438
16439 PR middle-end/89541
16440 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16441 get virtual operands.
16442 (get_expr_operands): Handle CONST_DECL like other decls.
16443
16444 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16445
16446 PR middle-end/89503
16447 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16448 on DECL_P and EXPR_P.
16449
16450 2019-03-01 Richard Biener <rguenther@suse.de>
16451
16452 PR middle-end/89497
16453 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16454 argument, defaulted to zero.
16455 * passes.c (execute_function_todo): Pass down SSA update flags
16456 to cleanup_tree_cfg.
16457 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16458 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16459 form if requested.
16460 (cleanup_tree_cfg): Get and pass down SSA update flags.
16461
16462 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16463
16464 PR bootstrap/89539
16465 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16466 early_lto_debug argument.
16467
16468 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16469
16470 PR tree-optimization/89536
16471 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16472 only whether bit #0 of the value is 0 instead of the entire value.
16473
16474 2019-02-28 Marek Polacek <polacek@redhat.com>
16475
16476 PR c++/87068 - missing diagnostic with fallthrough statement.
16477 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16478 at the end of a seq, save its location to walk_stmt_info.
16479 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16480 a switch.
16481
16482 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16483
16484 PR lto/88585
16485 * tree.c (find_atomic_core_type): Move ahead in file.
16486 (check_base_type): Correctly compare alignments of atomic types.
16487
16488 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16489
16490 PR target/89455
16491 * config/i386/i386.c (get_builtin_code_for_version): Identify
16492 Westmere from PCLMUL, instead of AES.
16493
16494 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16495
16496 PR target/89434
16497 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16498 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16499 -UINTVAL (...).
16500
16501 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16502
16503 PR target/88530
16504 * config/aarch64/aarch64-option-extensions.def: Document it.
16505 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16506 if empty hwcaps.
16507
16508 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16509
16510 PR c/89520
16511 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16512 builtins if they don't have a single scalar floating point argument.
16513 Formatting fixes.
16514
16515 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16516
16517 PR rtl-optimization/89490
16518 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16519 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16520 block section is not mergeable.
16521
16522 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16523
16524 PR target/70341
16525 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16526 old define_insn to ...
16527 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16528 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16529 Rename old define_insn to ...
16530 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16531 (thumb2_casesi_internal_pic): New define_expand. Rename old
16532 define_insn to ...
16533 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16534 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16535 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16536
16537 2019-02-27 Richard Biener <rguenther@suse.de>
16538
16539 PR debug/88878
16540 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16541
16542 2019-02-27 Richard Biener <rguenther@suse.de>
16543
16544 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16545 building.
16546
16547 2019-02-27 Richard Biener <rguenther@suse.de>
16548
16549 PR debug/88878
16550 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16551 parameter, prefix section name with .gnu.debuglto_ if true.
16552 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16553 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16554
16555 2019-02-27 Richard Biener <rguenther@suse.de>
16556
16557 PR debug/89514
16558 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16559 rather than on use_debug_types, doing what output_die does.
16560 (value_format): Likewise.
16561
16562 2019-02-27 Martin Jambor <mjambor@suse.cz>
16563 Martin Sebor <msebor@redhat.com>
16564
16565 * doc/invoke.texi (Warning Options): Reword description of
16566 -Wno-absolute-value.
16567
16568 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16569
16570 PR tree-optimization/89280
16571 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16572 builtin_setjmp_setup_bb): New functions.
16573 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16574 When visiting __builtin_setjmp_setup block, queue in special
16575 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16576 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16577 from visited after the loop if they don't have any visited successor
16578 blocks.
16579
16580 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16581
16582 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16583 New function.
16584 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16585
16586 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16587
16588 PR c++/89507
16589 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16590 with types other than sizetype/ssizetype.
16591
16592 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16593
16594 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16595 (enum sparc_processor_type): ...this.
16596 (enum sparc_code_model_type): New enumeration type.
16597 (enum sparc_memory_model_type): Tweak comments.
16598 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16599 (mtune): Likewise.
16600 (mcmodel): Use sparc_code_model enumeration and variable.
16601 (sparc_code_model): New enumeration.
16602 (mdebug): Add Undocumented marker.
16603 * config/sparc/sparc.h (enum cmodel): Delete.
16604 (sparc_cmodel): Likewise.
16605 (TARGET_CM_MEDLOW): Adjust to above renaming.
16606 (TARGET_CM_MEDMID): Likewise.
16607 (TARGET_CM_MEDANY): Likewise.
16608 (TARGET_CM_EMBMEDANY): Likewise.
16609 * config/sparc/sparc.c (sparc_cmodel): Delete.
16610 (sparc_option_override): Remove string/value mapping support for the
16611 code model. Move code and memory model support to after the handling
16612 of target flags. Do private machine setup last.
16613 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
16614 (sparc_legitimize_reload_address): Likewise.
16615 (sparc_output_mi_thunk): Likewise.
16616 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
16617
16618 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16619
16620 PR tree-optimization/89500
16621 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
16622 (handle_builtin_strlen): Remove noncst_bound variable. Always
16623 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
16624 cst if the first cst bytes starting at x are known to be non-zero,
16625 even if the string is not zero terminated. Don't try to modify
16626 *si for strnlen. Update strlen_to_stridx only for strlen or if
16627 we can prove strnlen returns the same value as strlen would.
16628
16629 2019-02-26 Martin Liska <mliska@suse.cz>
16630
16631 * alloc-pool.h (struct pool_usage): Remove extra
16632 print_dash_line.
16633 * bitmap.h (struct bitmap_usage): Likewise.
16634 * ggc-common.c (struct ggc_usage): Likewise.
16635 * mem-stats.h (struct mem_usage): Likewise.
16636 (mem_alloc_description::dump): Print dash lines
16637 here and repeat header at the end of a table report.
16638 It's then more readable.
16639 * tree-phinodes.c (phinodes_print_statistics): Make
16640 horizontal alignment.
16641 * tree-ssanames.c (ssanames_print_statistics): Likewise.
16642 * vec.c (struct vec_usage): Remove extra print_dash_line.
16643 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
16644
16645 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
16646
16647 * doc/extend.texi (__builtin_object_size):
16648 Use @pxref instead of @xref inside parenthesis.
16649 (__builtin_has_attribute): Add missing comma after @xref.
16650 (__builtin_object_size): Ditto.
16651 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
16652
16653 2019-02-26 Jeff Law <law@redhat.com>
16654
16655 PR rtl-optimization/87761
16656 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
16657 detect obviously dead insns and delete them.
16658
16659 2019-02-26 Richard Biener <rguenther@suse.de>
16660
16661 PR tree-optimization/89505
16662 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
16663 to handle restrict pointed-to vars with multiple subvars
16664 correctly.
16665
16666 2019-02-26 Richard Biener <rguenther@suse.de>
16667
16668 PR tree-optimization/89489
16669 * tree-parloops.c (create_loop_fn): Copy over last_clique.
16670
16671 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16672
16673 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
16674 and move around comment.
16675 <BIT_AND_EXPR>: Likewise.
16676 <BIT_NOT_EXPR>: Add specific handling for boolean types.
16677
16678 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16679
16680 PR target/89474
16681 * config/i386/i386.c (remove_partial_avx_dependency): Call
16682 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
16683 after changing possibly many instructions to use that pseudo. Fix up
16684 insertion of v4sf_const0 setter at the start of bb.
16685
16686 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16687
16688 PR c/80409
16689 * doc/extend.texi (Variadic Pointer Args): New section.
16690
16691 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16692 Martin Sebor <msebor@gmail.com>
16693
16694 * common.opt (Wattribute-alias): Likewise.
16695 * doc/invoke.texi (Option Summary): List general form of
16696 -Wattribute-alias=. List positive form of -Wmissing-attributes.
16697 (-Wmissing-attributes): Invert entry, rewrite and correct default.
16698 Add cross-references.
16699 (-Wattribute-alias): Rewrite and correct default. Mention
16700 considered attributes (same as for -Wmissing-attributes).
16701
16702 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
16703
16704 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
16705 (_mm_cvtpd_ps): Likewise.
16706 (_mm_cvttpd_epi32): Likewise.
16707
16708 PR target/89338
16709 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
16710 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
16711
16712 PR target/89339
16713 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
16714
16715 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16716
16717 PR target/88530
16718 * common/config/aarch64/aarch64-common.c
16719 (struct aarch64_option_extension): Add is_synthetic.
16720 (all_extensions): Use it.
16721 (TARGET_OPTION_INIT_STRUCT): Define hook.
16722 (struct gcc_targetm_common): Moved to end.
16723 (all_extensions_by_on): New.
16724 (opt_ext_cmp, typedef opt_ext): New.
16725 (aarch64_option_init_struct): New.
16726 (aarch64_contains_opt): New.
16727 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
16728 * config/aarch64/aarch64-option-extensions.def
16729 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
16730 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
16731 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
16732 Set is_synthetic to false.
16733 (crypto): Set is_synthetic to true.
16734 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
16735 SYNTHETIC.
16736
16737 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16738
16739 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16740 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
16741 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16742 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
16743 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
16744 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
16745 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
16746 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
16747 Rename ...
16748 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
16749 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16750 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
16751 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
16752 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
16753 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
16754 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
16755 vfmlsl_laneq_high_f16): ... To this.
16756 * config/arm/neon.md: Update comments.
16757
16758 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16759
16760 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16761 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
16762 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16763 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
16764 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
16765 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
16766 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
16767 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
16768 Rename ...
16769 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
16770 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16771 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
16772 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
16773 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
16774 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
16775 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
16776 vfmlslq_laneq_high_f16): ... To this.
16777
16778 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
16779
16780 PR rtl-optimization/86096
16781 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
16782 comparing mw_order values.
16783
16784 2019-02-25 Jakub Jelinek <jakub@redhat.com>
16785
16786 PR target/89434
16787 * config/arm/arm.md (*subsi3_carryin_const): Use
16788 arm_neg_immediate_operand predicate instead of
16789 arm_not_immediate_operand, "L" constraint instead of "K" and
16790 print it using %n2 instead of %B2.
16791 (*subsi3_carryin_const0): New define_insn.
16792 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
16793 instead of arm_not_operand and "I" constraint instead of "K" and
16794 print it using %n3 instead of %B2. Instead of using match_dup 2 add
16795 another match_operand and in the condition check that it is negation
16796 of operands[2].
16797 (*subsi3_carryin_compare_const0): New define_ins.
16798 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
16799 *subsi3_carryin_const.
16800 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
16801 split into *subsi3_carryin_compare_const0 if the highpart is zero.
16802
16803 PR target/89438
16804 * config/arm.vfp.md (*negdf2_vfp): Use
16805 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
16806 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
16807
16808 2019-02-24 Jakub Jelinek <jakub@redhat.com>
16809
16810 PR rtl-optimization/89445
16811 * simplify-rtx.c (simplify_ternary_operation): Don't use
16812 simplify_merge_mask on operands that may trap.
16813 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
16814 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
16815 second operand is CONST_VECTOR, check if any element could be zero.
16816 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
16817 their operands can trap.
16818
16819 2019-02-23 Martin Sebor <msebor@redhat.com>
16820
16821 * gimple-ssa-sprintf.c (target_strtol): Rename...
16822 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
16823 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
16824 check for range error.
16825
16826 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
16827
16828 PR driver/69471
16829 * opts-common.c (prune_options): Also prune joined switches
16830 with Negative and RejectNegative.
16831 * config/i386/i386.opt (march=): Add Negative(march=).
16832 (mtune=): Add Negative(mtune=).
16833 * doc/options.texi: Document Negative used together with Joined
16834 and RejectNegative.
16835
16836 2019-02-22 Martin Sebor <msebor@redhat.com>
16837
16838 * doc/extend.texi (Other Builtins): Add
16839 __builtin_is_constant_evaluated.
16840
16841 2019-02-22 Richard Biener <rguenther@suse.de>
16842
16843 PR tree-optimization/87609
16844 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
16845
16846 2019-02-22 Jeff Law <law@redhat.com>
16847
16848 PR rtl-optimization/87761
16849 * config/mips/mips.md: Add new combiner pattern to recognize
16850 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
16851
16852 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
16853
16854 PR target/89324
16855 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
16856 destination register in peepholes generating patterns for ADDS/SUBS.
16857 (add<mode>3_compare0,
16858 *addsi3_compare0_uxtw, add<mode>3_compareC,
16859 add<mode>3_compareV_imm, add<mode>3_compareV,
16860 *adds_<optab><ALLX:mode>_<GPI:mode>,
16861 *subs_<optab><ALLX:mode>_<GPI:mode>,
16862 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
16863 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
16864 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
16865 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
16866 sub<mode>3_compare1): Allow stack pointer for source register.
16867 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
16868
16869 2019-02-22 Martin Sebor <msebor@redhat.com>
16870
16871 PR tree-optimization/88993
16872 PR tree-optimization/88853
16873 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
16874 New helper.
16875 (sprintf_dom_walker::call_info::is_string_func): New helper.
16876 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
16877 for formatted string functions.
16878 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
16879
16880 2019-02-22 Martin Sebor <msebor@redhat.com>
16881
16882 PR c/89425
16883 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
16884 unreachable subexpressions.
16885
16886 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
16887 Hongtao Liu <hongtao.liu@intel.com>
16888 Sunil K Pandey <sunil.k.pandey@intel.com>
16889
16890 PR target/87007
16891 * config/i386/i386-passes.def: Add
16892 pass_remove_partial_avx_dependency.
16893 * config/i386/i386-protos.h
16894 (make_pass_remove_partial_avx_dependency): New.
16895 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
16896 New function.
16897 (pass_data_remove_partial_avx_dependency): New.
16898 (pass_remove_partial_avx_dependency): Likewise.
16899 (make_pass_remove_partial_avx_dependency): Likewise.
16900 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
16901 (*extendsfdf2): Add avx_partial_xmm_update.
16902 (truncdfsf2): Likewise.
16903 (*float<SWI48:mode><MODEF:mode>2): Likewise.
16904 (SF/DF conversion splitters): Disabled for TARGET_AVX.
16905
16906 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
16907
16908 PR middle-end/85598
16909 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
16910 analysis for pass.
16911
16912 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
16913
16914 PR target/89444
16915 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
16916 (PTA_SKYLAKE): Add PTA_AES.
16917 (PTA_GOLDMONT): Likewise.
16918
16919 2019-02-22 Sudakshina Das <sudi.das@arm.com>
16920
16921 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
16922 instruction if enabled.
16923 (aarch64_override_options): Remove reference to return address key.
16924
16925 2019-02-22 Richard Biener <rguenther@suse.de>
16926
16927 PR tree-optimization/89440
16928 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16929 not necessary assert.
16930
16931 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
16932
16933 PR fortran/72741
16934 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
16935 (oacc_replace_fn_attrib_attr): ... this new function.
16936 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
16937 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
16938
16939 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16940
16941 * config/arm/arm-cpus.in (ares): Rename to...
16942 (neoverse-n1): ... This. Add ares as alias.
16943 * config/arm/arm-tables.opt: Regenerate.
16944 * config/arm/arm-tune.md: Likewise.
16945 * doc/invoke.txt (ARM Options): Document neoverse-n1.
16946
16947 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16948
16949 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
16950 * config/aarch64/aarch64-tune.md: Regenerate.
16951 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
16952
16953 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16954
16955 * config/aarch64/aarch64.c (ares_tunings): Rename to...
16956 (neoversen1_tunings): ... This.
16957 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
16958 (neoverse-n1): New CPU.
16959 * config/aarch64/aarch64-tune.md: Regenerate.
16960 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
16961
16962 2019-02-22 Richard Biener <rguenther@suse.de>
16963
16964 PR middle-end/87609
16965 * cfghooks.h (dependence_hash): New typedef.
16966 (struct copy_bb_data): New type.
16967 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
16968 (duplicate_block): Likewise.
16969 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
16970 (copy_bbs): Create and pass down copy_bb_data.
16971 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
16972 (rtl_duplicate_bb): Likewise.
16973 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
16974 remap dependence info.
16975
16976 2019-02-22 Richard Biener <rguenther@suse.de>
16977
16978 PR tree-optimization/87609
16979 * tree-core.h (tree_base): Document special clique values.
16980 * tree-inline.c (remap_dependence_clique): Do not use the
16981 special clique value of one.
16982 (maybe_set_dependence_info): Use clique one.
16983 (clear_dependence_clique): New callback.
16984 (compute_dependence_clique): Clear clique one from all refs
16985 before assigning it (again).
16986
16987 2019-02-21 Martin Sebor <msebor@redhat.com>
16988
16989 * doc/extend.texi (__clear_cache): Correct signature.
16990
16991 2019-02-21 Ian Lance Taylor <iant@golang.org>
16992
16993 PR go/89170
16994 * varasm.c (decode_addr_const): Call lookup_constant_def rather
16995 than output_constant_def.
16996 (add_constant_to_table): New static function.
16997 (output_constant_def): Call add_constant_to_table.
16998 (tree_output_constant_def): Likewise.
16999
17000 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17001
17002 PR c++/89285
17003 * builtins.c (fold_builtin_arith_overflow): If first two args are
17004 INTEGER_CSTs, set intres and ovfres to constants rather than calls
17005 to ifn.
17006
17007 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
17008
17009 PR target/87412
17010 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
17011 error for -mindirect-branch/-mfunction-return with incompatible
17012 -fcf-protection.
17013
17014 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17015
17016 PR bootstrap/88714
17017 * constraints.md (q): Remove.
17018 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
17019 instead of q.
17020
17021 2019-02-21 Martin Jambor <mjambor@suse.cz>
17022
17023 PR hsa/89302
17024 * omp-general.c (omp_extract_for_data): Removed a duplicate call
17025 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
17026 (omp_adjust_for_condition): ...here. Added necessary parameters.
17027 * omp-general.h (omp_adjust_for_condition): Updated declaration.
17028 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
17029 proper values to new parameters of omp_adjust_for_condition.
17030
17031 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17032
17033 PR middle-end/89412
17034 * expr.c (expand_assignment): If result is a MEM, use change_address
17035 instead of simplify_gen_subreg.
17036
17037 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17038 David Malcolm <dmalcolm@redhat.com>
17039
17040 PR middle-end/89091
17041 * fold-const.c (decode_field_reference): Return NULL_TREE if
17042 lang_hooks.types.type_for_size returns NULL. Check it before
17043 overwriting *exp_. Use return NULL_TREE instead of return 0.
17044
17045 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17046
17047 PR middle-end/88074
17048 PR middle-end/89415
17049 * toplev.c (do_compile): Double the emin/emax exponents to workaround
17050 buggy mpc_norm.
17051
17052 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
17053
17054 PR target/89397
17055 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
17056 TARGET_SSE in addition to TARGET_SSE_MATH.
17057
17058 (ix86_excess_precision): Ditto.
17059 (ix86_float_exceptions_rounding_supported_p): Ditto.
17060 (use_rsqrt_p): Ditto.
17061 * config/i386/sse.md (rsqrt<mode>2): Ditto.
17062
17063 2019-02-20 David Malcolm <dmalcolm@redhat.com>
17064
17065 PR c/89410
17066 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
17067 linenum_arith_t when determining if two adjacent line spans are
17068 close enough to merge.
17069 (diagnostic_show_locus): Use linenum_arith_t when iterating over
17070 lines within each line_span.
17071
17072 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17073
17074 PR target/86487
17075 * lra-constraints.c(uses_hard_regs_p): Fix handling of
17076 paradoxical SUBREGS.
17077
17078 2019-02-20 Li Jia He <helijia@linux.ibm.com>
17079
17080 PR target/88100
17081 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
17082 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
17083 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
17084 range checking it.
17085
17086 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
17087
17088 * config/gcn/gcn.c (print_operand): Fix typo.
17089
17090 2019-02-19 Richard Biener <rguenther@suse.de>
17091
17092 PR middle-end/88074
17093 * toplev.c (do_compile): Initialize mpfr's exponent range
17094 based on available float modes.
17095
17096 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
17097
17098 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
17099 as long as the epilogue isn't completed.
17100
17101 2019-02-18 Martin Sebor <msebor@redhat.com>
17102
17103 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
17104 __has_cpp_attribute, and __has_include.
17105
17106 2019-02-18 Martin Sebor <msebor@redhat.com>
17107
17108 * doc/invoke.texi (-Wreturn-type): Correct and expand.
17109
17110 2019-02-18 Martin Sebor <msebor@redhat.com>
17111
17112 PR middle-end/89294
17113 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
17114 expression.
17115 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
17116
17117 2019-02-18 Richard Biener <rguenther@suse.de>
17118
17119 PR tree-optimization/89296
17120 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
17121 of no-warning flag to cases that might emit the bogus warning.
17122
17123 2019-02-18 Jakub Jelinek <jakub@redhat.com>
17124
17125 PR bootstrap/88714
17126 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
17127 "q" constraint.
17128 * config/arm/vfp.md (*movdi_vfp): Likewise.
17129 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
17130 "q" constraint for operands[0].
17131
17132 PR target/89369
17133 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
17134 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
17135 pattern in a temporary buffer.
17136 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
17137 than 64-operands[2].
17138
17139 PR target/89361
17140 * config/s390/s390.c (s390_indirect_branch_attrvalue,
17141 s390_indirect_branch_settings): Define unconditionally.
17142 (s390_set_current_function): Likewise, but guard the whole body except
17143 the s390_indirect_branch_settings call with
17144 #if S390_USE_TARGET_ATTRIBUTE.
17145 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
17146
17147 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
17148 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
17149 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
17150 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
17151 HOST_WIDE_INT_1U instead of 1ULL.
17152 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
17153 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
17154 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
17155 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
17156 instead of 1UL.
17157 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
17158 instead of 1ul.
17159
17160 2019-02-18 Martin Jambor <mjambor@suse.cz>
17161
17162 PR tree-optimization/89209
17163 * tree-sra.c (create_access_replacement): New optional parameter
17164 reg_tree. Use it as a type if non-NULL and access type is not of
17165 a register type.
17166 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
17167 to create_access_replacement.
17168 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
17169 Check lacc is non-NULL before attempting to re-create it on the RHS.
17170
17171 2019-02-18 Martin Liska <mliska@suse.cz>
17172
17173 PR ipa/89306
17174 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
17175 by default.
17176 (symbol_table::free_edge): Recycle m_summary_id.
17177 * cgraph.h (get_summary_id): New.
17178 (symbol_table::release_symbol): Set m_summary_id to -1
17179 by default.
17180 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
17181 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
17182 function_summary to fast_function_summary.
17183 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
17184 * ipa-pure-const.c (class funct_state_summary_t):
17185 Switch from function_summary to fast_function_summary.
17186 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
17187 (class ipa_ref_opt_summary_t): Switch from function_summary
17188 to fast_function_summary.
17189 * symbol-summary.h (class function_summary_base): New class
17190 that is created from base of former function_summary.
17191 (function_summary_base::unregister_hooks): New.
17192 (class function_summary): Inherit from function_summary_base.
17193 (class call_summary_base): New class
17194 that is created from base of former call_summary.
17195 (class call_summary): Inherit from call_summary_base.
17196 (struct is_same): New.
17197 (class fast_function_summary): New summary class.
17198 (class fast_call_summary): New summary class.
17199 * vec.h (vec_safe_grow_cleared): New function.
17200
17201 2019-02-18 Martin Liska <mliska@suse.cz>
17202
17203 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
17204 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
17205 * doc/tm.texi: Document new target hook.
17206 * doc/tm.texi.in: Likewise.
17207 * target.def: Add new target macro.
17208 * gcc.c (find_fortran_preinclude_file): Do not search multilib
17209 suffixes.
17210
17211 2019-02-17 Alan Modra <amodra@gmail.com>
17212
17213 PR target/89271
17214 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
17215 output reg on add insn.
17216 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
17217
17218 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17219
17220 PR target/89372
17221 * config/i386/sse.md (ssedoublemode): Remove V4HI.
17222 (PMULHRSW): Likewise.
17223 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
17224 TARGET_AVX2.
17225 (ssse3_pmulhrswv4hi3): New expander.
17226
17227 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17228
17229 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
17230 MMX. Add isa attribute.
17231
17232 2019-02-16 Jakub Jelinek <jakub@redhat.com>
17233
17234 PR rtl-optimization/66152
17235 * builtins.h (c_readstr): Declare.
17236 * builtins.c (c_readstr): Remove forward declaration. Add
17237 null_terminated_p argument, if false, read all bytes from the
17238 string instead of stopping after '\0'.
17239 * expr.c (string_cst_read_str): New function.
17240 (store_expr): Use string_cst_read_str instead of
17241 builtin_strncpy_read_str. Try to store by pieces the whole
17242 exp_len first, and only if that fails, split it up into
17243 store by pieces followed by clear_storage. Formatting fix.
17244
17245 * config/i386/i386.md (*movqi_internal): Remove static from
17246 buf variable. Use output_asm_insn (buf, operands); return "";
17247 instead of return buf;.
17248 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
17249 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
17250 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
17251
17252 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17253
17254 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
17255 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
17256 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
17257 (CC1_SPEC): Likewise.
17258 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
17259
17260 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17261
17262 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
17263 the base address on 64-bit strict-alignment platforms.
17264
17265 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
17266
17267 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
17268
17269 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17270
17271 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
17272
17273 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
17274
17275 PR rtl-optimization/88308
17276 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17277 on copied instruction.
17278
17279 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17280
17281 * final.c (insn_current_reference_address): Replace test on JUMP_P
17282 with test on jump_to_label_p.
17283 * config/visium/visium-passes.def: New file.
17284 * config/visium/t-visium (PASSES_EXTRA): Define.
17285 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17286 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17287 (TRAMPOLINE_ALIGNMENT): Define.
17288 * config/visium/visium.c (visium_option_override): Do not register
17289 the machine-specific reorg pass here.
17290 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17291 for the GR6.
17292 (output_branch): Adjust threshold for long branch instruction.
17293 * config/visium/visium.md (cpu): Move around.
17294 (length): Adjust for the GR6.
17295
17296 2019-02-15 Richard Biener <rguenther@suse.de>
17297 Jakub Jelinek <jakub@redhat.com>
17298
17299 PR tree-optimization/89278
17300 * tree-loop-distribution.c: Include tree-eh.h.
17301 (generate_memset_builtin, generate_memcpy_builtin): Call
17302 rewrite_to_non_trapping_overflow on builtin->size before passing it
17303 to force_gimple_operand_gsi.
17304
17305 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17306
17307 PR other/89342
17308 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17309 optimize_debug.
17310 * opth-gen.awk: Likewise.
17311
17312 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17313
17314 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17315 Enable MMX, SSE and SSE2 by default.
17316 * config/i386/i386.c (ix86_option_override_internal): Do not
17317 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17318
17319 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17320
17321 PR rtl-optimization/89354
17322 * combine.c (make_extraction): Punt if extraction_mode is narrower
17323 than len bits.
17324
17325 2019-02-14 Maya Rashish <coypu@sdf.org>
17326
17327 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17328 * config/netbsd-d.c: New file.
17329 * config/t-netbsd: Add netbsd-d.o
17330
17331 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17332
17333 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17334 affects_type_identity to true for aarch64_vector_pcs.
17335 (aarch64_comp_type_attributes): New function.
17336 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17337
17338 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17339
17340 PR target/88850
17341 * config/arm/iterators.md (ANY64): Add V4HF.
17342
17343 2019-02-14 Martin Liska <mliska@suse.cz>
17344
17345 PR rtl-optimization/89242
17346 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17347 process a transformation.
17348
17349 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17350
17351 PR tree-optimization/89314
17352 * fold-const.c (fold_binary_loc): Cast strlen argument to
17353 const char * before dereferencing it. Formatting fixes.
17354
17355 PR middle-end/89284
17356 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17357
17358 2019-02-13 Ian Lance Taylor <iant@golang.org>
17359
17360 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17361 and set current index for other optimizations.
17362
17363 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17364
17365 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17366 nonimmediate_operand as operand 2 predicate.
17367 (vec_set<VF2_512_256:mode>_0): Ditto.
17368 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17369 (*vec_concatv2si): Remove alternative 2.
17370 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17371 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17372 (vec_concatv2di): Split alternatives 4,5,6 to ...
17373 (*vec_concatv2di_0) ... new pattern.
17374
17375 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17376
17377 PR target/89190
17378 * config/arm/arm.c (ldm_stm_operation_p) Set
17379 addr_reg_in_reglist correctly for first register.
17380 (load_multiple_sequence): Remove dead base check.
17381 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17382
17383 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17384
17385 PR target/88847
17386 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17387 Expose as @aarch64_pred_mov.
17388 * config/aarch64/aarch64.c (aarch64_classify_address):
17389 Use expand_insn which legitimizes operands.
17390
17391 2019-02-13 Martin Liska <mliska@suse.cz>
17392
17393 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17394 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17395 and pointer_offset fields.
17396 (initialize_argument_information): Remove usage of dead
17397 fields.
17398 * cgraph.h (struct cgraph_thunk_info): Remove
17399 add_pointer_bounds_args.
17400 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17401 fields.
17402 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17403 fields.
17404 * config/i386/i386.c (ix86_function_arg_advance): Remove
17405 unrelated comment.
17406 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17407 (def_builtin): Remove usage of dead fields.
17408 (ix86_add_new_builtins): Likewise.
17409 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17410 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17411 (sem_function::init): Likewise.
17412 (sem_variable::merge): Likewise.
17413 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17414 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17415 * lto-cgraph.c (lto_output_node): Likewise.
17416 (lto_output_varpool_node): Likewise.
17417 (input_node): Likewise.
17418 (input_varpool_node): Likewise.
17419 * lto-streamer-out.c (lto_output): Likewise.
17420 * tree-inline.c (expand_call_inline): Remove usage of
17421 assign_stmts.
17422 * tree-inline.h (struct copy_body_data): Likewise.
17423 * varpool.c (varpool_node::dump): Likewise.
17424
17425 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17426
17427 PR middle-end/89303
17428 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17429 into pt->vars_contains_escaped_heap instead of setting
17430 pt->vars_contains_escaped_heap to it.
17431
17432 PR middle-end/89281
17433 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17434 INTVAL (size), compare it to GET_MODE_MASK instead of
17435 1 << GET_MODE_BITSIZE.
17436
17437 PR target/89290
17438 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17439 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17440 -mcmodel=large.
17441
17442 2019-02-13 Martin Liska <mliska@suse.cz>
17443
17444 PR lto/88858
17445 * cfgrtl.c (remove_barriers_from_footer): New function.
17446 (try_redirect_by_replacing_jump): Use it.
17447 (cfg_layout_redirect_edge_and_branch): Likewise.
17448
17449 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17450
17451 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17452 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17453 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17454 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17455 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17456 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17457 New BU_CRYPTO_2.
17458 * config/rs6000/rs6000.c (builtin_function_type)
17459 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17460 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17461 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17462 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17463 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17464
17465 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17466
17467 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17468 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17469
17470 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17471
17472 PR target/89229
17473 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17474 268678 and revision 268657.
17475 (*movti_internal): Likewise.
17476
17477 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17478
17479 PR target/89233
17480 * config/s390/s390.c (s390_decompose_address): Update comment.
17481 (s390_check_qrst_address): Reject invalid address forms after
17482 LRA.
17483
17484 2019-02-12 Martin Liska <mliska@suse.cz>
17485
17486 PR lto/88876
17487 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17488 we need default values of funct_state for a function that
17489 is not optimized.
17490
17491 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17492
17493 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17494 the object to pick the size of stores on strict-alignment platforms.
17495
17496 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17497 (*movdi_insn_sp32): Likewise.
17498 (*movdi_insn_sp64): Likewise.
17499
17500 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17501
17502 PR lto/88677
17503 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17504 types that needs constructiong.
17505 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17506
17507 2019-02-12 Richard Biener <rguenther@suse.de>
17508
17509 PR tree-optimization/89253
17510 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17511 duplicate the loop.
17512
17513 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17514
17515 PR lto/88147
17516 * input.c (selftest::test_line_offset_overflow): New selftest.
17517 (selftest::input_c_tests): Call it.
17518
17519 2019-02-11 Martin Sebor <msebor@redhat.com>
17520
17521 PR tree-optimization/88771
17522 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17523 when -Wstringop-overflow is set.
17524 (builtin_memref::builtin_memref): Adjust excessive upper bound
17525 only when lower bound is not excessive.
17526 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17527 -Wstringop-ovefflow.
17528 (maybe_diag_offset_bounds): Rename...
17529 (maybe_diag_access_bounds): ...to this.
17530 (check_bounds_or_overlap): Adjust for name change above.
17531
17532 2019-02-11 Martin Sebor <msebor@redhat.com>
17533
17534 PR c++/87996
17535 * builtins.c (max_object_size): Move from here...
17536 * builtins.h (max_object_size): ...and here...
17537 * tree.c (max_object_size): ...to here...
17538 * tree.h (max_object_size): ...and here.
17539
17540 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17541
17542 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17543 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17544 for correct semantics.
17545
17546 2019-02-11 Alan Modra <amodra@gmail.com>
17547
17548 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17549 -mlongcall and -mpltseq.
17550 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17551 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17552 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17553 * config/rs6000/sysv4.opt (mpltseq): New option.
17554 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17555 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17556 support is lacking. Don't allow -mpltseq with -mbss-plt.
17557 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17558 -mpltseq given for ELFv1.
17559 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17560 Only use UNSPEC_PLTSEQ for inline PLT calls.
17561 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17562 use UNSPEC_PLTSEQ for inline PLT calls.
17563 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17564 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17565 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17566 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17567 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17568 (pltseq_mtctr_<mode>): Likewise.
17569
17570 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17571
17572 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17573 Solaris ld.
17574 * configure: Regenerate.
17575
17576 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17577
17578 PR bootstrap/88714
17579 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17580 instead of r.
17581
17582 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17583
17584 * function.c (assign_parm_setup_block): Use the stored
17585 size, not the passed size, when allocating stack-space,
17586 also for a parameter with alignment larger than
17587 MAX_SUPPORTED_STACK_ALIGNMENT.
17588
17589 2019-02-11 Martin Liska <mliska@suse.cz>
17590
17591 PR ipa/89009
17592 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17593 * ipa-inline.c (inline_small_functions): Likewise.
17594 * ipa-pure-const.c (propagate_pure_const): Likewise.
17595 (propagate_nothrow): Likewise.
17596 * ipa-reference.c (propagate): Likewise.
17597 * ipa-utils.c (struct searchc_env): Remove unused field.
17598 (searchc): Always search across AVAIL_INTERPOSABLE.
17599 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17600 the only called IPA pure const can properly not propagate
17601 across interposable boundary.
17602 * ipa-utils.h (ipa_reduced_postorder): Remove param.
17603
17604 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
17605
17606 * config/nds32/nds32.md (call_internal, call_value_internal,
17607 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
17608
17609 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17610
17611 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
17612 typo.
17613
17614 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
17615
17616 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
17617 in comments
17618
17619 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17620
17621 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
17622
17623 2019-02-10 Jakub Jelinek <jakub@redhat.com>
17624
17625 PR tree-optimization/89268
17626 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
17627 if preds is non-NULL.
17628
17629 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17630
17631 PR lto/89272
17632 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
17633 polymorphic types.
17634
17635 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17636
17637 * config/nds32/nds32.md (trap): New pattern.
17638
17639 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17640
17641 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
17642 dwarf span.
17643
17644 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17645
17646 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
17647 to split POST_INC.
17648
17649 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17650
17651 * ipa-visibility.c (localize_node): Also do not localize
17652 LDPR_PREVAILING_DEF_IRONLY_EXP.
17653
17654 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17655
17656 PR lto/87957
17657 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
17658 instead of type_with_linkage.
17659
17660 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17661
17662 PR ipa/88755
17663 * params.def (uninlined-function-insns, uninlined-function-time,
17664 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
17665 bound so we don't get overflows.
17666
17667 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
17668
17669 * config/rs6000/rs6000-string.c (expand_compare_loop,
17670 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
17671 memcmp/strncmp.
17672
17673 2019-02-09 Jakub Jelinek <jakub@redhat.com>
17674
17675 PR middle-end/89246
17676 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17677 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
17678 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
17679
17680 2019-02-09 Alan Modra <amodra@gmail.com>
17681
17682 PR target/88343
17683 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
17684 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
17685 setup.
17686
17687 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
17688
17689 PR middle-end/88560
17690 * lra-constraints.c (process_alt_operands): Don't increase reject
17691 for memory when offset memory is required.
17692
17693 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
17694
17695 * config/s390/vector.md: Implement vector copysign.
17696
17697 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17698
17699 * expr.c (expand_constructor): Correct indentations.
17700
17701 2019-02-08 Richard Biener <rguenther@suse.de>
17702
17703 PR tree-optimization/89247
17704 * tree-if-conv.c: Include tree-cfgcleanup.h.
17705 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
17706 (tree_if_conversion): Pass through predicate vector.
17707 (pass_if_conversion::execute): Do CFG cleanup and SSA update
17708 inline, see if any if-converted loops we refrece in
17709 LOOP_VECTORIZED calls vanished and fixup.
17710 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
17711
17712 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
17713
17714 * config/s390/constraints.md (jdd): New constraint.
17715
17716 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17717
17718 PR target/89229
17719 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
17720 upper 16 vector registers without TARGET_AVX512VL.
17721 (*movti_internal): Likewise.
17722
17723 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17724
17725 PR rtl-optimization/89234
17726 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
17727 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
17728 (copy_reg_eh_region_note_backward): Likewise.
17729
17730 2019-02-08 Richard Biener <rguenther@suse.de>
17731
17732 PR middle-end/89223
17733 * tree-data-ref.c (initialize_matrix_A): Fail if constant
17734 doesn't fit in HWI.
17735 (analyze_subscript_affine_affine): Handle failure from
17736 initialize_matrix_A.
17737
17738 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17739
17740 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
17741 cfun everywhere.
17742
17743 2019-02-07 David Malcolm <dmalcolm@redhat.com>
17744
17745 PR tree-optimization/86637
17746 PR tree-optimization/89235
17747 * tree-vect-loop.c (optimize_mask_stores): Add an
17748 auto_purge_vect_location sentinel to ensure that vect_location is
17749 purged on exit.
17750 * tree-vectorizer.c
17751 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
17752 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
17753 to ensure that vect_location is purged on exit.
17754 (pass_slp_vectorize::execute): Likewise, replacing the manual
17755 reset.
17756 * tree-vectorizer.h (class auto_purge_vect_location): New class.
17757
17758 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17759
17760 * config/aarch64/iterators.md (max_opp): New code_attr.
17761 (USMAX): New code iterator.
17762 * config/aarch64/predicates.md (aarch64_smin): New predicate.
17763 (aarch64_smax): Likewise.
17764 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
17765 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
17766 MINUS (MAX MIN).
17767
17768 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
17769
17770 PR target/89229
17771 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
17772 for TARGET_AVX512VL.
17773 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
17774
17775 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
17776
17777 * config/s390/s390-builtin-types.def: Add new types.
17778 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
17779 (s390_vec_xlw4): Make the memory operand into a const pointer.
17780 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
17781 float.
17782 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
17783 a new vector type with the alignment of the scalar memory operand.
17784
17785 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
17786 Jakub Jelinek <jakub@redhat.com>
17787
17788 PR bootstrap/88714
17789 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
17790 arm_count_ldrdstrd_insns): New declarations.
17791 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
17792 MINUS.
17793 (valid_operands_ldrd_strd): New function.
17794 (arm_count_ldrdstrd_insns): New function.
17795 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
17796 sets instead of single DImode set and define new insns to match this.
17797
17798 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17799
17800 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
17801 Make it a C initializer.
17802
17803 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17804
17805 PR/target 88850
17806 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
17807
17808 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17809
17810 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
17811 Use neon_dot<q> for type.
17812 (neon_<sup>dot_lane<vsi2qi>): Likewise.
17813
17814 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17815
17816 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
17817 Use neon_dot<q> for type.
17818 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
17819 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
17820
17821 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
17822
17823 PR rtl-optimization/89225
17824 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
17825 sizes check.
17826
17827 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
17828
17829 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
17830 after restoring registers saved to allocate the frame on Windows.
17831
17832 2019-02-06 Richard Biener <rguenther@suse.de>
17833
17834 PR tree-optimization/89182
17835 * graphite.h (cached_scalar_evolution_in_region): Declare.
17836 * graphite.c (struct seir_cache_key): New.
17837 (struct sese_scev_hash): Likewise.
17838 (seir_cache): New global.
17839 (cached_scalar_evolution_in_region): New function.
17840 (graphite_transform_loops): Allocate and release seir_cache.
17841 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
17842 cached_scalar_evolution_in_region.
17843 * graphite-scop-detection.c (scop_detection::can_represent_loop):
17844 Simplify.
17845 (scop_detection::graphite_can_represent_expr: Use
17846 cached_scalar_evolution_in_region.
17847 (scop_detection::stmt_simple_for_scop_p): Likewise.
17848 (find_params_in_bb): Likewise.
17849 (gather_bbs::before_dom_children): Likewise.
17850 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
17851 (add_loop_constraints): Likewise.
17852
17853 2019-02-06 Jakub Jelinek <jakub@redhat.com>
17854
17855 PR middle-end/89210
17856 * fold-const-call.c (fold_const_vec_convert): Pass true as last
17857 operand to new_unary_operation only if both element types are integral
17858 and it isn't a widening conversion. Return NULL_TREE if
17859 new_unary_operation failed.
17860
17861 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
17862
17863 PR target/88856
17864 * config/s390/s390.md: Remove load and test FP splitter.
17865
17866 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17867
17868 PR target/89112
17869 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
17870 expand_compare_loop, expand_block_compare_gpr,
17871 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
17872 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
17873 #include "profile-count.h" and "predict.h" for types and functions
17874 needed to work with REG_BR_PROB notes.
17875
17876 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17877
17878 PR target/89112
17879 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
17880 for the long branch case.
17881
17882 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17883
17884 PR target/89188
17885 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
17886 can throw, non-call exceptions are enabled and we can't delete
17887 dead exceptions or alter cfg. Set must_clean if
17888 delete_insn_and_edges returns true, don't set it blindly for calls.
17889 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
17890
17891 PR rtl-optimization/89195
17892 * combine.c (make_extraction): For MEMs, don't extract bytes outside
17893 of the original MEM.
17894
17895 2019-02-05 Martin Liska <mliska@suse.cz>
17896
17897 PR gcov-profile/89000
17898 * gcov.c (function_summary): Remove argument.
17899 (file_summary): New function.
17900 (print_usage): Replace tabs with spaces.
17901 (generate_results): Use new function file_summary.
17902
17903 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17904
17905 PR target/89186
17906 * optabs.c (prepare_cmp_insn): Pass x and y to
17907 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
17908
17909 2019-02-05 Richard Biener <rguenther@suse.de>
17910
17911 PR middle-end/89150
17912 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
17913 (struct bitmap_element): Drop chain_prev so we properly recurse on
17914 the prev member, supporting tree views.
17915 (struct bitmap_head): GTY skip the obstack member.
17916
17917 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
17918
17919 PR c/88698
17920 * doc/extend.texi (Vector Extensions): Add an example of using vector
17921 types together with x86 intrinsics.
17922
17923 2019-02-04 Alan Modra <amodra@gmail.com>
17924
17925 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
17926 str[] size to 160, and comment.
17927
17928 2019-02-04 Alan Modra <amodra@gmail.com>
17929
17930 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
17931 (rs6000_pltseq_template): Guard output of TLS markers with
17932 TARGET_TLS_MARKERS.
17933 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
17934 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
17935 to use inline PLT sequences.
17936 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17937 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17938 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
17939
17940 2019-02-04 Martin Liska <mliska@suse.cz>
17941
17942 PR ipa/88985
17943 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
17944 out when ipa_fn_summaries does not contain entry for callee.
17945
17946 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
17947
17948 * config/sparc/sparc.h: Remove superfluous blank lines.
17949 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
17950 (got_register_rtx): ...this.
17951 (sparc_got): Adjust to above renaming.
17952 (sparc_tls_got): Likewise.
17953 (sparc_delegitimize_address): Likewise.
17954 (sparc_output_mi_thunk): Likewise.
17955 (sparc_init_pic_reg): Likewise.
17956 (save_local_or_in_reg_p): Fix test on the GOT register.
17957 (USE_HIDDEN_LINKONCE): Move around.
17958 (get_pc_thunk_name): Likewise.
17959 (gen_load_pcrel_sym): Likewise.
17960 (load_got_register): Likewise.
17961
17962 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
17963
17964 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
17965 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
17966
17967 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17968
17969 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
17970 into consideration.
17971
17972 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17973
17974 * config.gcc (with_nds32_lib, glibc):
17975 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
17976 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
17977 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
17978
17979 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
17980
17981 PR target/89071
17982 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
17983 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
17984 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
17985 (*rcpsf2_sse): Ditto.
17986 (*rsqrtsf2_sse): Ditto.
17987 (sse4_1_round<mode<2): Ditto.
17988
17989 2019-02-03 Richard Biener <rguenther@suse.de>
17990
17991 PR debug/87295
17992 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
17993 orig.
17994
17995 2019-02-02 Jakub Jelinek <jakub@redhat.com>
17996
17997 PR middle-end/87887
17998 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17999 Punt with warning on aggregate return or argument types. Ignore
18000 type/mode checking for uniform arguments.
18001
18002 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
18003
18004 * combine.c (try_combine): Do not print "Can't combine" messages unless
18005 printing failed combination attempts.
18006
18007 2019-02-01 Martin Jambor <mjambor@suse.cz>
18008
18009 PR hsa/87863
18010 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
18011 segment and global segment variables before making them static.
18012
18013 2019-02-01 Martin Jambor <mjambor@suse.cz>
18014
18015 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
18016 missed optimization dump with dump_enabled_p.
18017
18018 2019-02-01 Richard Biener <rguenther@suse.de>
18019
18020 PR middle-end/88597
18021 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
18022 the instantiate cache.
18023 (instantiate_scev_binary): Elide second operand procesing
18024 if equal to the first.
18025 * tree-chrec.c (chrec_contains_symbols): Add visited set.
18026 (chrec_contains_undetermined): Likewise.
18027 (tree_contains_chrecs): Likewise.
18028
18029 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
18030
18031 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
18032
18033 2019-02-01 Jakub Jelinek <jakub@redhat.com>
18034
18035 PR tree-optimization/89143
18036 * wide-int-range.h (wide_int_range_absu): Declare.
18037 * wide-int-range.cc (wide_int_range_absu): New function.
18038 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
18039
18040 PR tree-optimization/88107
18041 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
18042 instead of assertion that eh_region_outermost is non-NULL, if it
18043 is NULL, set *ALL to true and return NULL.
18044 (move_sese_region_to_fn): Adjust caller, if all is set, call
18045 duplicate_eh_regions with NULL region.
18046
18047 2019-02-01 Richard Biener <rguenth@suse.de>
18048
18049 PR rtl-optimization/88593
18050 * mode-switching.c (optimize_mode_switching): Free dominators before
18051 calling cleanup_cfg.
18052
18053 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18054
18055 PR tree-optimization/88932
18056 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
18057
18058 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18059
18060 PR middle-end/89137
18061 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
18062 bogus clang warning.
18063
18064 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
18065
18066 PR target/89071
18067 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
18068 alternative to avoid partial SSE register stall for TARGET_AVX.
18069 (truncdfsf2): Ditto.
18070 (sse4_1_round<mode>2): Ditto.
18071
18072 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
18073
18074 PR tree-optimization/89008
18075 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
18076 process anything of the form X * 0.
18077
18078 2019-01-31 Richard Biener <rguenther@suse.de>
18079
18080 PR tree-optimization/89135
18081 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
18082 with abnormal preds.
18083
18084 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18085
18086 PR sanitizer/89124
18087 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
18088 always_inline callees into no_sanitize_address callers.
18089
18090 2019-01-31 Richard Biener <rguenther@suse.de>
18091
18092 PR rtl-optimization/89115
18093 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
18094
18095 2019-01-30 Martin Sebor <msebor@redhat.com>
18096
18097 PR other/89106
18098 * doc/extend.texi (cast to a union): Correct and expand.
18099
18100 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
18101
18102 PR rtl-optimization/87246
18103 * lra-constraints.c (simplify_operand_subreg): Reload memory
18104 in subreg if the address became invalid.
18105
18106 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
18107
18108 PR target/87064
18109 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
18110 Disable for little-endian.
18111
18112 2019-01-30 Richard Biener <rguenther@suse.de>
18113
18114 PR rtl-optimization/89115
18115 * opts.c (default_options_optimization): Reduce
18116 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
18117 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
18118 to the default.
18119
18120 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18121
18122 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
18123 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
18124 type of vector element when vec_extract is implemented by direct
18125 move.
18126
18127 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
18128
18129 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
18130
18131 2019-01-30 Richard Biener <rguenther@suse.de>
18132
18133 PR tree-optimization/89111
18134 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
18135 canonicalization to appropriately sized access types.
18136
18137 2019-01-30 Jakub Jelinek <jakub@redhat.com>
18138
18139 PR c++/89105
18140 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
18141 for arguments to functions that are TU-local and shouldn't be
18142 referenced by assembly.
18143
18144 2019-01-30 Ulrich Drepper <drepper@redhat.com>
18145
18146 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
18147 after '='.
18148
18149 2019-01-29 Martin Sebor <msebor@redhat.com>
18150
18151 PR c/88956
18152 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
18153
18154 2019-01-29 Jakub Jelinek <jakub@redhat.com>
18155
18156 PR c++/66676
18157 PR ipa/89104
18158 * omp-simd-clone.c (simd_clone_clauses_extract)
18159 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
18160 OMP_CLAUSE_ALIGNED_ALIGNMENT.
18161
18162 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
18163
18164 * config.gcc: Force .init_array for ARC.
18165
18166 2019-01-29 Richard Biener <rguenther@suse.de>
18167
18168 PR debug/87295
18169 * dwarf2out.c (collect_skeleton_dies): New helper.
18170 (copy_decls_for_unworthy_types): Call it.
18171 (build_abbrev_table): Assert we do not try to replace
18172 DW_AT_signature refs with local refs.
18173
18174 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18175
18176 PR middle-end/89002
18177 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
18178 for lastprivate/linear IV, push gimplify context around gimplify_assign
18179 and, if it needed any temporaries, pop it into a gimple bind around the
18180 sequence.
18181
18182 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18183
18184 * common.opt (-Wattribute-alias): Remove "no-" from name.
18185 Make -Wattribute-alias command line option and
18186 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
18187
18188 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18189
18190 PR target/89073
18191 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
18192 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
18193 x86 ISA options.
18194 (bmi2): Add missing @opindex.
18195 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
18196 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
18197 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
18198 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
18199 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
18200 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
18201 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
18202 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
18203 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
18204 xsavec, xsaveopt and xsaves options.
18205
18206 2019-01-28 Richard Biener <rguenther@suse.de>
18207
18208 PR debug/89076
18209 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
18210 support removal.
18211
18212 2019-01-28 Richard Biener <rguenther@suse.de>
18213
18214 PR tree-optimization/88739
18215 * tree-cfg.c (verify_types_in_gimple_reference): Verify
18216 BIT_FIELD_REFs only are applied to mode-precision operands
18217 when they are integral.
18218 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
18219 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
18220 BIT_FIELD_REFs of non-mode-precision integral operands.
18221
18222 2019-01-27 Jakub Jelinek <jakub@redhat.com>
18223
18224 PR target/87214
18225 * config/i386/sse.md
18226 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
18227 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
18228 first constants in pairs are multiples of 2. Formatting fixes.
18229 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
18230 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
18231 first constants in each quadruple are multiples of 4. Formatting fixes.
18232
18233 2019-01-26 Martin Jambor <mjambor@suse.cz>
18234
18235 PR ipa/88933
18236 * tree-inline.c: Include tree-cfgcleanup.h.
18237 (delete_unreachable_blocks_update_callgraph): Move...
18238 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
18239 ...here, make externally visible, make second argument bool, adjust
18240 all callers.
18241 * tree-cfgcleanup.c: Include cgraph.h.
18242 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
18243 Declare.
18244 * ipa-prop.c: Include tree-cfgcleanup.h.
18245 (ipcp_transform_function): Call
18246 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
18247
18248 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
18249
18250 PR rtl-optimization/88846
18251 * ira.c (process_set_for_memref_referenced_p): New.
18252 (memref_referenced_p): Add new param. Use
18253 process_set_for_memref_referenced_p. Add new switch cases.
18254 (memref_used_between_p): Pass new arg to memref_referenced_p.
18255
18256 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
18257
18258 PR target/88469
18259 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
18260 argument ABI_BREAK. Set to true if the calculated alignment has
18261 changed in gcc-9. Check bit-fields for their base type alignment.
18262 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
18263 (aarch64_function_arg_boundary): Likewise.
18264 (aarch64_gimplify_va_arg_expr): Likewise.
18265
18266 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18267
18268 PR middle-end/89037
18269 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
18270 instead of accessing TREE_INT_CST_ELT directly.
18271
18272 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
18273
18274 * doc/sourcebuild.texi (Environment attributes): Add fenv and
18275 fenv_exceptions description.
18276
18277 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18278
18279 PR rtl-optimization/87763
18280 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18281 Allow SUBREG when matching CC_NZmode compare.
18282
18283 2019-01-25 Richard Biener <rguenther@suse.de>
18284
18285 PR tree-optimization/89049
18286 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18287 Look at the pattern stmt to determine if the stmt is vectorized.
18288
18289 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18290
18291 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18292 (pred_mov<mode>): Handle all-register forms using both a new
18293 alternative and a split.
18294
18295 2019-01-25 Richard Biener <rguenther@suse.de>
18296
18297 PR tree-optimization/86865
18298 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18299 Reject non-do-while loops.
18300
18301 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18302
18303 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18304 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18305 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18306 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18307 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18308 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18309 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18310 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18311 vlogical_operand, gpc_reg_operand, int_reg_operand,
18312 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18313 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18314 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18315 (save_world_operation, restore_world_operation, lmw_operation,
18316 stmw_operation): Use MEM_P and REG_P.
18317 (tie_operand): Use MEM_P.
18318 (vrsave_operation, crsave_operation): Use REG_P.
18319 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18320 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18321 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18322 (call_operand): Use HARD_REGISTER_P.
18323 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18324 Use CONST_INT_P.
18325 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18326 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18327 quad_aligned_load_p, replace_swapped_aligned_store,
18328 recombine_lvx_pattern, replace_swapped_aligned_load,
18329 recombine_stvx_pattern): Use MEM_P.
18330 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18331 Use MEM_P and SYMBOL_REF_P.
18332 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18333 (insn_is_swappable_p): Use REG_P and MEM_P.
18334 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18335 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18336 Use CONST_INT_P.
18337 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18338 Use CONST_DOUBLE_P.
18339 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18340 CONST_WIDE_INT_P.
18341 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18342 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18343 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18344 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18345 reg_or_subregno:
18346 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18347 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18348 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18349 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18350 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18351 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18352 rs6000_split_logical_di): Use CONST_INT_P.
18353 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18354 REG_P and SYMBOL_REF_P.
18355 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18356 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18357 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18358 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18359 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18360 (small_data_operand, print_operand_address): Use CONST_INT_P and
18361 SYMBOL_REF_P.
18362 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18363 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18364 Use HARD_REGISTER_NUM_P.
18365 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18366 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18367 SUBREG_P and SYMBOL_REF_P.
18368 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18369 and HARD_REGISTER_NUM_P.
18370 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18371 reg_or_subregno.
18372 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18373 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18374 MEM_P and REG_P.
18375 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18376 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18377 find_addr_reg): Use REG_P.
18378 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18379 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18380 (offsettable_ok_by_alignment, constant_pool_expr_p,
18381 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18382 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18383 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18384 rs6000_assemble_integer, create_TOC_reference,
18385 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18386 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18387 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18388 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18389 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18390 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18391 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18392 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18393 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18394 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18395 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18396 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18397 and cbranch<mode>4): Use CONST_INT_P.
18398 (multiple define_splits): Use REG_P and SUBREG_P.
18399 (define_expands call, call_value): Use MEM_P.
18400 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18401 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18402 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18403 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18404 and HARD_REGISTER_NUM_P.
18405 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18406
18407 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18408
18409 PR rtl-optimization/88948
18410 * rtl.h (prepare_copy_insn): New prototype.
18411 * gcse.c (prepare_copy_insn): New function, split out from
18412 process_insert_insn.
18413 (process_insert_insn): Use prepare_copy_insn.
18414 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18415 instead of gen_move_insn.
18416
18417 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18418
18419 PR debug/89006
18420 * config/i386/i386.c (ix86_pic_register_p): Return true for
18421 UNSPEC_SET_GOT too.
18422
18423 PR tree-optimization/88964
18424 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18425 punt if HONOR_SNANS (chrec).
18426
18427 PR middle-end/89015
18428 * tree-nested.c (convert_nonlocal_reference_stmt,
18429 convert_local_reference_stmt, convert_tramp_reference_stmt,
18430 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18431 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18432 or GIMPLE_OMP_TASK.
18433
18434 PR tree-optimization/89027
18435 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18436 for "omp simd array" variables.
18437
18438 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18439
18440 PR target/88469
18441 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18442 force the alignment of m_val.
18443
18444 2019-01-24 Richard Biener <rguenther@suse.de>
18445
18446 PR lto/87187
18447 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18448 When in "legacy" debug mode make sure to reset self-origins.
18449
18450 2019-01-24 Martin Liska <mliska@suse.cz>
18451
18452 PR gcov-profile/88994
18453 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18454 result will be always smaller or equal to the original.
18455 * gcov.c (mangle_name): Fix else branch where we should
18456 also copy to PTR and shift the pointer.
18457
18458 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18459
18460 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18461 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18462
18463 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18464
18465 * common/config/i386/i386-common.c
18466 (OPTION_MASK_ISA_ENQCMD_SET,
18467 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18468 (ix86_handle_option): Handle -menqcmd.
18469 * config.gcc (enqcmdintrin.h): New header file.
18470 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18471 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18472 -menqcmd.
18473 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18474 function type.
18475 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18476 __builtin_ia32_enqcmds): New builtins.
18477 * config/i386/i386-c.c (__ENQCMD__): New macro.
18478 * config/i386/i386-option.c (ix86_target_string): Add
18479 -menqcmd.
18480 (ix86_valid_target_attribute_inner_p): Likewise.
18481 * config/i386/i386-expand.c
18482 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18483 IX86_BUILTIN_ENQCMDS.
18484 * config/i386/i386.h (TARGET_ENQCMD): New.
18485 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18486 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18487 (movdir64b_<mode>): Parameterize to enable share expansion code
18488 with ENQCMD in function ix86_expand_builtin.
18489 * config/i386/i386.opt: Add -menqcmd.
18490 * config/i386/immintrin.h: Include enqcmdintrin.h.
18491 * config/i386/enqcmdintrin.h: New intrinsic file.
18492 * doc/invoke.texi: Add -menqcmd.
18493
18494 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18495 Steve Ellcey <sellcey@marvell.com>
18496
18497 PR target/85711
18498 * recog.c (address_operand): Return false on wrong mode for address.
18499 (constrain_operands): Check for mode with 'p' constraint.
18500
18501 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18502
18503 PR target/88998
18504 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18505 Disparage MMX alternative.
18506 (sse2_cvtpd2pi): Ditto.
18507 (sse2_cvttpd2pi): Ditto.
18508
18509 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18510
18511 PR driver/89014
18512 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18513 use-after-free of the result of
18514 aarch64_get_extension_string_for_isa_flags.
18515
18516 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18517
18518 PR c/44715
18519 * doc/extend.texi: Document break and continue behavior in
18520 statement expressions.
18521
18522 2019-01-23 Richard Biener <rguenther@suse.de>
18523
18524 PR tree-optimization/89008
18525 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18526 not leave another stray operand.
18527
18528 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18529
18530 * BASE-VER: Bump to 9.0.1.
18531
18532 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18533
18534 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18535 thunk that returns by reference, use the type of the return object
18536 of the thunk instead of that of the alias to build the dereference.
18537
18538 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18539
18540 * config/arc/atomic.md: Add operand to DMB instruction.
18541
18542 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18543
18544 PR tree-optimization/88964
18545 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18546 build_zero_cst instead of build_int_cst. Return false for loop
18547 invariants which honor signed zeros.
18548
18549 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18550
18551 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18552
18553 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18554
18555 PR target/88965
18556 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18557 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18558 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18559
18560 PR middle-end/88968
18561 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18562 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18563
18564 PR target/87064
18565 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18566 Disable for little endian.
18567
18568 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18569
18570 PR target/88469
18571 * config/arm/arm.c (arm_needs_double_word_align): Check
18572 DECL_BIT_FIELD_TYPE.
18573
18574 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18575 H.J. Lu <hongjiu.lu@intel.com>
18576
18577 PR target/88909
18578 * config/i386/i386-builtin.def: Add mask2 to all builtin
18579 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18580 SPECIAL_ARGS.
18581 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18582 (BDESC_FIRST): Likewise.
18583 (define_builtin): Add an argument for mask2. Updated to handle
18584 both ix86_isa_flags and ix86_isa_flags2.
18585 (define_builtin_const): Likewise.
18586 (define_builtin_pure): Likewise.
18587 (define_builtin2): Deleted.
18588 (define_builtin_const2): Likewise.
18589 (builtin_description): Add a member, mask2.
18590 (bdesc_*): Add mask2 to builtin initializations.
18591 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18592 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18593 support.
18594 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18595
18596 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18597
18598 PR target/88954
18599 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18600 noplt attribute.
18601
18602 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18603
18604 PR target/88469
18605 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
18606 alignment is dominated by a bitfield with 64-bit aligned base type.
18607 (arm_function_arg): Emit a warning if the alignment has changed since
18608 earlier GCC releases.
18609 (arm_function_arg_boundary): Likewise.
18610 (arm_setup_incoming_varargs): Likewise.
18611
18612 2019-01-22 Richard Biener <rguenther@suse.de>
18613
18614 PR tree-optimization/88862
18615 * graphite-scop-detection.c
18616 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
18617
18618 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
18619
18620 * doc/extend.tex (AMD GCN Function Attributes): New section.
18621 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
18622 * doc/invoke.texi (AMD GCN Options): New section.
18623 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
18624
18625 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
18626
18627 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
18628 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
18629
18630 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18631
18632 PR tree-optimization/88044
18633 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
18634 is false in the first iteration, but !every_iteration, return false
18635 instead of true with niter->niter zero.
18636
18637 PR rtl-optimization/88904
18638 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
18639 any nonequal registers before processing BB_END (b).
18640
18641 PR target/88905
18642 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
18643 GET_MODE (op0).
18644 (expand_binop_directly, expand_doubleword_clz,
18645 expand_doubleword_popcount, expand_ctz, expand_ffs,
18646 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
18647
18648 PR rtl-optimization/49429
18649 PR target/49454
18650 PR rtl-optimization/86334
18651 PR target/88906
18652 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
18653 addressable from here...
18654 (emit_block_op_via_libcall): ... to here.
18655
18656 2019-01-22 Richard Biener <rguenther@suse.de>
18657
18658 * tree-vect-loop.c (vect_analyze_loop_operations): Use
18659 auto_vec for cost vector to fix memleak.
18660 (vectorize_fold_left_reduction): Properly gather SLP defs.
18661 (vectorizable_comparison): Do not swap operands to properly
18662 gather SLP defs.
18663
18664 2019-01-22 Alan Modra <amodra@gmail.com>
18665
18666 PR target/88614
18667 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
18668 stays a reg. Allow a const_int.
18669 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
18670 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
18671 (IS_NOMARK_TLSGETADDR): Define.
18672 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
18673 (rs6000_output_tlsargs): New function.
18674 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
18675 __tls_get_addr call takes an arg.
18676 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
18677 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
18678 delete split..
18679 (call_value_nonlocal_sysv): ..or here, delete split.
18680 (tls_gdld_nomark): Delete.
18681 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
18682 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
18683 (call_value_nonlocal_sysv): Likewise.
18684 (call_value_nonlocal_sysv_secure): Likewise.
18685 (call_value_nonlocal_aix): Likewise.
18686 (call_value_indirect_aix): Likewise.
18687 (call_value_indirect_elfv2): Likewise.
18688 (call_value_local32, call_value_local64): Disable for no-mark tls.
18689 (call_value_local_aix): Likewise.
18690
18691 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
18692
18693 PR target/88938
18694 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
18695 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
18696
18697 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
18698
18699 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
18700 string contents as hash_map keys.
18701
18702 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
18703
18704 PR c/88928
18705 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
18706 for rvalue context. Handle rvalues correctly. Use min_align_of_type
18707 instead of TYPE_ALIGN.
18708 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
18709 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
18710 pointer from TYPE_STUB_DECL.
18711
18712 2019-01-21 Richard Biener <rguenther@suse.de>
18713
18714 PR tree-optimization/88934
18715 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
18716 at the possibly non-constant operand.
18717 (vect_get_constant_vectors): Adjust.
18718
18719 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
18720
18721 PR target/71659
18722 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
18723 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
18724 instead of _X86INTRIN_H_INCLUDED.
18725 * onfig/i386/clwbintrin.h: Likewise.
18726 * config/i386/pkuintrin.h: Likewise.
18727 * config/i386/prfchwintrin.h: Likewise.
18728 * config/i386/rdseedintrin.h: Likewise.
18729 * config/i386/wbnoinvdintrin.h: Likewise.
18730 * config/i386/xsavecintrin.h: Likewise.
18731 * config/i386/xsavesintrin.h: Likewise.
18732 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
18733 * config/i386/xsaveintrin.h: Likewise.
18734 * config/i386/xsaveoptintrin.h: Likewise.
18735 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
18736 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
18737 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
18738 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
18739 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
18740 * config/i386/immintrin.h: Here.
18741
18742 2019-01-20 Martin Jambor <mjambor@suse.cz>
18743
18744 PR ipa/87615
18745 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
18746 with aa_walk_budget.
18747 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
18748 aa_walk_budget_p parameter.
18749 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
18750 walk. Updated all callers.
18751 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
18752 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
18753 unmodified_parm.
18754 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
18755 parameter info. Extract info from fbi. Pass fbi to recursive calls
18756 and to unmodified_parm.
18757 (phi_result_unknown_predicate): New parameter fbi, removed parameter
18758 info, updated call to will_be_nonconstant_expr_predicate.
18759 (param_change_prob): New parameter fbi, limit AA walking.
18760 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
18761 calls to various above functions.
18762 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
18763 parameter. Use it to limit AA walking.
18764 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
18765 fbi, limit AA walk.
18766 (detect_type_change): New parameter fbi, pass it on to
18767 detect_type_change_from_memory_writes.
18768 (detect_type_change_ssa): Likewise.
18769 (aa_overwalked): Removed.
18770 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
18771 accordingly, adjust to the neew AA limiting scheme.
18772 (parm_ref_data_preserved_p): Likewise.
18773 (ipa_compute_jump_functions_for_edge): Adjust call to
18774 get_dynamic_type.
18775 (ipa_analyze_call_uses): Likewise.
18776 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
18777 (ipa_analyze_node): Initialize aa_walk_budget.
18778 (ipcp_transform_function): Likewise.
18779 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
18780 to get_dynamic_type.
18781
18782 2019-01-19 Jakub Jelinek <jakub@redhat.com>
18783
18784 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
18785 outside of #if CHECKING_P code.
18786
18787 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
18788
18789 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
18790 New function, split out from...
18791 (loop_versioning::analyze_stride): ...here.
18792 (loop_versioning::find_per_loop_multiplication): Use gassign.
18793 (loop_versioning::analyze_term_using_scevs): Return a success code.
18794 (loop_versioning::analyze_arbitrary_term): New function.
18795 (loop_versioning::analyze_address_fragment): Use
18796 analyze_arbitrary_term if all else fails.
18797
18798 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
18799
18800 PR target/88892
18801 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
18802 operands.
18803
18804 2019-01-18 Richard Biener <rguenther@suse.de>
18805
18806 PR tree-optimization/88903
18807 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
18808 scalar stmts a SLP shift amount is composed of when detecting
18809 shifts by scalars.
18810
18811 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
18812
18813 PR target/88799
18814 * config/arm/arm-cpus.in (mp): New feature.
18815 (sec): New feature.
18816 (fgroup ARMv7ve): Add mp and sec features.
18817 (arch armv7-a): Add options to allow mp and sec extensions.
18818 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
18819 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
18820 extenstions to the base architecture.
18821 (cpu cortex-a8): Add sec extension to the base architecture.
18822 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
18823 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
18824 variants down to the base v7-a varaint.
18825 * config/arm/t-multilib (v7_a_arch_variants): New variable.
18826 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
18827 of permitted extensions for -march=armv7-a and for
18828 -mcpu=generic-armv7-a.
18829
18830 2019-01-18 Martin Liska <mliska@suse.cz>
18831
18832 * params.def: Fix comment.
18833 * tree-profile.c (gimple_init_gcov_profiler): Bump function
18834 name.
18835 (gimple_gen_ic_func_profiler): Likewise.
18836
18837 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18838
18839 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
18840 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
18841 and put in error checks for stack protector guard options.
18842 (aarch64_stack_protect_guard): New.
18843 (TARGET_STACK_PROTECT_GUARD): Define.
18844 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
18845 (reg_stack_protect_address<mode>): New.
18846 (stack_protect_set): Adjust for SSP_GLOBAL.
18847 (stack_protect_test): Likewise.
18848 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
18849 (-mstack-protector-guard): Likewise.
18850 (-mstack-protector-guard-offset): Likewise.
18851
18852 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18853
18854 PR tree-optimization/86214
18855 * tree-inline.h (struct copy_body_data): Add
18856 add_clobbers_to_eh_landing_pads member.
18857 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
18858 (copy_edges_for_bb): Call it if EH edge destination is <
18859 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
18860 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
18861 if flag_stack_reuse != SR_NONE and clear it afterwards.
18862
18863 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
18864
18865 PR target/85596
18866 * doc/install.texi (with-multilib-list): Document for aarch64.
18867
18868 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18869
18870 PR target/88734
18871 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
18872 (("..."))) with ("...").
18873
18874 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18875
18876 * doc/extend.texi (Built-in Functions for Memory Model Aware
18877 Atomic Operations): Document atomic fetch and nand.
18878
18879 2019-01-18 Martin Liska <mliska@suse.cz>
18880 Richard Biener <rguenther@suse.de>
18881
18882 PR middle-end/88587
18883 * cgraph.h (create_version_clone_with_body): Add new argument
18884 with attributes.
18885 * cgraphclones.c (cgraph_node::create_version_clone): Add
18886 DECL_ATTRIBUTES to a newly created decl. And call
18887 valid_attribute_p so that proper cl_target_optimization_node
18888 is set for the newly created declaration.
18889 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
18890 for declaration.
18891 (expand_target_clones): Do not call valid_attribute_p, it must
18892 be already done.
18893 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
18894 vector types.
18895
18896 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18897
18898 PR target/88734
18899 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
18900 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
18901 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
18902
18903 2019-01-17 Martin Sebor <msebor@redhat.com>
18904
18905 PR middle-end/88273
18906 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
18907 Handle anti-ranges the same as no range at all.
18908
18909 2018-01-17 Steve Ellcey <sellcey@cavium.com>
18910
18911 * config/aarch64/aarch64.c (cgraph.h): New include.
18912 (intl.h): New include.
18913 (supported_simd_type): New function.
18914 (currently_supported_simd_type): Ditto.
18915 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
18916 (aarch64_simd_clone_adjust): Ditto.
18917 (aarch64_simd_clone_usable): Ditto.
18918 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
18919 (TARGET_SIMD_CLONE_ADJUST): Ditto.
18920 (TARGET_SIMD_CLONE_USABLE): Ditto.
18921 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
18922 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
18923 call.
18924
18925 2019-01-17 Martin Sebor <msebor@redhat.com>
18926
18927 PR tree-optimization/88800
18928 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
18929 NO_WARNING bit here. Avoid folding out-of-bounds calls.
18930 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
18931 redundant argument. Add new argument and issue diagnostics under
18932 its control. Detect out-of-bounds access even with warnings
18933 disabled.
18934 (check_bounds_or_overlap): Change return type. Add argument.
18935 (wrestrict_dom_walker::check_call): Adjust.
18936 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
18937 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
18938 check_bounds_or_overlap's return value.
18939 (handle_builtin_stxncpy): Same.
18940 (handle_builtin_strcat): Same.
18941
18942 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18943 Kwok Cheung Yeung <kcy@codesourcery.com>
18944 Julian Brown <julian@codesourcery.com>
18945 Tom de Vries <tom@codesourcery.com>
18946
18947 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
18948
18949 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18950
18951 * doc/sourcebuild.texi: Document dg-require-effective-target
18952 llvm_binutils and offload_gcn.
18953
18954 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18955 Kwok Cheung Yeung <kcy@codesourcery.com>
18956 Julian Brown <julian@codesourcery.com>
18957 Tom de Vries <tom@codesourcery.com>
18958
18959 * doc/sourcebuild.texi: Document dg-required-effective-target
18960 exceptions.
18961
18962 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18963 Kwok Cheung Yeung <kcy@codesourcery.com>
18964 Julian Brown <julian@codesourcery.com>
18965 Tom de Vries <tom@codesourcery.com>
18966 Jan Hubicka <hubicka@ucw.cz>
18967 Martin Jambor <mjambor@suse.cz>
18968
18969 * config.gcc: Add amdgcn*-*-amdhsa configuration.
18970 * configure.ac: Check for dlopen.
18971 * configure: Regenerate.
18972
18973 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18974 Kwok Cheung Yeung <kcy@codesourcery.com>
18975 Julian Brown <julian@codesourcery.com>
18976 Tom de Vries <tom@codesourcery.com>
18977 Jan Hubicka <hubicka@ucw.cz>
18978 Martin Jambor <mjambor@suse.cz>
18979
18980 * common/config/gcn/gcn-common.c: New file.
18981 * config/gcn/driver-gcn.c: New file.
18982 * config/gcn/gcn-builtins.def: New file.
18983 * config/gcn/gcn-hsa.h: New file.
18984 * config/gcn/gcn-modes.def: New file.
18985 * config/gcn/gcn-opts.h: New file.
18986 * config/gcn/gcn-passes.def: New file.
18987 * config/gcn/gcn-protos.h: New file.
18988 * config/gcn/gcn-run.c: New file.
18989 * config/gcn/gcn-tree.c: New file.
18990 * config/gcn/gcn.c: New file.
18991 * config/gcn/gcn.h: New file.
18992 * config/gcn/gcn.opt: New file.
18993 * config/gcn/t-gcn-hsa: New file.
18994
18995 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18996 Kwok Cheung Yeung <kcy@codesourcery.com>
18997 Julian Brown <julian@codesourcery.com>
18998 Tom de Vries <tom@codesourcery.com>
18999 Jan Hubicka <hubicka@ucw.cz>
19000 Martin Jambor <mjambor@suse.cz>
19001
19002 * config/gcn/constraints.md: New file.
19003 * config/gcn/gcn-valu.md: New file.
19004 * config/gcn/gcn.md: New file.
19005 * config/gcn/predicates.md: New file.
19006
19007 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
19008
19009 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
19010 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
19011 (stmt_uses_0_or_null_in_undefined_way): Likewise.
19012 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
19013
19014 2019-01-17 Tamar Christina <tamar.christina@arm.com>
19015
19016 PR target/88851
19017 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
19018 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
19019 it and document registers.
19020
19021 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19022
19023 * config/aarch64/aarch64.c (ares_tunings): Define.
19024 * config/aarch64/aarch64-cores.def (ares): Use the above.
19025
19026 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19027
19028 PR target/88794
19029 Revert:
19030 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
19031
19032 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
19033 (_mm512_fixupimm_round_pd): Update parameters and builtin.
19034 (_mm512_maskz_fixupimm_round_pd): Ditto.
19035 (_mm512_fixupimm_round_ps): Ditto.
19036 (_mm512_maskz_fixupimm_round_ps): Ditto.
19037 (_mm_fixupimm_round_sd): Ditto.
19038 (_mm_maskz_fixupimm_round_sd): Ditto.
19039 (_mm_fixupimm_round_ss): Ditto.
19040 (_mm_maskz_fixupimm_round_ss): Ditto.
19041 (_mm512_fixupimm_pd): Ditto.
19042 (_mm512_maskz_fixupimm_pd): Ditto.
19043 (_mm512_fixupimm_ps): Ditto.
19044 (_mm512_maskz_fixupimm_ps): Ditto.
19045 (_mm_fixupimm_sd): Ditto.
19046 (_mm_maskz_fixupimm_sd): Ditto.
19047 (_mm_fixupimm_ss): Ditto.
19048 (_mm_maskz_fixupimm_ss): Ditto.
19049 (_mm512_mask_fixupimm_round_pd): Update builtin.
19050 (_mm512_mask_fixupimm_round_ps): Ditto.
19051 (_mm_mask_fixupimm_round_sd): Ditto.
19052 (_mm_mask_fixupimm_round_ss): Ditto.
19053 (_mm512_mask_fixupimm_pd): Ditto.
19054 (_mm512_mask_fixupimm_ps): Ditto.
19055 (_mm_mask_fixupimm_sd): Ditto.
19056 (_mm_mask_fixupimm_ss): Ditto.
19057 * config/i386/avx512vlintrin.h:
19058 (_mm256_fixupimm_pd): Update parameters and builtin.
19059 (_mm256_maskz_fixupimm_pd): Ditto.
19060 (_mm256_fixupimm_ps): Ditto.
19061 (_mm256_maskz_fixupimm_ps): Ditto.
19062 (_mm_fixupimm_pd): Ditto.
19063 (_mm_maskz_fixupimm_pd): Ditto.
19064 (_mm_fixupimm_ps): Ditto.
19065 (_mm_maskz_fixupimm_ps): Ditto.
19066 (_mm256_mask_fixupimm_pd): Update builtin.
19067 (_mm256_mask_fixupimm_ps): Ditto.
19068 (_mm_mask_fixupimm_pd): Ditto.
19069 (_mm_mask_fixupimm_ps): Ditto.
19070 * config/i386/i386-builtin-types.def: Add new types and remove
19071 useless ones.
19072 * config/i386/i386-builtin.def: Update builtin definitions.
19073 * config/i386/i386.c: Handle new builtin types and remove useless ones.
19074 * config/i386/sse.md: Update VFIXUPIMM* patterns.
19075 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19076 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19077 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
19078 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19079 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19080 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
19081 * config/i386/subst.md:
19082 (round_saeonly_sd_mask_operand4): Add new subst_attr.
19083 (round_saeonly_sd_mask_op4): Ditto.
19084 (round_saeonly_expand_operand5): Ditto.
19085 (round_saeonly_expand): Update.
19086
19087 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19088
19089 PR target/88794
19090 Revert:
19091 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
19092
19093 * config/i386/sse.md: Combine VFIXUPIMM* patterns
19094 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19095 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19096 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
19097 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19098 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19099 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
19100
19101 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19102
19103 PR target/88794
19104 Revert:
19105 2018-12-15 Jakub Jelinek <jakub@redhat.com>
19106
19107 PR target/88489
19108 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
19109 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
19110 instead of UNSPEC_FIXUPIMM.
19111
19112 2019-01-17 Richard Biener <rguenther@suse.de>
19113
19114 PR lto/86736
19115 * dwarf2out.c (want_pubnames): Never generate pubnames sections
19116 and friends for the LTO part of debug info.
19117
19118 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19119
19120 PR tree-optimization/86214
19121 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
19122 if x == y.
19123
19124 PR rtl-optimization/88870
19125 * dce.c (deletable_insn_p): Never delete const/pure calls that can
19126 throw if we can't alter the cfg or delete dead exceptions.
19127 (mark_insn): Don't call find_call_stack_args for such calls.
19128
19129 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
19130
19131 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
19132 prototypes for vec_st.
19133 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
19134 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
19135 mainly on signed/unsigned long long and double.
19136
19137 2019-01-16 David Malcolm <dmalcolm@redhat.com>
19138
19139 PR target/88861
19140 * combine.c (delete_noop_moves): Convert to "bool" return,
19141 returning true if any edges are eliminated.
19142 (combine_instructions): Also return true if delete_noop_moves
19143 returns true.
19144
19145 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19146
19147 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
19148 correct max nunits for endian swap.
19149 (aarch64_expand_fcmla_builtin): Correct subreg code.
19150 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19151 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
19152 lane endianness.
19153
19154 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
19155
19156 * config/alpha/alpha.c (alpha_gimplify_va_arg):
19157 Handle split indirect COMPLEX_TYPE arguments.
19158
19159 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
19160
19161 PR target/86891
19162 * config/aarch64/aarch64-modes.def: Add comment about how the carry
19163 bit is set by add and compare.
19164 (CC_ADC): New CC_MODE.
19165 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
19166 to cache the code and mode of X. Adjust the shape of a CC_Cmode
19167 comparison. Add detection for CC_ADCmode.
19168 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
19169 CC_ADCmode.
19170 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
19171 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
19172 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
19173 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
19174 to eliminate the need for zero-extending the operands.
19175 (add<mode>3_compareC_imm): Delete. Merge into ...
19176 (add<mode>3_compareC): ... this. Restructure the comparison to
19177 eliminate the need for zero-extending the operands.
19178 (add<mode>3_carryin): Use LTU for the overflow detection.
19179 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
19180 Reexpress comparison for overflow.
19181 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
19182 (add<mode>3_carryinC): Likewise.
19183 (add<mode>3_carryinV): Use LTU for carry between partials.
19184 * config/aarch64/predicates.md (aarch64_carry_operation): Update
19185 handling of CC_Cmode and add CC_ADCmode.
19186 (aarch64_borrow_operation): Likewise.
19187
19188 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19189
19190 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
19191 Remove patternmode.
19192 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
19193 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19194 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
19195 Remove endianness conversion.
19196
19197 2019-01-16 Martin Liska <mliska@suse.cz>
19198
19199 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
19200 for GCC driver.
19201 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
19202 a new argument.
19203 * gcc.c (add_sysrooted_hdrs_prefix): New function.
19204 (path_prefix_reset): Move up in the source file.
19205 (find_fortran_preinclude_file): Make complex search for the
19206 fortran header files.
19207
19208 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
19209
19210 * godump.c (go_output_typedef): When outputting a typedef, refer
19211 to the underlying type by its name and not its structure.
19212
19213 2019-01-15 David Malcolm <dmalcolm@redhat.com>
19214
19215 PR c++/88795
19216 * tree.c (build_function_type): Assert that arg_types is not
19217 error_mark_node.
19218
19219 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
19220
19221 PR inline-asm/52813
19222 * doc/extend.texi: Document that listing the stack pointer in the
19223 clobber list of an asm is a deprecated feature.
19224 * common.opt (Wdeprecated): Moved from c-family/c.opt.
19225 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
19226 warning instead of an error for clobbers of the stack pointer.
19227 Add a note explaining why.
19228
19229 2019-01-15 Richard Biener <rguenther@suse.de>
19230
19231 PR debug/88046
19232 * dwarf2out.c (gen_member_die): Do not generate inheritance
19233 DIEs late.
19234
19235 2019-01-15 Richard Biener <rguenther@suse.de>
19236
19237 PR tree-optimization/88855
19238 * tree-if-conv.c (combine_blocks): Collect
19239 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
19240
19241 2019-01-15 Tom de Vries <tdevries@suse.de>
19242
19243 PR target/80547
19244 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
19245 lhs == NULL_TREE for gang-level reduction.
19246
19247 2019-01-15 Richard Biener <rguenther@suse.de>
19248 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19249
19250 PR ipa/88788
19251 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
19252 return true if SSA_NAME is already marked in visited bitmap.
19253 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
19254
19255 2019-01-15 Jakub Jelinek <jakub@redhat.com>
19256
19257 PR tree-optimization/88775
19258 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
19259 equal == 0 equality pointer comparisons some more if compared in
19260 integral types and either one points to an automatic var and the
19261 other to a global, or we can prove at least one points to the middle
19262 or both point to start or both point to end.
19263
19264 2019-01-14 Andi Kleen <ak@linux.intel.com>
19265
19266 * Makefile.in: Lower autofdo sampling rate by 10x.
19267 * Makefile.tpl: Dito.
19268
19269 2019-01-14 Tom Honermann <tom@honermann.net>
19270
19271 * defaults.h: Define CHAR8_TYPE.
19272
19273 2019-01-14 Martin Sebor <msebor@redhat.com>
19274
19275 PR target/88638
19276 * doc/extend.texi (Darwin Format Checks): Clarify.
19277
19278 2019-01-14 Richard Biener <rguenther@suse.de>
19279
19280 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19281 whether we are in (simplify ...) or (match ...) context.
19282
19283 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19284
19285 PR rtl-optimization/88796
19286 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19287 * cfgexpand.c (stack_protect_prologue): Initialize
19288 crtl->stack_protect_guard_decl.
19289 * function.c (stack_protect_epilogue): Use it instead of calling
19290 targetm.stack_protect_guard again.
19291 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19292 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19293 crtl->stack_protect_guard_decl.
19294 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19295 on the returned MEM_EXPR.
19296
19297 2019-01-12 Tom de Vries <tdevries@suse.de>
19298
19299 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19300 vector length using -fopenacc-dim.
19301
19302 2019-01-12 Tom de Vries <tdevries@suse.de>
19303
19304 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19305 lengths into account.
19306
19307 2019-01-12 Svante Signell <svante.signell@gmail.com>
19308
19309 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19310 (TARGET_CAN_SPLIT_STACK): Define.
19311 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19312
19313 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19314
19315 * params.def (inline-unit-growth): Set to 40.
19316
19317 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19318
19319 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19320
19321 2019-01-12 Tom de Vries <tdevries@suse.de>
19322
19323 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19324 region calling vector-partitionable routine, set default_vector_length
19325 to WARP_SIZE.
19326
19327 2019-01-12 Tom de Vries <tdevries@suse.de>
19328
19329 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19330 variable default_vector_length.
19331
19332 2019-01-12 Tom de Vries <tdevries@suse.de>
19333
19334 PR middle-end/88703
19335 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19336 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19337 dimensions limits.
19338
19339 2019-01-12 Tom de Vries <tdevries@suse.de>
19340
19341 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19342 (nvptx_goacc_validate_dims): Add used parameter.
19343 * doc/tm.texi: Regenerate.
19344 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19345 argument to call to targetm.goacc.validate_dims.
19346 (default_goacc_validate_dims): Add used
19347 parameter.
19348 * target.def (validate_dims): Add used parameter in DEFHOOK.
19349 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19350
19351 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19352
19353 PR middle-end/85956
19354 PR lto/88733
19355 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19356 field.
19357 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19358 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19359 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19360 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19361
19362 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19363
19364 PR rtl-optimization/87305
19365 * lra-assigns.c
19366 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19367 for little endian pseudos used as paradoxical subreg.
19368
19369 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19370
19371 PR tree-optimization/88693
19372 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19373 for STRING_CSTs that don't contain any NUL characters in the first
19374 TREE_STRING_LENGTH bytes.
19375
19376 2019-01-11 Alan Modra <amodra@gmail.com>
19377
19378 PR 88777
19379 PR 88614
19380 * genattrtab.c (min_fn): Don't translate values.
19381 (min_attr_value): Return INT_MAX when the value can't be calculated.
19382 Return minimum among any values that can be calculated.
19383 (max_attr_value): Adjust.
19384
19385 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19386
19387 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19388
19389 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19390
19391 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19392 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19393 (aarch64_return_call_with_max_clobbers): New function.
19394 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19395 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19396 argument.
19397 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19398 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19399 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19400 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19401 * cselib.c (cselib_process_insn): Add argument to
19402 targetm.hard_regno_call_part_clobbered call.
19403 * ira-conflicts.c (ira_build_conflicts): Ditto.
19404 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19405 * lra-constraints.c (inherit_reload_reg): Ditto.
19406 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19407 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19408 argument. Call targetm.return_call_with_max_clobbers.
19409 Add argument to targetm.hard_regno_call_part_clobbered call.
19410 (calls_have_same_clobbers_p): New function.
19411 (process_bb_lives): Add call_insn and last_call_insn variables.
19412 Pass call_insn to check_pseudos_live_through_calls.
19413 Modify if stmt to check targetm.return_call_with_max_clobbers.
19414 Update setting of flush variable.
19415 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19416 to false.
19417 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19418 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19419 targetm.hard_regno_call_part_clobbered call.
19420 * reginfo.c (choose_hard_reg_mode): Ditto.
19421 * regrename.c (check_new_reg_p): Ditto.
19422 * reload.c (find_equiv_reg): Ditto.
19423 * reload1.c (emit_reload_insns): Ditto.
19424 * sched-deps.c (deps_analyze_insn): Ditto.
19425 * sel-sched.c (init_regs_for_mode): Ditto.
19426 (mark_unavailable_hard_regs): Ditto.
19427 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19428 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19429 (return_call_with_max_clobbers): New target function.
19430 * doc/tm.texi: Regenerate.
19431 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19432 * hooks.c (hook_bool_uint_mode_false): Change to
19433 hook_bool_insn_uint_mode_false.
19434 * hooks.h (hook_bool_uint_mode_false): Ditto.
19435
19436 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19437
19438 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19439 (aarch64_remove_extra_call_preserved_regs): New function.
19440 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19441 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19442 * doc/tm.texi: Regenerate.
19443 * final.c (get_call_reg_set_usage): Call new hook.
19444 * target.def (remove_extra_call_preserved_regs): New hook.
19445 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19446 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19447
19448 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19449
19450 PR bootstrap/88714
19451 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19452 inside of pass_combine_1 dump rather than pass_profile_1.
19453
19454 2019-01-11 Tom de Vries <tdevries@suse.de>
19455
19456 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19457 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19458 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19459 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19460 num_workers 16.
19461
19462 2019-01-11 Tom de Vries <tdevries@suse.de>
19463
19464 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19465
19466 2019-01-11 Jan Beulich <jbeulich@suse.com>
19467
19468 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19469 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19470 sse2_cvtsi2sd): Add {l}.
19471 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19472 syntax.
19473
19474 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19475
19476 PR target/88785
19477 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19478 define_expand.
19479 (*float<floatunssuffix>v2div2sf2): New define_insn.
19480 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19481 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19482 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19483 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19484 match_operands with "const0_operand" "C".
19485
19486 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19487
19488 * config/aarch64/aarch64-builtins.c
19489 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19490 (aarch64_init_simd_builtins): ...Here
19491
19492 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19493
19494 PR rtl-optimization/87305
19495 * lra-assigns.c
19496 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19497 allocation for big endian pseudos used as paradoxical subregs and
19498 spill them if it is wrong.
19499 * lra-constraints.c (lra_constraints): Add a comment.
19500
19501 2019-01-10 Richard Biener <rguenther@suse.de>
19502
19503 PR tree-optimization/88792
19504 * tree-ssa-pre.c (get_representative_for): Do not return a
19505 value-number here.
19506
19507 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19508
19509 PR middle-end/84877
19510 PR bootstrap/88450
19511 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19512 (assign_parm_setup_block): Do the argument slot realignment here
19513 instead.
19514
19515 2019-01-10 Stefan Agner <stefan@agner.ch>
19516
19517 PR target/88648
19518 * config/arm/arm.c (arm_option_override_internal): Force
19519 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19520
19521 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19522
19523 PR c/88568
19524 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19525 DECL_EXTERNAL.
19526
19527 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19528
19529 * config/arm/arm-builtins.c
19530 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19531 (MAC_LANE_PAIR_QUALIFIERS): New.
19532 (arm_expand_builtin_args): Use it.
19533 (arm_expand_builtin_1): Likewise.
19534 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19535 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19536 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19537 * config/arm/arm_neon.h:
19538 (vcadd_rot90_f16): New.
19539 (vcaddq_rot90_f16): New.
19540 (vcadd_rot270_f16): New.
19541 (vcaddq_rot270_f16): New.
19542 (vcmla_f16): New.
19543 (vcmlaq_f16): New.
19544 (vcmla_lane_f16): New.
19545 (vcmla_laneq_f16): New.
19546 (vcmlaq_lane_f16): New.
19547 (vcmlaq_laneq_f16): New.
19548 (vcmla_rot90_f16): New.
19549 (vcmlaq_rot90_f16): New.
19550 (vcmla_rot90_lane_f16): New.
19551 (vcmla_rot90_laneq_f16): New.
19552 (vcmlaq_rot90_lane_f16): New.
19553 (vcmlaq_rot90_laneq_f16): New.
19554 (vcmla_rot180_f16): New.
19555 (vcmlaq_rot180_f16): New.
19556 (vcmla_rot180_lane_f16): New.
19557 (vcmla_rot180_laneq_f16): New.
19558 (vcmlaq_rot180_lane_f16): New.
19559 (vcmlaq_rot180_laneq_f16): New.
19560 (vcmla_rot270_f16): New.
19561 (vcmlaq_rot270_f16): New.
19562 (vcmla_rot270_lane_f16): New.
19563 (vcmla_rot270_laneq_f16): New.
19564 (vcmlaq_rot270_lane_f16): New.
19565 (vcmlaq_rot270_laneq_f16): New.
19566 (vcadd_rot90_f32): New.
19567 (vcaddq_rot90_f32): New.
19568 (vcadd_rot270_f32): New.
19569 (vcaddq_rot270_f32): New.
19570 (vcmla_f32): New.
19571 (vcmlaq_f32): New.
19572 (vcmla_lane_f32): New.
19573 (vcmla_laneq_f32): New.
19574 (vcmlaq_lane_f32): New.
19575 (vcmlaq_laneq_f32): New.
19576 (vcmla_rot90_f32): New.
19577 (vcmlaq_rot90_f32): New.
19578 (vcmla_rot90_lane_f32): New.
19579 (vcmla_rot90_laneq_f32): New.
19580 (vcmlaq_rot90_lane_f32): New.
19581 (vcmlaq_rot90_laneq_f32): New.
19582 (vcmla_rot180_f32): New.
19583 (vcmlaq_rot180_f32): New.
19584 (vcmla_rot180_lane_f32): New.
19585 (vcmla_rot180_laneq_f32): New.
19586 (vcmlaq_rot180_lane_f32): New.
19587 (vcmlaq_rot180_laneq_f32): New.
19588 (vcmla_rot270_f32): New.
19589 (vcmlaq_rot270_f32): New.
19590 (vcmla_rot270_lane_f32): New.
19591 (vcmla_rot270_laneq_f32): New.
19592 (vcmlaq_rot270_lane_f32): New.
19593 (vcmlaq_rot270_laneq_f32): New.
19594 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19595 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19596 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19597 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19598 vcmlaq_lane270): New.
19599 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19600 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
19601 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
19602 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
19603 (arm_option_reconfigure_globals): Use them.
19604 * config/arm/iterators.md (VDF, VQ_HSF): New.
19605 (VCADD, VCMLA): New.
19606 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
19607 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
19608 New.
19609 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
19610 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
19611
19612 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19613
19614 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19615 Add qualifier_lane_pair_index.
19616 (emit-rtl.h): Include.
19617 (TYPES_QUADOP_LANE_PAIR): New.
19618 (aarch64_simd_expand_args): Use it.
19619 (aarch64_simd_expand_builtin): Likewise.
19620 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
19621 New.
19622 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
19623 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
19624 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
19625 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
19626 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
19627 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
19628 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
19629 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
19630 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
19631 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
19632 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
19633 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
19634 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
19635 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19636 Add __ARM_FEATURE_COMPLEX.
19637 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
19638 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
19639 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
19640 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19641 fcmlaq_lane270): New.
19642 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19643 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
19644 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
19645 * config/aarch64/arm_neon.h:
19646 (vcadd_rot90_f16): New.
19647 (vcaddq_rot90_f16): New.
19648 (vcadd_rot270_f16): New.
19649 (vcaddq_rot270_f16): New.
19650 (vcmla_f16): New.
19651 (vcmlaq_f16): New.
19652 (vcmla_lane_f16): New.
19653 (vcmla_laneq_f16): New.
19654 (vcmlaq_lane_f16): New.
19655 (vcmlaq_rot90_lane_f16): New.
19656 (vcmla_rot90_laneq_f16): New.
19657 (vcmla_rot90_lane_f16): New.
19658 (vcmlaq_rot90_f16): New.
19659 (vcmla_rot90_f16): New.
19660 (vcmlaq_laneq_f16): New.
19661 (vcmla_rot180_laneq_f16): New.
19662 (vcmla_rot180_lane_f16): New.
19663 (vcmlaq_rot180_f16): New.
19664 (vcmla_rot180_f16): New.
19665 (vcmlaq_rot90_laneq_f16): New.
19666 (vcmlaq_rot270_laneq_f16): New.
19667 (vcmlaq_rot270_lane_f16): New.
19668 (vcmla_rot270_laneq_f16): New.
19669 (vcmlaq_rot270_f16): New.
19670 (vcmla_rot270_f16): New.
19671 (vcmlaq_rot180_laneq_f16): New.
19672 (vcmlaq_rot180_lane_f16): New.
19673 (vcmla_rot270_lane_f16): New.
19674 (vcadd_rot90_f32): New.
19675 (vcaddq_rot90_f32): New.
19676 (vcaddq_rot90_f64): New.
19677 (vcadd_rot270_f32): New.
19678 (vcaddq_rot270_f32): New.
19679 (vcaddq_rot270_f64): New.
19680 (vcmla_f32): New.
19681 (vcmlaq_f32): New.
19682 (vcmlaq_f64): New.
19683 (vcmla_lane_f32): New.
19684 (vcmla_laneq_f32): New.
19685 (vcmlaq_lane_f32): New.
19686 (vcmlaq_laneq_f32): New.
19687 (vcmla_rot90_f32): New.
19688 (vcmlaq_rot90_f32): New.
19689 (vcmlaq_rot90_f64): New.
19690 (vcmla_rot90_lane_f32): New.
19691 (vcmla_rot90_laneq_f32): New.
19692 (vcmlaq_rot90_lane_f32): New.
19693 (vcmlaq_rot90_laneq_f32): New.
19694 (vcmla_rot180_f32): New.
19695 (vcmlaq_rot180_f32): New.
19696 (vcmlaq_rot180_f64): New.
19697 (vcmla_rot180_lane_f32): New.
19698 (vcmla_rot180_laneq_f32): New.
19699 (vcmlaq_rot180_lane_f32): New.
19700 (vcmlaq_rot180_laneq_f32): New.
19701 (vcmla_rot270_f32): New.
19702 (vcmlaq_rot270_f32): New.
19703 (vcmlaq_rot270_f64): New.
19704 (vcmla_rot270_lane_f32): New.
19705 (vcmla_rot270_laneq_f32): New.
19706 (vcmlaq_rot270_lane_f32): New.
19707 (vcmlaq_rot270_laneq_f32): New.
19708 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
19709 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
19710 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
19711 (FCADD, FCMLA): New.
19712 (rot): New.
19713 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
19714
19715 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19716
19717 PR other/16615
19718
19719 * config/pa/pa.c: Change "can not" to "cannot".
19720 * gimple-ssa-evrp-analyze.c: Likewise.
19721 * ipa-icf.c: Likewise.
19722 * ipa-polymorphic-call.c: Likewise.
19723 * ipa-pure-const.c: Likewise.
19724 * lra-constraints.c: Likewise.
19725 * lra-remat.c: Likewise.
19726 * reload1.c: Likewise.
19727 * reorg.c: Likewise.
19728 * tree-ssa-uninit.c: Likewise.
19729
19730 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19731
19732 PR other/16615
19733
19734 * Makefile.in: Mechanically replace "can not" with "cannot".
19735 * alias.c: Likewise.
19736 * builtins.c: Likewise.
19737 * calls.c: Likewise.
19738 * cgraph.c: Likewise.
19739 * cgraph.h: Likewise.
19740 * cgraphclones.c: Likewise.
19741 * cgraphunit.c: Likewise.
19742 * combine-stack-adj.c: Likewise.
19743 * combine.c: Likewise.
19744 * common/config/i386/i386-common.c: Likewise.
19745 * config/aarch64/aarch64.c: Likewise.
19746 * config/alpha/sync.md: Likewise.
19747 * config/arc/arc.c: Likewise.
19748 * config/arc/predicates.md: Likewise.
19749 * config/arm/arm-c.c: Likewise.
19750 * config/arm/arm.c: Likewise.
19751 * config/arm/arm.h: Likewise.
19752 * config/arm/arm.md: Likewise.
19753 * config/arm/cortex-r4f.md: Likewise.
19754 * config/csky/csky.c: Likewise.
19755 * config/csky/csky.h: Likewise.
19756 * config/darwin-f.c: Likewise.
19757 * config/epiphany/epiphany.md: Likewise.
19758 * config/i386/i386.c: Likewise.
19759 * config/i386/sol2.h: Likewise.
19760 * config/m68k/m68k.c: Likewise.
19761 * config/mcore/mcore.h: Likewise.
19762 * config/microblaze/microblaze.md: Likewise.
19763 * config/mips/20kc.md: Likewise.
19764 * config/mips/sb1.md: Likewise.
19765 * config/nds32/nds32.c: Likewise.
19766 * config/nds32/predicates.md: Likewise.
19767 * config/pa/pa.c: Likewise.
19768 * config/rs6000/e300c2c3.md: Likewise.
19769 * config/rs6000/rs6000.c: Likewise.
19770 * config/s390/s390.h: Likewise.
19771 * config/sh/sh.c: Likewise.
19772 * config/sh/sh.md: Likewise.
19773 * config/spu/vmx2spu.h: Likewise.
19774 * cprop.c: Likewise.
19775 * dbxout.c: Likewise.
19776 * df-scan.c: Likewise.
19777 * doc/cfg.texi: Likewise.
19778 * doc/extend.texi: Likewise.
19779 * doc/fragments.texi: Likewise.
19780 * doc/gty.texi: Likewise.
19781 * doc/invoke.texi: Likewise.
19782 * doc/lto.texi: Likewise.
19783 * doc/md.texi: Likewise.
19784 * doc/objc.texi: Likewise.
19785 * doc/rtl.texi: Likewise.
19786 * doc/tm.texi: Likewise.
19787 * dse.c: Likewise.
19788 * emit-rtl.c: Likewise.
19789 * emit-rtl.h: Likewise.
19790 * except.c: Likewise.
19791 * expmed.c: Likewise.
19792 * expr.c: Likewise.
19793 * fold-const.c: Likewise.
19794 * genautomata.c: Likewise.
19795 * gimple-fold.c: Likewise.
19796 * hard-reg-set.h: Likewise.
19797 * ifcvt.c: Likewise.
19798 * ipa-comdats.c: Likewise.
19799 * ipa-cp.c: Likewise.
19800 * ipa-devirt.c: Likewise.
19801 * ipa-fnsummary.c: Likewise.
19802 * ipa-icf.c: Likewise.
19803 * ipa-inline-transform.c: Likewise.
19804 * ipa-inline.c: Likewise.
19805 * ipa-polymorphic-call.c: Likewise.
19806 * ipa-profile.c: Likewise.
19807 * ipa-prop.c: Likewise.
19808 * ipa-pure-const.c: Likewise.
19809 * ipa-reference.c: Likewise.
19810 * ipa-split.c: Likewise.
19811 * ipa-visibility.c: Likewise.
19812 * ipa.c: Likewise.
19813 * ira-build.c: Likewise.
19814 * ira-color.c: Likewise.
19815 * ira-conflicts.c: Likewise.
19816 * ira-costs.c: Likewise.
19817 * ira-int.h: Likewise.
19818 * ira-lives.c: Likewise.
19819 * ira.c: Likewise.
19820 * ira.h: Likewise.
19821 * loop-invariant.c: Likewise.
19822 * loop-unroll.c: Likewise.
19823 * lower-subreg.c: Likewise.
19824 * lra-assigns.c: Likewise.
19825 * lra-constraints.c: Likewise.
19826 * lra-eliminations.c: Likewise.
19827 * lra-lives.c: Likewise.
19828 * lra-remat.c: Likewise.
19829 * lra-spills.c: Likewise.
19830 * lra.c: Likewise.
19831 * lto-cgraph.c: Likewise.
19832 * lto-streamer-out.c: Likewise.
19833 * postreload-gcse.c: Likewise.
19834 * predict.c: Likewise.
19835 * profile-count.h: Likewise.
19836 * profile.c: Likewise.
19837 * recog.c: Likewise.
19838 * ree.c: Likewise.
19839 * reload.c: Likewise.
19840 * reload1.c: Likewise.
19841 * reorg.c: Likewise.
19842 * resource.c: Likewise.
19843 * rtl.def: Likewise.
19844 * rtl.h: Likewise.
19845 * rtlanal.c: Likewise.
19846 * sched-deps.c: Likewise.
19847 * sched-ebb.c: Likewise.
19848 * sched-rgn.c: Likewise.
19849 * sel-sched-ir.c: Likewise.
19850 * sel-sched.c: Likewise.
19851 * shrink-wrap.c: Likewise.
19852 * simplify-rtx.c: Likewise.
19853 * symtab.c: Likewise.
19854 * target.def: Likewise.
19855 * toplev.c: Likewise.
19856 * tree-call-cdce.c: Likewise.
19857 * tree-cfg.c: Likewise.
19858 * tree-complex.c: Likewise.
19859 * tree-core.h: Likewise.
19860 * tree-eh.c: Likewise.
19861 * tree-inline.c: Likewise.
19862 * tree-loop-distribution.c: Likewise.
19863 * tree-nrv.c: Likewise.
19864 * tree-profile.c: Likewise.
19865 * tree-sra.c: Likewise.
19866 * tree-ssa-alias.c: Likewise.
19867 * tree-ssa-dce.c: Likewise.
19868 * tree-ssa-dom.c: Likewise.
19869 * tree-ssa-forwprop.c: Likewise.
19870 * tree-ssa-loop-im.c: Likewise.
19871 * tree-ssa-loop-ivcanon.c: Likewise.
19872 * tree-ssa-loop-ivopts.c: Likewise.
19873 * tree-ssa-loop-niter.c: Likewise.
19874 * tree-ssa-phionlycprop.c: Likewise.
19875 * tree-ssa-phiopt.c: Likewise.
19876 * tree-ssa-propagate.c: Likewise.
19877 * tree-ssa-threadedge.c: Likewise.
19878 * tree-ssa-threadupdate.c: Likewise.
19879 * tree-ssa-uninit.c: Likewise.
19880 * tree-ssanames.c: Likewise.
19881 * tree-streamer-out.c: Likewise.
19882 * tree.c: Likewise.
19883 * tree.h: Likewise.
19884 * vr-values.c: Likewise.
19885
19886 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
19887
19888 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
19889 (ix86_split_xorsign): Ditto.
19890 * config/i386/i386.c (ix86_expand_xorsign): New function.
19891 (ix86_split_xorsign): Ditto.
19892 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
19893 (xorsign<mode>3): New expander.
19894 (xorsign<mode>3_1): New insn_and_split pattern.
19895 * config/i386/sse.md (xorsign<mode>3): New expander.
19896
19897 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19898
19899 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
19900 (*tablejump_sp64): Likewise.
19901 (*tablejump<P:mode>): ...this.
19902 (*call_address_sp32): Merge into...
19903 (*call_address_sp64): Likewise.
19904 (*call_address<P:mode>): ...this.
19905 (*call_symbolic_sp32): Merge into...
19906 (*call_symbolic_sp64): Likewise.
19907 (*call_symbolic<P:mode>): ...this.
19908 (call_value): Remove constraint and add predicate.
19909 (*call_value_address_sp32): Merge into...
19910 (*call_value_address_sp64): Likewise.
19911 (*call_value_address<P:mode>): ...this.
19912 (*call_value_symbolic_sp32): Merge into...
19913 (*call_value_symbolic_sp64): Likewise.
19914 (*call_value_symbolic<P:mode>): ...this.
19915 (*sibcall_symbolic_sp32): Merge into...
19916 (*sibcall_symbolic_sp64): Likewise.
19917 (*sibcall_symbolic<P:mode>): ...this.
19918 (sibcall_value): Remove constraint and add predicate.
19919 (*sibcall_value_symbolic_sp32): Merge into...
19920 (*sibcall_value_symbolic_sp64): Likewise.
19921 (*sibcall_value_symbolic<P:mode>): ...this.
19922 (window_save): Minor tweak.
19923 (*branch_sp32): Merge into...
19924 (*branch_sp64): Likewise.
19925 (*branch<P:mode>): ...this.
19926
19927 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19928 James Clarke <jrtc27@jrtc27.com>
19929
19930 PR target/84010
19931 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
19932 consistently in TLS address generation and adjust code to the renaming
19933 of patterns. Mark calls to __tls_get_addr as const.
19934 * config/sparc/sparc.md (tgd_hi22): Turn into...
19935 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
19936 (tgd_lo10): Turn into...
19937 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
19938 (tgd_add32): Merge into...
19939 (tgd_add64): Likewise.
19940 (tgd_add<P:mode>): ...this and use Pmode throughout.
19941 (tldm_hi22): Turn into...
19942 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
19943 (tldm_lo10): Turn into...
19944 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
19945 (tldm_add32): Merge into...
19946 (tldm_add64): Likewise.
19947 (tldm_add<P:mode>): ...this and use Pmode throughout.
19948 (tldm_call32): Merge into...
19949 (tldm_call64): Likewise.
19950 (tldm_call<P:mode>): ...this and use Pmode throughout.
19951 (tldo_hix22): Turn into...
19952 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
19953 (tldo_lox10): Turn into...
19954 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
19955 (tldo_add32): Merge into...
19956 (tldo_add64): Likewise.
19957 (tldo_add<P:mode>): ...this and use Pmode throughout.
19958 (tie_hi22): Turn into...
19959 (tie_hi22<P:mode>): ...this and use Pmode throughout.
19960 (tie_lo10): Turn into...
19961 (tie_lo10<P:mode>): ...this and use Pmode throughout.
19962 (tie_ld64): Use DImode throughout.
19963 (tie_add32): Merge into...
19964 (tie_add64): Likewise.
19965 (tie_add<P:mode>): ...this and use Pmode throughout.
19966 (tle_hix22_sp32): Merge into...
19967 (tle_hix22_sp64): Likewise.
19968 (tle_hix22<P:mode>): ...this and use Pmode throughout.
19969 (tle_lox22_sp32): Merge into...
19970 (tle_lox22_sp64): Likewise.
19971 (tle_lox22<P:mode>): ...this and use Pmode throughout.
19972 (*tldo_ldub_sp32): Merge into...
19973 (*tldo_ldub_sp64): Likewise.
19974 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
19975 (*tldo_ldub1_sp32): Merge into...
19976 (*tldo_ldub1_sp64): Likewise.
19977 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
19978 (*tldo_ldub2_sp32): Merge into...
19979 (*tldo_ldub2_sp64): Likewise.
19980 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
19981 (*tldo_ldsb1_sp32): Merge into...
19982 (*tldo_ldsb1_sp64): Likewise.
19983 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
19984 (*tldo_ldsb2_sp32): Merge into...
19985 (*tldo_ldsb2_sp64): Likewise.
19986 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
19987 (*tldo_ldub3_sp64): Use DImode throughout.
19988 (*tldo_ldsb3_sp64): Likewise.
19989 (*tldo_lduh_sp32): Merge into...
19990 (*tldo_lduh_sp64): Likewise.
19991 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
19992 (*tldo_lduh1_sp32): Merge into...
19993 (*tldo_lduh1_sp64): Likewise.
19994 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
19995 (*tldo_ldsh1_sp32): Merge into...
19996 (*tldo_ldsh1_sp64): Likewise.
19997 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
19998 (*tldo_lduh2_sp64): Use DImode throughout.
19999 (*tldo_ldsh2_sp64): Likewise.
20000 (*tldo_lduw_sp32): Merge into...
20001 (*tldo_lduw_sp64): Likewise.
20002 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
20003 (*tldo_lduw1_sp64): Use DImode throughout.
20004 (*tldo_ldsw1_sp64): Likewise.
20005 (*tldo_ldx_sp64): Likewise.
20006 (*tldo_stb_sp32): Merge into...
20007 (*tldo_stb_sp64): Likewise.
20008 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
20009 (*tldo_sth_sp32): Merge into...
20010 (*tldo_sth_sp64): Likewise.
20011 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
20012 (*tldo_stw_sp32): Merge into...
20013 (*tldo_stw_sp64): Likewise.
20014 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
20015 (*tldo_stx_sp64): Use DImode throughout.
20016
20017 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20018
20019 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
20020 check configure option to set BTI and Return Address Signing.
20021 * configure.ac: Add --enable-standard-branch-protection and
20022 --disable-standard-branch-protection.
20023 * configure: Regenerated.
20024 * doc/install.texi: Document the same.
20025
20026 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20027 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20028
20029 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
20030 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
20031 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
20032 if bti is enabled.
20033 * config/aarch64/aarch64-bti-insert.c: New file.
20034 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
20035 pass.
20036 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
20037 new bti pass.
20038 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
20039 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
20040 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
20041 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
20042
20043 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20044
20045 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
20046 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
20047 Disable bti for -mbranch-protection=none.
20048 (aarch64_handle_standard_branch_protection): Enable bti for
20049 -mbranch-protection=standard.
20050 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
20051 -mbranch-protection.
20052 (aarch64_bti_enabled): Check if bti is enabled.
20053 * config/aarch64/aarch64.opt: Declare target variable.
20054 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
20055
20056 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20057
20058 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
20059 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
20060 (aarch64_expand_epilogue): Likewise.
20061 (aarch64_output_mi_thunk): Likewise.
20062 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
20063 TAILCALL_ADDR_REGS to x16 and x17.
20064 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
20065
20066 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20067
20068 * config/aarch64/aarch64-option-extensions.def: Define
20069 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
20070 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
20071 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
20072 (AARCH64_FL_PREDRES): New.
20073 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
20074 AARCH64_FL_PREDRES by default.
20075 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
20076
20077 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20078
20079 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
20080 ARMv8.5-A.
20081 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
20082 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
20083 * doc/invoke.texi: Document ARMv8.5-A.
20084
20085 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20086
20087 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
20088 (xorsign<mode>3): Likewise.
20089
20090 2019-01-09 Jelinek <jakub@redhat.com>
20091
20092 PR middle-end/88758
20093 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
20094 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
20095
20096 PR rtl-optimization/88331
20097 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
20098 not currently_expanding_to_rtl.
20099
20100 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20101
20102 * doc/invoke.texi (-Os): Remove trailing spaces.
20103 (-finline-functions): Remove reference to -O2.
20104
20105 2019-01-08 Jakub Jelinek <jakub@redhat.com>
20106
20107 PR rtl-optimization/79593
20108 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
20109
20110 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
20111 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
20112
20113 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
20114
20115 PR bootstrap/88721
20116 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
20117 to -1 on entry.
20118
20119 PR debug/88723
20120 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
20121 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
20122
20123 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
20124
20125 PR target/88717
20126 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
20127 ix86_avx_u128_mode_entry.
20128
20129 2019-01-08 Martin Liska <mliska@suse.cz>
20130
20131 PR tree-optimization/88753
20132 * tree-switch-conversion.c (switch_conversion::build_one_array):
20133 Come up with local variable constructor. Convert first to
20134 type of constructor values.
20135
20136 2019-01-08 Richard Biener <rguenther@suse.de>
20137
20138 PR tree-optimization/86554
20139 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
20140 rpo_avail): Move earlier.
20141 (visit_nary_op): When value-numbering to expressions
20142 with different overflow behavior make sure there's an
20143 available expression on the path.
20144
20145 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
20146
20147 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
20148 aarch64_parse_branch_protection,
20149 struct aarch64_branch_protect_type,
20150 aarch64_handle_no_branch_protection,
20151 aarch64_handle_standard_branch_protection,
20152 aarch64_validate_mbranch_protection,
20153 aarch64_handle_pac_ret_protection,
20154 aarch64_handle_attr_branch_protection,
20155 accepted_branch_protection_string,
20156 aarch64_pac_ret_subtypes,
20157 aarch64_branch_protect_types,
20158 aarch64_handle_pac_ret_leaf): Define.
20159 (aarch64_override_options_after_change_1, aarch64_override_options):
20160 Add check for accepted_branch_protection_string.
20161 (aarch64_option_save): Save accepted_branch_protection_string.
20162 (aarch64_option_restore): Save accepted_branch_protection_string.
20163 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
20164 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
20165 msign-return-address.
20166 * doc/invoke.texi: Add mbranch-protection.
20167
20168 2019-01-08 Alan Modra <amodra@gmail.com>
20169
20170 PR target/88614
20171 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
20172 Delete "unknownp" parameter. Adjust callers. Handle
20173 CONST_INT, PLUS, MINUS, and MULT.
20174 (attr_value_aligned): Renamed from or_attr_value.
20175 (min_attr_value): Return INT_MIN for unhandled rtl case..
20176 (min_fn): ..and translate to INT_MAX here.
20177 (write_length_unit_log): Modify to cope without "unknown".
20178 (write_attr_value): Handle IF_THEN_ELSE.
20179
20180 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20181
20182 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
20183 optimization for masked stores.
20184
20185 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20186
20187 PR middle-end/88567
20188 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
20189 output vector directly to duplicate_and_interleave instead of
20190 going through a temporary. Postpone insertion of ctor_seq to
20191 the end of the loop.
20192
20193 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
20194
20195 PR target/86891
20196 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
20197 unsigned_p. Handle signed and unsigned overflow correction as
20198 required.
20199 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
20200 prototype.
20201 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
20202 for operand 2.
20203 (add<mode>3_compareV_imm): Make this callable for expanding.
20204 (subv<GPI:mode>4): Use register_operand for operand 1. Use
20205 aarch64_plus_operand for operand 2.
20206 (subv<GPI:mode>_insn): New insn pattern.
20207 (subv<GPI:mode>_imm): Likewise.
20208 (negv<GPI:mode>3): New expand pattern.
20209 (negv<GPI:mode>_insn): New insn pattern.
20210 (negv<GPI:mode>_cmp_only): Likewise.
20211 (cmpv<GPI:mode>_insn): Likewise.
20212 (subvti4): Use register_operand for operand 1. Update call to
20213 aarch64_expand_subvti.
20214 (usubvti4): Likewise.
20215 (negvti3): New expand pattern.
20216 (negdi_carryout): New insn pattern.
20217 (negvdi_carryinV): New insn pattern.
20218 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
20219 version the named version.
20220 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
20221 operands.
20222 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
20223 patterns.
20224 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
20225 patterns.
20226 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
20227 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
20228 (sub<mode>3_carryinCV): Delete.
20229 (sub<GPI:mode>3_carryinV): New expand pattern.
20230 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
20231
20232 2019-01-07 Richard Biener <rguenther@suse.de>
20233
20234 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
20235 of tree_operand_hash.
20236
20237 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20238
20239 PR tree-optimization/88598
20240 * tree.h (single_nonzero_element): Declare.
20241 * tree.c (single_nonzero_element): New function.
20242 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
20243 if I is the only nonzero element of CST.
20244
20245 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20246
20247 PR tree-optimization/88598
20248 * tree.h (initializer_each_zero_or_onep): Declare.
20249 * tree.c (initializer_each_zero_or_onep): New function.
20250 (signed_or_unsigned_type_for): Handle float types too.
20251 (unsigned_type_for, signed_type_for): Update comments accordingly.
20252 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
20253 x & { 0 or -1, 0 or -1, ... }.
20254
20255 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
20256
20257 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
20258 with x86_64-pc-linux-gnu.
20259
20260 2019-01-07 Tom de Vries <tdevries@suse.de>
20261
20262 PR target/85486
20263 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
20264 function.
20265 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
20266 routines.
20267
20268 2019-01-07 Jakub Jelinek <jakub@redhat.com>
20269
20270 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
20271 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
20272 TARGET_AVX512F as condition.
20273
20274 PR debug/88723
20275 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
20276 const_not_ok_for_debug_p target hook.
20277 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20278 on UNSPEC and subexpressions thereof if all subexpressions of the
20279 UNSPEC are CONSTANT_P.
20280
20281 PR tree-optimization/88676
20282 * tree-ssa-phiopt.c (two_value_replacement): New function.
20283 (tree_ssa_phiopt_worker): Call it.
20284
20285 PR sanitizer/88619
20286 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20287 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20288
20289 PR c++/85052
20290 * tree-vect-generic.c: Include insn-config.h and recog.h.
20291 (expand_vector_piecewise): Add defaulted ret_type argument,
20292 if non-NULL, use that in preference to type for the result type.
20293 (expand_vector_parallel): Formatting fix.
20294 (do_vec_conversion, do_vec_narrowing_conversion,
20295 expand_vector_conversion): New functions.
20296 (expand_vector_operations_1): Call expand_vector_conversion
20297 for VEC_CONVERT ifn calls.
20298 * internal-fn.def (VEC_CONVERT): New internal function.
20299 * internal-fn.c (expand_VEC_CONVERT): New function.
20300 * fold-const-call.c (fold_const_vec_convert): New function.
20301 (fold_const_call): Use it for CFN_VEC_CONVERT.
20302 * doc/extend.texi (__builtin_convertvector): Document.
20303
20304 2019-01-07 Tom de Vries <tdevries@suse.de>
20305
20306 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20307 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20308 vector_red_partition, vector_red_sym): New global variables.
20309 (nvptx_option_override): Initialize vector_red_sym.
20310 (nvptx_declare_function_name): Restore red_partition register.
20311 (nvptx_file_end): Emit code to declare the vector reduction variables.
20312 (nvptx_output_red_partition): New function.
20313 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20314 large vector reductions.
20315 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20316 (nvptx_init_builtins): Add VECTOR_ADDR.
20317 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20318 Handle nvptx_expand_shared_addr.
20319 (nvptx_get_shared_red_addr): Add vector argument and handle large
20320 vectors.
20321 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20322 large vectors.
20323 (nvptx_goacc_reduction_init): Likewise.
20324 (nvptx_goacc_reduction_fini): Likewise.
20325 (nvptx_goacc_reduction_teardown): Likewise.
20326 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20327 init,fini,teardown}.
20328 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20329 (nvptx_set_current_function): Init vector_red_partition.
20330 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20331 (nvptx_red_partition): New insn.
20332 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20333
20334 2019-01-07 Tom de Vries <tdevries@suse.de>
20335
20336 PR target/85381
20337 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20338 empty loops.
20339
20340 2019-01-07 Tom de Vries <tdevries@suse.de>
20341
20342 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20343 (nvptx_option_override): Init oacc_bcast_partition.
20344 (nvptx_init_oacc_workers): New function.
20345 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20346 (nvptx_needs_shared_bcast): New function.
20347 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20348 to propagate state.
20349 (nvptx_shared_propagate): Initialize vector bcast partition and
20350 synchronization state.
20351 (nvptx_single): Generalize to enable vectors to use shared-memory
20352 to propagate state.
20353 (nvptx_process_pars): Likewise.
20354 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20355 * config/nvptx/nvptx.h (struct machine_function): Add
20356 bcast_partition and sync_bar members.
20357
20358 2019-01-07 Tom de Vries <tdevries@suse.de>
20359
20360 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20361 (nvptx_apply_dim_limits): New function.
20362 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20363 PTX_WARP_SIZE.
20364
20365 2019-01-07 Tom de Vries <tdevries@suse.de>
20366
20367 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20368 as late as possible.
20369
20370 2019-01-07 Tom de Vries <tdevries@suse.de>
20371
20372 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20373 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20374 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20375 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20376 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20377
20378 2019-01-07 Tom de Vries <tdevries@suse.de>
20379
20380 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20381
20382 2019-01-07 Tom de Vries <tdevries@suse.de>
20383
20384 * omp-offload.c (oacc_get_min_dim): New function.
20385 * omp-offload.h (oacc_get_min_dim): Declare.
20386
20387 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20388
20389 PR target/88521
20390 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20391 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20392
20393 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20394
20395 PR tree-opt/86020
20396 Revert:
20397 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20398
20399 * ipa-inline.c (edge_badness): Use inlined_time instead of
20400 inline_summaries->get.
20401
20402 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20403
20404 * opts.c (enable_fdo_optimizations): Enable
20405 version-loops-for-strides, loop-interchange, unrol-and-jam
20406 and tree-loop-distribution.
20407 * invoke.texi: Document newly enabled options.
20408
20409 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20410
20411 * doc/invoke.texi (max-inline-insns-small): New parameters.
20412 * ipa-inline.c (want_early_inline_function_p): simplify.
20413 (want_inline_small_function_p): Fix pasto from previous patch;
20414 use max-inline-insns-small bound.
20415 * params.def (max-inline-insns-small): New param.
20416 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20417 variables correctly.
20418
20419 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20420
20421 * doc/invoke.texi: Document max-inline-insns-size,
20422 uninlined-function-insns, uninlined-function-time,
20423 uninlined-thunk-insns and uninlined-thunk-time.
20424 * params.def: Add max-inline-insns-size,
20425 uninlined-function-insns, uninlined-function-time,
20426 uninlined-thunk-insns and uninlined-thunk-time.
20427 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20428 new parameters.
20429 * ipa-inline.c (can_inline_edge_by_limits_p,
20430 want_inline_small_function_p): Use new parameters.
20431
20432 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20433
20434 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20435
20436 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20437
20438 PR middle-end/82564
20439 PR target/88620
20440 * expr.c (expand_assignment): For calls returning VLA structures
20441 if to_rtx is not a MEM, force it into a stack temporary.
20442
20443 PR debug/88635
20444 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20445 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20446 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20447 subexpressions of both operands.
20448 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20449 subrtxes are CONSTANT_P.
20450 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20451 2018-11-09 changes.
20452
20453 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20454
20455 * params.def (hot-bb-count-ws-permille): Set to 990.
20456
20457 2019-01-04 Martin Sebor <msebor@redhat.com>
20458
20459 PR c/88546
20460 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20461 leaf.
20462
20463 2019-01-04 Martin Sebor <msebor@redhat.com>
20464
20465 PR c/88363
20466 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20467
20468 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20469
20470 * gdbinit.in: Turn off pagination for the skip commands, restore
20471 it to previous state afterwards.
20472
20473 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20474
20475 PR target/88594
20476 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20477 of GET_MODE (opN) as modes of the libcall arguments.
20478
20479 2019-01-04 Jan Beulich <jbeulich@suse.com>
20480
20481 * config/i386/sse.md
20482 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20483 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20484 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20485 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20486 avx512f_vmcmp<mode>3<round_saeonly_name>,
20487 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20488 avx512f_maskcmp<mode>3,
20489 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20490 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20491 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20492 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20493 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20494 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20495 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20496 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20497 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20498 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20499 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20500 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20501 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20502 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20503 avx512cd_maskb_vec_dup<mode>,
20504 avx512cd_maskw_vec_dup<mode>,
20505 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20506 avx512dq_vmfpclass<mode>,
20507 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20508 instead of =Yk.
20509
20510 2019-01-03 Martin Sebor <msebor@redhat.com>
20511
20512 PR tree-optimization/88659
20513 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20514
20515 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20516
20517 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20518 unaligned vsx and avoid lxvd2x/stxvd2x.
20519 (gen_lvx_v4si_move): New function.
20520
20521 2019-01-03 Tom de Vries <tdevries@suse.de>
20522
20523 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20524 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20525 function.
20526 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20527
20528 2019-01-03 Tom de Vries <tdevries@suse.de>
20529
20530 * config/nvptx/nvptx.c (struct offload_attrs): New.
20531 (populate_offload_attrs): New function. Factor mask extraction out of
20532 nvptx_reorg. Add extraction of dimensions.
20533 (nvptx_reorg): Use populate_offload_attrs.
20534
20535 2019-01-03 Tom de Vries <tdevries@suse.de>
20536
20537 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20538 cases for oacc_min_dims_p and routine_p. Add asserts for
20539 oacc_default_dims_p and offload_region_p.
20540
20541 2019-01-03 Tom de Vries <tdevries@suse.de>
20542
20543 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20544 factored out of ...
20545 (nvptx_goacc_validate_dims): ... here.
20546
20547 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20548
20549 PR tree-optimization/85574
20550 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20551 structure.
20552 (struct ssa_equip_hash_traits): Declare.
20553 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20554
20555 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20556
20557 PR debug/88644
20558 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20559 change it to qualified_type.
20560
20561 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20562
20563 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20564 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20565
20566 2019-01-02 Martin Sebor <msebor@redhat.com>
20567 Jeff Law <law@redhat.com>
20568
20569 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20570 (get_range_strlen_tree): Update appropriately.
20571 (get_range_strlen)
20572 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20573
20574 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20575 rather than set_range_info.
20576 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20577 maybe_set_strlen_range. Handle potentially boundary crossing
20578 cases more conservatively.
20579 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20580 Call set_strlen_range.
20581 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20582
20583 PR middle-end/88663
20584 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20585 need the flexp argument.
20586 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20587 from calls to get_range_strlen. Update comments. Just update
20588 VAL for an unterminated const char array and let the reset of the
20589 code handle it normally. No longer try to set *flexp. Adjust
20590 return value.
20591 (get_range_strlen): Update for the new get_range_strlen API.
20592 (get_maxval_strlen): Similarly.
20593 (gimple_fold_builtin_strlen): Handle update meaning of return value
20594 from get_range_strlen.
20595 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20596 get_range_strlen API.
20597
20598 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20599
20600 PR lto/88130
20601 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
20602 false at WPA time when body was removed.
20603
20604 2019-01-02 Martin Liska <mliska@suse.cz>
20605
20606 PR tree-optimization/88650
20607 * predict.c (set_even_probabilities): Calculate probability
20608 remainer only when really used.
20609
20610 2019-01-02 Richard Biener <rguenther@suse.de>
20611
20612 PR middle-end/88651
20613 * tree-data-ref.c (analyze_subscript_affine_affine): Use
20614 widest_ints when mangling max_stmt_execution results.
20615
20616 2019-01-02 Richard Biener <rguenther@suse.de>
20617
20618 PR tree-optimization/88621
20619 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
20620 bitfields when canoncalizing.
20621
20622 2019-01-02 Richard Biener <rguenther@suse.de>
20623
20624 PR target/87545
20625 * config/i386/x86-tune-costs.h (intel_cost): Adjust
20626 cost of cheap SSE instruction.
20627
20628 2019-01-02 Richard Biener <rguenther@suse.de>
20629
20630 PR ipa/85574
20631 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
20632 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
20633 function.
20634 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
20635 set after UIDs before splitting them.
20636
20637 2019-01-01 Martin Sebor <msebor@redhat.com>
20638 Jeff Law <law@redhat.com>
20639
20640 * gimple-fold.c (get_range_strlen_tree): Record if the computed
20641 length is optimistic. If it is, then arrange to compute the
20642 conservative length as well.
20643
20644 * gimple-fold.h (get_range_strlen): Update prototype.
20645 * builtins.c (check_access): Update call to get_range_strlen to use
20646 c_strlen_data pointer. Change various variable accesses to instead
20647 pull data from the c_strlen_data structure.
20648 (check_strncat_sizes, expand_builtin_strncat): Likewise.
20649 * calls.c (maybe_warn_nonstring_arg): Likewise.
20650 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
20651 minimum length if maximum lengh is unknown.
20652 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
20653 that used c_strlen, it's no longer needed. Restructure slightly.
20654 (format_string): Set unlikely range appropriately.
20655 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
20656 formatting issues.
20657 (get_range_strlen): Accept c_strlen_data pointer for external
20658 call sites as well. Pass through to call to internal get_range_strlen.
20659 Adjust minlen, maxlen and maxbound as needed.
20660 (get_maxval_strlen): Update comments.
20661 (gimple_fold_builtin_strlen): Update call to get_range_strlen
20662 to use c_strlen_data pointer. Change variable accesses to instead
20663 use c_strlen_data data members.
20664
20665 * gimple-fold.c (get_range_strlen): Update prototype.
20666 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
20667 local variables. Use pdata to return information to caller.
20668 Update calls to get_range_strlen. Update pdata->maxbound.
20669 (get_range_strlen -- static version): Similarly.
20670 (get_range_strlen -- extern version): Update for internal
20671 get_range_strlen API change. Convert to external data format.
20672 (get_maxval_strlen): Similarly.
20673
20674 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
20675
20676 * coverage.c (get_coverage_counts): Use current_function_decl.
20677 * profile.c (read_thunk_profile): New function.
20678 (branch_prob): Add THUNK parameter.
20679 * tree-profile.c (tree_profiling): Handle thunks.
20680 * value-prof.c (init_node_map): Handle thunks.
20681 * value-prof.h (branch_prob): Upate prototype.
20682 (read_thunk_profile): Declare.
20683
20684 2019-01-01 Jakub Jelinek <jakub@redhat.com>
20685
20686 Update copyright years.
20687
20688 * gcc.c (process_command): Update copyright notice dates.
20689 * gcov-dump.c (print_version): Ditto.
20690 * gcov.c (print_version): Ditto.
20691 * gcov-tool.c (print_version): Ditto.
20692 * gengtype.c (create_file): Ditto.
20693 * doc/cpp.texi: Bump @copying's copyright year.
20694 * doc/cppinternals.texi: Ditto.
20695 * doc/gcc.texi: Ditto.
20696 * doc/gccint.texi: Ditto.
20697 * doc/gcov.texi: Ditto.
20698 * doc/install.texi: Ditto.
20699 * doc/invoke.texi: Ditto.
20700 \f
20701 Copyright (C) 2019 Free Software Foundation, Inc.
20702
20703 Copying and distribution of this file, with or without modification,
20704 are permitted in any medium without royalty provided the copyright
20705 notice and this notice are preserved.