]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
[aarch64]: add intrinsics for vld1(q)_x4 and vst1(q)_x4
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
2
3 * config/aarch64/aarch64-simd-builtins.def:
4 (ld1x4): New.
5 (st1x4): Likewise.
6 * config/aarch64/aarch64-simd.md:
7 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
8 (aarch64_st1x4<VALLDIF:mode>): Likewise.
9 (aarch64_ld1_x4_<mode>): Likewise.
10 (aarch64_st1_x4_<mode>): Likewise.
11 * config/aarch64/arm_neon.h:
12 (vld1_s8_x4): New function.
13 (vld1q_s8_x4): Likewise.
14 (vld1_s16_x4): Likewise.
15 (vld1q_s16_x4): Likewise.
16 (vld1_s32_x4): Likewise.
17 (vld1q_s32_x4): Likewise.
18 (vld1_u8_x4): Likewise.
19 (vld1q_u8_x4): Likewise.
20 (vld1_u16_x4): Likewise.
21 (vld1q_u16_x4): Likewise.
22 (vld1_u32_x4): Likewise.
23 (vld1q_u32_x4): Likewise.
24 (vld1_f16_x4): Likewise.
25 (vld1q_f16_x4): Likewise.
26 (vld1_f32_x4): Likewise.
27 (vld1q_f32_x4): Likewise.
28 (vld1_p8_x4): Likewise.
29 (vld1q_p8_x4): Likewise.
30 (vld1_p16_x4): Likewise.
31 (vld1q_p16_x4): Likewise.
32 (vld1_s64_x4): Likewise.
33 (vld1_u64_x4): Likewise.
34 (vld1_p64_x4): Likewise.
35 (vld1q_s64_x4): Likewise.
36 (vld1q_u64_x4): Likewise.
37 (vld1q_p64_x4): Likewise.
38 (vld1_f64_x4): Likewise.
39 (vld1q_f64_x4): Likewise.
40 (vst1_s8_x4): Likewise.
41 (vst1q_s8_x4): Likewise.
42 (vst1_s16_x4): Likewise.
43 (vst1q_s16_x4): Likewise.
44 (vst1_s32_x4): Likewise.
45 (vst1q_s32_x4): Likewise.
46 (vst1_u8_x4): Likewise.
47 (vst1q_u8_x4): Likewise.
48 (vst1_u16_x4): Likewise.
49 (vst1q_u16_x4): Likewise.
50 (vst1_u32_x4): Likewise.
51 (vst1q_u32_x4): Likewise.
52 (vst1_f16_x4): Likewise.
53 (vst1q_f16_x4): Likewise.
54 (vst1_f32_x4): Likewise.
55 (vst1q_f32_x4): Likewise.
56 (vst1_p8_x4): Likewise.
57 (vst1q_p8_x4): Likewise.
58 (vst1_p16_x4): Likewise.
59 (vst1q_p16_x4): Likewise.
60 (vst1_s64_x4): Likewise.
61 (vst1_u64_x4): Likewise.
62 (vst1_p64_x4): Likewise.
63 (vst1q_s64_x4): Likewise.
64 (vst1q_u64_x4): Likewise.
65 (vst1q_p64_x4): Likewise.
66 (vst1_f64_x4): Likewise.
67 (vst1q_f64_x4): Likewise.
68
69 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
70
71 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
72
73 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
74 Richard Sandiford <richard.sandiford@arm.com>
75
76 PR target/88839
77 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
78 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
79
80 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
81
82 PR target/90724
83 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
84 in reg if it fails aarch64_plus_operand predicate.
85
86 2019-08-21 Richard Biener <rguenther@suse.de>
87
88 PR tree-optimization/91482
89 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
90 BUILT_IN_ASSUME_ALIGNED calls.
91
92 2019-08-21 Richard Biener <rguenther@suse.de>
93
94 PR target/91498
95 PR target/91503
96 * config/i386/i386-features.c
97 (general_scalar_chain::make_vector_copies): Copy stack temporary
98 rtx when using it multiple times.
99 (general_scalar_chain::convert_reg): Likewise.
100
101 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
102
103 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
104
105 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
106
107 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
108 catch more redundant zero initialization cases.
109 (dse_dom_walker::dse_optimize_stmt): Likewise.
110
111 2019-08-20 Richard Biener <rguenther@suse.de>
112
113 PR lto/91307
114 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
115 by collect2 when targetm.have_ctors_dtors which avoids dragging
116 in temporary filenames from LTO input objects.
117
118 2019-08-20 Richard Biener <rguenther@suse.de>
119
120 PR tree-optimization/37242
121 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
122 to (T)a + (T)b if we know that a + b does not overflow.
123
124 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
125
126 PR rtl-optimization/91347
127 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
128 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
129
130 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
131
132 * calls.h (function_arg_info): Add a pass_by_reference field,
133 defaulting to false.
134 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
135 when applying pass-by-reference semantics.
136 (initialize_argument_information): Likewise.
137 (emit_library_call_value_1): Likewise.
138 * function.c (assign_parm_data_one): Remove passed_pointer field.
139 (assign_parm_find_data_types): Don't set it.
140 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
141 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
142 arg.pass_by_reference instead of passed_pointer.
143
144 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
145
146 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
147 into a single function_arg_info, updating its fields when we
148 apply pass-by-reference and promotion semantics. Use the
149 function_arg_info to track the mode rather than keeping it in
150 a separate local variable.
151 (initialize_argument_information): Likewise. Base the final
152 arg_to_skip on this new function_arg_info rather than creating
153 a new one from scratch.
154
155 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
156
157 * function.c (assign_parm_data_one): Replace passed_type,
158 promoted_mode and named_arg with a function_arg_info field.
159 (assign_parm_find_data_types): Remove local variables and
160 assign directly to "data". Make data->passed_mode shadow
161 data->arg.mode until promotion, then assign the promoted
162 mode to data->arg.mode.
163 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
164 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
165 (assign_parm_remove_parallels, assign_parm_setup_block_p)
166 (assign_parm_setup_block, assign_parm_setup_reg)
167 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
168 arg.mode instead of promoted_mode, arg.type instead of passed_type
169 and arg.named instead of named_arg. Use data->arg for
170 function_arg_info structures that had the field values passed_type,
171 promoted_mode and named_arg. Base other function_arg_infos on
172 data->arg, changing the necessary properties.
173
174 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
175
176 * calls.h (apply_pass_by_reference_rules): Declare.
177 * calls.c (apply_pass_by_reference_rules): New function.
178 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
179 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
180 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
181 * function.c (assign_parm_find_data_types): Likewise.
182 * var-tracking.c (prepare_call_arguments): Likewise.
183
184 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
185
186 * target.def (must_pass_in_stack): Take a function_arg_info instead
187 of a mode and a type.
188 * doc/tm.texi: Regenerate.
189 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
190 instead of a mode and a type.
191 (must_pass_in_stack_var_size_or_pad): Likewise.
192 * calls.c (must_pass_in_stack_var_size): Likewise.
193 (must_pass_in_stack_var_size_or_pad): Likewise.
194 (initialize_argument_information): Update call to
195 targetm.calls.must_pass_in_stack.
196 (must_pass_va_arg_on_stack): Likewise.
197 * function.c (assign_parm_find_entry_rtl): Likewise.
198 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
199 * config/alpha/alpha.c (alpha_function_arg): Likewise.
200 (alpha_function_arg_advance): Likewise.
201 * config/cr16/cr16.c (cr16_function_arg): Likewise.
202 (cr16_function_arg_advance): Likewise.
203 * config/cris/cris.c (cris_pass_by_reference): Likewise.
204 (cris_arg_partial_bytes): Likewise.
205 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
206 * config/lm32/lm32.c (lm32_function_arg): Likewise.
207 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
208 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
209 * config/mips/mips.c (mips_pass_by_reference): Likewise.
210 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
211 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
212 * config/sh/sh.c (sh_pass_by_reference): Likewise.
213 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
214 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
215 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
216 instead of a mode and a type.
217 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
218 (fr30_num_arg_regs): Likewise.
219 (fr30_setup_incoming_varargs): Update calls accordingly.
220 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
221 (fr30_function_arg_advance): Likewise.
222 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
223 instead of a mode and a type.
224 * config/gcn/gcn.c (num_arg_regs): Likewise.
225 (gcn_function_arg, gcn_function_arg_advance): Update calls to
226 num_arg_regs and targetm.calls.must_pass_in_stack.
227 (gcn_arg_partial_bytes): Likewise.
228 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
229 function_arg_info instead of a mode and a type.
230 (classify_argument): Update call accordingly.
231 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
232 function_arg_info instead of a mode and a type.
233 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
234 Likewise.
235 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
236 (rs6000_parm_needs_stack): Update call accordingly.
237 (setup_incoming_varargs): Likewise.
238
239 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
240
241 * target.def (callee_copies): Take a function_arg_info instead
242 of a mode, type and named flag.
243 * doc/tm.texi: Regenerate.
244 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
245 instead of a mode, type and named flag.
246 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
247 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
248 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
249 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
250 instead of a mode, type and named flag.
251 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
252 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
253 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
254 * calls.h (reference_callee_copied): Take a function_arg_info
255 instead of a mode, type and named flag.
256 * calls.c (reference_callee_copied): Likewise.
257 (initialize_argument_information): Update call accordingly.
258 (emit_library_call_value_1): Likewise.
259 * function.c (gimplify_parameters): Likewise.
260 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
261 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
262 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
263 * config/c6x/c6x.c (c6x_callee_copies): Delete.
264 (TARGET_CALLEE_COPIES): Define to
265 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
266 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
267 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
268 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
269 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
270 instead of a mode, type and named flag.
271 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
272 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
273 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
274 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
275 * config/msp430/msp430.c (msp430_callee_copies): Delete.
276 (TARGET_CALLEE_COPIES): Define to
277 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
278 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
279 instead of a mode, type and named flag.
280 * config/sh/sh.c (sh_callee_copies): Likewise.
281 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
282 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
283 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
284
285 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
286
287 * target.def (function_arg_advance): Take a function_arg_info instead
288 of a mode, type and named flag.
289 * doc/tm.texi: Regenerate.
290 * targhooks.h (default_function_arg_advance): Take a function_arg_info
291 instead of a mode, type and named flag.
292 * targhooks.c (default_function_arg_advance): Likewise.
293 * calls.c (initialize_argument_information): Update call to
294 targetm.calls.function_arg_advance.
295 (emit_library_call_value_1): Likewise.
296 * dse.c (get_call_args): Likewise.
297 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
298 * function.c (assign_parms, gimplify_parameters): Likewise.
299 * var-tracking.c (prepare_call_arguments): Likewise.
300 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
301 function_arg_info instead of a mode, type and named flag.
302 (aarch64_setup_incoming_varargs): Update call accordingly.
303 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
304 function_arg_info instead of a mode, type and named flag.
305 (alpha_setup_incoming_varargs): Update call accordingly.
306 * config/arc/arc.c (arc_function_arg_advance): Take a
307 function_arg_info instead of a mode, type and named flag.
308 (arc_setup_incoming_varargs): Update call accordingly.
309 * config/arm/arm.c (arm_function_arg_advance): Take a
310 function_arg_info instead of a mode, type and named flag.
311 (cmse_func_args_or_return_in_stack): Update call accordingly.
312 (arm_function_ok_for_sibcall): Likewise.
313 (cmse_nonsecure_call_clear_caller_saved): Likewise.
314 * config/avr/avr.c (avr_function_arg_advance): Take a
315 function_arg_info instead of a mode, type and named flag.
316 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
317 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
318 (c6x_call_saved_register_used): Update call accordingly.
319 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
320 function_arg_info instead of a mode, type and named flag.
321 * config/cris/cris.c (cris_function_arg_advance): Likewise.
322 * config/csky/csky.c (csky_function_arg_advance): Likewise.
323 (csky_setup_incoming_varargs): Update call accordingly.
324 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
325 function_arg_info instead of a mode, type and named flag.
326 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
327 * config/frv/frv.c (frv_function_arg_advance): Likewise.
328 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
329 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
330 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
331 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
332 (ix86_setup_incoming_varargs): Update call accordingly.
333 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
334 function_arg_info instead of a mode, type and named flag.
335 (ia64_setup_incoming_varargs): Update call accordingly.
336 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
337 function_arg_info instead of a mode, type and named flag.
338 (iq2000_expand_prologue): Update call accordingly.
339 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
340 function_arg_info instead of a mode, type and named flag.
341 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
342 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
343 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
344 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
345 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
346 Likewise.
347 (microblaze_expand_prologue): Update call accordingly.
348 * config/mips/mips.c (mips_function_arg_advance): Take a
349 function_arg_info instead of a mode, type and named flag.
350 (mips_setup_incoming_varargs): Update call accordingly.
351 (mips_output_args_xfer): Likewise.
352 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
353 function_arg_info instead of a mode, type and named flag.
354 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
355 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
356 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
357 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
358 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
359 (nios2_setup_incoming_varargs): Update call accordingly.
360 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
361 function_arg_info instead of a mode, type and named flag.
362 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
363 * config/pa/pa.c (pa_function_arg_advance): Likewise.
364 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
365 * config/pru/pru.c (pru_function_arg_advance): Likewise.
366 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
367 (riscv_setup_incoming_varargs): Update call accordingly.
368 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
369 function_arg_info instead of a mode, type and named flag.
370 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
371 Likewise.
372 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
373 (rs6000_parm_needs_stack): Update call accordingly.
374 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
375 instead of a mode, type and named flag.
376 * config/s390/s390.c (s390_function_arg_advance): Likewise.
377 (s390_call_saved_register_used): Update call accordingly.
378 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
379 instead of a mode, type and named flag.
380 (sh_output_mi_thunk): Update call accordingly.
381 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
382 function_arg_info instead of a mode, type and named flag.
383 * config/spu/spu.c (spu_function_arg_advance): Likewise.
384 (spu_setup_incoming_varargs): Update call accordingly.
385 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
386 function_arg_info instead of a mode, type and named flag.
387 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
388 (tilegx_setup_incoming_varargs): Update call accordingly.
389 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
390 function_arg_info instead of a mode, type and named flag.
391 (tilegx_setup_incoming_varargs): Update call accordingly.
392 * config/v850/v850.c (v850_function_arg_advance): Take a
393 function_arg_info instead of a mode, type and named flag.
394 * config/vax/vax.c (vax_function_arg_advance): Likewise.
395 * config/visium/visium.c (visium_function_arg_advance): Likewise.
396 (visium_setup_incoming_varargs): Update call accordingly.
397 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
398 function_arg_info instead of a mode, type and named flag.
399
400 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
401
402 * target.def (function_arg, function_incoming_arg): Take a
403 function_arg_info instead of a mode, tree and named flag.
404 * doc/tm.texi: Regenerate.
405 * targhooks.h (default_function_arg): Take a function_arg_info
406 instead of a mode, tree and named flag.
407 (default_function_incoming_arg): Likewise.
408 * targhooks.c (default_function_arg): Likewise.
409 (default_function_incoming_arg): Likewise.
410 * calls.h (function_arg_info::end_marker_p): New function.
411 (function_arg_info::end_marker): Likewise.
412 * calls.c (prepare_call_address, initialize_argument_information)
413 (expand_call, emit_library_call_value_1): Update calls to
414 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
415 * dse.c: Include calls.h.
416 (get_call_args): Update call to targetm.calls.function_arg.
417 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
418 * var-tracking.c (prepare_call_arguments): Likewise.
419 * function.c (assign_parm_find_entry_rtl): Update call to
420 targetm.calls.function_incoming_arg.
421 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
422 function_arg_info instead of a mode, tree and named flag.
423 * config/alpha/alpha.c (alpha_function_arg): Likewise.
424 * config/arc/arc.c (arc_function_arg): Likewise.
425 * config/arm/arm.c (arm_function_arg): Likewise.
426 (cmse_func_args_or_return_in_stack): Update call accordingly.
427 (arm_function_ok_for_sibcall): Likewise.
428 (cmse_nonsecure_call_clear_caller_saved): Likewise.
429 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
430 instead of a mode, tree and named flag.
431 * config/bfin/bfin.c (bfin_function_arg): Likewise.
432 * config/c6x/c6x.c (c6x_function_arg): Likewise.
433 (c6x_call_saved_register_used): Update call accordingly.
434 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
435 instead of a mode, tree and named flag.
436 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
437 (cris_function_arg_1): Likewise.
438 * config/csky/csky.c (csky_function_arg): Likewise.
439 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
440 * config/fr30/fr30.c (fr30_function_arg): Likewise.
441 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
442 (frv_function_arg_1): Likewise.
443 * config/ft32/ft32.c (ft32_function_arg): Likewise.
444 * config/gcn/gcn.c (gcn_function_arg): Likewise.
445 * config/h8300/h8300.c (h8300_function_arg): Likewise.
446 * config/i386/i386.c (ix86_function_arg): Likewise.
447 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
448 (ia64_function_arg_1): Likewise.
449 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
450 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
451 accordingly.
452 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
453 instead of a mode, tree and named flag.
454 * config/m32c/m32c.c (m32c_function_arg): Likewise.
455 * config/m32r/m32r.c (m32r_function_arg): Likewise.
456 * config/m68k/m68k.c (m68k_function_arg): Likewise.
457 * config/mcore/mcore.c (mcore_function_arg): Likewise.
458 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
459 (microblaze_expand_prologue): Update call accordingly.
460 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
461 instead of a mode, tree and named flag.
462 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
463 (mmix_function_arg_1): Likewise.
464 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
465 * config/moxie/moxie.c (moxie_function_arg): Likewise.
466 * config/msp430/msp430.c (msp430_function_arg): Likewise.
467 * config/nds32/nds32.c (nds32_function_arg): Likewise.
468 * config/nios2/nios2.c (nios2_function_arg): Likewise.
469 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
470 (nvptx_function_incoming_arg): Likewise.
471 * config/or1k/or1k.c (or1k_function_arg): Likewise.
472 * config/pa/pa.c (pa_function_arg): Likewise.
473 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
474 * config/pru/pru.c (pru_function_arg): Likewise.
475 * config/riscv/riscv.c (riscv_function_arg): Likewise.
476 * config/rl78/rl78.c (rl78_function_arg): Likewise.
477 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
478 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
479 (rs6000_parm_needs_stack): Update call accordingly.
480 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
481 instead of a mode, tree and named flag.
482 * config/s390/s390.c (s390_function_arg): Likewise.
483 (s390_call_saved_register_used): Update call accordingly.
484 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
485 instead of a mode, tree and named flag.
486 (sh_output_mi_thunk): Update call accordingly.
487 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
488 (sparc_function_incoming_arg): Take a function_arg_info instead of
489 a mode, tree and named flag.
490 * config/spu/spu.c (spu_function_arg): Likewise.
491 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
492 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
493 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
494 * config/v850/v850.c (v850_function_arg): Likewise.
495 * config/vax/vax.c (vax_function_arg): Likewise.
496 * config/visium/visium.c (visium_function_arg): Likewise.
497 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
498 (xtensa_function_incoming_arg): Likewise.
499
500 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
501
502 * target.def (setup_incoming_varargs): Take a function_arg_info
503 instead of a mode and tree.
504 * doc/tm.texi: Regenerate.
505 * targhooks.h (default_setup_incoming_varargs): Take a
506 function_arg_info instead of a mode and tree.
507 * targhooks.c (default_setup_incoming_varargs): Likewise.
508 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
509 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
510 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
511 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
512 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
513 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
514 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
515 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
516 Likewise.
517 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
518 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
519 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
520 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
521 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
522 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
523 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
524 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
525 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
526 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
527 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
528 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
529 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
530 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
531 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
532 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
533 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
534 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
535 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
536 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
537 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
538 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
539 * function.c (assign_parms_setup_varargs): Update call to
540 targetm.calls.setup_incoming_varargs.
541
542 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
543
544 * target.def (pass_by_reference): Take a function_arg_info instead
545 of a mode, type and named flag.
546 * doc/tm.texi: Regenerate.
547 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
548 accordingly.
549 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
550 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
551 function_arg_info instead of a mode, type and named flag.
552 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
553 * calls.h (pass_by_reference): Take a function_arg_info instead of a
554 mode, type and named flag.
555 * calls.c (pass_by_reference): Likewise.
556 (pass_va_arg_by_reference): Update call accordingly.
557 (initialize_argument_information): Likewise.
558 (emit_library_call_value_1): Likewise.
559 * function.c (assign_parm_find_data_types): Likewise.
560 * var-tracking.c (prepare_call_arguments): Likewise.
561 * stor-layout.c: Include calls.h.
562 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
563 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
564 function_arg_info instead of a mode, type and named flag.
565 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
566 * config/arc/arc.c (arc_pass_by_reference): Likewise.
567 * config/arm/arm.c (arm_pass_by_reference): Likewise.
568 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
569 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
570 (c6x_call_saved_register_used): Update call to pass_by_reference.
571 * config/cris/cris.c (cris_pass_by_reference): Take a
572 function_arg_info instead of a mode, type and named flag.
573 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
574 function_arg_info instead of a mode, type and named flag.
575 (epiphany_arg_partial_bytes): Update call accordingly.
576 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
577 function_arg_info instead of a mode, type and named flag.
578 (ft32_arg_partial_bytes): Update call accordingly.
579 * config/i386/i386.c (ix86_pass_by_reference): Take a
580 function_arg_info instead of a mode, type and named flag.
581 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
582 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
583 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
584 (m32r_return_in_memory): Update call accordingly.
585 * config/mips/mips.c (mips_pass_by_reference): Take a
586 function_arg_info instead of a mode, type and named flag.
587 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
588 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
589 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
590 (moxie_arg_partial_bytes): Update call accordingly.
591 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
592 function_arg_info instead of a mode, type and named flag.
593 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
594 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
595 * config/pa/pa.c (pa_pass_by_reference): Likewise.
596 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
597 (riscv_return_in_memory): Update call accordingly.
598 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
599 function_arg_info instead of a mode, type and named flag.
600 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
601 (rs6000_parm_needs_stack): Update call to pass_by_reference.
602 * config/s390/s390.c (s390_pass_by_reference): Take a
603 function_arg_info instead of a mode, type and named flag.
604 (s390_call_saved_register_used): Update call accordingly.
605 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
606 instead of a mode, type and named flag.
607 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
608 * config/spu/spu.c (spu_pass_by_reference): Likewise.
609 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
610 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
611 * config/v850/v850.c (v850_pass_by_reference): Likewise.
612 * config/visium/visium.c (visium_pass_by_reference): Likewise.
613
614 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
615
616 * target.def (arg_partial_bytes): Take a function_arg_info instead
617 of a mode, type and named flag.
618 * doc/tm.texi: Regenerate.
619 * target.h (function_arg_info): Declare.
620 * calls.h (function_arg_info): New class.
621 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
622 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
623 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
624 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
625 * calls.c (initialize_argument_information): Update call to
626 targetm.calls.partial_bytes.
627 (emit_library_call_value_1): Likewise.
628 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
629 * function.c (assign_parm_find_entry_rtl): Likewise.
630 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
631 function_arg_info instead of a mode, type and named flag.
632 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
633 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
634 (cmse_func_args_or_return_in_stack): Update accordingly.
635 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
636 function_arg_info instead of a mode, type and named flag.
637 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
638 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
639 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
640 * config/fr30/fr30.c: Include calls.h.
641 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
642 type and named flag.
643 * config/frv/frv.c: Include calls.h.
644 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
645 type and named flag.
646 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
647 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
648 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
649 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
650 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
651 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
652 * config/microblaze/microblaze.c (function_arg_partial_bytes):
653 Likewise.
654 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
655 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
656 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
657 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
658 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
659 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
660 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
661 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
662 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
663 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
664 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
665 (rs6000_parm_needs_stack): Update call accordingly.
666 * config/sh/sh.c (sh_arg_partial_bytes): Take a
667 function_arg_info instead of a mode, type and named flag.
668 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
669 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
670
671 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
672
673 * calls.h (must_pass_va_arg_in_stack): Declare.
674 * calls.c (must_pass_va_arg_in_stack): New function.
675 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
676 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
677 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
678 Likewise.
679 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
680
681 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
682
683 * calls.h (pass_va_arg_by_reference): Declare.
684 * calls.c (pass_va_arg_by_reference): New function.
685 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
686 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
687 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
688 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
689 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
690 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
691 (mips_gimplify_va_arg_expr): Likewise.
692 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
693 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
694 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
695 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
696 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
697 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
698 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
699 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
700 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
701 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
702 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
703
704 2019-08-20 Richard Biener <rguenther@suse.de>
705
706 PR target/91498
707 * config/i386/i386-features.c (general_scalar_chain::convert_op):
708 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
709 (convert_scalars_to_vector): Add timode_p parameter and use it
710 to guard TImode-only operation.
711 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
712 (pass_stv::execute): Pass down timode_p.
713
714 2019-08-20 Lili Cui <lili.cui@intel.com>
715
716 * common/config/i386/i386-common.c
717 (processor_names): Add tigerlake and cooperlake.
718 (processor_alias_table): Add tigerlake and cooperlake.
719 * config.gcc: Add -march=tigerlake and cooperlake.
720 * config/i386/driver-i386.c
721 (host_detect_local_cpu): Detect tigerlake and cooperlake.
722 Add "has_avx" to classify processor.
723 * config/i386/i386-builtins.c (processor_model) :
724 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
725 (arch_names_table): Add tigerlake and cooperlake.
726 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
727 and PROCESSOR_COOPERLAKE.
728 * config/i386/i386-c.c
729 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
730 * config/i386/i386-options.c
731 (m_TIGERLAKE) : Define.
732 (m_COOPERLAKE) : Ditto.
733 (m_CORE_AVX512): Ditto.
734 (processor_cost_table): Add cascadelake.
735 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
736 * config/i386/i386.h
737 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
738 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
739 (PTA_MOVDIRI): Ditto.
740 (PTA_MOVDIR64B): Ditto.
741 (PTA_COOPERLAKE) : Ditto.
742 (PTA_TIGERLAKE) : Ditto.
743 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
744 * doc/extend.texi: Add tigerlake and cooperlake.
745 * doc/invoke.texi: Add tigerlake and cooperlake.
746
747 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
748
749 * doc/install.texi (Specific, alpha): Remove note to use
750 binutils 2.11.2 or later.
751
752 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
753
754 PR middle-end/89544
755 * function.c (assign_parm_find_stack_rtl): Use larger alignment
756 when possible.
757
758 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
759
760 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
761 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
762 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
763 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
764 * config/aarch64/constraints.md (Dt): New constraint
765 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
766
767 2019-08-19 Richard Biener <rguenther@suse.de>
768
769 PR tree-optimization/91403
770 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
771 cases we can handle with tail-recursion...
772 (follow_ssa_edge_expr): ... here. Do so.
773
774 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
775
776 PR target/91441
777 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
778 implemented for -fsanitize=kernel-address, and merge check logic
779 with -fsanitize=address.
780
781 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
782
783 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
784 for cpu and machine. Factor 64/32b builtins.
785
786 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
787
788 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
789 gone, point to sourceforge.net.
790
791 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
792
793 * doc/ux.texi (User Experience Guidelines): Update reference.
794
795 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
796
797 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
798 not LGPL".
799
800 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
801
802 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
803 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
804
805 2019-08-16 Martin Sebor <msebor@redhat.com>
806
807 * tree.def (TYPE_SIZE): Clarify.
808 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
809
810 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
811
812 PR tree-optimization/91109
813 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
814 * lra.c (lra): Use lra_need_for_scratch_reg_p.
815 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
816
817 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
818
819 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
820 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
821 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
822 (uavg<mode>3_ceil): New expander.
823 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
824 mode iterator when creating CONST1_RTX.
825 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
826 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
827 mode iterator for const1_operand predicate.
828
829 2019-08-16 Richard Biener <rguenther@suse.de>
830
831 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
832 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
833 follow_ssa_edge.
834 (follow_ssa_edge_in_condition_phi_branch): Likewise.
835 (analyze_evolution_in_loop): Likewise.
836 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
837 (follow_ssa_edge_expr): ... here. Refactor code.
838
839 2019-08-16 Richard Biener <rguenther@suse.de>
840
841 PR target/91469
842 * config/i386/i386-features.c
843 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
844
845 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
846
847 PR other/91255
848 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
849 only if subst_name matches curr_attr string.
850
851 2019-08-16 Richard Biener <rguenther@suse.de>
852
853 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
854 stmt at gsi_p, instead replace it with a NOP removed later.
855 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
856 that became dead because of that.
857
858 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
859
860 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
861 for which we can't represent a range.
862 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
863 set_varying.
864 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
865 Set VR_UNDEFINED if type is not supported.
866 * tree-ssanames.c (get_range_info): Pass type to set_varying.
867 * tree-vrp.c (value_range_base::check): Assert that a varying has
868 min/max set.
869 (value_range_base::equal_p): Early bail for undefines.
870 (value_range_base::set_varying): Accept a type.
871 (value_range::set_varying): Same.
872 (value_range_base::type): VARYING can have a type, while UNDEFINE
873 is typeless.
874 (value_range_base::dump): Print type for VARYING nodes.
875 (value_range_base::set): Add type to VARYING.
876 (extract_range_from_multiplicative_op): Pass type to set_varying.
877 (extract_range_from_binary_expr): Same.
878 (value_range_base::intersect_helper): Same.
879 (value_range_base::union_helper): Same.
880 (value_range_base::normalize_symbolics): Same.
881 (determine_value_range_1): Same.
882 * tree-vrp.h (class value_range_base): Add type to set_varying.
883 Add prototype for dump(void).
884 Add prototype for supports_type_p.
885 (class value_range): Add type to set_varying.
886 Add prototype for dump(void).
887 * vr-values.c (set_value_range_to_truthvalue): Pass type to
888 set_varying.
889 (vr_values::get_lattice_entry): Set varying even if propagation
890 finished.
891 Pass type to set_varying.
892 (vr_values::get_value_range): Remove vr_const_varying.
893 Reallocate the lattice if needed.
894 (vr_values::update_value_range): Pass type to set_varying.
895 (vr_values::extract_range_for_var_from_comparison_expr): Same.
896 (vr_values::extract_range_from_binary_expr): Same.
897 (vr_values::extract_range_from_unary_expr): Same.
898 (vr_values::extract_range_from_cond_expr): Same.
899 (vr_values::check_for_binary_op_overflow): Same.
900 (vr_values::extract_range_basic): Same.
901 (vr_values::extract_range_from_assignment): Same.
902 (vr_values::vr_values): Increase size of num_vr_values.
903 (vr_values::extract_range_from_phi_node): Pass type to
904 set_varying.
905
906 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
907
908 PR target/90878
909 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
910 for costs of hard register moves.
911 (ix86_register_move_cost): Likewise.
912 * config/i386/i386.h (processor_costs): Move costs of hard
913 register moves to hard_register. Add int_load, int_store,
914 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
915 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
916 for costs of RTL expressions.
917 * config/i386/x86-tune-costs.h: Move costs of hard register
918 moves to hard_register. Duplicate int_load, int_store,
919 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
920 sse_load, sse_store for costs of RTL expressions.
921
922 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
923
924 * target.def (setup_incoming_vararg_bounds): Remove.
925 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
926 * doc/tm.texi: Regenerate.
927 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
928 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
929 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
930 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
931
932 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
933
934 MSP430: Fix lines over 80 characters long in
935 config/msp430/*.{c,h} files
936
937 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
938 specifier in string.
939 (msp430_select_hwmult_lib): Split line more than 80 characters long.
940 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
941 redundant old comment.
942 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
943 Split line more than 80 characters long.
944 * config/msp430/msp430.c (msp430_option_override): Likewise.
945 (msp430_return_in_memory): Likewise.
946 (msp430_gimplify_va_arg_expr): Likewise.
947 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
948 (msp430_legitimate_constant): Likewise.
949 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
950 (msp430_attr): Likewise.
951 (msp430_data_attr): Likewise.
952 (msp430_start_function): Likewise.
953 (gen_prefix): Likewise.
954 (msp430_init_sections): Likewise.
955 (msp430_select_section): Likewise.
956 (msp430_function_section): Likewise.
957 (msp430_unique_section): Likewise.
958 (msp430_output_aligned_decl_common): Likewise.
959 (msp430_do_not_relax_short_jumps): Likewise.
960 (msp430_init_builtins): Likewise.
961 (msp430_expand_delay_cycles): Likewise.
962 (msp430_expand_prologue): Likewise.
963 (msp430_expand_epilogue): Likewise.
964 (msp430_expand_helper): Likewise.
965 (msp430_split_movsi): Likewise.
966 (msp430_print_operand): Likewise.
967 (msp430_return_addr_rtx): Likewise.
968 (msp430x_extendhisi): Likewise.
969 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
970 (ASM_SPEC): Likewise.
971 Remove very obvious comments.
972 (LIB_SPEC): Split line more than 80 characters long.
973 (EH_RETURN_HANDLER_RTX): Likewise.
974 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
975
976 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
977
978 MSP430: Fix whitespace errors and incorrect indentation in
979 config/msp430/*.{c,h} files
980
981 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
982 (msp430_select_hwmult_lib): Likewise.
983 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
984 (msp430_extract_mcu_data): Likewise.
985 (struct t_msp430_mcu_data): Likewise.
986 * config/msp430/msp430.c (struct machine_function): Remove whitespace
987 before left square bracket.
988 (msp430_option_override): Fix indentation.
989 (msp430_hard_regno_nregs_with_padding): Likewise.
990 (msp430_initial_elimination_offset): Likewise.
991 (msp430_special_register_convention_p): Remove whitespace before left
992 square bracket and after exclamation mark.
993 (msp430_evaluate_arg): Likewise.
994 (msp430_callee_copies): Fix indentation.
995 (msp430_gimplify_va_arg_expr): Likewise.
996 (msp430_function_arg_advance): Remove whitespace before left square
997 bracket.
998 (reg_ok_for_addr): Likewise.
999 (msp430_preserve_reg_p): Likewise.
1000 (msp430_compute_frame_info): Likewise.
1001 (msp430_asm_output_addr_const_extra): Add space between function name
1002 and open parenthesis.
1003 (has_section_name): Fix indentation.
1004 (msp430_attr): Remove trailing whitespace.
1005 (msp430_section_attr): Likewise.
1006 (msp430_data_attr): Likewise.
1007 (struct msp430_attribute_table): Fix comment and whitespace.
1008 (msp430_start_function): Remove whitespace before left square bracket.
1009 Add space between function name and open parenthesis.
1010 (msp430_select_section): Remove trailing whitespace.
1011 (msp430_section_type_flags): Remove trailing whitespace.
1012 (msp430_unique_section): Remove space before closing parenthesis.
1013 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
1014 (msp430_builtins): Remove whitespace before left square bracket.
1015 (msp430_init_builtins): Fix indentation.
1016 (msp430_expand_prologue): Remove whitespace before left square bracket.
1017 Remove space before closing parenthesis.
1018 (msp430_expand_epilogue): Remove whitespace before left square bracket.
1019 (msp430_split_movsi): Remove space before closing parenthesis.
1020 (helper_function_name_mappings): Fix indentation.
1021 (msp430_use_f5_series_hwmult): Fix whitespace.
1022 (use_32bit_hwmult): Likewise.
1023 (msp430_no_hwmult): Likewise.
1024 (msp430_output_labelref): Remove whitespace before left square bracket.
1025 (msp430_print_operand_raw): Likewise.
1026 (msp430_print_operand_addr): Likewise.
1027 (msp430_print_operand): Add two spaces after '.' in comment.
1028 Fix trailing whitespace.
1029 (msp430x_extendhisi): Fix indentation.
1030 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
1031 tab.
1032 (PC_REGNUM): Likewise.
1033 (STACK_POINTER_REGNUM): Likewise.
1034 (CC_REGNUM): Likewise.
1035
1036 2019-08-15 Richard Biener <rguenther@suse.de>
1037
1038 PR target/91454
1039 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
1040 helper.
1041 (general_scalar_chain::make_vector_copies): Use it.
1042
1043 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1044
1045 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
1046
1047 2019-08-15 Martin Liska <mliska@suse.cz>
1048
1049 * tree-ssa-dce.c (propagate_necessity): We can't reach now
1050 operators with no arguments.
1051 (eliminate_unnecessary_stmts): Likewise here.
1052
1053 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
1054
1055 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
1056 <case COMPARE>: Revert 2019-08-14 change.
1057 (convertible_comparison_p): Revert 2019-08-14 change. Return false
1058 for (TARGET_64BIT || mode != DImode).
1059
1060 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
1061
1062 * tree-vrp.c (value_range_base::set): Merge in code from
1063 value_range_base::set_and_canonicalize.
1064 Enforce canonicalization at set time.
1065 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
1066 (value_range_base::set_undefined): Inline call to set().
1067 (value_range_base::set_varying): Same.
1068 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
1069 (vrp_val_max): New argument handle_pointers.
1070 (vrp_val_min): Same.
1071 (ranges_from_anti_range): Same.
1072 (extract_range_into_wide_ints): Use tree argument instead of sign
1073 and precision.
1074 (extract_range_from_multiplicative_op): Take in tree type instead
1075 of precision and sign. Adapt function for canonicalized ranges.
1076 (extract_range_from_binary_expr): Pass type to
1077 extract_range_from_multiplicative_op.
1078 Adapt for canonicalized ranges.
1079 (extract_range_from_unary_expr): Same.
1080 (value_range_base::intersect_helper): Adjust for canonicalized
1081 ranges.
1082 (value_range_base::union_helper): Same.
1083 (value_range_base::normalize_symbolics): New.
1084 * tree-vrp.h (class value_range_base): Remove
1085 set_and_canonicalize.
1086 New prototype for normalize_symbolics.
1087 (class value_range): Remove set_and_canonicalize.
1088 (vrp_val_min): Adjust prototype.
1089 (vrp_val_max): Same.
1090 * vr-values.c
1091 (vr_values::extract_range_for_var_from_comparison_expr): Call set
1092 instead of set_and_canonicalize.
1093
1094 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1095
1096 PR middle-end/91444
1097 * tree-vect-stmts.c (vectorizable_call): Check that the function
1098 is a BUILT_IN_MD function before passing it to
1099 targetm.vectorize.builtin_md_vectorized_function.
1100
1101 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1102
1103 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
1104 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
1105 (aarch64_select_early_remat_modes): Use it.
1106
1107 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1108
1109 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
1110 16 for SVE predicates even if they are fixed-length.
1111
1112 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1113
1114 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
1115 operand order match the MOV /Z alias.
1116
1117 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1118
1119 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
1120 the vector pattern as an aarch64_svpattern argument. Update the
1121 overloaded caller accordingly.
1122 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1123 (aarch64_output_sve_vector_inc_dec): Likewise.
1124
1125 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1126
1127 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1128 multiplication case, try to compute VG * (lowest set bit) directly
1129 rather than always basing the multiplication on VG. Use
1130 expand_mult for the multiplication if we can.
1131
1132 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1133
1134 * config/aarch64/aarch64-protos.h
1135 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1136 (aarch64_sve_inc_dec_immediate_p): Rename to...
1137 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1138 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1139 (aarch64_output_sve_scalar_inc_dec): Declare.
1140 (aarch64_output_sve_inc_dec_immediate): Rename to...
1141 (aarch64_output_sve_vector_inc_dec): ...this.
1142 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1143 (aarch64_output_sve_scalar_inc_dec): New functions.
1144 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1145 arguments. Only handle true ADDVL and ADDPL instructions;
1146 don't emit an INC or DEC.
1147 (aarch64_sve_inc_dec_immediate_p): Rename to...
1148 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1149 (aarch64_output_sve_inc_dec_immediate): Rename to...
1150 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1151 aarch64_sve_vector_inc_dec_immediate_p.
1152 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1153 (aarch64_sve_plus_immediate): New predicates.
1154 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1155 rather than aarch64_sve_addvl_addpl_immediate.
1156 (aarch64_sve_inc_dec_immediate): Rename to...
1157 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1158 aarch64_sve_vector_inc_dec_immediate_p.
1159 (aarch64_sve_add_operand): Update accordingly.
1160 * config/aarch64/constraints.md (Uai): New constraint.
1161 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1162 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1163 operand into a register if it satisfies aarch64_sve_plus_immediate.
1164 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1165 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1166 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1167 aarch64_output_sve_vector_inc_dec instead of
1168 aarch64_output_sve_inc_dec_immediate.
1169
1170 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1171
1172 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1173 (UNSPEC_REVW): New constants.
1174 (elem_bits): New mode attribute.
1175 (SVE_INT_UNARY): New int iterator.
1176 (optab): Handle UNSPEC_REV[BHW].
1177 (sve_int_op): New int attribute.
1178 (min_elem_bits): Handle VNx16QI and the predicate modes.
1179 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1180 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1181 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1182 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1183 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1184 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1185 unspecs based on the total width of the reversed data.
1186 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1187 reinterpret followed by a subreg on big-endian targets.
1188
1189 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1190 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1191
1192 * config/aarch64/aarch64-sve.md
1193 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1194 alternatives in which one of the inputs is in the same register
1195 as the output.
1196
1197 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1198
1199 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1200 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1201
1202 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1203
1204 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1205 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1206
1207 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1208 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1209
1210 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1211 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1212 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1213
1214 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1215 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1216
1217 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1218 Add an alternative that uses reversed shifts.
1219
1220 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1221
1222 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1223 struct.
1224
1225 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1226
1227 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1228 a commutativity marker.
1229
1230 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1231 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1232
1233 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1234 (aarch64_prepare_sve_cond_int_fma): Declare.
1235 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1236 (aarch64_prepare_sve_int_fma): New functions.
1237 (aarch64_prepare_sve_cond_int_fma): Likewise.
1238 * config/aarch64/aarch64-sve.md
1239 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1240 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1241 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1242 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1243 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1244 (*madd<mode>): Rename to...
1245 (*fma<mode>4): ...this.
1246 (*msub<mode>): Rename to...
1247 (*fnma<mode>4): ...this.
1248
1249 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1250 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1251
1252 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1253 Print 2.0 naturally.
1254 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1255 * config/aarch64/predicates.md
1256 (aarch64_sve_float_negated_arith_immediate): New predicate,
1257 renamed from aarch64_sve_float_arith_with_sub_immediate.
1258 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1259 positive and negative constants.
1260 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1261 or an aarch64_sve_float_arith_with_sub_immediate.
1262 * config/aarch64/constraints.md (vsN): Use
1263 aarch64_sve_float_negated_arith_immediate.
1264 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1265 iterator.
1266 (sve_pred_fp_rhs2_immediate): New int attribute.
1267 * config/aarch64/aarch64-sve.md
1268 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1269 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1270 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1271 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1272 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1273 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1274
1275 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1276 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1277
1278 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1279 (*aarch64_cond_abd<SVE_F:mode>_3)
1280 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1281
1282 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1283 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1284
1285 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1286 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1287
1288 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1289 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1290
1291 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1292 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1293 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1294 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1295 optabs.
1296 * optabs.h (create_convert_operand_from): Expand comment.
1297 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1298 when mapping scalar rtxes to vector operands.
1299 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1300 ashiftrt and lshiftrt.
1301 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1302 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1303 (*cond_<optab><mode>_any_const): New patterns.
1304
1305 2019-08-15 Martin Liska <mliska@suse.cz>
1306
1307 PR ipa/91438
1308 * cgraph.c (cgraph_node::remove): When setting
1309 n->origin = NULL for all nested functions, reset
1310 also next_nested.
1311
1312 2019-08-15 Martin Liska <mliska@suse.cz>
1313
1314 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1315 and next_nested.
1316
1317 2019-08-15 Martin Liska <mliska@suse.cz>
1318
1319 PR ipa/91404
1320 * passes.c (order): Remove.
1321 (uid_hash_t): Likewise).
1322 (remove_cgraph_node_from_order): Remove from set
1323 of pointers (cgraph_node *).
1324 (insert_cgraph_node_to_order): New.
1325 (duplicate_cgraph_node_to_order): New.
1326 (do_per_function_toporder): Register all 3 cgraph hooks.
1327 Skip removed_nodes now as we know about all of them.
1328
1329 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1330
1331 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1332 <case E_V8QImode>: Use vector_set path for
1333 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1334 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1335 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1336
1337 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1338
1339 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1340
1341 2019-08-14 Martin Sebor <msebor@redhat.com>
1342
1343 PR tree-optimization/91294
1344 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1345 source length as exact.
1346
1347 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1348
1349 * doc/extend.texi: Add "noinit" attribute documentation.
1350 * doc/sourcebuild.texi: Add noinit effective target documentation.
1351 * varasm.c (default_section_type_flags): Add support for "noinit"
1352 section.
1353 (default_elf_select_section): Add support for "noinit" attribute.
1354 * config/msp430/msp430.c (msp430_attribute_table): Remove
1355 "noinit" entry.
1356
1357 2019-08-14 Richard Biener <rguenther@suse.de>
1358 Uroš Bizjak <ubizjak@gmail.com>
1359
1360 PR target/91154
1361 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1362 mode arguments.
1363 (scalar_chain::smode): New member.
1364 (scalar_chain::vmode): Likewise.
1365 (dimode_scalar_chain): Rename to...
1366 (general_scalar_chain): ... this.
1367 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1368 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1369 base with TImode and V1TImode.
1370 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1371 (general_scalar_chain::vector_const_cost): Adjust for SImode
1372 chains.
1373 (general_scalar_chain::compute_convert_gain): Likewise. Add
1374 {S,U}{MIN,MAX} support.
1375 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1376 (general_scalar_chain::make_vector_copies): Likewise. Handle
1377 non-DImode chains appropriately.
1378 (general_scalar_chain::convert_reg): Likewise.
1379 (general_scalar_chain::convert_op): Likewise.
1380 (general_scalar_chain::convert_insn): Likewise. Add
1381 fatal_insn_not_found if the result is not recognized.
1382 (convertible_comparison_p): Pass in the scalar mode and use that.
1383 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1384 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1385 (scalar_to_vector_candidate_p): Remove by inlining into single
1386 caller.
1387 (general_remove_non_convertible_regs): Rename from
1388 dimode_remove_non_convertible_regs.
1389 (remove_non_convertible_regs): Remove by inlining into single caller.
1390 (convert_scalars_to_vector): Handle SImode and DImode chains
1391 in addition to TImode chains.
1392 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1393 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1394 (*<maxmin>di3_doubleword): Likewise.
1395
1396 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1397 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1398
1399 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1400 (*cond_bic<mode>_any): New patterns.
1401
1402 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1403
1404 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1405 take the equivalent mask, as well as a bit count.
1406 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1407 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1408 (aarch64_sve_pred_and_operand): New predicates.
1409 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1410 code attribute.
1411 * config/aarch64/aarch64-sve.md
1412 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1413 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1414
1415 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1416
1417 * config/aarch64/aarch64-sve.md
1418 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1419 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1420 New patterns.
1421
1422 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1423 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1424
1425 * config/aarch64/aarch64-sve.md
1426 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1427 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1428
1429 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1430 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1431
1432 * config/aarch64/aarch64-sve.md
1433 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1434 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1435
1436 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1437
1438 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1439 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1440 New pattern.
1441
1442 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1443 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1444
1445 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1446
1447 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1448 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1449
1450 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
1451 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
1452 (aarch64_print_operand): Add support for %I.
1453 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
1454 Bitcast floating-point constants to the corresponding integer constant.
1455 (aarch64_float_const_representable_p): Handle vectors as well
1456 as scalars.
1457 (aarch64_expand_sve_vcond): Make sure that the operands are valid
1458 for the new vcond_mask_<mode><vpred> expander.
1459 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
1460 test aarch64_float_const_representable_p.
1461 (aarch64_sve_reg_or_dup_imm): New predicate.
1462 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
1463 gen_vcond_mask_<mode><vpred> instead of
1464 gen_aarch64_sve_dup<mode>_const.
1465 (vcond_mask_<mode><vpred>): Turn into a define_expand that
1466 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
1467 for operands 1 and 2 respectively. Force operand 2 into a
1468 register if operand 1 is a register. Fold old define_insn...
1469 (aarch64_sve_dup<mode>_const): ...and this define_insn...
1470 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
1471 floating-point constants that can be moved as integers. Add
1472 alternatives for MOV /M and FMOV /M.
1473 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
1474 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
1475 1 and 2 respectively.
1476 * config/aarch64/constraints.md (Ufc): Handle vectors as well
1477 as scalars.
1478 (vss): New constraint.
1479
1480 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1481
1482 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
1483 (aarch64_sve_float_maxmin_operand): New predicates.
1484 * config/aarch64/constraints.md (vsB): New constraint.
1485 (vsM): Fix typo.
1486 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
1487 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
1488 UNSPEC_COND_FMINNM.
1489 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
1490 Use aarch64_sve_float_maxmin_operand for operand 2.
1491 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
1492 Add alternatives for the constant forms.
1493
1494 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1495
1496 * config/aarch64/constraints.md (vsb): New constraint.
1497 (vsm): Generalize description.
1498 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
1499 iterator.
1500 (sve_imm_con): Handle smax, smin, umax and umin.
1501 (sve_imm_prefix): New code attribute.
1502 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
1503 (aarch64_sve_vsb_operand): New predicates.
1504 (aarch64_sve_mul_immediate): Rename to...
1505 (aarch64_sve_vsm_immediate): ...this.
1506 (aarch64_sve_mul_operand): Rename to...
1507 (aarch64_sve_vsm_operand): ...this.
1508 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
1509 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
1510 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
1511 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
1512 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
1513 add movprfx support for the immediate alternatives.
1514 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
1515 of the above.
1516 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
1517 for operand 3.
1518
1519 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1520
1521 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
1522 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
1523 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
1524
1525 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1526
1527 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
1528 (optab, sve_int_op): Handle them.
1529 * config/aarch64/aarch64-sve.md: Expand comment.
1530
1531 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1532
1533 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
1534 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
1535 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
1536
1537 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1538
1539 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
1540 (aarch64_expand_sve_const_pred_trn): New functions.
1541 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
1542 use the above functions when the parameter is true.
1543 (aarch64_expand_sve_const_pred): Update call accordingly.
1544 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
1545 Rename to...
1546 (@aarch64_sve_<perm_insn><mode>): ...this.
1547
1548 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1549
1550 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
1551 Declare.
1552 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
1553 (aarch64_sve_emit_int_cmp): New functions.
1554 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
1555 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
1556 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
1557 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
1558 (UNSPEC_PRED_Z): New unspec.
1559 (set_clobber_cc_nzc): Delete.
1560 * config/aarch64/aarch64-sve.md: Add a block comment about
1561 UNSPEC_PRED_Z.
1562 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
1563 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
1564 the old pattern with that name. Use UNSPEC_PRED_Z instead of
1565 UNSPEC_MERGE_PTRUE.
1566 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
1567 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
1568 check for compatible predicates.
1569 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
1570 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
1571 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
1572 comparisons above.
1573
1574 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1575
1576 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
1577 * config/aarch64/aarch64-sve.md: Add a section describing it.
1578 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
1579 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
1580 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
1581 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
1582 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
1583 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
1584 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
1585 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
1586 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
1587 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
1588 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
1589 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
1590 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
1591 (aarch64_evpc_rev_local): Update accordingly.
1592
1593 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1594
1595 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
1596 iterators.
1597 (SVE_BHSI, SVE_SDI): Tweak comment.
1598 (SVE_HSDI): Likewise. Fix definition.
1599 (SVE_SDF): New mode iterator.
1600 (elem_bits): New mode attribute.
1601 (SVE_COND_FCVT): New int iterator.
1602 * config/aarch64/aarch64-sve.md
1603 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
1604 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
1605 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
1606 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1607 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
1608 ...these new patterns.
1609 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
1610 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
1611 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
1612 Merge into...
1613 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
1614 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
1615 ...these new patterns.
1616 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
1617 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
1618 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
1619 ...this new pattern.
1620 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
1621 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
1622 ...this new pattern.
1623 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
1624
1625 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1626
1627 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
1628 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
1629 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
1630 unspecs.
1631 (optab, su): Handle them.
1632 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
1633 * config/aarch64/aarch64-sve.md
1634 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
1635 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
1636 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
1637 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
1638 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
1639 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
1640 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
1641 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
1642 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
1643 FIXUORS.
1644 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
1645 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
1646 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
1647 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
1648 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
1649 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
1650 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
1651 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
1652 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
1653 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
1654 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
1655 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
1656 of UNSPEC_FLOAT_CONVERT.
1657 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
1658 aarch64_sve_extend<mode><Vwide>2.
1659
1660 2019-08-14 Richard Biener <rguenther@suse.de>
1661
1662 PR target/91154
1663 * config/i386/i386-features.c
1664 (dimode_scalar_chain::compute_convert_gain): Compute and dump
1665 individual instruction gain. Fix reg-reg copy GRP cost. Use
1666 ix86_cost->sse_op for vector instruction costs.
1667
1668 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1669
1670 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
1671 (cmp_op): Handle it.
1672 (SVE_COND_FP_CMP): Rename to...
1673 (SVE_COND_FP_CMP_I0): ...this.
1674 (SVE_FP_CMP): Remove.
1675 * config/aarch64/aarch64-sve.md
1676 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
1677 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
1678 using unspecs to represent the comparison.
1679 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
1680 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
1681 accordingly.
1682 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
1683 (aarch64_unspec_cond_code): Move after integer code. Handle
1684 UNORDERED.
1685 (aarch64_emit_sve_predicated_cond): Replace with...
1686 (aarch64_emit_sve_fp_cond): ...this new function.
1687 (aarch64_emit_sve_or_conds): Replace with...
1688 (aarch64_emit_sve_or_fp_conds): ...this new function.
1689 (aarch64_emit_sve_inverted_cond): Replace with...
1690 (aarch64_emit_sve_invert_fp_cond): ...this new function.
1691 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
1692
1693 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1694
1695 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
1696 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
1697 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
1698 SVE_HSD instead of SVE_SD.
1699
1700 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1701 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1702
1703 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
1704 iterator.
1705 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
1706 attributes.
1707 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
1708 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
1709 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
1710 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
1711 (*div<SVE_F:mode>3): Generalize to...
1712 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
1713
1714 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1715 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1716
1717 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
1718 constants.
1719 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
1720 predicate.
1721 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
1722 Declare.
1723 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
1724 function.
1725 * config/aarch64/aarch64-sve.md: Add a block comment about the
1726 handling of predicated FP operations.
1727 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
1728 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
1729 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1730 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
1731 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
1732 operand.
1733 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
1734 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
1735 operand.
1736 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
1737 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
1738 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
1739 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
1740 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
1741 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1742 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1743 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
1744 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
1745 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
1746 strictness operands. Use aarch64_sve_pred_dominates_p to check
1747 whether the predicate on the conditional operation is suitable
1748 for merging. Split patterns into the canonical equal-predicate form.
1749 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
1750 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
1751
1752 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1753 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1754
1755 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
1756 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
1757 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
1758 rtx codes.
1759 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
1760 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
1761 unspecs.
1762
1763 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1764 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1765
1766 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
1767 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
1768 actually has, rather than relying on REG_EQUAL notes.
1769 Make the insn operand order match the SVE operand order.
1770 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
1771 the SVE operand order.
1772
1773 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1774
1775 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
1776 (aarch64_emit_set_immediate): Likewise.
1777 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
1778 (aarch64_pfalse_reg): Likewise.
1779 (aarch64_convert_sve_data_to_pred): New function.
1780 (aarch64_sve_move_pred_via_while): Take an optional target register
1781 and the required register mode.
1782 (aarch64_expand_sve_const_pred_1): New function.
1783 (aarch64_expand_sve_const_pred): Likewise.
1784 (aarch64_expand_mov_immediate): Build an all-true predicate
1785 if the significant bits of the immediate are all true. Use
1786 aarch64_expand_sve_const_pred for all compile-time predicate constants.
1787 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
1788 before register allocation.
1789 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
1790 a VNx16BI PTRUE when splitting the memory alternative.
1791 (vec_duplicate<mode>): Update accordingly.
1792 (*pred_cmp<cmp_op><mode>): Rename to...
1793 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
1794
1795 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1796
1797 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
1798 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
1799 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
1800 (UNSPEC_PTEST): New unspec.
1801 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
1802 * config/aarch64/iterators.md (data_bytes): New mode attribute.
1803 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
1804 * config/aarch64/aarch64-sve.md: Add a new section describing the
1805 handling of UNSPEC_PTEST.
1806 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
1807 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
1808 (ptest_ptrue<mode>): Replace with...
1809 (aarch64_ptest<mode>): ...this new pattern.
1810 (cbranch<mode>4): Update after above changes.
1811 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
1812 UNSPEC_PTEST_PTRUE.
1813 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
1814 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
1815 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
1816
1817 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
1818
1819 PR lto/91287
1820 * builtins.c (builtin_with_linkage_p): New function.
1821 * builtins.h (builtin_with_linkage_p): New function.
1822 * symtab.c (write_symbol): Remove redundant assert.
1823 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
1824 Remove FIXME and use builtin_with_linkage_p.
1825
1826 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1827
1828 PR middle-end/91421
1829 * tree-core.h (function_decl::function_code): Change type to
1830 unsigned int.
1831 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
1832 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
1833 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
1834 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
1835 is BUILT_IN_NORMAL.
1836 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
1837 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
1838 (fndecl_built_in_p): Change the type of the "name" argument to
1839 unsigned int.
1840 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
1841 after check for DECL_BUILT_IN_CLASS.
1842 * cgraphclones.c (build_function_decl_skip_args): Use
1843 set_decl_built_in_function.
1844 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
1845 * ipa-split.c (split_function): Likewise.
1846 * langhooks.c (add_builtin_function_common): Likewise.
1847 * omp-simd-clone.c (simd_clone_create): Likewise.
1848 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
1849 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
1850 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
1851 DECL_FUNCTION_CODE.
1852 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
1853 instead of DECL_FUNCTION_CODE.
1854 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
1855 instead of DECL_FUNCTION_CODE.
1856 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
1857 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
1858 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
1859 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
1860 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
1861 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
1862 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1863 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
1864 (alpha_gimple_fold_builtin): Likewise.
1865 * config/arc/arc.c (arc_expand_builtin): Likewise.
1866 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
1867 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
1868 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
1869 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
1870 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
1871 * config/frv/frv.c (frv_expand_builtin): Likewise.
1872 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
1873 (gcn_expand_builtin): Likewise.
1874 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
1875 (fold_builtin_cpu): Likewise.
1876 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
1877 * config/i386/i386.c (ix86_fold_builtin): Likewise.
1878 (ix86_gimple_fold_builtin): Likewise.
1879 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
1880 (ia64_expand_builtin): Likewise.
1881 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
1882 * config/mips/mips.c (mips_expand_builtin): Likewise.
1883 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
1884 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1885 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
1886 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
1887 * config/pa/pa.c (pa_expand_builtin): Likewise.
1888 * config/pru/pru.c (pru_expand_builtin): Likewise.
1889 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
1890 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1891 Likewise.
1892 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
1893 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
1894 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
1895 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
1896 (rs6000_builtin_reciprocal): Likewise.
1897 * config/rx/rx.c (rx_expand_builtin): Likewise.
1898 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1899 * config/s390/s390.c (s390_expand_builtin): Likewise.
1900 * config/sh/sh.c (sh_expand_builtin): Likewise.
1901 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
1902 (sparc_fold_builtin): Likewise.
1903 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
1904 * config/spu/spu.c (spu_expand_builtin): Likewise.
1905 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
1906 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
1907 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
1908 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
1909 (xtensa_expand_builtin): Likewise.
1910
1911 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1912
1913 PR middle-end/91421
1914 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
1915 before the DECL_FUNCTION_CODE.
1916 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
1917 to check for a BUILT_IN_ALLOCA call.
1918 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
1919 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
1920 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
1921 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1922 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
1923 for BUILT_IN_NORMAL functions.
1924 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
1925 test for BUILT_IN_TM_ABORT.
1926 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
1927 to check for a BUILT_IN_STACK_RESTORE call.
1928 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
1929 * tree-ssa-threadedge.c
1930 (record_temporary_equivalences_from_stmts_at_dest): Check for a
1931 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
1932 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
1933 test for a BUILT_IN_NORMAL call instead of a negative test for
1934 an internal function call.
1935
1936 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1937
1938 * tree.h (build_vector_a_then_b): Declare.
1939 * tree.c (build_vector_a_then_b): New function.
1940 * fold-const-call.c (fold_while_ult): Likewise.
1941 (fold_const_call): Use it to handle IFN_WHILE_ULT.
1942 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
1943 (aarch64_svpattern): New enum.
1944 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
1945 constants through aarch64_expand_mov_immediate.
1946 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
1947 than general_operand as the predicate for operand 1.
1948 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
1949 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
1950 insn_type.
1951 (simd_immediate_info::simd_immediate_info): New overload that
1952 takes a scalar_int_mode and an svpattern.
1953 (simd_immediate_info::u): Add a "pattern" field.
1954 (svpattern_token): New function.
1955 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
1956 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
1957 (aarch64_sve_move_pred_via_while): New functions.
1958 (aarch64_expand_mov_immediate): Try using
1959 aarch64_sve_move_pred_via_while for predicates that contain N ones
1960 followed by M zeros but that do not correspond to a VLnnn pattern.
1961 (aarch64_sve_pred_valid_immediate): New function.
1962 (aarch64_simd_valid_immediate): Use it instead of dealing directly
1963 with PTRUE and PFALSE.
1964 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
1965 forms.
1966
1967 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
1968
1969 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
1970 flag.
1971 (darwin_override_options): Likewise.
1972 * config/darwin.h: Likewise.
1973 * config/darwin.opt: Likewise.
1974 * config/i386/i386.c (output_pic_addr_const): Likewise.
1975 * config/rs6000/darwin.h: Likewise.
1976 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
1977 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
1978 ... this TARGET_MACHO_SYMBOL_STUBS.
1979 (FUNCTION_PROFILER):Likewise.
1980 * config/i386/i386.h: Likewise.
1981
1982 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
1983
1984 * config/i386/i386-expand.c (ix86_expand_vector_extract)
1985 <case E_V2SImode>: Use vec_extr path for
1986 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1987 <case E_V8QImode>: Ditto.
1988 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
1989 Use SWI48 mode iterator. Use %k to output operand 0.
1990 (*mmx_pextrw): New insn pattern.
1991 (*mmx_pextrb): Ditto.
1992 (*mmx_pextrb_zext): Ditto.
1993
1994 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
1995
1996 * target.def (libc_has_function, libc_has_fast_function): Improve
1997 documentation strings.
1998 * doc/tm.texi: Regenerate.
1999
2000 2019-08-13 Caroline Tice <cmtice@google.com>
2001
2002 PR other/91396
2003 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
2004 vtv_end.o or vtv_end_preinit.o files if !static.
2005
2006 2019-08-13 Olivier Hainque <hainque@adacore.com>
2007
2008 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
2009
2010 2019-08-13 Olivier Hainque <hainque@adacore.com>
2011
2012 * rtlanal.c (tablejump_casesi_pattern): New function, to
2013 determine if a tablejump insn is a casesi dispatcher. Extracted
2014 from patch_jump_insn.
2015 * rtl.h (tablejump_casesi_pattern): Declare.
2016 * cfgrtl.c (patch_jump_insn): Use it.
2017 * dwarf2cfi.c (create_trace_edges): Use it.
2018
2019 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2020
2021 PR target/81800
2022 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
2023 operand is larger than a long int.
2024
2025 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2026
2027 * machmode.h (opt_mode::else_mode): New function.
2028 (opt_mode::else_blk): Use it.
2029 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
2030 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
2031 (aarch64_gen_stepped_int_parallel): Likewise.
2032 (aarch64_stepped_int_parallel_p): Likewise.
2033 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2034 argument.
2035 * config/aarch64/aarch64.c
2036 (aarch64_expand_sve_widened_duplicate): Delete.
2037 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
2038 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
2039 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2040 argument. Use early returns in the !CONST_INT_P handling.
2041 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
2042 than handling some inline.
2043 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
2044 from...
2045 (aarch64_simd_container_mode): ...here.
2046 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
2047 (aarch64_sve_ld1rq_operand_p): New functions.
2048 * config/aarch64/predicates.md (descending_int_parallel)
2049 (aarch64_sve_ld1rq_operand): New predicates.
2050 * config/aarch64/constraints.md (UtQ): New constraint.
2051 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
2052 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
2053 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
2054 (@aarch64_sve_reinterpret<mode>): New expander.
2055 (*aarch64_sve_reinterpret<mode>): New pattern.
2056 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
2057 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
2058 (*sve_ld1rq<Vesize>): Replace with...
2059 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
2060
2061 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2062
2063 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
2064 16:12.
2065
2066 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2067
2068 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
2069 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
2070 (msp430_check_path_for_devices): New.
2071 (parse_devices_csv_1): New.
2072 (parse_devices_csv): New.
2073 (msp430_extract_mcu_data): Try to find devices.csv and search for the
2074 MCU data in devices.csv before using the hard-coded data.
2075 Warn if devices.csv isn't found and the MCU wasn't found in the
2076 hard-coded data either.
2077 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
2078 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
2079 Search for devices.csv on -I and -L paths.
2080 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
2081 msp430_set_driver_var.
2082 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
2083 -mdevices-csv-loc=.
2084 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
2085 searched for devices.csv.
2086 (mwarn-devices-csv): Document option.
2087
2088 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2089
2090 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
2091 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
2092 Use a single Dn alternative instead of separate Dz and Dm
2093 alternatives. Use aarch64_output_sve_move_immediate.
2094 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
2095 function.
2096 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
2097 for predicates too.
2098 (aarch64_output_sve_mov_immediate): Handle predicate modes.
2099 (aarch64_output_ptrue): Delete.
2100
2101 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2102
2103 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
2104 INDEX.
2105 (simd_immediate_info::value, simd_immediate_info::step)
2106 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
2107 with...
2108 (simd_immediate_info::u): ...this new union.
2109 (simd_immediate_info::simd_immediate_info): Update accordingly.
2110 (aarch64_output_simd_mov_immediate): Likewise.
2111 (aarch64_output_sve_mov_immediate): Likewise.
2112
2113 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2114
2115 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
2116 extra_gcc_objs.
2117 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
2118 (msp430_select_cpu): New spec function.
2119 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
2120 MCU data.
2121 * config/msp430/msp430-devices.c: New file.
2122 * config/msp430/msp430-devices.h: New file.
2123 * config/msp430/msp430.c: Remove msp430_mcu_data.
2124 (msp430_option_override): Use msp430_extract_mcu_data to extract
2125 MCU data.
2126 (msp430_use_f5_series_hwmult): Likewise.
2127 (use_32bit_hwmult): Likewise.
2128 (msp430_no_hwmult): Likewise.
2129 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2130 assembler.
2131 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2132 and -mcpu option.
2133 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2134 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2135 Remove hard-coded MCU multilib data.
2136
2137 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2138
2139 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2140 based on the mode instead of testing properties of it.
2141
2142 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2143
2144 * doc/md.texi: Document the x and y constraints for AArch64.
2145 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2146 (FP_LO8_REGS): New reg_class.
2147 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2148 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2149 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2150 * config/aarch64/predicates.md (aarch64_simd_register): Use
2151 FP_REGNUM_P instead of checking the classes manually.
2152 * config/aarch64/constraints.md (y): New constraint.
2153
2154 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2155
2156 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2157 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2158 * config/aarch64/aarch64-simd.md
2159 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2160 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2161 from the asm template.
2162 * config/aarch64/aarch64-sve.md
2163 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2164 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2165 from the asm template.
2166 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2167 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2168 from the asm template.
2169 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2170
2171 2019-08-13 Martin Liska <mliska@suse.cz>
2172
2173 * value-prof.c (gimple_ic_transform): Add new line.
2174 Print details with MSG_NOTE.
2175
2176 2019-08-13 Martin Liska <mliska@suse.cz>
2177
2178 * doc/invoke.texi: Document automatic detection of jobserver.
2179 * lto-wrapper.c (run_gcc): Detect jobserver always.
2180
2181 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2182
2183 * config/i386/i386-expand.c (ix86_expand_vector_set)
2184 <case E_V2SImode>: Use vec_merge path for
2185 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2186 <case E_V8QImode>: Ditto.
2187 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2188 (*mmx_pinsrb): Ditto.
2189
2190 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2191
2192 PR target/83250
2193 PR target/91340
2194 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2195 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2196 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2197 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2198 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2199
2200 2019-08-12 Richard Biener <rguenther@suse.de>
2201
2202 PR lto/91375
2203 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2204 flag_devirtualize.
2205
2206 2019-08-12 Richard Biener <rguenther@suse.de>
2207
2208 PR driver/91130
2209 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2210 lang_mask option, always use CL_DRIVER.
2211 (get_options_from_collect_gcc_options): Adjust.
2212 (find_and_merge_options): Likewise.
2213 (run_gcc): Likewise.
2214
2215 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2216
2217 * ipa-predicate.c (add_condition): Restore inverted test.
2218
2219 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2220
2221 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2222 (enum omp_clause_device_type_kind): New enum.
2223 (struct tree_omp_clause): Add subcode.device_type_kind.
2224 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2225 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2226 for device_type clause.
2227 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2228 * tree-pretty-print.c (dump_omp_clause): Likewise.
2229
2230 PR target/91408
2231 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2232 vector_operand.
2233
2234 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2235
2236 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2237 handling spilled pseudos.
2238
2239 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2240
2241 PR target/91386
2242 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2243 to preserve the contents of the original insns.
2244
2245 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2246
2247 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2248 (addsi3_compare_op2): Likewise.
2249
2250 2019-08-09 Martin Liska <mliska@suse.cz>
2251
2252 * alias.c (alias_ptr_types_compatible_p): Strengten
2253 type comparison in LTO mode.
2254
2255 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2256
2257 PR middle-end/90313
2258 * tree-tailcall.c (find_tail_calls): Reject calls that might
2259 read from an escaped RESULT_DECL.
2260
2261 2019-08-09 Martin Liska <mliska@suse.cz>
2262
2263 * doc/invoke.texi: Document the option value.
2264 * lto-wrapper.c (run_gcc): Set auto_parallel
2265 only with -flto=auto.
2266
2267 2019-08-09 Martin Liska <mliska@suse.cz>
2268
2269 * opts.c (common_handle_option): Error for an invalid argument
2270 to -flto=.
2271
2272 2019-08-09 Martin Liska <mliska@suse.cz>
2273
2274 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2275 use dump_printf to report optimization.
2276 (sem_variable::merge): Likwise.
2277 (sem_item_optimizer::merge_classes): Use dump_printf to report
2278 ICF hits.
2279
2280 2019-08-09 Martin Liska <mliska@suse.cz>
2281
2282 * value-prof.c (gimple_divmod_fixed_value_transform):
2283 Use dump_printf_loc.
2284 (gimple_mod_pow2_value_transform): Likewise.
2285 (gimple_mod_subtract_transform): Likewise.
2286 (init_node_map): Likewise.
2287 (gimple_ic_transform): Likewise.
2288 (gimple_stringops_transform): Likewise.
2289
2290 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2291
2292 * doc/extend.texi: Add const qualifier to ld intrinsics.
2293
2294 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2295
2296 * config/rs6000/dfp.md (D64_D128): Rename to ...
2297 (DDTD): ... this, throughout.
2298 (dfp_suffix): Rename to ...
2299 (q): ... this, throughout.
2300
2301 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2302
2303 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2304 (dfp_suffix): Ditto.
2305 (adddd3, addtd3): Merge to ...
2306 (add<mode>3 for D64_D128): ... this.
2307 (subdd3, subtd3): Merge to ...
2308 (sub<mode>3 for D64_D128): ... this.
2309 (muldd3, multd3): Merge to ...
2310 (mul<mode>3 for D64_D128): ... this.
2311 (divdd3, divtd3): Merge to ...
2312 (div<mode>3 for D64_D128): ... this.
2313 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2314 (*cmp<mode>_internal1 for D64_D128): ... this.
2315 (ftruncdd2, ftrunctd2): Merge to ...
2316 (ftrunc<mode>2 for D64_D128): ... this.
2317 (fixdddi2, fixtddi2): Merge to ...
2318 (fix<mode>di2 for D64_D128): ... this.
2319
2320 2019-08-08 Jim Wilson <jimw@sifive.com>
2321
2322 PR target/91229
2323 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2324 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2325 Pass into recursive call.
2326 (riscv_flatten_aggregate_argument): New arg. Pass to
2327 riscv_flatten_aggregate_field.
2328 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2329 riscv_flatten_aggregate_argument twice, with false and true as last
2330 arg. Process result twice. Compare results and warn if different.
2331 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2332
2333 2019-08-08 Martin Liska <mliska@suse.cz>
2334
2335 PR bootstrap/91352
2336 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2337 * lto-wrapper.c (jobserver_active_p): Likewise.
2338
2339 2019-08-08 Martin Liska <mliska@suse.cz>
2340
2341 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2342 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2343 (create_version_clone_with_body): Likewise.
2344
2345 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2346
2347 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2348 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2349 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2350 GOVD_EXPLICIT flags.
2351 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2352 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2353 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2354 call install_var_field with mask 11 instead of 3.
2355 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2356 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2357
2358 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2359
2360 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2361 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2362
2363 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2364
2365 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2366 MOVPRFX alternatives. Make the GPR alternatives more expensive
2367 than the FPR ones.
2368
2369 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2370
2371 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2372 Disparage the GPR alternative relative to the FPR one.
2373 Fix handling of 8-bit and 16-bit FPR values.
2374
2375 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2376
2377 * config/aarch64/iterators.md (BITWISEV): Delete.
2378 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2379 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2380 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2381 UNSPEC_FMINNMV, UNSPEC_FMINV.
2382 (bit_reduc_op): Delete.
2383 (sve_int_op): New int attribute.
2384 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2385 UNSPEC_FMINNMV, UNSPEC_FMINV.
2386 * config/aarch64/aarch64-sve.md
2387 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2388 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2389 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2390 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2391 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2392 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2393 new patterns.
2394 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2395 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2396 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2397 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2398 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2399 new patterns.
2400
2401 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2402
2403 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2404 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2405 (fms<mode>4, *fms<mode>4): Replace with...
2406 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2407 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2408 Use unspecs instead of rtx codes.
2409 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2410 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2411
2412 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2413
2414 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2415 int iterator.
2416 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2417 * config/aarch64/aarch64-sve.md
2418 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2419 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2420 use a single unspec for the rhs.
2421 (*<su><maxmin><mode>3): Delete.
2422 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2423
2424 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2425
2426 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2427 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2428 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2429 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2430 (optab, sve_fp_op): Handle them.
2431 (SVE_FP_UNARY): Delete.
2432 (optab): Remove sqrt entry.
2433 (sve_fp_op): Remove neg, abs and sqrt entries.
2434 (SVE_COND_FP_UNARY): New int iterator.
2435 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2436 (*<frint_pattern><mode>2): Delete.
2437 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2438 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2439 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2440 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2441
2442 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2443
2444 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2445
2446 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2447
2448 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
2449 (UNSPEC_COND_FADD): ...this.
2450 (UNSPEC_COND_SUB): Rename to...
2451 (UNSPEC_COND_FSUB): ...this.
2452 (UNSPEC_COND_MUL): Rename to...
2453 (UNSPEC_COND_FMUL): ...this.
2454 (UNSPEC_COND_DIV): Rename to...
2455 (UNSPEC_COND_FDIV): ...this.
2456 (UNSPEC_COND_MAX): Rename to...
2457 (UNSPEC_COND_FMAXNM): ...this.
2458 (UNSPEC_COND_MIN): Rename to...
2459 (UNSPEC_COND_FMINNM): ...this.
2460 (UNSPEC_COND_LT): Rename to...
2461 (UNSPEC_COND_FCMLT): ...this.
2462 (UNSPEC_COND_LE): Rename to...
2463 (UNSPEC_COND_FCMLE): ...this.
2464 (UNSPEC_COND_EQ): Rename to...
2465 (UNSPEC_COND_FCMEQ): ...this.
2466 (UNSPEC_COND_NE): Rename to...
2467 (UNSPEC_COND_FCMNE): ...this.
2468 (UNSPEC_COND_GE): Rename to...
2469 (UNSPEC_COND_FCMGE): ...this.
2470 (UNSPEC_COND_GT): Rename to...
2471 (UNSPEC_COND_FCMGT): ...this.
2472 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
2473 (sve_fp_op_rev): Update accordingly.
2474 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
2475
2476 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2477
2478 * config/aarch64/aarch64-sve.md: Reorganize contents and add
2479 banner comments.
2480 * config/aarch64/check-sve-md.awk: New file.
2481 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
2482 (insn-conditions.md): Depend on it.
2483
2484 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
2485
2486 PR target/91385
2487 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
2488 (*negsi2_cmpz_zext): Ditto.
2489
2490 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2491
2492 * config/aarch64/iterators.md (commutative): Remove.
2493
2494 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
2495
2496 PR driver/91130
2497 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
2498 processing COLLECT_GCC_OPTIONS.
2499 (run_gcc): Likewise.
2500
2501 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2502
2503 PR tree-optimization/91109
2504 * lra-remat.c (update_scratch_ops): Remove assignment of the
2505 hard register.
2506
2507 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2508
2509 * data-streamer.h (streamer_write_poly_uint64): Declare.
2510 (streamer_read_poly_uint64): Likewise.
2511 * data-streamer-in.c (streamer_read_poly_uint64): New function.
2512 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
2513 * ipa-predicate.h (condition::size): Turn into a poly_int64.
2514 (add_condition): Take a poly_int64 size.
2515 * ipa-predicate.c (add_condition): Likewise.
2516 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
2517 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
2518 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
2519 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
2520 condition::size as a poly_int64.
2521 (unmodified_parm_1): Take a poly_int64 size pointer.
2522 (unmodified_parm): Likewise.
2523 (unmodified_parm_or_parm_agg_item): Likewise.
2524 (set_cond_stmt_execution_predicate): Update accordingly.
2525 (set_switch_stmt_execution_predicate): Likewise.
2526 (will_be_nonconstant_expr_predicate): Likewise.
2527 (will_be_nonconstant_predicate): Likewise.
2528 (inline_read_section): Stream condition::size as a poly_int.
2529 (ipa_fn_summary_write): Likewise.
2530
2531 2019-08-07 Martin Liska <mliska@suse.cz>
2532
2533 * fold-const.c (twoval_comparison_p): Replace int
2534 with bool as a return type.
2535 (simple_operand_p): Likewise.
2536 (operand_equal_p): Replace int with bool as a return type.
2537 * fold-const.h (operand_equal_p): Likewise.
2538
2539 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2540
2541 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
2542 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
2543 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2544 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
2545 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
2546 * tree-pretty-print.c (dump_omp_clause): Likewise.
2547 * tree-nested.c (convert_nonlocal_omp_clauses,
2548 convert_local_omp_clauses): Likewise.
2549 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
2550 Likewise.
2551 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
2552 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
2553 clause with array or reference to array types, no matter what type
2554 except for reference it has.
2555
2556 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
2557
2558 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
2559
2560 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
2561
2562 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
2563 (arch_canonicalize): Support rv32g and rv64g and fix error
2564 handling.
2565
2566 2019-08-06 Martin Liska <mliska@suse.cz>
2567
2568 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
2569 and DECL_IS_OPERATOR_DELETE_P.
2570
2571 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2572
2573 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
2574 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
2575 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
2576 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
2577 (gimplify_omp_for): Don't do C++ random access iterator clause
2578 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
2579 don't predetermine the artificial iterator in case of C++ random
2580 access iterators as lastprivate, but private. For OMP_LOOP, force
2581 bind expr around simd body and force for_pre_body before the
2582 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
2583 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
2584 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
2585 diff var of C++ random access iterators. Handle
2586 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
2587 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
2588 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
2589 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
2590 * omp-low.c (lower_rec_input_clauses): For
2591 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
2592 variables instead of default constructing them.
2593 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
2594 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
2595 is_taskloop_ctx check from the assert to the guarding condition.
2596
2597 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
2598
2599 * config/riscv/multilib-generator: (canonical_order): New.
2600 (arch_canonicalize): Dito.
2601 Apply arch_canonicalize for alts.
2602
2603 2019-08-05 Martin Sebor <msebor@redhat.com>
2604
2605 * doc/extend.texi (Common Variable Attributes): Document alias
2606 attribute.
2607
2608 2019-08-05 Marek Polacek <polacek@redhat.com>
2609
2610 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2611 * doc/invoke.texi: Document -Wcomma-subscript.
2612
2613 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2614
2615 * tree-core.h (tree_function_decl): Make function_code an
2616 independent field. Group the remaining bitfields into bytes
2617 and move decl_type so that it contines to be at a byte boundary.
2618 Leave 12 bits for future expansion.
2619
2620 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2621
2622 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
2623 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
2624 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
2625 IFN_MASK_STORE.
2626
2627 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2628
2629 * gimple.h (gimple_move_vops): Declare.
2630 * gimple.c (gimple_move_vops): New function
2631 * gimple-fold.c (replace_call_with_call_and_fold)
2632 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
2633 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
2634 (gimple_fold_call): Use it.
2635 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
2636 * tree-call-cdce.c (use_internal_fn): Likewise.
2637 * tree-if-conv.c (predicate_load_or_store): Likewise.
2638 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2639 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2640 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
2641 (update_call_from_tree): Likewise.
2642 * tree-vect-stmts.c (vectorizable_load): Likewise.
2643 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
2644
2645 2019-08-05 Martin Liska <mliska@suse.cz>
2646
2647 PR c++/91334
2648 * tree-ssa-dce.c (propagate_necessity): Handle new operators
2649 with not arguments.
2650 (eliminate_unnecessary_stmts): Likewise.
2651
2652 2019-08-05 Richard Biener <rguenther@suse.de>
2653
2654 PR middle-end/91169
2655 * fold-const.c (get_array_ctor_element_at_index): Create
2656 offset_ints according to the sign of the index type and treat
2657 that as signed if it is obviously so.
2658
2659 2019-08-05 Jakub Jelinek <jakub@redhat.com>
2660
2661 PR target/91341
2662 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
2663 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
2664 _mm256_storeu2_m128i): New function.
2665
2666 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
2667
2668 * config/riscv/riscv.c (riscv_promote_function_mode): New.
2669 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
2670
2671 2019-08-05 Alan Modra <amodra@gmail.com>
2672
2673 PR target/91349
2674 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
2675 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
2676
2677 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
2678
2679 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
2680 bug that was fixed in Tcl 8.6.1.
2681
2682 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
2683
2684 * config/rs6000/future.md: New file.
2685 * config/rs6000/rs6000.md: Include future.md.
2686 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
2687
2688 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2689
2690 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
2691 check to use targetm.slow_unaligned_access instead.
2692
2693 * function.c (assign_param_data_one): Remove unused data members.
2694
2695 2019-08-02 Steve Ellcey <sellcey@marvell.com>
2696
2697 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
2698 build_distinct_type_copy.
2699 (simd_clone_adjust_argument_types): Ditto.
2700 (simd_clone_adjust): Call build_distinct_type_copy here.
2701 (expand_simd_clones): Ditto.
2702
2703 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2704
2705 PR target/91201
2706 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
2707
2708 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
2709
2710 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
2711 from 'const void *'.
2712 (sort_locs_in_loop_postorder_cmp): Likewise.
2713
2714 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
2715
2716 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
2717 (hot-bb-count-ws-permille): Likewise.
2718 (hot-bb-frequency-fraction): Likewise.
2719 (unlikely-bb-count-fraction): Likewise.
2720 * params.def (hot-bb-count-fraction): Rework description.
2721 (hot-bb-count-ws-permille): Likewise.
2722 (hot-bb-frequency-fraction): Likewise.
2723 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
2724 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
2725
2726 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2727
2728 PR target/91323
2729 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
2730 Return false.
2731
2732 2019-08-02 Richard Biener <rguenther@suse.de>
2733
2734 * vec.h (vec::sort): Add gcc_qsort_r support.
2735 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
2736 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
2737 to gcc_qsort_r style callback.
2738 (sort_locs_in_loop_postorder_cmp): Likewise.
2739 (analyze_memory_references): Use gcc_sort_r interfaces.
2740 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
2741
2742 2019-08-02 Martin Liska <mliska@suse.cz>
2743
2744 PR lto/91313
2745 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
2746 to detect working job server.
2747 (driver::detect_jobserver): Test whether jobserver
2748 is active from GCC driver. That will prevent situation where
2749 GCC is invoked from a LD plugin and the linker already uses
2750 file descriptors suggested by make. That leads to a wrong
2751 detection.
2752 * gcc.h (driver): Add detect_jobserver.
2753 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
2754 not scanning for --jobserver-auth prefix.
2755
2756 2019-08-02 Jakub Jelinek <jakub@redhat.com>
2757
2758 PR tree-optimization/91201
2759 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
2760 V16QImode extraction without sse4.1 try to use V4SImode lowpart
2761 extraction.
2762
2763 2019-08-01 Martin Sebor <msebor@redhat.com>
2764
2765 PR c++/90947
2766 * tree.c (type_initializer_zero_p): Define.
2767 * tree.h (type_initializer_zero_p): New function.
2768
2769 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2770
2771 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
2772
2773 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2774
2775 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
2776 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
2777 * predict.c (maybe_hot_count_p): Likewise.
2778 (maybe_hot_bb_p): Tweak comment.
2779 (maybe_hot_edge_p): Likewise.
2780 (probably_never_executed): Likewise. Minor tweak.
2781 (probably_never_executed_bb_p): Likewise.
2782 (unlikely_executed_edge_p): Likewise.
2783 (probably_never_executed_edge_p): Likewise.
2784 (optimize_function_for_size_p): Likewise.
2785 (optimize_function_for_speed_p): Likewise.
2786 (function_optimization_type): Likewise.
2787 (optimize_bb_for_size_p): Likewise.
2788 (optimize_bb_for_speed_p): Likewise.
2789 (bb_optimization_type): Likewise.
2790 (optimize_edge_for_size_p): Likewise.
2791 (optimize_edge_for_speed_p): Likewise.
2792 (optimize_insn_for_size_p): Likewise.
2793 (optimize_insn_for_speed_p): Likewise.
2794 (optimize_loop_for_size_p): Likewise.
2795 (optimize_loop_for_speed_p): Likewise.
2796 (optimize_loop_nest_for_speed_p): Likewise.
2797 (optimize_loop_nest_for_size_p): Likewise.
2798 (predictable_edge_p): Likewise.
2799 (handle_missing_profiles): Minor tweak.
2800
2801 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
2802
2803 * config/rs6000/predicates.md (pcrel_external_address): Update
2804 comment.
2805
2806 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2807
2808 PR target/85693
2809 * config/i386/mmx.md (usadv8qi): New expander.
2810
2811 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
2812
2813 PR c++/90590
2814 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
2815 with reserved names that are in a system header.
2816
2817 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2818
2819 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
2820 (*vec_extractv2si_0_zext_sse4): New insn pattern.
2821 (*vec_extractv2si_0_zext): Ditto.
2822 (*vec_extractv2si_1): Add (rm,x) alternative.
2823 (*vec_extractv2si_1_zext): New insn pattern.
2824 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
2825 insn constraint.
2826
2827 2019-08-01 Richard Biener <rguenther@suse.de>
2828
2829 * domwalk.c (bb_postorder): Remove static variable.
2830 (cmp_bb_postorder): Adjust.
2831 (sort_bbs_postorder): Adjust and use gcc_sort_r.
2832 (dom_walker::walk): Adjust.
2833
2834 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
2835
2836 * sort.cc (sort_r_ctx): New struct.
2837 (reorder23): Make templated on context type.
2838 (reorder45): Ditto.
2839 (cmp1): Ditto. Adjust signature.
2840 (netsort): Ditto.
2841 (mergesort): Ditto.
2842 [CHECKING_P] (cmp2to3): New static function. Use it...
2843 (gcc_qsort) [CHECKING_P]: ...here.
2844 (gcc_sort_r): New function.
2845 * system.h (sort_r_cmp_fn): New function typedef.
2846 (qsort_chk): Adjust signature.
2847 (gcc_sort_r): Declare.
2848 * vec.c (qsort_chk_error): Adjust.
2849 (qsort_chk): Adjust.
2850
2851 2019-08-01 Richard Biener <rguenther@suse.de>
2852
2853 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
2854 (compute_antic): Localize it here.
2855
2856 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
2857
2858 * common/config/riscv/riscv-common.c: Check -march string ends
2859 with null.
2860
2861 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
2862
2863 * ipa-devirt.c (type_warning_cmp): Make static.
2864 (decl_warning_cmp): Ditto.
2865
2866 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
2867
2868 PR target/91050
2869 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
2870 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
2871 use of deleted rs6000_dejagnu_cpu_index variable.
2872 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
2873 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2874 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
2875 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
2876 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
2877 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2878
2879 2019-07-31 Richard Biener <rguenther@suse.de>
2880
2881 PR tree-optimization/91280
2882 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2883 Decompose MEM_REF manually for offset handling.
2884
2885 2019-07-31 Richard Biener <rguenther@suse.de>
2886
2887 PR tree-optimization/91293
2888 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
2889 of reduction stmts.
2890
2891 2019-07-31 Matt Thomas <matt@3am-software.com>
2892 Nick Hudson <nick@nthcliff.demon.co.uk>
2893 Matthew Green <mrg@eterna.com.au>
2894 Maya Rashish <coypu@sdf.org>
2895
2896 * config.gcc (hppa*-*-netbsd*): New target.
2897 * config/pa/pa-netbsd.h: New file.
2898 * config/pa/pa32-netbsd.h: New file.
2899
2900 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2901
2902 PR tree-optimization/91201
2903 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
2904
2905 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
2906
2907 * config/gcn/gcn-valu.md
2908 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
2909 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
2910 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
2911 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
2912 struct ilist. Add nops for delayeduse insns.
2913 * config/gcn/gcn.md (delayeduse): New attribute.
2914 (*movbi): Remove s_waitcnt from stores.
2915 (*mov<mode>_insn): Likewise.
2916 (*movti_insn): Likewise. Add delayeduse attribute.
2917 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
2918 (atomic_store<mode>): Remove or adjust s_waitcnt.
2919
2920 2019-07-31 Richard Biener <rguenther@suse.de>
2921
2922 * vr-values.h (vr_values::swap_vr_value): New.
2923 (vr_values::free_value_range): likewise.
2924 * vr-values.c (vr_values::swap_vr_value): Implement.
2925 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
2926 Do not return a range or take a var.
2927 (evrp_range_analyzer::stack): Change back to recording a non-const
2928 value_range *.
2929 * gimple-ssa-evrp-analyze.c
2930 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
2931 value-range.
2932 (evrp_range_analyzer::pop_to_marker): Adjust.
2933 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
2934 (evrp_range_analyzer::pop_value_range): Likewise. Free the
2935 no longer needed value-range.
2936
2937 2019-07-31 Martin Liska <mliska@suse.cz>
2938
2939 * tree-ssa-dce.c (propagate_necessity): Delete operator can
2940 have size and (or) alignment as 2nd and later arguments.
2941 Mark all of them as necessary.
2942
2943 2019-07-31 Richard Biener <rguenther@suse.de>
2944
2945 PR tree-optimization/91178
2946 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2947 Use tail-recursion.
2948
2949 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2950
2951 PR tree-optimization/91201
2952 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
2953 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
2954 TARGET_AVX512F.
2955 (reduc_plus_scal_<mode>): Improve formatting by introducing
2956 a temporary.
2957
2958 2019-07-31 Sudakshina Das <sudi.das@arm.com>
2959
2960 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2961 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
2962 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
2963 (aarch64_init_tme_builtins): New.
2964 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
2965 (aarch64_expand_builtin_tme): New.
2966 (aarch64_expand_builtin): Handle TME builtins.
2967 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2968 __ARM_FEATURE_TME when enabled.
2969 * config/aarch64/aarch64-option-extensions.def: Add "tme".
2970 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
2971 (TARGET_TME): New.
2972 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
2973 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
2974 UNSPECV_TCANCEL.
2975 (tstart, ttest, tcommit, tcancel): New instructions.
2976 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
2977 (__tcancel, __ttest): New.
2978 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
2979 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
2980 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
2981 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
2982 * config/arm/types.md: Add new tme type attr.
2983 * doc/invoke.texi: Document "tme".
2984
2985 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
2986
2987 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
2988 warn_unused_result attribute.
2989 (cmse_check_address_range): Add warn_unused_result attribute.
2990
2991 2019-07-31 Richard Biener <rguenther@suse.de>
2992
2993 PR tree-optimization/91257
2994 * tree-vrp.c (union_ranges): Unify equality and less tests
2995 by using compare_values. Re-order cheap tests first.
2996
2997 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2998
2999 PR middle-end/91301
3000 * gimplify.c (gimplify_omp_for): If for class iterator on
3001 distribute parallel for there is no data sharing clause
3002 on inner_for_stmt, look for private clause on combined
3003 parallel too and if found, move it to inner_for_stmt.
3004
3005 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
3006
3007 * lra-int.h (lra_operand_data): Remove early_clobber field.
3008 (lra_insn_reg): Likewise.
3009 * lra.c (debug_operand_data): Update accordingly.
3010 (setup_operand_alternative): Likewise.
3011 (new_insn_reg): Likewise. Remove early_clobber parameter.
3012 (collect_non_operand_hard_regs): Update call accordingly.
3013 Don't assign to lra_insn_reg::early_clobber.
3014 (add_regs_to_insn_regno_info): Remove early_clobber parameter
3015 and update calls to new_insn_reg.
3016 (lra_update_insn_regno_info): Update calls accordingly.
3017 * lra-constraints.c (update_and_check_small_class_inputs): Take the
3018 alternative number as a parameter and test whether the operand
3019 is earlyclobbered in that particular alternative.
3020 (process_alt_operands): Update call accordingly. Use per-alternative
3021 checks for earyclobber here too.
3022 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
3023 against zero for IRA_UNKNOWN_ALT.
3024
3025 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3026
3027 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
3028
3029 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
3030
3031 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
3032 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3033
3034 2019-07-30 Martin Liska <mliska@suse.cz>
3035
3036 PR ipa/89330
3037 * cgraph.c (cgraph_edge::make_direct): Use
3038 edge->indirect_unknown_callee as edge->resolve_speculation can
3039 deallocate edge which is this pointer.
3040
3041 2019-07-30 Richard Biener <rguenther@suse.de>
3042
3043 PR tree-optimization/91257
3044 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
3045
3046 2019-07-30 Martin Liska <mliska@suse.cz>
3047
3048 * doc/invoke.texi: Document new behavior.
3049 * lto-wrapper.c (cpuset_popcount): New function
3050 is a copy of libgomp/config/linux/proc.c.
3051 (init_num_threads): Likewise.
3052 (run_gcc): Automatically detect core count for -flto.
3053 (jobserver_active_p): New function.
3054
3055 2019-07-30 Richard Biener <rguenther@suse.de>
3056
3057 PR tree-optimization/91257
3058 * bitmap.h (bitmap_ior_into_and_free): Declare.
3059 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
3060 whether to add the unliked element to the freelist.
3061 (bitmap_list_insert_element_after): Add defaulted param for
3062 an already allocated element.
3063 (bitmap_ior_into_and_free): New function.
3064 * tree-ssa-structalias.c (condense_visit): Reduce the
3065 ponts-to and edge bitmaps of the SCC members in a
3066 logarithmic fashion rather than all to one.
3067
3068 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
3069
3070 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
3071 parameter. When nonnull, make sure that the addition or subtraction
3072 has the same condition.
3073 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
3074 for CFN_COND_MUL too.
3075
3076 2019-07-30 Richard Biener <rguenther@suse.de>
3077
3078 PR tree-optimization/91291
3079 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
3080 constant values.
3081
3082 2019-07-30 Jakub Jelinek <jakub@redhat.com>
3083
3084 PR middle-end/91216
3085 * omp-low.c (global_nonaddressable_vars): New variable.
3086 (use_pointer_for_field): For global decls, if they are non-addressable,
3087 remember it in the global_nonaddressable_vars bitmap, if they are
3088 addressable and in the global_nonaddressable_vars bitmap, ignore their
3089 TREE_ADDRESSABLE bit.
3090 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
3091 vars in global_nonaddressable_vars bitmap.
3092 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
3093
3094 PR target/91150
3095 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
3096 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
3097 comparison to unsigned HOST_WIDE_INT before shifting it left.
3098
3099 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3100
3101 * config/i386/i386.md (movstrict<mode>): Use register_operand
3102 predicate for operand 0. Add expander condition. Assert that
3103 operand 0 is a SUBREG RTX.
3104 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
3105 Update operand constraints and insn condition.
3106 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
3107 (zero_extendqihi2_and): Do not call gen_movstrictqi.
3108 (*setcc_qi_slp): Use register_operand predicate for operand 0.
3109 Update operand 0 constraints.
3110 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
3111
3112 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3113
3114 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
3115 when -m{code,data}-region are used without -mlarge.
3116 * config/msp430/msp430.c (msp430_option_override): Error when a
3117 non-default code or data region is used without -mlarge.
3118 (msp430_section_attr): Emit a warning and do not add upper/lower/either
3119 attributes when they are used without -mlarge.
3120
3121 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3122
3123 PR target/70320
3124 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3125
3126 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3127
3128 PR middle-end/91242
3129 * wide-int.h (generic_wide_int::sext_elt): New function.
3130 * inchash.h (hash::add_wide_int): Use it instead of elt.
3131
3132 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3133
3134 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3135 CODE_FOR_arm_##.
3136 * config/arm/arm.md (<crc_variant>): Rename to...
3137 (arm_<crc_variant>): ... This.
3138 (<cdp>): Rename to...
3139 (arm_<cdp>): ... This.
3140 (<ldc>): Rename to...
3141 (arm_<ldc>): ... This.
3142 (<stc>): Rename to...
3143 (arm_<stc>): ... This.
3144 (<mcr>): Rename to...
3145 (arm_<mcr>): ... This.
3146 (<mrc>): Rename to...
3147 (arm_<mrc>): ... This.
3148 (<mcrr>): Rename to...
3149 (arm_<mcrr>): ... This.
3150 (<mrrc>): Rename to...
3151 (arm_<mrrc>): ... This.
3152
3153 2019-07-29 Richard Biener <rguenther@suse.de>
3154
3155 PR tree-optimization/91257
3156 * tree-ssa-sccvn.h (struct vn_avail): New.
3157 (struct vn_ssa_aux): Add avail member.
3158 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3159 member, add m_avail_freelist one.
3160 (rpo_elim::~rpo_elim): Remove.
3161 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3162 data structure.
3163 (rpo_elim::eliminate_push_avail): Likewise.
3164 (do_unwind): Likewise.
3165 (do_rpo_vn): Likewise.
3166
3167 2019-07-29 Richard Biener <rguenther@suse.de>
3168
3169 PR tree-optimization/91257
3170 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3171 most cases, instead call compare_values which handles the
3172 symbolic ranges we handle specially.
3173 (compare_values_warnv): Do not call operand_less_p but open-code
3174 the effective fold calls. Avoid converting so much.
3175
3176 2019-07-29 Martin Liska <mliska@suse.cz>
3177
3178 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3179 remove LHS of operator new call. It's handled latter.
3180
3181 2019-07-29 Richard Biener <rguenther@suse.de>
3182
3183 PR tree-optimization/91267
3184 * vr-values.c (vr_values::update_value_range): Add early return
3185 for effectively VARYING lattice entry.
3186
3187 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3188
3189 PR debug/86638
3190 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3191 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3192 necessary if keep_all_vdefs_p is true.
3193 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3194 that keep_all_vdefs_p is false.
3195 (mark_all_reaching_defs_necessary): Likewise.
3196 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3197
3198 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3199
3200 * common.opt (Og): Change the initial value of flag_dse to 0.
3201 * opts.c (default_options_table): Move OPT_ftree_dse from
3202 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3203 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3204 entry before the OPT_ftree_sra entry.
3205 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3206 of flags disabled by Og.
3207
3208 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3209
3210 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3211 variables for -Og.
3212
3213 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3214
3215 * doc/sourcebuild.texi (check-function-bodies): Document.
3216
3217 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3218
3219 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3220 VEC_DUPLICATE of a fixed-length vector even if the result
3221 is variable-length. Likewise fold a duplicate of a
3222 variable-length vector if the variable-length vector is
3223 itself a duplicate of a fixed-length sequence.
3224 (test_vector_ops_duplicate): Test more cases.
3225
3226 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3227
3228 * vector-builder.h (vector_builder): Add a shape template parameter.
3229 (vector_builder::new_unary_operation): New function, generalizing
3230 the old tree_vector_builder function.
3231 (vector_builder::new_binary_operation): Likewise.
3232 (vector_builder::binary_encoded_nelts): Likewise.
3233 * int-vector-builder.h (int_vector_builder): Update template
3234 parameters to vector_builder.
3235 (int_vector_builder::shape_nelts): New function.
3236 * rtx-vector-builder.h (rtx_vector_builder): Update template
3237 parameters to vector_builder.
3238 (rtx_vector_builder::shape_nelts): New function.
3239 (rtx_vector_builder::nelts_of): Likewise.
3240 (rtx_vector_builder::npatterns_of): Likewise.
3241 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3242 * tree-vector-builder.h (tree_vector_builder): Update template
3243 parameters to vector_builder.
3244 (tree_vector_builder::shape_nelts): New function.
3245 (tree_vector_builder::nelts_of): Likewise.
3246 (tree_vector_builder::npatterns_of): Likewise.
3247 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3248 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3249 (tree_vector_builder::new_binary_operation): Delete.
3250 (tree_vector_builder::binary_encoded_nelts): Likewise.
3251 * simplify-rtx.c: Include rtx-vector-builder.h.
3252 (distributes_over_addition_p): New function.
3253 (simplify_const_unary_operation)
3254 (simplify_const_binary_operation): Generalize handling of vector
3255 constants to include variable-length vectors.
3256 (test_vector_ops_series): Add more tests.
3257
3258 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3259
3260 PR lto/91222
3261 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3262 than INDENTIFIER_POINTER.
3263
3264 2019-07-28 Martin Liska <mliska@suse.cz>
3265
3266 PR ipa/89330
3267 * cgraph.c (symbol_table::create_edge): Always allocate
3268 a cgraph_edge.
3269 (symbol_table::free_edge): Store summary_id to
3270 edge_released_summary_ids if != -1;
3271 * cgraph.h (NEXT_FREE_NODE): Remove.
3272 (SET_NEXT_FREE_NODE): Likewise.
3273 (NEXT_FREE_EDGE): Likewise.
3274 (symbol_table::release_symbol): Store summary_id to
3275 cgraph_released_summary_ids if != -1;
3276 (symbol_table::allocate_cgraph_symbol): Always allocate
3277 a cgraph_node.
3278
3279 2019-07-28 Alan Modra <amodra@gmail.com>
3280
3281 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3282 gen_sibcall.
3283
3284 2019-07-28 Alan Modra <amodra@gmail.com>
3285
3286 PR target/91135
3287 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3288 define.
3289 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3290 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3291 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3292
3293 2019-07-28 Alan Modra <amodra@gmail.com>
3294
3295 PR target/91050
3296 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3297 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3298 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3299 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3300 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3301 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3302 in asm_default spec.
3303 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3304 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3305
3306 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3307
3308 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3309
3310 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3311
3312 PR target/89517
3313 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3314 * config/aarch64/aarch64-option-extensions.def: Add new comments
3315 and restore easier to read options.
3316
3317 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3318
3319 * convert.c (convert_to_real_1): Move part of conversion code...
3320 * match.pd: ...To here.
3321
3322 2019-07-26 Martin Jambor <mjambor@suse.cz>
3323
3324 PR ipa/89330
3325 * ipa-inline-transform.c (check_speculations_1): New function.
3326 (push_all_edges_in_set_to_vec): Likewise.
3327 (check_speculations): Use check_speculations_1, new parameter
3328 new_edges.
3329 (inline_call): Pass new_edges to check_speculations.
3330 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3331 NULL.
3332 (speculation_useful_p): Early return true if edge is inlined, remove
3333 later checks for inline_failed.
3334
3335 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3336
3337 PR rtl-optimization/91223
3338 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3339 matching with INOUT operand.
3340
3341 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3342
3343 * stmt.c (expand_case): Try to narrow the index type if it's larger
3344 than a word. Tidy up.
3345
3346 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3347
3348 * cif-code.def (NEVER_CALL): New code.
3349 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3350 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3351
3352 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3353
3354 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3355 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3356
3357 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3358
3359 * ipa-devirt.c (add_type_duplicate): Fix return value.
3360
3361 2019-07-25 Richard Biener <rguenther@suse.de>
3362
3363 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3364 type parameter and use it instead of guessing expression
3365 type from the first operand.
3366 (extract_range_from_binary_expr): Pass expr_type down.
3367
3368 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3369
3370 * config/arm/arm.md (SATrev): Change to code attribute.
3371 (*satsi_<SAT:code>): Adjust for the above.
3372 (*satsi_<SAT:code>_shift): Likewise.
3373
3374 2019-07-25 Richard Biener <rguenther@suse.de>
3375
3376 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3377 Make value_range * temporary const.
3378 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3379 Likewise.
3380 (evrp_range_analyzer::record_ranges_from_): Likewise.
3381 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3382 deal with having recorded a const one.
3383 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3384 Return a const value_range *.
3385 (evrp_range_analyzer::pop_value_range): Likewise.
3386 (evrp_range_analyzer::stack): Record const value_range *s.
3387 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3388 Adjust.
3389 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3390 (format_integer): Likewise.
3391 (sprintf_dom_walker::handle_gimple_call): Likewise.
3392 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3393 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3394 (vrp_prop::get_value_range): Adjust.
3395 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3396 modifying the lattice in-place.
3397 (vrp_prop::visit_stmt): Likewise.
3398 * vr-values.c (vr_values::get_lattice_entry): New private method.
3399 (vr_values::get_value_range): Wrap it and return a const
3400 value_range *.
3401 (vr_values::set_def_to_varying): New.
3402 (vr_values::set_defs_to_varying): Use it.
3403 (vr_values::update_value_range): Likewise.
3404 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3405 (values::op_with_constant_singleton_va): Likewise.
3406 (vr_values::extract_range_for_var_from_co): Likewise.
3407 (vr_values::extract_range_from_ssa_name): Likewise.
3408 (vr_values::extract_range_from_cond_expr): Likewise.
3409 (vr_values::extract_range_basic): Likewise.
3410 (compare_ranges): Take const value_range *, adjust.
3411 (compare_range_with_value): Likewise.
3412 (vrp_valueize): Adjust.
3413 (vrp_valueize_1): Likewise.
3414 (vr_values::get_vr_for_comparison): Return a const value_range *.
3415 (vr_values::compare_name_with_value): Adjust.
3416 (vr_values::compare_names): Likewise.
3417 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3418 Likewise.
3419 (vr_values::vrp_evaluate_conditional): Likewise.
3420 (find_case_label_ranges): Take a const value_range *.
3421 (vr_values::vrp_visit_switch_stmt): Adjust.
3422 (vr_values::extract_range_from_phi_node): Likewise.
3423 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3424 (vr_values::simplify_abs_using_ranges): Likewise.
3425 (test_for_singularity): Take a const value_range *.
3426 (range_fits_type_p): Likewise.
3427 (vr_values::simplify_cond_using_ranges_1): Adjust.
3428 (vr_values::simplify_cond_using_ranges_2): Likewise.
3429 (vr_values::simplify_switch_using_ranges): Likewise.
3430 (vr_values::simplify_float_conversion_usi): Likewise.
3431 (vr_values::two_valued_val_range_p): Likewise.
3432 * vr-values.h (vr_values::get_value_range): Return a const
3433 value_range *.
3434 (vr_values::set_def_to_varying): New.
3435 (vr_values::get_lattice_entry): New private method.
3436 (vr_values::get_vr_for_comparison): Return a const value_range *.
3437
3438 2019-07-25 Martin Liska <mliska@suse.cz>
3439 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3440
3441 PR c++/23383
3442 * common.opt: Add -fallocation-dce
3443 * gimple.c (gimple_call_operator_delete_p): New.
3444 * gimple.h (gimple_call_operator_delete_p): Likewise.
3445 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3446 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
3447 DECL_IS_OPERATOR_DELETE_P.
3448 (mark_all_reaching_defs_necessary_1): Likewise.
3449 (propagate_necessity): Likewise.
3450 (eliminate_unnecessary_stmts): Handle
3451 gimple_call_operator_delete_p.
3452 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
3453 Add packing of OPERATOR_DELETE.
3454 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
3455 Similarly here.
3456 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
3457 (DECL_SET_IS_OPERATOR_DELETE): New.
3458 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
3459
3460 2019-07-25 Martin Liska <mliska@suse.cz>
3461
3462 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
3463 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
3464 * coverage.c (coverage_begin_function): Likewise.
3465 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
3466 * gimple.c (gimple_call_nonnull_result_p): Likewise.
3467 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
3468 (sem_item::hash_referenced_symbol_properties): Likewise.
3469 * lto-streamer-out.c (hash_tree): Likewise.
3470 * predict.c (expr_expected_value_1): Likewise.
3471 * tree-inline.c (expand_call_inline): Likewise.
3472 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3473 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3474 * tree-core.h (enum function_decl_type): New enum.
3475 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
3476 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
3477 (set_function_decl_type): Likewise.
3478 (DECL_IS_OPERATOR_NEW_P): New.
3479 (DECL_SET_IS_OPERATOR_NEW): Likewise.
3480 (DECL_LAMBDA_FUNCTION): Likewise.
3481 (DECL_LAMBDA_FUNCTION_P): Likewise.
3482 (DECL_IS_OPERATOR_NEW): Remove.
3483 (DECL_SET_LAMBDA_FUNCTION): Likewise.
3484
3485 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
3486
3487 * ipa-profile.c (get_most_common_single_value): Use
3488 get_nth_most_common_value.
3489 * profile.c (sort_hist_value): New function.
3490 (compute_value_histograms): Call sort_hist_value to sort the
3491 values after loading from disk.
3492 * value-prof.c (get_most_common_single_value): Rename to ...
3493 get_nth_most_common_value. Add input params n, return
3494 the n_th value and count.
3495 (gimple_divmod_fixed_value_transform): Use
3496 get_nth_most_common_value.
3497 (gimple_ic_transform): Likewise.
3498 (gimple_stringops_transform): Likewise.
3499 * value-prof.h (get_most_common_single_value): Add input params
3500 n, default to 0.
3501
3502 2019-07-25 Richard Biener <rguenther@suse.de>
3503
3504 PR tree-optimization/91236
3505 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3506 size of CONSTRUCTOR write. Fix buffer size we pass to
3507 native_encode_expr.
3508
3509 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3510
3511 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
3512 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
3513 r273773.
3514
3515 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3516
3517 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
3518 explicitly disabled with --disable-initfini-array.
3519
3520 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3521
3522 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
3523 if-exists.
3524
3525 2019-07-24 Martin Sebor <msebor@redhat.com>
3526
3527 PR tree-optimization/91183
3528 PR tree-optimization/86688
3529 * builtins.c (compute_objsize): Handle MEM_REF.
3530 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
3531 (get_min_string_length): Remove.
3532 (count_nonzero_bytes): New function.
3533 (handle_char_store): Rename...
3534 (handle_store): to this. Handle multibyte stores via integer types.
3535 (strlen_check_and_optimize_stmt): Adjust conditional and the called
3536 function name.
3537
3538 2019-07-24 Martin Sebor <msebor@redhat.com>
3539
3540 PR driver/80545
3541 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
3542 (diagnostic_report_diagnostic): Same.
3543 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
3544 (diagnostic_context::lang_mask): New data member.
3545 * ipa-pure-const.c (suggest_attribute): Use
3546 lang_hooks.option_lang_mask ().
3547 * opts-common.c (option_enabled): Handle new argument.
3548 (get_option_state): Pass an additional argument.
3549 * opts.c (print_filtered_help): Print supported languages for
3550 unsupported options. Adjust printing of current state.
3551 * opts.h (option_enabled): Add argument.
3552 * toplev.c (print_switch_values): Use lang_mask.
3553 (general_init): Set global_dc->lang_mask.
3554
3555 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3556
3557 PR bootstrap/87030
3558 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
3559
3560 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
3561
3562 * cgraphunit.c (symbol_table::compile): Start and stop
3563 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
3564 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
3565
3566 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
3567
3568 * gimplify.c (flag_instrument_functions_exclude_p): Include
3569 namespace/class information in the printable name.
3570 * opts.c (add_comma_separated_to_vector): Add NUL terminator
3571 to tokens entered into the vector.
3572
3573 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
3574
3575 * tree-nested.c (build_simple_mem_ref_notrap): New function.
3576 (get_static_chain): Call it instead of build_simple_mem_ref.
3577 (get_frame_field): Likewise.
3578 (get_nonlocal_debug_decl): Likewise.
3579 (convert_nonlocal_reference_op): Likewise.
3580
3581 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
3582
3583 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
3584 declaration.
3585 (arc_compute_frame_size): Millicode is disabled when compiling
3586 ISR.
3587 (arc_return_address_register): Likewise.
3588 (arc_compute_function_type): Likewise.
3589 (arc_compute_frame_size): Likewise.
3590 (secondary_reload_info): Likewise.
3591 (arc_get_unalign): Likewise.
3592 (arc_can_use_return_insn): Declare.
3593 * config/arc/arc.c (AUX_LP_START): Define
3594 (AUX_LP_END): Likewise.
3595 (arc_frame_info): Update gmask member to 64-bit datum.
3596 (GMASK_LEN): Update.
3597 (arc_compute_function_type): Make it static, move it forward.
3598 (arc_must_save_register): Update, consider the extra regs.
3599 (arc_compute_millicode_save_restore_regs): Update to use the 64
3600 bit gmask.
3601 (arc_compute_frame_size): Likewise.
3602 (arc_enter_leave_p): Likewise.
3603 (arc_save_callee_saves): Likewise.
3604 (arc_restore_callee_saves): Likewise.
3605 (arc_save_callee_enter): Likewise.
3606 (arc_restore_callee_leave): Likewise.
3607 (arc_save_callee_milli): Likewise.
3608 (arc_restore_callee_milli): Likewise.
3609 (arc_expand_prologue): Add new interrupt handling.
3610 (arc_return_address_register): Make it static, move it forward.
3611 (arc_expand_epilogue): Add new interrupt handling.
3612 (arc_get_unalign): Delete.
3613 (arc_epilogue_uses): Make sure we do not remove the extra
3614 saved/restored registers when interrupt.
3615 (arc_can_use_return_insn): New function.
3616 (push_reg): Likewise.
3617 (pop_reg): Likewise.
3618 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
3619 procedures.
3620 (arc_restore_callee_saves): Likewise, but restoring.
3621 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
3622 (R33_REG): Likewise.
3623 (R34_REG): Likewise.
3624 (R35_REG): Likewise.
3625 (R36_REG): Likewise.
3626 (R37_REG): Likewise.
3627 (R38_REG): Likewise.
3628 (R39_REG): Likewise.
3629 (R45_REG): Likewise.
3630 (R46_REG): Likewise.
3631 (R47_REG): Likewise.
3632 (R48_REG): Likewise.
3633 (R49_REG): Likewise.
3634 (R50_REG): Likewise.
3635 (R51_REG): Likewise.
3636 (R52_REG): Likewise.
3637 (R53_REG): Likewise.
3638 (R54_REG): Likewise.
3639 (R55_REG): Likewise.
3640 (R56_REG): Likewise.
3641 (R58_REG): Likewise.
3642 (type): Add rtie attribute.
3643 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
3644 (movsi_insn): Accept moves to lp_count.
3645 (rtie): Update pattern.
3646 (simple_return): Simplify it, don't use this pattern as a return
3647 from an interrupt.
3648 (arc600_rtie): New pattern.
3649 (p_return_i): Clean up.
3650 (return): Likewise.
3651 * config/arc/builtins.def (rtie): Only available for non ARC6xx
3652 family CPUs.
3653 * config/arc/predicates.md (move_src_operand): Consider lp_count
3654 as a register.
3655
3656 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
3657
3658 * config/s390/predicates.md (addv_const_operand): New predicate.
3659 * config/s390/s390-modes.def (CCO): New condition code mode.
3660 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
3661 (s390_branch_condition_mask): Likewise.
3662 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
3663 ("mulv<mode>4"): New expanders.
3664 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
3665 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
3666 pattern definitions.
3667
3668 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3669
3670 PR middle-end/91166
3671 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
3672 (define_predicates): Add entry for uniform_vector_p.
3673 (vec_same_elem_p): New match pattern.
3674
3675 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3676
3677 PR bootstrap/87030
3678 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
3679 * config/i386/darwin32-biarch.h .. to here.
3680 * config/i386/darwin64-biarch.h: Adjust comments.
3681 * config/rs6000/darwin32-biarch.h: Likewise.
3682 * config/rs6000/darwin64-biarch.h: Likewise.
3683 * config.gcc: Missed commit from r273746
3684 (*-*-darwin*): Don't include CPU t-darwin here.
3685 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3686 an error message if i686-darwin configuration is attempted for
3687 Darwin >= 18.
3688
3689 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
3690
3691 PR bootstrap/87030
3692 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
3693 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3694 an error message if i686-darwin configuration is attempted for
3695 Darwin >= 18.
3696 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
3697 (powerpc-*-darwin*): Use biarch files where needed.
3698 (powerpc64-*-darwin*): Likewise.
3699 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
3700 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3701 arch case.
3702 * config/i386/darwin32-biarch.h: New.
3703 * config/i386/darwin64.h: Rename.
3704 * config/i386/darwin64-biarch.h: To this.
3705 * config/i386/t-darwin: Rename.
3706 * config/i386/t-darwin32-biarch: To this.
3707 * config/i386/t-darwin64: Rename.
3708 * config/i386/t-darwin64-biarch: To this.
3709 * config/rs6000/darwin32-biarch.h: New.
3710 * config/rs6000/darwin64.h: Rename.
3711 * config/rs6000/darwin64-biarch.h: To this.
3712 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3713 arch case.
3714 * config/rs6000/t-darwin8: Rename.
3715 * config/rs6000/t-darwin32-biarch: To this.
3716 * config/rs6000/t-darwin64 Rename.
3717 * config/rs6000/t-darwin64-biarch: To this.
3718
3719 2019-07-23 Martin Sebor <msebor@redhat.com>
3720
3721 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
3722
3723 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3724
3725 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
3726 (rh): New alias for it.
3727
3728 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3729
3730 * gdbhooks.py: Pass replace=True to
3731 gdb.printing.register_pretty_printer.
3732
3733 2019-07-23 Richard Biener <rguenther@suse.de>
3734
3735 PR debug/91231
3736 * lto-streamer-in.c (input_function): Drop inline-entry markers
3737 that ended up with an unknown location block.
3738
3739 2019-07-23 Richard Biener <rguenther@suse.de>
3740
3741 PR tree-optimization/83518
3742 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
3743 init from a constant even when partial defs are already recorded.
3744
3745 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3746
3747 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
3748 * config/i386/znver1.md: Enable patterns for znver2 and add store
3749 variants which use extra AGU unit.
3750
3751 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3752
3753 * config/i386/i386-options.c (ix86_option_override_internal): Default
3754 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
3755 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
3756 for ZNVER2.
3757
3758 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3759
3760 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
3761 (znver2_costs): Update 256 bit SSE costs and multiplication.
3762
3763 2019-07-23 Jan Beulich <jbeulich@suse.com>
3764
3765 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
3766 Require only AVX512F.
3767 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
3768 alternative expanding to vpternlog.
3769
3770 2019-07-23 Martin Liska <mliska@suse.cz>
3771
3772 * dwarf2out.c (gen_producer_string): Canonize -flto=N
3773 to -flto in dwarf producer string.
3774
3775 2019-07-23 Richard Biener <rguenther@suse.de>
3776
3777 * tree-cfg.c (label_for_bb): Remove global var.
3778 (main_block_label): Take label_for_bb as argument.
3779 (cleanup_dead_labels_eh): Likewise, adjust.
3780 (cleanup_dead_labels): Adjust.
3781
3782 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3783
3784 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
3785 Configurations): Add documentation for __builtin_mtfsf.
3786
3787 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
3788
3789 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
3790 * config/riscv/riscv.c (riscv_constant_alignment): Use
3791 riscv_align_data_type.
3792 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
3793 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3794 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3795 * config/riscv/riscv.opt (malign-data): New.
3796 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
3797
3798 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
3799
3800 * cgraph.c (dump_graphviz): New function.
3801 * cgraph.h (dump_graphviz): New function.
3802 * symtab.c (dump_graphviz): New function.
3803
3804 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
3805
3806 * config/aarch64/aarch64-simd.md
3807 (*aarch64_simd_sra<mode>): New.
3808 * config/aarch64/iterators.md
3809 (SHIFTRT): New iterator.
3810 (sra_op): New attribute.
3811
3812 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3813
3814 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
3815 callee-saved regs R4->R10 in an interrupt function that calls another
3816 function.
3817
3818 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3819
3820 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
3821 (_mm_blendv_epi8): New.
3822
3823 2019-07-22 Richard Biener <rguenther@suse.de>
3824
3825 PR tree-optimization/91221
3826 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
3827 restrict partial-def handling of empty constructors and
3828 memset to refs with known offset.
3829
3830 2019-07-22 Jan Beulich <jbeulich@suse.com>
3831
3832 * config/i386/sse.md (ternlogsuffix): New.
3833 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
3834 AVX512F is in use.
3835 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
3836
3837 2019-07-22 Martin Liska <mliska@suse.cz>
3838
3839 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
3840 comment.
3841 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
3842
3843 2019-07-22 Martin Liska <mliska@suse.cz>
3844
3845 * lto-section-in.c (lto_get_section_data):
3846 Use new function get_compression.
3847 * lto-streamer-out.c (produce_lto_section): Use
3848 set_compression to encode compression algorithm.
3849 * lto-streamer.h (struct lto_section): Do not
3850 use bitfields in the format.
3851
3852 2019-07-22 Martin Liska <mliska@suse.cz>
3853
3854 PR driver/91172
3855 * opts-common.c (decode_cmdline_option): Decode
3856 argument of -Werror and check it for a wrong language.
3857 * opts-global.c (complain_wrong_lang): Remove such case.
3858
3859 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
3860
3861 * config/arc/arc.c (prepare_move_operands): Always use an
3862 intermediate register when storing a TLS symbols.
3863
3864 2019-07-22 Stafford Horne <shorne@gmail.com>
3865
3866 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
3867 force_reg.
3868
3869 2019-07-22 Stafford Horne <shorne@gmail.com>
3870
3871 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
3872 and munordered-float validations.
3873 * config/or1k/constraints.md (d): New register constraint.
3874 * config/or1k/predicates.md (fp_comparison_operator): New.
3875 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
3876 operands.
3877 (or1k_expand_compare): Normalize unordered comparisons.
3878 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
3879 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
3880 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
3881 * config/or1k/or1k.md (type): Add fpu.
3882 (fpu): New instruction reservation.
3883 (F, f, fr, fi, FI, FOP, fop): New.
3884 (<fop><F:mode>3): New ALU instruction definition.
3885 (float<fi><F:mode>2): New conversion instruction definition.
3886 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
3887 (fpcmpcc): New code iterator.
3888 (*sf_fp_insn): New instruction definition.
3889 (cstore<F:mode>4): New expand definition.
3890 (cbranch<F:mode>4): New expand definition.
3891 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
3892 munordered-float): New options.
3893 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
3894 munordered-float.
3895
3896 2019-07-22 Stafford Horne <shorne@gmail.com>
3897
3898 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
3899 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
3900 documenation to be more clear.
3901 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
3902 more clear.
3903 * config/or1k/or1k.opt (mrori): New option.
3904 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
3905 msfimm, mshftimm): Rewrite documentation to be more clear.
3906 * config/or1k/or1k.md (insn_support): Add ror and rori.
3907 (enabled): Add conditions for ror and rori.
3908 (rotrsi3): Replace condition for shftimm with ror and rori.
3909
3910 2019-07-22 Stafford Horne <shorne@gmail.com>
3911
3912 PR target/90363
3913 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
3914 (extend<mode>si2): Update predicate.
3915 * config/or1k/predicates.md (volatile_mem_operand): New.
3916 (reg_or_mem_operand): New.
3917
3918 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
3919
3920 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
3921 * config/rs6000/rs6000-call.c: ... to here.
3922
3923 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3924
3925 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
3926 memory.
3927
3928 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3929
3930 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
3931
3932 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3933
3934 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
3935
3936 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3937
3938 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
3939 (any_memory_operand): New predicate.
3940 (reg_or_mem_operand): Use it.
3941
3942 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3943
3944 PR target/91204
3945 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
3946
3947 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
3948
3949 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
3950 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
3951
3952 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3953
3954 * tree.def (OMP_LOOP): New tree code.
3955 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
3956 (enum omp_clause_bind_kind): New enum.
3957 (struct tree_omp_clause): Add subcode.bind_kind.
3958 * tree.h (OMP_LOOP_CHECK): Rename to ...
3959 (OMP_LOOPING_CHECK): ... this.
3960 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
3961 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
3962 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
3963 (OMP_CLAUSE_BIND_KIND): Define.
3964 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3965 bind clause entries.
3966 (walk_tree_1): Handle OMP_CLAUSE_BIND.
3967 * tree-pretty-print.c (dump_omp_clause): Likewise.
3968 (dump_generic_node): Handle OMP_LOOP.
3969 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
3970 (in_omp_construct): New variable.
3971 (is_gimple_stmt): Handle OMP_LOOP.
3972 (gimplify_scan_omp_clauses): For lastprivate don't set
3973 check_non_private if code == OMP_LOOP. For reduction clause
3974 on OMP_LOOP combined with parallel or teams propagate as shared
3975 on the combined construct. Handle OMP_CLAUSE_BIND.
3976 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
3977 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
3978 for constructs from a loop construct to gimplify_scan_omp_clauses.
3979 Don't predetermine iterator linear on OMP_SIMD from loop construct.
3980 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
3981 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
3982 to match the implicit ORT_TARGET construct around whole body.
3983 Temporarily clear in_omp_construct when processing body.
3984 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
3985 etc. temporarily set in_omp_construct when processing body.
3986 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
3987 * omp-low.c (struct omp_context): Add loop_p.
3988 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
3989 in that the original var might be private.
3990 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
3991 (check_omp_nesting_restrictions): Adjust nesting restrictions for
3992 addition of loop construct.
3993 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
3994
3995 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
3996 lastprivate non-addressable iterator of a collapse(1) simd.
3997
3998 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
3999
4000 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
4001 as in rs6000.c.
4002
4003 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
4004
4005 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
4006 refer to default conditions. Warn for the 'y' spec which is ignored
4007 by current linkers.
4008
4009 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
4010
4011 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
4012 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4013 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4014 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4015 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4016 init_cumulative_args, rs6000_promote_function_mode,
4017 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4018 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4019 rs6000_function_arg_boundary, rs6000_parm_offset,
4020 rs6000_parm_start, rs6000_arg_size,
4021 rs6000_darwin64_record_arg_advance_flush,
4022 rs6000_darwin64_record_arg_advance_recurse,
4023 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4024 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4025 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4026 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4027 rs6000_finish_function_arg, rs6000_function_arg,
4028 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4029 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4030 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4031 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4032 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4033 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4034 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4035 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4036 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4037 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4038 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4039 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4040 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4041 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4042 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4043 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4044 get_element_number, altivec_expand_vec_set_builtin,
4045 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4046 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4047 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4048 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4049 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4050 rs6000_expand_builtin, rs6000_vector_type,
4051 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4052 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4053 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
4054 to rs6000-call.c.
4055 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
4056 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4057 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4058 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4059 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4060 init_cumulative_args, rs6000_promote_function_mode,
4061 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4062 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4063 rs6000_function_arg_boundary, rs6000_parm_offset,
4064 rs6000_parm_start, rs6000_arg_size,
4065 rs6000_darwin64_record_arg_advance_flush,
4066 rs6000_darwin64_record_arg_advance_recurse,
4067 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4068 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4069 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4070 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4071 rs6000_finish_function_arg, rs6000_function_arg,
4072 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4073 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4074 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4075 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4076 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4077 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4078 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4079 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4080 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4081 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4082 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4083 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4084 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4085 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4086 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4087 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4088 get_element_number, altivec_expand_vec_set_builtin,
4089 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4090 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4091 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4092 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4093 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4094 rs6000_expand_builtin, rs6000_vector_type,
4095 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4096 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4097 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
4098 to here from rs6000.c.
4099 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
4100 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
4101 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
4102 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
4103 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
4104 rs6000_return_in_memory, rs6000_return_in_msb,
4105 rs6000_pass_by_reference, setup_incoming_varargs,
4106 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
4107 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
4108 rs6000_function_arg_padding, rs6000_function_arg,
4109 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
4110 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
4111 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
4112 rs6000_passes_long_double, rs6000_passes_vector,
4113 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
4114 altivec_builtin_mask_for_load) Add declarations.
4115 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
4116 * config/config.gcc: Add new source file rs6000-call.c to garbage
4117 collector and extra_objs.
4118
4119 2019-07-19 Jeff Law <law@redhat.com>
4120
4121 PR tree-optimization/86061
4122 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4123 strncpy. Drop some trivial dead code.
4124 (maybe_trim_memstar_call): Handle strncpy.
4125
4126 2019-07-19 Richard Biener <rguenther@suse.de>
4127
4128 PR tree-optimization/91211
4129 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4130 memset encoding size.
4131
4132 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4133
4134 PR target/91204
4135 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4136
4137 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4138
4139 PR ipa/91194
4140 * ipa-inline.c (recursive_inlining): Fix limits check.
4141
4142 2019-07-19 Richard Biener <rguenther@suse.de>
4143
4144 PR tree-optimization/91200
4145 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4146 no PHI nodes in middle-bb.
4147
4148 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4149
4150 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4151 to +sve-bitperm.
4152 * config/aarch64/aarch64-option-extensions.def: Likewise.
4153
4154 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4155
4156 PR middle-end/91190
4157 * function.c (insert_temp_slot_address): Store into the hash table
4158 a copy of address to avoid RTL sharing issues.
4159
4160 2019-07-19 Richard Biener <rguenther@suse.de>
4161
4162 PR tree-optimization/91207
4163 Revert
4164 2019-07-17 Richard Biener <rguenther@suse.de>
4165
4166 PR tree-optimization/91178
4167 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4168 loads with a gap larger than the vector size always use
4169 VMAT_STRIDED_SLP.
4170 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4171 avoid loading vectors that are only contained in the gap
4172 and thus are not needed.
4173
4174 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4175
4176 * config/i386/i386.md (*addqi_2_slp): Remove.
4177 (*<code>qi_2_slp): Ditto.
4178
4179 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4180
4181 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4182 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4183 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4184 Rename function from rs6000_prefixed_address.
4185 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4186 TARGET_HAS_TOC.
4187 (TARGET_TOC): Likewise.
4188 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4189 rs6000.h.
4190 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4191 TARGET_HAS_TOC.
4192 (TARGET_TOC): Likewise.
4193 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4194 rs6000.h.
4195 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4196 TARGET_HAS_TOC.
4197 (TARGET_TOC): Likewise.
4198 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4199 check to require -mcmodel=medium for pc-relative addressing.
4200 (create_TOC_reference): Add assertion for TARGET_TOC.
4201 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4202 TARGET_NO_TOC.
4203 (rs6000_emit_move): Likewise.
4204 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4205 to 'TOC_alias_set'.
4206 (get_TOC_alias_set): Likewise.
4207 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4208 TARGET_NO_TOC.
4209 (rs6000_can_eliminate): Likewise.
4210 (rs6000_prefixed_address_mode_p): Rename function from
4211 rs6000_prefixed_address.
4212 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4213 TARGET_HAS_TOC and not pc-relative.
4214 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4215 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4216 TARGET_HAS_TOC.
4217 (TARGET_TOC): Likewise.
4218 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4219 rs6000.h.
4220
4221 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4222
4223 PR target/91188
4224 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4225 for operand 0. Do not use (match_dup) to match operand 1 with
4226 operand 0. Add check in insn constraint that either input operand
4227 matches operand 0. Use SWI12 mode iterator to also handle
4228 HImode operands.
4229 (*and<mode>_1_slp): Ditto.
4230 (*<code>qi_1_slp): Ditto.
4231 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4232 Do not use (match_dup) to match operand 1 with operand 0. Add
4233 check in insn constraint that operand 1 matches operand 0.
4234 Use SWI12 mode iterator to also handle HImode operands.
4235 (*ashl<mode>3_1_slp): Ditto.
4236 (*<shift_insn><mode>3_1_slp): Ditto.
4237 (*<rotate_insn><mode>3_1_slp): Ditto.
4238
4239 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4240
4241 * config/arm/arm-builtins.c
4242 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4243 (arm_expand_unop_builtin): Likewise.
4244 * config/arm/crypto.md
4245 (crypto_sha1h): Convert from define_insn to define_expand.
4246 (crypto_<crypto_pattern>): Likewise.
4247 (crypto_sha1h_lb): New define_insn.
4248 (crypto_<crypto_pattern>_lb): Likewise.
4249
4250 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4251
4252 PR target/90317
4253 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4254 (vsha1cq_u32): Likewise.
4255 (vsha1pq_u32): Likewise.
4256 (vsha1mq_u32): Likewise.
4257 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4258 vec select.
4259 (crypto_sha1c): Correct vec select.
4260 (crypto_sha1m): Likewise.
4261 (crypto_sha1p): Likewise.
4262
4263 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4264
4265 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4266 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4267 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4268 (subdi_zesidi_zesidi): Likewise.
4269 (negdi2_compare, negdi2_insn): Likewise.
4270 (negdi_extensidi): Likewise.
4271 (negdi_zero_extendsidi): Likewise.
4272 (arm_cmpdi_insn): Likewise.
4273 (subsi3_carryin): Use arm_borrow_operation.
4274 (subsi3_carryin_const): Likewise.
4275 (subsi3_carryin_const0): Likewise.
4276 (subsi3_carryin_compare): Likewise.
4277 (subsi3_carryin_compare_const): Likewise.
4278 (subsi3_carryin_compare_const0): Likewise.
4279 (subsi3_carryin_shift): Likewise.
4280 (rsbsi3_carryin_shift): Likewise.
4281 (negsi2_carryin_compare): Likewise.
4282
4283 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4284
4285 PR tree-optimization/91137
4286 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4287 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4288 Init, use and fini the above new field.
4289 (determine_base_object_1): New function.
4290 (determine_base_object): Reimplement using walk_tree.
4291
4292 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4293
4294 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4295 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4296 CLEANUP_FORCE_FAST_DCE is set.
4297 * ifcvt.c (rest_of_handle_if_conversion): Pass
4298 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4299 if-conversion succeeded.
4300
4301 2019-07-18 Richard Biener <rguenther@suse.de>
4302
4303 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4304 branches to make code less indented.
4305
4306 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4307
4308 PR middle-end/81824
4309 * attribs.c (decls_mismatched_attributes): Simplify the logic
4310 that avoids duplicates and false positives.
4311
4312 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4313
4314 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4315 data into data section when generating PIC code.
4316 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4317 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4318 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4319 return 2 for SOM and 0 for other targets.
4320
4321 2019-07-17 Jeff Law <law@redhat.com>
4322
4323 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4324 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4325 avoid unexpected switch statement fallthru.
4326
4327 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4328
4329 * config/i386/i386.md (*add<dwi>3_doubleword):
4330 Remove redundant constraints.
4331 (*add<mode>_1): Ditto.
4332 (*addhi_1): Ditto.
4333 (*addqi_1): Ditto.
4334 (*addqi_1_slp): Ditto.
4335 (*add<mode>_2): Ditto.
4336 (*addv<mode>4): Ditto.
4337 (*sub<dwi>3_doubleword): Ditto.
4338 (*sub<mode>_1): Ditto.
4339 (*subqi_1_slp): Ditto.
4340 (*sub<mode>_2): Ditto.
4341 (*subv<mode>4): Ditto.
4342 (*sub<mode>_3): Ditto.
4343 (@add<mode>3_carry): Ditto.
4344 (@sub<mode>3_carry): Ditto.
4345 (*add<mode>3_cc_overflow_1): Ditto.
4346 (*add<mode>3_zext_cc_overflow_2): Ditto.
4347 (*anddi_1): Ditto.
4348 (*and<mode>_1): Ditto.
4349 (*andqi_1): Ditto.
4350 (*andqi_1_slp): Ditto.
4351 (*anddi_2): Ditto.
4352 (*andqi_2_maybe_si): Ditto.
4353 (*and<mode>_2): Ditto.
4354 (*andqi_2_slp): Ditto.
4355 (*<code><mode>_1): Ditto.
4356 (*<code>qi_1): Ditto.
4357 (*<code>qi_1_slp): Ditto.
4358 (*<code><mode>_2): Ditto.
4359 (*<code>qi_2_slp): Ditto.
4360
4361 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4362
4363 * alias.c (record_component_aliases): Do not simplify pointed-to
4364 types of ODR types.
4365
4366 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4367
4368 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4369 partial reg stall on alternative 2.
4370
4371 2019-07-17 Richard Biener <rguenther@suse.de>
4372
4373 PR tree-optimization/91178
4374 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4375 lower SSA names to avoid quadratic behavior in the common case.
4376 * tree-data-ref.c (split_constant_offset): Add limit argument
4377 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4378 (split_constant_offset_1): Add limit argument and use it to
4379 limit SSA def walking. Optimize the common plus/minus case.
4380
4381 2019-07-17 Richard Biener <rguenther@suse.de>
4382
4383 PR tree-optimization/91178
4384 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4385 loads with a gap larger than the vector size always use
4386 VMAT_STRIDED_SLP.
4387 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4388 avoid loading vectors that are only contained in the gap
4389 and thus are not needed.
4390
4391 2019-07-17 Richard Biener <rguenther@suse.de>
4392
4393 PR tree-optimization/91180
4394 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4395 computation for memset partial defs.
4396
4397 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4398
4399 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4400 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4401 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4402 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4403 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4404 * omp-grid.c (grid_process_grid_body,
4405 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4406 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4407 == GF_OMP_FOR_KIND_SIMD.
4408 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4409 check_omp_nesting_restrictions, scan_omp_1_stmt,
4410 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4411 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4412 omp_find_scan): Likewise.
4413 * omp-expand.c (expand_omp_for): Likewise.
4414 * omp-general.c (omp_extract_for_data): Likewise.
4415
4416 PR tree-optimization/91157
4417 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4418 a vector boolean with scalar mode.
4419 (expand_vector_condition): Handle first operand being a vector boolean
4420 with scalar mode.
4421 (expand_vector_operations_1): For comparisons, don't bail out early
4422 if the return type is vector boolean with scalar mode, but comparison
4423 operand type is not.
4424
4425 2019-07-17 Richard Biener <rguenther@suse.de>
4426
4427 PR tree-optimization/91181
4428 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4429 IFN_LOADs as calls.
4430
4431 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4432
4433 * config/i386/i386.md (*testdi_1): Match CCZmode for
4434 constants that might have the SImode sign bit set.
4435 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4436 Use correct constraints for pentium pairing.
4437 (*test<mode>_1): Ditto.
4438
4439 2019-07-16 Jeff Law <law@redhat.com>
4440
4441 PR rtl-optimization/91173
4442 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4443 SSA_NAME with a constant value, fold its value into the offset
4444 and clear the base before calling gen_addr_rtx.
4445
4446 2019-07-16 Jakub Jelinek <jakub@redhat.com>
4447
4448 PR rtl-optimization/91164
4449 * dse.c (rest_of_handle_dse): If dead edges have been purged,
4450 invalidate dominance info.
4451
4452 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4453
4454 * read-md.h (md_reader::record_potential_iterator_use): Add a
4455 file_location parameter.
4456 * read-rtl.c (attribute_use::loc): New field.
4457 (map_attr_string): Take a file_location parameter. Report cases
4458 in which attributes map to multiple distinct values.
4459 (apply_attribute_uses): Update call accordingly.
4460 (md_reader::handle_overloaded_name): Likewise.
4461 (md_reader::apply_iterator_to_string): Likewise. Skip empty
4462 nonnull strings.
4463 (record_attribute_use): Take a file_location parameter.
4464 Initialize attribute_use::loc.
4465 (md_reader::record_potential_iterator_use): Take a file_location
4466 parameter. Update call to record_attribute_use.
4467 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
4468 (rtx_reader::read_rtx_code): Likewise.
4469 (rtx_reader::read_rtx_operand): Likewise. Record a location
4470 for implicitly-expanded empty strings.
4471
4472 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4473
4474 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
4475 Use file_location instead of separate fields.
4476 (md_reader::set_md_ptr_loc): Take a file_location instead of a
4477 separate filename and line number.
4478 * read-md.c (ptr_loc): As above.
4479 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
4480 (md_reader::fprint_md_ptr_loc): Likewise.
4481 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
4482 instead of a separate filename and line number.
4483 (md_reader::read_string): Update call accordingly.
4484
4485 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4486
4487 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4488 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
4489 leaving the choice between SFDF and P implicit.
4490 (*mov<mode>_update2): Likewise.
4491 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
4492 rather than leaving the choice betweem IBM128 and GPR implicit.
4493 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
4494 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
4495 QHSI implicit.
4496 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
4497 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
4498 * config/rs6000/vsx.md
4499 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
4500 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
4501 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
4502 and VSX_EXTRACT_I implicit.
4503
4504 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4505
4506 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
4507 Explicitly use <MOVEP1:MODE> for the mode attribute.
4508
4509 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
4510
4511 PR bootstrap/91176
4512 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
4513
4514 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
4515
4516 PR target/91050
4517 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
4518 .machine directive.
4519
4520 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
4521
4522 * config/i386/i386.md (@test<mode>_ccno_1):
4523 Rename from test<mode>_ccno_1.
4524 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
4525 (*testqi_1_maybe_si): Remove modrm attribute.
4526 (*test<mode>_1): Ditto.
4527 * config/i386/i386-expand.c (ix86_split_idivmod): Use
4528 gen_test_ccno_1 and gen_extend_insn.
4529
4530 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
4531
4532 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
4533 to 0.
4534
4535 2019-07-15 Richard Biener <rguenther@suse.de>
4536
4537 PR middle-end/91162
4538 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
4539 node make sure to replace all uses with something valid.
4540
4541 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
4542
4543 PR tree-optimization/88497
4544 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
4545 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
4546 function undistribute_bitref_for_vector.
4547 (undistribute_bitref_for_vector): New function.
4548 (cleanup_vinfo_map): Likewise.
4549 (sort_by_mach_mode): Likewise.
4550
4551 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
4552
4553 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
4554 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
4555 and testdi_ccno_1 using SWI48 mode attribute.
4556 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
4557 x86_64_szext_general_operand.
4558 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
4559 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
4560 instead of genera_operand mode attribute.
4561
4562 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
4563
4564 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
4565 fopen and fclose to their respective types.
4566 (DotFn.invoke): Ditto.
4567
4568 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
4569
4570 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
4571 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
4572 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
4573 (array_index_predicate): Remove.
4574 (analyze_function_body): Account cost for variable ofsetted array
4575 indexing.
4576 (estimate_node_size_and_time): Do not compute array index hint.
4577 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
4578 (inline_read_section): Do not read array index hint.
4579 (ipa_fn_summary_write): Do not write array index hint.
4580 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
4581 * ipa-cp.c (hint_time_bonus): Remove.
4582 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
4583 (ipa_fnsummary): Remove array_index.
4584 * ipa-inline.c (want_inline_small_function_p): Do not use
4585 array_index.
4586 (edge_badness): Likewise.
4587 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
4588
4589 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
4590
4591 PR target/91148
4592 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
4593 superfluous "builtin function" phrasing.
4594
4595 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
4596
4597 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
4598 Break out from ...
4599 (aliasing_component_refs_walk): Break out from ...
4600 (aliasing_component_refs_p): ... here.
4601
4602 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
4603
4604 PR target/91148
4605 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
4606 "builtin function" phrasing.
4607
4608 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4609
4610 PR target/90723
4611 * recog.h (temporary_volatile_ok): New class.
4612 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
4613 volatile_ok temporarily to true using temporary_volatile_ok.
4614 * expr.c (emit_block_move_via_cpymem): Likewise.
4615 * optabs.c (maybe_legitimize_operand): Likewise.
4616
4617 2019-07-13 Jakub Jelinek <jakub@redhat.com>
4618
4619 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
4620 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
4621 uses inside of order(concurrent) constructs.
4622 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
4623 OMP_CLAUSE_ORDER is seen.
4624 * omp-low.c (struct omp_context): Add order_concurrent member.
4625 (scan_sharing_clauses): Set ctx->order_concurrent if
4626 OMP_CLAUSE_ORDER is seen.
4627 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
4628 of simd order(concurrent). Diagnose constructs not allowed inside of
4629 for order(concurrent).
4630 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
4631 complaining about static double setjmp (double); or class static
4632 methods or non-global namespace setjmps.
4633 (omp_runtime_api_call): New function.
4634 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
4635 order(concurrent) loops.
4636
4637 2019-07-12 Martin Sebor <msebor@redhat.com>
4638
4639 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
4640 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
4641 * tree-vrp.c (vrp_prop::check_mem_ref): Use
4642 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4643
4644 2019-07-12 Jan Hubicka <jh@suse.cz>
4645
4646 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
4647 (indirect_refs_may_alias_p): ... here.
4648 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
4649 mem refs in the access paths.
4650
4651 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
4652
4653 PR tree-optimization/89430
4654 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
4655 store elimination for local variable without address escape.
4656
4657 2019-07-12 Jeff Law <law@redhat.com>
4658
4659 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
4660 for the ".far" section.
4661
4662 2019-07-12 Richard Biener <rguenther@suse.de>
4663
4664 PR tree-optimization/91145
4665 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
4666 chain check.
4667
4668 2019-07-12 Alexandre Oliva <oliva@adacore.com>
4669
4670 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
4671 rather than this_state as the lowering context for the ELSE
4672 seq in a GIMPLE_EH_ELSE.
4673
4674 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4675
4676 * vector-builder.h (vector_builder::elt): Allow already-supplied
4677 elements to be read back before building is complete.
4678
4679 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4680
4681 PR rtl-optimization/91136
4682 * df-core.c (ACCESSING REFS): Fix typos in comment.
4683 * resource.c (mark_target_live_reg): Add artificial defs that occur at
4684 the beginning of the block to the initial set of live registers.
4685
4686 2019-07-12 Richard Biener <rguenther@suse.de>
4687
4688 * fold-const.h (get_array_ctor_element_at_index): Adjust.
4689 * fold-const.c (get_array_ctor_element_at_index): Add
4690 ctor_idx output parameter informing the caller where in
4691 the constructor the element was (not) found. Add early exit
4692 for when the ctor is sorted.
4693 * gimple-fold.c (fold_array_ctor_reference): Support constant
4694 folding across multiple array elements.
4695
4696 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4697
4698 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
4699 doesn't have location, set the current location to the function's end.
4700
4701 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4702
4703 * config/aarch64/aarch64.md (*compare_condjump<mode>)
4704 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
4705 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
4706 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
4707 * config/aarch64/aarch64-simd.md
4708 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
4709 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
4710 * config/aarch64/aarch64-sve.md
4711 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
4712 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
4713
4714 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4715
4716 * doc/md.texi: Document that @ patterns can have different
4717 numbers of operands.
4718 * genemit.c (handle_overloaded_gen): Handle this case.
4719 * genopinit.c (handle_overloaded_gen): Likewise.
4720 * gensupport.c (replace_operands_with_dups): Iterate over
4721 the new rtx's format rather than the old one's.
4722
4723 2019-07-12 Jakub Jelinek <jakub@redhat.com>
4724
4725 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
4726 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4727 order clause entries.
4728 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
4729 * tree-pretty-print.c (dump_omp_clause): Likewise.
4730 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4731 Likewise.
4732 * omp-low.c (scan_sharing_clauses): Likewise.
4733 * tree-nested.c (convert_nonlocal_omp_clauses,
4734 convert_local_omp_clauses): Likewise.
4735
4736 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
4737
4738 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
4739 fallthrough target of current basic block isn't the placed
4740 right next.
4741
4742 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
4743
4744 PR target/90980
4745 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
4746 (_mm512_storeu_epi64): Likewise.
4747 (_mm512_loadu_epi32): Likewise.
4748 (_mm512_storeu_epi32): Likewise.
4749 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
4750 (_mm_storeu_epi64): Likewise.
4751 (_mm256_storeu_epi32): Likewise.
4752 (_mm_storeu_epi32): Likewise.
4753
4754 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4755
4756 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
4757
4758 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4759
4760 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
4761 Handle Modula-2.
4762
4763 2019-07-11 Jakub Jelinek <jakub@redhat.com>
4764
4765 PR target/91124
4766 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
4767 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4768 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
4769 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
4770 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
4771 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
4772 define_insns.
4773 (ufix_truncv2dfv2si2<mask_name>): Change into ...
4774 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
4775 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
4776 define_insns.
4777 (sse2_cvttpd2dq<mask_name>): Change into ...
4778 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
4779 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
4780 (*sse2_cvtpd2dq<mask_name>): Change into ...
4781 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4782 Add "C" constraint to const0_operand.
4783 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
4784 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
4785 changes.
4786
4787 PR target/91124
4788 * config/i386/i386-builtin-types.def
4789 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
4790 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
4791 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
4792 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
4793 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
4794 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
4795 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
4796 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
4797 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
4798 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
4799 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
4800 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
4801 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
4802 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
4803 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
4804 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
4805 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
4806 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
4807 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
4808 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
4809 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
4810 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
4811 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
4812 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
4813 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
4814 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
4815 __builtin_ia32_vpdpbusd_v4si_maskz,
4816 __builtin_ia32_vpdpbusds_v16si_mask,
4817 __builtin_ia32_vpdpbusds_v16si_maskz,
4818 __builtin_ia32_vpdpbusds_v8si_mask,
4819 __builtin_ia32_vpdpbusds_v8si_maskz,
4820 __builtin_ia32_vpdpbusds_v4si_mask,
4821 __builtin_ia32_vpdpbusds_v4si_maskz,
4822 __builtin_ia32_vpdpwssd_v16si_mask,
4823 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
4824 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
4825 __builtin_ia32_vpdpwssd_v4si_maskz,
4826 __builtin_ia32_vpdpwssds_v16si_mask,
4827 __builtin_ia32_vpdpwssds_v16si_maskz,
4828 __builtin_ia32_vpdpwssds_v8si_mask,
4829 __builtin_ia32_vpdpwssds_v8si_maskz,
4830 __builtin_ia32_vpdpwssds_v4si_mask,
4831 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
4832 suffixed types rather than *_INT.
4833 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
4834 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
4835 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
4836 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
4837 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
4838 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
4839
4840 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
4841
4842 * tree-vrp.c (intersect_ranges): If we know the intersection is
4843 empty, there is no need to conservatively add anything else to
4844 the set.
4845
4846 2019-07-11 Richard Biener <rguenther@suse.de>
4847
4848 PR middle-end/91131
4849 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
4850 when the object is volatile and we have not cleared it even though
4851 there are no nonzero elements.
4852
4853 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
4854
4855 * config/rs6000/predicates.md (cint34_operand): Update
4856 SIGNED_34BIT_OFFSET_P call.
4857 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
4858 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
4859 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
4860 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
4861 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
4862 argument.
4863 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
4864 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
4865 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
4866 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
4867 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
4868
4869 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
4870
4871 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
4872 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
4873 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
4874 (DEF_MIN_OSX_VERSION): New.
4875
4876 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4877
4878 * fold-const.c (fold_relational_const): Fix folding of
4879 vector-to-scalar NE_EXPRs.
4880 (test_vector_folding): Add more tests.
4881
4882 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4883
4884 PR target/91060
4885 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
4886 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
4887 (vec_setv2di_internal): Reexpress as...
4888 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
4889 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
4890 rather than gen_neon_vset_lane<mode>.
4891
4892 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
4893
4894 PR target/91102
4895 * lra-constraints.c (process_alt_operands): Don't match user
4896 defined regs only if they are early clobbers.
4897
4898 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
4899
4900 * wide-int.h (wi::lshift): Reject negative values for the fast path.
4901
4902 2019-07-10 Richard Biener <rguenther@suse.de>
4903
4904 PR tree-optimization/91126
4905 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
4906 native encoding offset for BYTES_BIG_ENDIAN.
4907 (vn_reference_lookup_3): Likewise.
4908
4909 2019-07-10 Richard Biener <rguenther@suse.de>
4910
4911 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
4912 LHS whenever possible.
4913
4914 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
4915
4916 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
4917 from ...; work also on duplicated types.
4918 (nonoverlapping_component_refs_since_match): ... here
4919 (ncr_type_uid): Break out from ...
4920 (ncr_compar): ... here; look for TYPE_UID of canonical type if
4921 available.
4922 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
4923 the types and nonoverlapping_component_refs_p_1 to disambiguate.
4924
4925 2019-07-09 Martin Sebor <msebor@redhat.com>
4926
4927 PR tree-optimization/90989
4928 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
4929 optimization to just single character stores.
4930
4931 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
4932
4933 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
4934 Swap operands only once.
4935
4936 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4937
4938 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
4939 for both call instructions.
4940
4941 2019-07-09 John Darrington <john@darrington.wattle.id.au>
4942
4943 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
4944 rather than GET_MODE_BITSIZE to better handle partial integer modes.
4945
4946 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
4947
4948 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
4949 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
4950 function from rs6000-logue.c back to rs6000.c.
4951 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
4952
4953 2019-07-09 Martin Sebor <msebor@redhat.com>
4954
4955 PR c++/61339
4956 * auto-profile.c: Change class-key of PODs to struct and others
4957 to class.
4958 * basic-block.h: Same.
4959 * bitmap.c (bitmap_alloc): Same.
4960 * bitmap.h: Same.
4961 * builtins.c (expand_builtin_prefetch): Same.
4962 (expand_builtin_interclass_mathfn): Same.
4963 (expand_builtin_strlen): Same.
4964 (expand_builtin_mempcpy_args): Same.
4965 (expand_cmpstr): Same.
4966 (expand_builtin___clear_cache): Same.
4967 (expand_ifn_atomic_bit_test_and): Same.
4968 (expand_builtin_thread_pointer): Same.
4969 (expand_builtin_set_thread_pointer): Same.
4970 * caller-save.c (setup_save_areas): Same.
4971 (replace_reg_with_saved_mem): Same.
4972 (insert_restore): Same.
4973 (insert_save): Same.
4974 (add_used_regs): Same.
4975 * cfg.c (get_bb_copy): Same.
4976 (set_loop_copy): Same.
4977 * cfg.h: Same.
4978 * cfganal.h: Same.
4979 * cfgexpand.c (alloc_stack_frame_space): Same.
4980 (add_stack_var): Same.
4981 (add_stack_var_conflict): Same.
4982 (add_scope_conflicts_1): Same.
4983 (update_alias_info_with_stack_vars): Same.
4984 (expand_used_vars): Same.
4985 * cfghooks.c (redirect_edge_and_branch_force): Same.
4986 (delete_basic_block): Same.
4987 (split_edge): Same.
4988 (make_forwarder_block): Same.
4989 (force_nonfallthru): Same.
4990 (duplicate_block): Same.
4991 (lv_flush_pending_stmts): Same.
4992 * cfghooks.h: Same.
4993 * cfgloop.c (flow_loops_cfg_dump): Same.
4994 (flow_loop_nested_p): Same.
4995 (superloop_at_depth): Same.
4996 (get_loop_latch_edges): Same.
4997 (flow_loop_dump): Same.
4998 (flow_loops_dump): Same.
4999 (flow_loops_free): Same.
5000 (flow_loop_nodes_find): Same.
5001 (establish_preds): Same.
5002 (flow_loop_tree_node_add): Same.
5003 (flow_loop_tree_node_remove): Same.
5004 (flow_loops_find): Same.
5005 (find_subloop_latch_edge_by_profile): Same.
5006 (find_subloop_latch_edge_by_ivs): Same.
5007 (mfb_redirect_edges_in_set): Same.
5008 (form_subloop): Same.
5009 (merge_latch_edges): Same.
5010 (disambiguate_multiple_latches): Same.
5011 (disambiguate_loops_with_multiple_latches): Same.
5012 (flow_bb_inside_loop_p): Same.
5013 (glb_enum_p): Same.
5014 (get_loop_body_with_size): Same.
5015 (get_loop_body): Same.
5016 (fill_sons_in_loop): Same.
5017 (get_loop_body_in_dom_order): Same.
5018 (get_loop_body_in_custom_order): Same.
5019 (release_recorded_exits): Same.
5020 (get_loop_exit_edges): Same.
5021 (num_loop_branches): Same.
5022 (remove_bb_from_loops): Same.
5023 (find_common_loop): Same.
5024 (delete_loop): Same.
5025 (cancel_loop): Same.
5026 (verify_loop_structure): Same.
5027 (loop_preheader_edge): Same.
5028 (loop_exit_edge_p): Same.
5029 (single_exit): Same.
5030 (loop_exits_to_bb_p): Same.
5031 (loop_exits_from_bb_p): Same.
5032 (get_loop_location): Same.
5033 (record_niter_bound): Same.
5034 (get_estimated_loop_iterations_int): Same.
5035 (max_stmt_executions_int): Same.
5036 (likely_max_stmt_executions_int): Same.
5037 (get_estimated_loop_iterations): Same.
5038 (get_max_loop_iterations): Same.
5039 (get_max_loop_iterations_int): Same.
5040 (get_likely_max_loop_iterations): Same.
5041 * cfgloop.h (simple_loop_desc): Same.
5042 (get_loop): Same.
5043 (loop_depth): Same.
5044 (loop_outer): Same.
5045 (loop_iterator::next): Same.
5046 (loop_outermost): Same.
5047 * cfgloopanal.c (mark_irreducible_loops): Same.
5048 (num_loop_insns): Same.
5049 (average_num_loop_insns): Same.
5050 (expected_loop_iterations_unbounded): Same.
5051 (expected_loop_iterations): Same.
5052 (mark_loop_exit_edges): Same.
5053 (single_likely_exit): Same.
5054 * cfgloopmanip.c (fix_bb_placement): Same.
5055 (fix_bb_placements): Same.
5056 (remove_path): Same.
5057 (place_new_loop): Same.
5058 (add_loop): Same.
5059 (scale_loop_frequencies): Same.
5060 (scale_loop_profile): Same.
5061 (create_empty_if_region_on_edge): Same.
5062 (create_empty_loop_on_edge): Same.
5063 (loopify): Same.
5064 (unloop): Same.
5065 (fix_loop_placements): Same.
5066 (copy_loop_info): Same.
5067 (duplicate_loop): Same.
5068 (duplicate_subloops): Same.
5069 (loop_redirect_edge): Same.
5070 (can_duplicate_loop_p): Same.
5071 (duplicate_loop_to_header_edge): Same.
5072 (mfb_keep_just): Same.
5073 (has_preds_from_loop): Same.
5074 (create_preheader): Same.
5075 (create_preheaders): Same.
5076 (lv_adjust_loop_entry_edge): Same.
5077 (loop_version): Same.
5078 * cfgloopmanip.h: Same.
5079 * cgraph.h: Same.
5080 * cgraphbuild.c: Same.
5081 * combine.c (make_extraction): Same.
5082 * config/i386/i386-features.c: Same.
5083 * config/i386/i386-features.h: Same.
5084 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
5085 (ix86_emit_outlined_ms2sysv_restore): Same.
5086 (ix86_noce_conversion_profitable_p): Same.
5087 (ix86_init_cost): Same.
5088 (ix86_simd_clone_usable): Same.
5089 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
5090 Wstruct-not-pod.
5091 * coretypes.h: Same.
5092 * data-streamer-in.c (string_for_index): Change class-key of PODs
5093 to struct and others to class.
5094 (streamer_read_indexed_string): Same.
5095 (streamer_read_string): Same.
5096 (bp_unpack_indexed_string): Same.
5097 (bp_unpack_string): Same.
5098 (streamer_read_uhwi): Same.
5099 (streamer_read_hwi): Same.
5100 (streamer_read_gcov_count): Same.
5101 (streamer_read_wide_int): Same.
5102 * data-streamer.h (streamer_write_bitpack): Same.
5103 (bp_unpack_value): Same.
5104 (streamer_write_char_stream): Same.
5105 (streamer_write_hwi_in_range): Same.
5106 (streamer_write_record_start): Same.
5107 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
5108 (add_cross_iteration_register_deps): Same.
5109 (build_intra_loop_deps): Same.
5110 * df-core.c (df_analyze): Same.
5111 (loop_post_order_compute): Same.
5112 (loop_inverted_post_order_compute): Same.
5113 * df-problems.c (df_rd_alloc): Same.
5114 (df_rd_simulate_one_insn): Same.
5115 (df_rd_local_compute): Same.
5116 (df_rd_init_solution): Same.
5117 (df_rd_confluence_n): Same.
5118 (df_rd_transfer_function): Same.
5119 (df_rd_free): Same.
5120 (df_rd_dump_defs_set): Same.
5121 (df_rd_top_dump): Same.
5122 (df_lr_alloc): Same.
5123 (df_lr_reset): Same.
5124 (df_lr_local_compute): Same.
5125 (df_lr_init): Same.
5126 (df_lr_confluence_n): Same.
5127 (df_lr_free): Same.
5128 (df_lr_top_dump): Same.
5129 (df_lr_verify_transfer_functions): Same.
5130 (df_live_alloc): Same.
5131 (df_live_reset): Same.
5132 (df_live_init): Same.
5133 (df_live_confluence_n): Same.
5134 (df_live_finalize): Same.
5135 (df_live_free): Same.
5136 (df_live_top_dump): Same.
5137 (df_live_verify_transfer_functions): Same.
5138 (df_mir_alloc): Same.
5139 (df_mir_reset): Same.
5140 (df_mir_init): Same.
5141 (df_mir_confluence_n): Same.
5142 (df_mir_free): Same.
5143 (df_mir_top_dump): Same.
5144 (df_word_lr_alloc): Same.
5145 (df_word_lr_reset): Same.
5146 (df_word_lr_init): Same.
5147 (df_word_lr_confluence_n): Same.
5148 (df_word_lr_free): Same.
5149 (df_word_lr_top_dump): Same.
5150 (df_md_alloc): Same.
5151 (df_md_simulate_one_insn): Same.
5152 (df_md_reset): Same.
5153 (df_md_init): Same.
5154 (df_md_free): Same.
5155 (df_md_top_dump): Same.
5156 * df-scan.c (df_insn_delete): Same.
5157 (df_insn_rescan): Same.
5158 (df_notes_rescan): Same.
5159 (df_sort_and_compress_mws): Same.
5160 (df_install_mws): Same.
5161 (df_refs_add_to_chains): Same.
5162 (df_ref_create_structure): Same.
5163 (df_ref_record): Same.
5164 (df_def_record_1): Same.
5165 (df_find_hard_reg_defs): Same.
5166 (df_uses_record): Same.
5167 (df_get_conditional_uses): Same.
5168 (df_get_call_refs): Same.
5169 (df_recompute_luids): Same.
5170 (df_get_entry_block_def_set): Same.
5171 (df_entry_block_defs_collect): Same.
5172 (df_get_exit_block_use_set): Same.
5173 (df_exit_block_uses_collect): Same.
5174 (df_mws_verify): Same.
5175 (df_bb_verify): Same.
5176 * df.h (df_scan_get_bb_info): Same.
5177 * doc/tm.texi: Same.
5178 * dse.c (record_store): Same.
5179 * dumpfile.h: Same.
5180 * emit-rtl.c (const_fixed_hasher::equal): Same.
5181 (set_mem_attributes_minus_bitpos): Same.
5182 (change_address): Same.
5183 (adjust_address_1): Same.
5184 (offset_address): Same.
5185 * emit-rtl.h: Same.
5186 * except.c (dw2_build_landing_pads): Same.
5187 (sjlj_emit_dispatch_table): Same.
5188 * explow.c (allocate_dynamic_stack_space): Same.
5189 (emit_stack_probe): Same.
5190 (probe_stack_range): Same.
5191 * expmed.c (store_bit_field_using_insv): Same.
5192 (store_bit_field_1): Same.
5193 (store_integral_bit_field): Same.
5194 (extract_bit_field_using_extv): Same.
5195 (extract_bit_field_1): Same.
5196 (emit_cstore): Same.
5197 * expr.c (emit_block_move_via_cpymem): Same.
5198 (expand_cmpstrn_or_cmpmem): Same.
5199 (set_storage_via_setmem): Same.
5200 (emit_single_push_insn_1): Same.
5201 (expand_assignment): Same.
5202 (store_constructor): Same.
5203 (expand_expr_real_2): Same.
5204 (expand_expr_real_1): Same.
5205 (try_casesi): Same.
5206 * flags.h: Same.
5207 * function.c (try_fit_stack_local): Same.
5208 (assign_stack_local_1): Same.
5209 (assign_stack_local): Same.
5210 (cut_slot_from_list): Same.
5211 (insert_slot_to_list): Same.
5212 (max_slot_level): Same.
5213 (move_slot_to_level): Same.
5214 (temp_address_hasher::equal): Same.
5215 (remove_unused_temp_slot_addresses): Same.
5216 (assign_temp): Same.
5217 (combine_temp_slots): Same.
5218 (update_temp_slot_address): Same.
5219 (preserve_temp_slots): Same.
5220 * function.h: Same.
5221 * fwprop.c: Same.
5222 * gcc-rich-location.h: Same.
5223 * gcov.c: Same.
5224 * genattrtab.c (check_attr_test): Same.
5225 (check_attr_value): Same.
5226 (convert_set_attr_alternative): Same.
5227 (convert_set_attr): Same.
5228 (check_defs): Same.
5229 (copy_boolean): Same.
5230 (get_attr_value): Same.
5231 (expand_delays): Same.
5232 (make_length_attrs): Same.
5233 (min_fn): Same.
5234 (make_alternative_compare): Same.
5235 (simplify_test_exp): Same.
5236 (tests_attr_p): Same.
5237 (get_attr_order): Same.
5238 (clear_struct_flag): Same.
5239 (gen_attr): Same.
5240 (compares_alternatives_p): Same.
5241 (gen_insn): Same.
5242 (gen_delay): Same.
5243 (find_attrs_to_cache): Same.
5244 (write_test_expr): Same.
5245 (walk_attr_value): Same.
5246 (write_attr_get): Same.
5247 (eliminate_known_true): Same.
5248 (write_insn_cases): Same.
5249 (write_attr_case): Same.
5250 (write_attr_valueq): Same.
5251 (write_attr_value): Same.
5252 (write_dummy_eligible_delay): Same.
5253 (next_comma_elt): Same.
5254 (find_attr): Same.
5255 (make_internal_attr): Same.
5256 (copy_rtx_unchanging): Same.
5257 (gen_insn_reserv): Same.
5258 (check_tune_attr): Same.
5259 (make_automaton_attrs): Same.
5260 (handle_arg): Same.
5261 * genextract.c (gen_insn): Same.
5262 (VEC_char_to_string): Same.
5263 * genmatch.c (print_operand): Same.
5264 (lower): Same.
5265 (parser::parse_operation): Same.
5266 (parser::parse_capture): Same.
5267 (parser::parse_c_expr): Same.
5268 (parser::parse_simplify): Same.
5269 (main): Same.
5270 * genoutput.c (output_operand_data): Same.
5271 (output_get_insn_name): Same.
5272 (compare_operands): Same.
5273 (place_operands): Same.
5274 (process_template): Same.
5275 (validate_insn_alternatives): Same.
5276 (validate_insn_operands): Same.
5277 (gen_expand): Same.
5278 (note_constraint): Same.
5279 * genpreds.c (write_one_predicate_function): Same.
5280 (add_constraint): Same.
5281 (process_define_register_constraint): Same.
5282 (write_lookup_constraint_1): Same.
5283 (write_lookup_constraint_array): Same.
5284 (write_insn_constraint_len): Same.
5285 (write_reg_class_for_constraint_1): Same.
5286 (write_constraint_satisfied_p_array): Same.
5287 * genrecog.c (optimize_subroutine_group): Same.
5288 * gensupport.c (process_define_predicate): Same.
5289 (queue_pattern): Same.
5290 (remove_from_queue): Same.
5291 (process_rtx): Same.
5292 (is_predicable): Same.
5293 (change_subst_attribute): Same.
5294 (subst_pattern_match): Same.
5295 (alter_constraints): Same.
5296 (alter_attrs_for_insn): Same.
5297 (shift_output_template): Same.
5298 (alter_output_for_subst_insn): Same.
5299 (process_one_cond_exec): Same.
5300 (subst_dup): Same.
5301 (process_define_cond_exec): Same.
5302 (mnemonic_htab_callback): Same.
5303 (gen_mnemonic_attr): Same.
5304 (read_md_rtx): Same.
5305 * ggc-page.c: Same.
5306 * gimple-loop-interchange.cc (dump_reduction): Same.
5307 (dump_induction): Same.
5308 (loop_cand::~loop_cand): Same.
5309 (free_data_refs_with_aux): Same.
5310 (tree_loop_interchange::interchange_loops): Same.
5311 (tree_loop_interchange::map_inductions_to_loop): Same.
5312 (tree_loop_interchange::move_code_to_inner_loop): Same.
5313 (compute_access_stride): Same.
5314 (compute_access_strides): Same.
5315 (proper_loop_form_for_interchange): Same.
5316 (tree_loop_interchange_compute_ddrs): Same.
5317 (prune_datarefs_not_in_loop): Same.
5318 (prepare_data_references): Same.
5319 (pass_linterchange::execute): Same.
5320 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5321 (unroll_jam_possible_p): Same.
5322 (fuse_loops): Same.
5323 (adjust_unroll_factor): Same.
5324 (tree_loop_unroll_and_jam): Same.
5325 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5326 (loop_versioning::expensive_stmt_p): Same.
5327 (loop_versioning::version_for_unity): Same.
5328 (loop_versioning::dump_inner_likelihood): Same.
5329 (loop_versioning::find_per_loop_multiplication): Same.
5330 (loop_versioning::analyze_term_using_scevs): Same.
5331 (loop_versioning::record_address_fragment): Same.
5332 (loop_versioning::analyze_expr): Same.
5333 (loop_versioning::analyze_blocks): Same.
5334 (loop_versioning::prune_conditions): Same.
5335 (loop_versioning::merge_loop_info): Same.
5336 (loop_versioning::add_loop_to_queue): Same.
5337 (loop_versioning::decide_whether_loop_is_versionable): Same.
5338 (loop_versioning::make_versioning_decisions): Same.
5339 (loop_versioning::implement_versioning_decisions): Same.
5340 * gimple-ssa-evrp-analyze.c
5341 (evrp_range_analyzer::record_ranges_from_phis): Same.
5342 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5343 (count_multiple_uses): Same.
5344 (split_group): Same.
5345 (imm_store_chain_info::output_merged_store): Same.
5346 (pass_store_merging::process_store): Same.
5347 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5348 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5349 (is_max): Same.
5350 (alloca_call_type): Same.
5351 (pass_walloca::execute): Same.
5352 * gimple-streamer-in.c (input_phi): Same.
5353 (input_gimple_stmt): Same.
5354 * gimple-streamer.h: Same.
5355 * godump.c (go_force_record_alignment): Same.
5356 (go_format_type): Same.
5357 (go_output_type): Same.
5358 (go_output_fndecl): Same.
5359 (go_output_typedef): Same.
5360 (keyword_hash_init): Same.
5361 (find_dummy_types): Same.
5362 * graph.c (draw_cfg_nodes_no_loops): Same.
5363 (draw_cfg_nodes_for_loop): Same.
5364 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5365 * hsa-brig.c: Same.
5366 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5367 * hsa-dump.c (dump_hsa_cfun): Same.
5368 * hsa-gen.c (gen_function_def_parameters): Same.
5369 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5370 * input.c (dump_line_table_statistics): Same.
5371 (test_lexer): Same.
5372 * input.h: Same.
5373 * internal-fn.c (get_multi_vector_move): Same.
5374 (expand_load_lanes_optab_fn): Same.
5375 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5376 (expand_GOMP_SIMT_EXIT): Same.
5377 (expand_GOMP_SIMT_LAST_LANE): Same.
5378 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5379 (expand_GOMP_SIMT_VOTE_ANY): Same.
5380 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5381 (expand_GOMP_SIMT_XCHG_IDX): Same.
5382 (expand_addsub_overflow): Same.
5383 (expand_neg_overflow): Same.
5384 (expand_mul_overflow): Same.
5385 (expand_call_mem_ref): Same.
5386 (expand_mask_load_optab_fn): Same.
5387 (expand_scatter_store_optab_fn): Same.
5388 (expand_gather_load_optab_fn): Same.
5389 * ipa-cp.c (ipa_get_parm_lattices): Same.
5390 (print_all_lattices): Same.
5391 (ignore_edge_p): Same.
5392 (build_toporder_info): Same.
5393 (free_toporder_info): Same.
5394 (push_node_to_stack): Same.
5395 (ipcp_lattice<valtype>::set_contains_variable): Same.
5396 (set_agg_lats_to_bottom): Same.
5397 (ipcp_bits_lattice::meet_with): Same.
5398 (set_single_call_flag): Same.
5399 (initialize_node_lattices): Same.
5400 (ipa_get_jf_ancestor_result): Same.
5401 (ipcp_verify_propagated_values): Same.
5402 (propagate_scalar_across_jump_function): Same.
5403 (propagate_context_across_jump_function): Same.
5404 (propagate_bits_across_jump_function): Same.
5405 (ipa_vr_operation_and_type_effects): Same.
5406 (propagate_vr_across_jump_function): Same.
5407 (set_check_aggs_by_ref): Same.
5408 (set_chain_of_aglats_contains_variable): Same.
5409 (merge_aggregate_lattices): Same.
5410 (agg_pass_through_permissible_p): Same.
5411 (propagate_aggs_across_jump_function): Same.
5412 (call_passes_through_thunk_p): Same.
5413 (propagate_constants_across_call): Same.
5414 (devirtualization_time_bonus): Same.
5415 (good_cloning_opportunity_p): Same.
5416 (context_independent_aggregate_values): Same.
5417 (gather_context_independent_values): Same.
5418 (perform_estimation_of_a_value): Same.
5419 (estimate_local_effects): Same.
5420 (value_topo_info<valtype>::add_val): Same.
5421 (add_all_node_vals_to_toposort): Same.
5422 (value_topo_info<valtype>::propagate_effects): Same.
5423 (ipcp_propagate_stage): Same.
5424 (ipcp_discover_new_direct_edges): Same.
5425 (same_node_or_its_all_contexts_clone_p): Same.
5426 (cgraph_edge_brings_value_p): Same.
5427 (gather_edges_for_value): Same.
5428 (create_specialized_node): Same.
5429 (find_more_scalar_values_for_callers_subset): Same.
5430 (find_more_contexts_for_caller_subset): Same.
5431 (copy_plats_to_inter): Same.
5432 (intersect_aggregates_with_edge): Same.
5433 (find_aggregate_values_for_callers_subset): Same.
5434 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5435 (decide_about_value): Same.
5436 (decide_whether_version_node): Same.
5437 (spread_undeadness): Same.
5438 (identify_dead_nodes): Same.
5439 (ipcp_store_vr_results): Same.
5440 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5441 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5442 (redirect_to_unreachable): Same.
5443 (edge_set_predicate): Same.
5444 (evaluate_conditions_for_known_args): Same.
5445 (evaluate_properties_for_edge): Same.
5446 (ipa_fn_summary_t::duplicate): Same.
5447 (ipa_call_summary_t::duplicate): Same.
5448 (dump_ipa_call_summary): Same.
5449 (ipa_dump_fn_summary): Same.
5450 (eliminated_by_inlining_prob): Same.
5451 (set_cond_stmt_execution_predicate): Same.
5452 (set_switch_stmt_execution_predicate): Same.
5453 (compute_bb_predicates): Same.
5454 (will_be_nonconstant_expr_predicate): Same.
5455 (phi_result_unknown_predicate): Same.
5456 (analyze_function_body): Same.
5457 (compute_fn_summary): Same.
5458 (estimate_edge_devirt_benefit): Same.
5459 (estimate_edge_size_and_time): Same.
5460 (estimate_calls_size_and_time): Same.
5461 (estimate_node_size_and_time): Same.
5462 (remap_edge_change_prob): Same.
5463 (remap_edge_summaries): Same.
5464 (ipa_merge_fn_summary_after_inlining): Same.
5465 (ipa_fn_summary_generate): Same.
5466 (inline_read_section): Same.
5467 (ipa_fn_summary_read): Same.
5468 (ipa_fn_summary_write): Same.
5469 * ipa-fnsummary.h: Same.
5470 * ipa-hsa.c (ipa_hsa_read_section): Same.
5471 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
5472 * ipa-icf.c (sem_function::param_used_p): Same.
5473 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
5474 * ipa-inline.c (edge_badness): Same.
5475 (inline_small_functions): Same.
5476 * ipa-polymorphic-call.c
5477 (ipa_polymorphic_call_context::stream_out): Same.
5478 * ipa-predicate.c (predicate::remap_after_duplication): Same.
5479 (predicate::remap_after_inlining): Same.
5480 (predicate::stream_out): Same.
5481 * ipa-predicate.h: Same.
5482 * ipa-profile.c (ipa_profile_read_summary): Same.
5483 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
5484 (count_formal_params): Same.
5485 (ipa_dump_param): Same.
5486 (ipa_alloc_node_params): Same.
5487 (ipa_print_node_jump_functions_for_edge): Same.
5488 (ipa_print_node_jump_functions): Same.
5489 (ipa_load_from_parm_agg): Same.
5490 (get_ancestor_addr_info): Same.
5491 (ipa_compute_jump_functions_for_edge): Same.
5492 (ipa_analyze_virtual_call_uses): Same.
5493 (ipa_analyze_stmt_uses): Same.
5494 (ipa_analyze_params_uses_in_bb): Same.
5495 (update_jump_functions_after_inlining): Same.
5496 (try_decrement_rdesc_refcount): Same.
5497 (ipa_impossible_devirt_target): Same.
5498 (update_indirect_edges_after_inlining): Same.
5499 (combine_controlled_uses_counters): Same.
5500 (ipa_edge_args_sum_t::duplicate): Same.
5501 (ipa_write_jump_function): Same.
5502 (ipa_write_indirect_edge_info): Same.
5503 (ipa_write_node_info): Same.
5504 (ipa_read_edge_info): Same.
5505 (ipa_prop_read_section): Same.
5506 (read_replacements_section): Same.
5507 * ipa-prop.h (ipa_get_param_count): Same.
5508 (ipa_get_param): Same.
5509 (ipa_get_type): Same.
5510 (ipa_get_param_move_cost): Same.
5511 (ipa_set_param_used): Same.
5512 (ipa_get_controlled_uses): Same.
5513 (ipa_set_controlled_uses): Same.
5514 (ipa_get_cs_argument_count): Same.
5515 * ipa-pure-const.c (analyze_function): Same.
5516 (pure_const_read_summary): Same.
5517 * ipa-ref.h: Same.
5518 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
5519 * ipa-split.c (test_nonssa_use): Same.
5520 (dump_split_point): Same.
5521 (dominated_by_forbidden): Same.
5522 (split_part_set_ssa_name_p): Same.
5523 (find_split_points): Same.
5524 * ira-build.c (finish_loop_tree_nodes): Same.
5525 (low_pressure_loop_node_p): Same.
5526 * ira-color.c (ira_reuse_stack_slot): Same.
5527 * ira-int.h: Same.
5528 * ira.c (setup_reg_equiv): Same.
5529 (print_insn_chain): Same.
5530 (ira): Same.
5531 * loop-doloop.c (doloop_condition_get): Same.
5532 (add_test): Same.
5533 (record_reg_sets): Same.
5534 (doloop_optimize): Same.
5535 * loop-init.c (loop_optimizer_init): Same.
5536 (fix_loop_structure): Same.
5537 * loop-invariant.c (merge_identical_invariants): Same.
5538 (compute_always_reached): Same.
5539 (find_exits): Same.
5540 (may_assign_reg_p): Same.
5541 (find_invariants_bb): Same.
5542 (find_invariants_body): Same.
5543 (replace_uses): Same.
5544 (can_move_invariant_reg): Same.
5545 (free_inv_motion_data): Same.
5546 (move_single_loop_invariants): Same.
5547 (change_pressure): Same.
5548 (mark_ref_regs): Same.
5549 (calculate_loop_reg_pressure): Same.
5550 * loop-iv.c (biv_entry_hasher::equal): Same.
5551 (iv_extend_to_rtx_code): Same.
5552 (check_iv_ref_table_size): Same.
5553 (clear_iv_info): Same.
5554 (latch_dominating_def): Same.
5555 (iv_get_reaching_def): Same.
5556 (iv_constant): Same.
5557 (iv_subreg): Same.
5558 (iv_extend): Same.
5559 (iv_neg): Same.
5560 (iv_add): Same.
5561 (iv_mult): Same.
5562 (get_biv_step): Same.
5563 (record_iv): Same.
5564 (analyzed_for_bivness_p): Same.
5565 (record_biv): Same.
5566 (iv_analyze_biv): Same.
5567 (iv_analyze_expr): Same.
5568 (iv_analyze_def): Same.
5569 (iv_analyze_op): Same.
5570 (iv_analyze): Same.
5571 (iv_analyze_result): Same.
5572 (biv_p): Same.
5573 (eliminate_implied_conditions): Same.
5574 (simplify_using_initial_values): Same.
5575 (shorten_into_mode): Same.
5576 (canonicalize_iv_subregs): Same.
5577 (determine_max_iter): Same.
5578 (check_simple_exit): Same.
5579 (find_simple_exit): Same.
5580 (get_simple_loop_desc): Same.
5581 * loop-unroll.c (report_unroll): Same.
5582 (decide_unrolling): Same.
5583 (unroll_loops): Same.
5584 (loop_exit_at_end_p): Same.
5585 (decide_unroll_constant_iterations): Same.
5586 (unroll_loop_constant_iterations): Same.
5587 (compare_and_jump_seq): Same.
5588 (unroll_loop_runtime_iterations): Same.
5589 (decide_unroll_stupid): Same.
5590 (unroll_loop_stupid): Same.
5591 (referenced_in_one_insn_in_loop_p): Same.
5592 (reset_debug_uses_in_loop): Same.
5593 (analyze_iv_to_split_insn): Same.
5594 * lra-eliminations.c (lra_debug_elim_table): Same.
5595 (setup_can_eliminate): Same.
5596 (form_sum): Same.
5597 (lra_get_elimination_hard_regno): Same.
5598 (lra_eliminate_regs_1): Same.
5599 (eliminate_regs_in_insn): Same.
5600 (update_reg_eliminate): Same.
5601 (init_elimination): Same.
5602 (lra_eliminate): Same.
5603 * lra-int.h: Same.
5604 * lra-lives.c (initiate_live_solver): Same.
5605 * lra-remat.c (create_remat_bb_data): Same.
5606 * lra-spills.c (lra_spill): Same.
5607 * lra.c (lra_set_insn_recog_data): Same.
5608 (lra_set_used_insn_alternative_by_uid): Same.
5609 (init_reg_info): Same.
5610 (expand_reg_info): Same.
5611 * lto-cgraph.c (output_symtab): Same.
5612 (read_identifier): Same.
5613 (get_alias_symbol): Same.
5614 (input_node): Same.
5615 (input_varpool_node): Same.
5616 (input_ref): Same.
5617 (input_edge): Same.
5618 (input_cgraph_1): Same.
5619 (input_refs): Same.
5620 (input_symtab): Same.
5621 (input_offload_tables): Same.
5622 (output_cgraph_opt_summary): Same.
5623 (input_edge_opt_summary): Same.
5624 (input_cgraph_opt_section): Same.
5625 * lto-section-in.c (lto_free_raw_section_data): Same.
5626 (lto_create_simple_input_block): Same.
5627 (lto_free_function_in_decl_state_for_node): Same.
5628 * lto-streamer-in.c (lto_tag_check_set): Same.
5629 (lto_location_cache::revert_location_cache): Same.
5630 (lto_location_cache::input_location): Same.
5631 (lto_input_location): Same.
5632 (stream_input_location_now): Same.
5633 (lto_input_tree_ref): Same.
5634 (lto_input_eh_catch_list): Same.
5635 (input_eh_region): Same.
5636 (lto_init_eh): Same.
5637 (make_new_block): Same.
5638 (input_cfg): Same.
5639 (fixup_call_stmt_edges): Same.
5640 (input_struct_function_base): Same.
5641 (input_function): Same.
5642 (lto_read_body_or_constructor): Same.
5643 (lto_read_tree_1): Same.
5644 (lto_read_tree): Same.
5645 (lto_input_scc): Same.
5646 (lto_input_tree_1): Same.
5647 (lto_input_toplevel_asms): Same.
5648 (lto_input_mode_table): Same.
5649 (lto_reader_init): Same.
5650 (lto_data_in_create): Same.
5651 * lto-streamer-out.c (output_cfg): Same.
5652 * lto-streamer.h: Same.
5653 * modulo-sched.c (duplicate_insns_of_cycles): Same.
5654 (generate_prolog_epilog): Same.
5655 (mark_loop_unsched): Same.
5656 (dump_insn_location): Same.
5657 (loop_canon_p): Same.
5658 (sms_schedule): Same.
5659 * omp-expand.c (expand_omp_for_ordered_loops): Same.
5660 (expand_omp_for_generic): Same.
5661 (expand_omp_for_static_nochunk): Same.
5662 (expand_omp_for_static_chunk): Same.
5663 (expand_omp_simd): Same.
5664 (expand_omp_taskloop_for_inner): Same.
5665 (expand_oacc_for): Same.
5666 (expand_omp_atomic_pipeline): Same.
5667 (mark_loops_in_oacc_kernels_region): Same.
5668 * omp-offload.c (oacc_xform_loop): Same.
5669 * omp-simd-clone.c (simd_clone_adjust): Same.
5670 * optabs-query.c (get_traditional_extraction_insn): Same.
5671 * optabs.c (expand_vector_broadcast): Same.
5672 (expand_binop_directly): Same.
5673 (expand_twoval_unop): Same.
5674 (expand_twoval_binop): Same.
5675 (expand_unop_direct): Same.
5676 (emit_indirect_jump): Same.
5677 (emit_conditional_move): Same.
5678 (emit_conditional_neg_or_complement): Same.
5679 (emit_conditional_add): Same.
5680 (vector_compare_rtx): Same.
5681 (expand_vec_perm_1): Same.
5682 (expand_vec_perm_const): Same.
5683 (expand_vec_cond_expr): Same.
5684 (expand_vec_series_expr): Same.
5685 (maybe_emit_atomic_exchange): Same.
5686 (maybe_emit_sync_lock_test_and_set): Same.
5687 (expand_atomic_compare_and_swap): Same.
5688 (expand_atomic_load): Same.
5689 (expand_atomic_store): Same.
5690 (maybe_emit_op): Same.
5691 (valid_multiword_target_p): Same.
5692 (create_integer_operand): Same.
5693 (maybe_legitimize_operand_same_code): Same.
5694 (maybe_legitimize_operand): Same.
5695 (create_convert_operand_from_type): Same.
5696 (can_reuse_operands_p): Same.
5697 (maybe_legitimize_operands): Same.
5698 (maybe_gen_insn): Same.
5699 (maybe_expand_insn): Same.
5700 (maybe_expand_jump_insn): Same.
5701 (expand_insn): Same.
5702 * optabs.h (create_expand_operand): Same.
5703 (create_fixed_operand): Same.
5704 (create_output_operand): Same.
5705 (create_input_operand): Same.
5706 (create_convert_operand_to): Same.
5707 (create_convert_operand_from): Same.
5708 * optinfo.h: Same.
5709 * poly-int.h: Same.
5710 * predict.c (optimize_insn_for_speed_p): Same.
5711 (optimize_loop_for_size_p): Same.
5712 (optimize_loop_for_speed_p): Same.
5713 (optimize_loop_nest_for_speed_p): Same.
5714 (get_base_value): Same.
5715 (predicted_by_loop_heuristics_p): Same.
5716 (predict_extra_loop_exits): Same.
5717 (predict_loops): Same.
5718 (predict_paths_for_bb): Same.
5719 (predict_paths_leading_to): Same.
5720 (propagate_freq): Same.
5721 (pass_profile::execute): Same.
5722 * predict.h: Same.
5723 * profile-count.c (profile_count::differs_from_p): Same.
5724 (profile_probability::differs_lot_from_p): Same.
5725 * profile-count.h: Same.
5726 * profile.c (branch_prob): Same.
5727 * regrename.c (free_chain_data): Same.
5728 (mark_conflict): Same.
5729 (create_new_chain): Same.
5730 (merge_overlapping_regs): Same.
5731 (init_rename_info): Same.
5732 (merge_chains): Same.
5733 (regrename_analyze): Same.
5734 (regrename_do_replace): Same.
5735 (scan_rtx_reg): Same.
5736 (record_out_operands): Same.
5737 (build_def_use): Same.
5738 * regrename.h: Same.
5739 * reload.h: Same.
5740 * reload1.c (init_reload): Same.
5741 (maybe_fix_stack_asms): Same.
5742 (copy_reloads): Same.
5743 (count_pseudo): Same.
5744 (count_spilled_pseudo): Same.
5745 (find_reg): Same.
5746 (find_reload_regs): Same.
5747 (select_reload_regs): Same.
5748 (spill_hard_reg): Same.
5749 (fixup_eh_region_note): Same.
5750 (set_reload_reg): Same.
5751 (allocate_reload_reg): Same.
5752 (compute_reload_subreg_offset): Same.
5753 (reload_adjust_reg_for_icode): Same.
5754 (emit_input_reload_insns): Same.
5755 (emit_output_reload_insns): Same.
5756 (do_input_reload): Same.
5757 (inherit_piecemeal_p): Same.
5758 * rtl.h: Same.
5759 * sanopt.c (maybe_get_dominating_check): Same.
5760 (maybe_optimize_ubsan_ptr_ifn): Same.
5761 (can_remove_asan_check): Same.
5762 (maybe_optimize_asan_check_ifn): Same.
5763 (sanopt_optimize_walker): Same.
5764 * sched-deps.c (add_dependence_list): Same.
5765 (chain_to_prev_insn): Same.
5766 (add_insn_mem_dependence): Same.
5767 (create_insn_reg_set): Same.
5768 (maybe_extend_reg_info_p): Same.
5769 (sched_analyze_reg): Same.
5770 (sched_analyze_1): Same.
5771 (get_implicit_reg_pending_clobbers): Same.
5772 (chain_to_prev_insn_p): Same.
5773 (deps_analyze_insn): Same.
5774 (deps_start_bb): Same.
5775 (sched_free_deps): Same.
5776 (init_deps): Same.
5777 (init_deps_reg_last): Same.
5778 (free_deps): Same.
5779 * sched-ebb.c: Same.
5780 * sched-int.h: Same.
5781 * sched-rgn.c (add_branch_dependences): Same.
5782 (concat_insn_mem_list): Same.
5783 (deps_join): Same.
5784 (sched_rgn_compute_dependencies): Same.
5785 * sel-sched-ir.c (reset_target_context): Same.
5786 (copy_deps_context): Same.
5787 (init_id_from_df): Same.
5788 (has_dependence_p): Same.
5789 (change_loops_latches): Same.
5790 (bb_top_order_comparator): Same.
5791 (make_region_from_loop_preheader): Same.
5792 (sel_init_pipelining): Same.
5793 (get_loop_nest_for_rgn): Same.
5794 (make_regions_from_the_rest): Same.
5795 (sel_is_loop_preheader_p): Same.
5796 * sel-sched-ir.h (inner_loop_header_p): Same.
5797 (get_all_loop_exits): Same.
5798 * selftest.h: Same.
5799 * sese.c (sese_build_liveouts): Same.
5800 (sese_insert_phis_for_liveouts): Same.
5801 * sese.h (defined_in_sese_p): Same.
5802 * sreal.c (sreal::stream_out): Same.
5803 * sreal.h: Same.
5804 * streamer-hooks.h: Same.
5805 * target-globals.c (save_target_globals): Same.
5806 * target-globals.h: Same.
5807 * target.def: Same.
5808 * target.h: Same.
5809 * targhooks.c (default_has_ifunc_p): Same.
5810 (default_empty_mask_is_expensive): Same.
5811 (default_init_cost): Same.
5812 * targhooks.h: Same.
5813 * toplev.c: Same.
5814 * tree-affine.c (aff_combination_mult): Same.
5815 (aff_combination_expand): Same.
5816 (aff_combination_constant_multiple_p): Same.
5817 * tree-affine.h: Same.
5818 * tree-cfg.c (build_gimple_cfg): Same.
5819 (replace_loop_annotate_in_block): Same.
5820 (replace_uses_by): Same.
5821 (remove_bb): Same.
5822 (dump_cfg_stats): Same.
5823 (gimple_duplicate_sese_region): Same.
5824 (gimple_duplicate_sese_tail): Same.
5825 (move_block_to_fn): Same.
5826 (replace_block_vars_by_duplicates): Same.
5827 (move_sese_region_to_fn): Same.
5828 (print_loops_bb): Same.
5829 (print_loop): Same.
5830 (print_loops): Same.
5831 (debug): Same.
5832 (debug_loops): Same.
5833 * tree-cfg.h: Same.
5834 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
5835 (chrec_fold_multiply_poly_poly): Same.
5836 (chrec_evaluate): Same.
5837 (chrec_component_in_loop_num): Same.
5838 (reset_evolution_in_loop): Same.
5839 (is_multivariate_chrec): Same.
5840 (chrec_contains_symbols): Same.
5841 (nb_vars_in_chrec): Same.
5842 (chrec_convert_1): Same.
5843 (chrec_convert_aggressive): Same.
5844 * tree-chrec.h: Same.
5845 * tree-core.h: Same.
5846 * tree-data-ref.c (dump_data_dependence_relation): Same.
5847 (canonicalize_base_object_address): Same.
5848 (data_ref_compare_tree): Same.
5849 (prune_runtime_alias_test_list): Same.
5850 (get_segment_min_max): Same.
5851 (create_intersect_range_checks): Same.
5852 (conflict_fn_no_dependence): Same.
5853 (object_address_invariant_in_loop_p): Same.
5854 (analyze_ziv_subscript): Same.
5855 (analyze_siv_subscript_cst_affine): Same.
5856 (analyze_miv_subscript): Same.
5857 (analyze_overlapping_iterations): Same.
5858 (build_classic_dist_vector_1): Same.
5859 (add_other_self_distances): Same.
5860 (same_access_functions): Same.
5861 (build_classic_dir_vector): Same.
5862 (subscript_dependence_tester_1): Same.
5863 (subscript_dependence_tester): Same.
5864 (access_functions_are_affine_or_constant_p): Same.
5865 (get_references_in_stmt): Same.
5866 (loop_nest_has_data_refs): Same.
5867 (graphite_find_data_references_in_stmt): Same.
5868 (find_data_references_in_bb): Same.
5869 (get_base_for_alignment): Same.
5870 (find_loop_nest_1): Same.
5871 (find_loop_nest): Same.
5872 * tree-data-ref.h (dr_alignment): Same.
5873 (ddr_dependence_level): Same.
5874 * tree-if-conv.c (fold_build_cond_expr): Same.
5875 (add_to_predicate_list): Same.
5876 (add_to_dst_predicate_list): Same.
5877 (phi_convertible_by_degenerating_args): Same.
5878 (idx_within_array_bound): Same.
5879 (all_preds_critical_p): Same.
5880 (pred_blocks_visited_p): Same.
5881 (predicate_bbs): Same.
5882 (build_region): Same.
5883 (if_convertible_loop_p_1): Same.
5884 (is_cond_scalar_reduction): Same.
5885 (predicate_scalar_phi): Same.
5886 (remove_conditions_and_labels): Same.
5887 (combine_blocks): Same.
5888 (version_loop_for_if_conversion): Same.
5889 (versionable_outer_loop_p): Same.
5890 (ifcvt_local_dce): Same.
5891 (tree_if_conversion): Same.
5892 (pass_if_conversion::gate): Same.
5893 * tree-if-conv.h: Same.
5894 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
5895 * tree-loop-distribution.c (bb_top_order_cmp): Same.
5896 (free_rdg): Same.
5897 (stmt_has_scalar_dependences_outside_loop): Same.
5898 (copy_loop_before): Same.
5899 (create_bb_after_loop): Same.
5900 (const_with_all_bytes_same): Same.
5901 (generate_memset_builtin): Same.
5902 (generate_memcpy_builtin): Same.
5903 (destroy_loop): Same.
5904 (build_rdg_partition_for_vertex): Same.
5905 (compute_access_range): Same.
5906 (data_ref_segment_size): Same.
5907 (latch_dominated_by_data_ref): Same.
5908 (compute_alias_check_pairs): Same.
5909 (fuse_memset_builtins): Same.
5910 (finalize_partitions): Same.
5911 (find_seed_stmts_for_distribution): Same.
5912 (prepare_perfect_loop_nest): Same.
5913 * tree-parloops.c (lambda_transform_legal_p): Same.
5914 (loop_parallel_p): Same.
5915 (reduc_stmt_res): Same.
5916 (add_field_for_name): Same.
5917 (create_call_for_reduction_1): Same.
5918 (replace_uses_in_bb_by): Same.
5919 (transform_to_exit_first_loop_alt): Same.
5920 (try_transform_to_exit_first_loop_alt): Same.
5921 (transform_to_exit_first_loop): Same.
5922 (num_phis): Same.
5923 (gen_parallel_loop): Same.
5924 (gather_scalar_reductions): Same.
5925 (get_omp_data_i_param): Same.
5926 (try_create_reduction_list): Same.
5927 (oacc_entry_exit_single_gang): Same.
5928 (parallelize_loops): Same.
5929 * tree-pass.h: Same.
5930 * tree-predcom.c (determine_offset): Same.
5931 (last_always_executed_block): Same.
5932 (split_data_refs_to_components): Same.
5933 (suitable_component_p): Same.
5934 (valid_initializer_p): Same.
5935 (find_looparound_phi): Same.
5936 (insert_looparound_copy): Same.
5937 (add_looparound_copies): Same.
5938 (determine_roots_comp): Same.
5939 (predcom_tmp_var): Same.
5940 (initialize_root_vars): Same.
5941 (initialize_root_vars_store_elim_1): Same.
5942 (initialize_root_vars_store_elim_2): Same.
5943 (finalize_eliminated_stores): Same.
5944 (initialize_root_vars_lm): Same.
5945 (remove_stmt): Same.
5946 (determine_unroll_factor): Same.
5947 (execute_pred_commoning_cbck): Same.
5948 (base_names_in_chain_on): Same.
5949 (combine_chains): Same.
5950 (pcom_stmt_dominates_stmt_p): Same.
5951 (try_combine_chains): Same.
5952 (prepare_initializers_chain_store_elim): Same.
5953 (prepare_initializers_chain): Same.
5954 (prepare_initializers): Same.
5955 (prepare_finalizers_chain): Same.
5956 (prepare_finalizers): Same.
5957 (insert_init_seqs): Same.
5958 * tree-scalar-evolution.c (loop_phi_node_p): Same.
5959 (compute_overall_effect_of_inner_loop): Same.
5960 (add_to_evolution_1): Same.
5961 (add_to_evolution): Same.
5962 (follow_ssa_edge_binary): Same.
5963 (follow_ssa_edge_expr): Same.
5964 (backedge_phi_arg_p): Same.
5965 (follow_ssa_edge_in_condition_phi_branch): Same.
5966 (follow_ssa_edge_in_condition_phi): Same.
5967 (follow_ssa_edge_inner_loop_phi): Same.
5968 (follow_ssa_edge): Same.
5969 (analyze_evolution_in_loop): Same.
5970 (analyze_initial_condition): Same.
5971 (interpret_loop_phi): Same.
5972 (interpret_condition_phi): Same.
5973 (interpret_rhs_expr): Same.
5974 (interpret_expr): Same.
5975 (interpret_gimple_assign): Same.
5976 (analyze_scalar_evolution_1): Same.
5977 (analyze_scalar_evolution): Same.
5978 (analyze_scalar_evolution_for_address_of): Same.
5979 (get_instantiated_value_entry): Same.
5980 (loop_closed_phi_def): Same.
5981 (instantiate_scev_name): Same.
5982 (instantiate_scev_poly): Same.
5983 (instantiate_scev_binary): Same.
5984 (instantiate_scev_convert): Same.
5985 (instantiate_scev_not): Same.
5986 (instantiate_scev_r): Same.
5987 (instantiate_scev): Same.
5988 (resolve_mixers): Same.
5989 (initialize_scalar_evolutions_analyzer): Same.
5990 (scev_reset_htab): Same.
5991 (scev_reset): Same.
5992 (derive_simple_iv_with_niters): Same.
5993 (simple_iv_with_niters): Same.
5994 (expression_expensive_p): Same.
5995 (final_value_replacement_loop): Same.
5996 * tree-scalar-evolution.h (block_before_loop): Same.
5997 * tree-ssa-address.h: Same.
5998 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
5999 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
6000 (record_edge_info): Same.
6001 * tree-ssa-live.c (var_map_base_fini): Same.
6002 (remove_unused_locals): Same.
6003 * tree-ssa-live.h: Same.
6004 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
6005 (pass_ch_vect::execute): Same.
6006 (pass_ch::process_loop_p): Same.
6007 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
6008 (movement_possibility): Same.
6009 (outermost_invariant_loop): Same.
6010 (stmt_cost): Same.
6011 (determine_max_movement): Same.
6012 (invariantness_dom_walker::before_dom_children): Same.
6013 (move_computations): Same.
6014 (may_move_till): Same.
6015 (force_move_till_op): Same.
6016 (force_move_till): Same.
6017 (memref_free): Same.
6018 (record_mem_ref_loc): Same.
6019 (set_ref_stored_in_loop): Same.
6020 (mark_ref_stored): Same.
6021 (sort_bbs_in_loop_postorder_cmp): Same.
6022 (sort_locs_in_loop_postorder_cmp): Same.
6023 (analyze_memory_references): Same.
6024 (mem_refs_may_alias_p): Same.
6025 (find_ref_loc_in_loop_cmp): Same.
6026 (rewrite_mem_ref_loc::operator): Same.
6027 (first_mem_ref_loc_1::operator): Same.
6028 (sm_set_flag_if_changed::operator): Same.
6029 (execute_sm_if_changed_flag_set): Same.
6030 (execute_sm): Same.
6031 (hoist_memory_references): Same.
6032 (ref_always_accessed::operator): Same.
6033 (refs_independent_p): Same.
6034 (record_dep_loop): Same.
6035 (ref_indep_loop_p_1): Same.
6036 (ref_indep_loop_p): Same.
6037 (can_sm_ref_p): Same.
6038 (find_refs_for_sm): Same.
6039 (loop_suitable_for_sm): Same.
6040 (store_motion_loop): Same.
6041 (store_motion): Same.
6042 (fill_always_executed_in): Same.
6043 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
6044 (estimated_unrolled_size): Same.
6045 (loop_edge_to_cancel): Same.
6046 (remove_exits_and_undefined_stmts): Same.
6047 (remove_redundant_iv_tests): Same.
6048 (unloop_loops): Same.
6049 (estimated_peeled_sequence_size): Same.
6050 (try_peel_loop): Same.
6051 (canonicalize_loop_induction_variables): Same.
6052 (canonicalize_induction_variables): Same.
6053 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
6054 (name_info): Same.
6055 (stmt_after_inc_pos): Same.
6056 (contains_abnormal_ssa_name_p): Same.
6057 (niter_for_exit): Same.
6058 (find_bivs): Same.
6059 (mark_bivs): Same.
6060 (find_givs_in_bb): Same.
6061 (find_induction_variables): Same.
6062 (find_interesting_uses_cond): Same.
6063 (outermost_invariant_loop_for_expr): Same.
6064 (idx_find_step): Same.
6065 (add_candidate_1): Same.
6066 (add_iv_candidate_derived_from_uses): Same.
6067 (alloc_use_cost_map): Same.
6068 (prepare_decl_rtl): Same.
6069 (generic_predict_doloop_p): Same.
6070 (computation_cost): Same.
6071 (determine_common_wider_type): Same.
6072 (get_computation_aff_1): Same.
6073 (get_use_type): Same.
6074 (determine_group_iv_cost_address): Same.
6075 (iv_period): Same.
6076 (difference_cannot_overflow_p): Same.
6077 (may_eliminate_iv): Same.
6078 (determine_set_costs): Same.
6079 (cheaper_cost_pair): Same.
6080 (compare_cost_pair): Same.
6081 (iv_ca_cand_for_group): Same.
6082 (iv_ca_recount_cost): Same.
6083 (iv_ca_set_remove_invs): Same.
6084 (iv_ca_set_no_cp): Same.
6085 (iv_ca_set_add_invs): Same.
6086 (iv_ca_set_cp): Same.
6087 (iv_ca_add_group): Same.
6088 (iv_ca_cost): Same.
6089 (iv_ca_compare_deps): Same.
6090 (iv_ca_delta_reverse): Same.
6091 (iv_ca_delta_commit): Same.
6092 (iv_ca_cand_used_p): Same.
6093 (iv_ca_delta_free): Same.
6094 (iv_ca_new): Same.
6095 (iv_ca_free): Same.
6096 (iv_ca_dump): Same.
6097 (iv_ca_extend): Same.
6098 (iv_ca_narrow): Same.
6099 (iv_ca_prune): Same.
6100 (cheaper_cost_with_cand): Same.
6101 (iv_ca_replace): Same.
6102 (try_add_cand_for): Same.
6103 (get_initial_solution): Same.
6104 (try_improve_iv_set): Same.
6105 (find_optimal_iv_set_1): Same.
6106 (create_new_iv): Same.
6107 (rewrite_use_compare): Same.
6108 (remove_unused_ivs): Same.
6109 (determine_scaling_factor): Same.
6110 * tree-ssa-loop-ivopts.h: Same.
6111 * tree-ssa-loop-manip.c (create_iv): Same.
6112 (compute_live_loop_exits): Same.
6113 (add_exit_phi): Same.
6114 (add_exit_phis): Same.
6115 (find_uses_to_rename_use): Same.
6116 (find_uses_to_rename_def): Same.
6117 (find_uses_to_rename_in_loop): Same.
6118 (rewrite_into_loop_closed_ssa): Same.
6119 (check_loop_closed_ssa_bb): Same.
6120 (split_loop_exit_edge): Same.
6121 (ip_end_pos): Same.
6122 (ip_normal_pos): Same.
6123 (copy_phi_node_args): Same.
6124 (gimple_duplicate_loop_to_header_edge): Same.
6125 (can_unroll_loop_p): Same.
6126 (determine_exit_conditions): Same.
6127 (scale_dominated_blocks_in_loop): Same.
6128 (niter_for_unrolled_loop): Same.
6129 (tree_transform_and_unroll_loop): Same.
6130 (rewrite_all_phi_nodes_with_iv): Same.
6131 * tree-ssa-loop-manip.h: Same.
6132 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6133 (number_of_iterations_ne): Same.
6134 (assert_no_overflow_lt): Same.
6135 (assert_loop_rolls_lt): Same.
6136 (number_of_iterations_lt): Same.
6137 (adjust_cond_for_loop_until_wrap): Same.
6138 (tree_simplify_using_condition): Same.
6139 (simplify_using_initial_conditions): Same.
6140 (simplify_using_outer_evolutions): Same.
6141 (loop_only_exit_p): Same.
6142 (ssa_defined_by_minus_one_stmt_p): Same.
6143 (number_of_iterations_popcount): Same.
6144 (number_of_iterations_exit): Same.
6145 (find_loop_niter): Same.
6146 (finite_loop_p): Same.
6147 (chain_of_csts_start): Same.
6148 (get_val_for): Same.
6149 (loop_niter_by_eval): Same.
6150 (derive_constant_upper_bound_ops): Same.
6151 (do_warn_aggressive_loop_optimizations): Same.
6152 (record_estimate): Same.
6153 (get_cst_init_from_scev): Same.
6154 (record_nonwrapping_iv): Same.
6155 (idx_infer_loop_bounds): Same.
6156 (infer_loop_bounds_from_ref): Same.
6157 (infer_loop_bounds_from_array): Same.
6158 (infer_loop_bounds_from_pointer_arith): Same.
6159 (infer_loop_bounds_from_signedness): Same.
6160 (bound_index): Same.
6161 (discover_iteration_bound_by_body_walk): Same.
6162 (maybe_lower_iteration_bound): Same.
6163 (estimate_numbers_of_iterations): Same.
6164 (estimated_loop_iterations): Same.
6165 (estimated_loop_iterations_int): Same.
6166 (max_loop_iterations): Same.
6167 (max_loop_iterations_int): Same.
6168 (likely_max_loop_iterations): Same.
6169 (likely_max_loop_iterations_int): Same.
6170 (estimated_stmt_executions_int): Same.
6171 (max_stmt_executions): Same.
6172 (likely_max_stmt_executions): Same.
6173 (estimated_stmt_executions): Same.
6174 (stmt_dominates_stmt_p): Same.
6175 (nowrap_type_p): Same.
6176 (loop_exits_before_overflow): Same.
6177 (scev_var_range_cant_overflow): Same.
6178 (scev_probably_wraps_p): Same.
6179 (free_numbers_of_iterations_estimates): Same.
6180 * tree-ssa-loop-niter.h: Same.
6181 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6182 (idx_analyze_ref): Same.
6183 (analyze_ref): Same.
6184 (gather_memory_references_ref): Same.
6185 (mark_nontemporal_store): Same.
6186 (emit_mfence_after_loop): Same.
6187 (may_use_storent_in_loop_p): Same.
6188 (mark_nontemporal_stores): Same.
6189 (should_unroll_loop_p): Same.
6190 (volume_of_dist_vector): Same.
6191 (add_subscript_strides): Same.
6192 (self_reuse_distance): Same.
6193 (insn_to_prefetch_ratio_too_small_p): Same.
6194 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6195 (patch_loop_exit): Same.
6196 (find_or_create_guard_phi): Same.
6197 (easy_exit_values): Same.
6198 (connect_loop_phis): Same.
6199 (connect_loops): Same.
6200 (compute_new_first_bound): Same.
6201 (split_loop): Same.
6202 (tree_ssa_split_loops): Same.
6203 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6204 (is_maybe_undefined): Same.
6205 (tree_may_unswitch_on): Same.
6206 (simplify_using_entry_checks): Same.
6207 (tree_unswitch_single_loop): Same.
6208 (tree_unswitch_loop): Same.
6209 (tree_unswitch_outer_loop): Same.
6210 (empty_bb_without_guard_p): Same.
6211 (used_outside_loop_p): Same.
6212 (get_vop_from_header): Same.
6213 (hoist_guard): Same.
6214 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6215 (get_lsm_tmp_name): Same.
6216 * tree-ssa-loop.h: Same.
6217 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6218 (build_and_add_sum): Same.
6219 (no_side_effect_bb): Same.
6220 (get_ops): Same.
6221 (linearize_expr): Same.
6222 (should_break_up_subtract): Same.
6223 (linearize_expr_tree): Same.
6224 * tree-ssa-scopedtables.c: Same.
6225 * tree-ssa-scopedtables.h: Same.
6226 * tree-ssa-structalias.c (condense_visit): Same.
6227 (label_visit): Same.
6228 (dump_pred_graph): Same.
6229 (perform_var_substitution): Same.
6230 (move_complex_constraints): Same.
6231 (remove_preds_and_fake_succs): Same.
6232 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6233 (determine_bb_domination_status): Same.
6234 (duplicate_thread_path): Same.
6235 (thread_through_all_blocks): Same.
6236 * tree-ssa-threadupdate.h: Same.
6237 * tree-streamer-in.c (streamer_read_string_cst): Same.
6238 (input_identifier): Same.
6239 (unpack_ts_type_common_value_fields): Same.
6240 (unpack_ts_block_value_fields): Same.
6241 (unpack_ts_translation_unit_decl_value_fields): Same.
6242 (unpack_ts_omp_clause_value_fields): Same.
6243 (streamer_read_tree_bitfields): Same.
6244 (streamer_alloc_tree): Same.
6245 (lto_input_ts_common_tree_pointers): Same.
6246 (lto_input_ts_vector_tree_pointers): Same.
6247 (lto_input_ts_poly_tree_pointers): Same.
6248 (lto_input_ts_complex_tree_pointers): Same.
6249 (lto_input_ts_decl_minimal_tree_pointers): Same.
6250 (lto_input_ts_decl_common_tree_pointers): Same.
6251 (lto_input_ts_decl_non_common_tree_pointers): Same.
6252 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6253 (lto_input_ts_field_decl_tree_pointers): Same.
6254 (lto_input_ts_function_decl_tree_pointers): Same.
6255 (lto_input_ts_type_common_tree_pointers): Same.
6256 (lto_input_ts_type_non_common_tree_pointers): Same.
6257 (lto_input_ts_list_tree_pointers): Same.
6258 (lto_input_ts_vec_tree_pointers): Same.
6259 (lto_input_ts_exp_tree_pointers): Same.
6260 (lto_input_ts_block_tree_pointers): Same.
6261 (lto_input_ts_binfo_tree_pointers): Same.
6262 (lto_input_ts_constructor_tree_pointers): Same.
6263 (lto_input_ts_omp_clause_tree_pointers): Same.
6264 (streamer_read_tree_body): Same.
6265 * tree-streamer.h: Same.
6266 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6267 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6268 (vect_analyze_possibly_independent_ddr): Same.
6269 (vect_analyze_data_ref_dependence): Same.
6270 (vect_compute_data_ref_alignment): Same.
6271 (vect_enhance_data_refs_alignment): Same.
6272 (vect_analyze_data_ref_access): Same.
6273 (vect_check_gather_scatter): Same.
6274 (vect_find_stmt_data_reference): Same.
6275 (vect_create_addr_base_for_vector_ref): Same.
6276 (vect_setup_realignment): Same.
6277 (vect_supportable_dr_alignment): Same.
6278 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6279 (adjust_phi_and_debug_stmts): Same.
6280 (vect_set_loop_mask): Same.
6281 (add_preheader_seq): Same.
6282 (vect_maybe_permute_loop_masks): Same.
6283 (vect_set_loop_masks_directly): Same.
6284 (vect_set_loop_condition_masked): Same.
6285 (vect_set_loop_condition_unmasked): Same.
6286 (slpeel_duplicate_current_defs_from_edges): Same.
6287 (slpeel_add_loop_guard): Same.
6288 (slpeel_can_duplicate_loop_p): Same.
6289 (create_lcssa_for_virtual_phi): Same.
6290 (iv_phi_p): Same.
6291 (vect_update_ivs_after_vectorizer): Same.
6292 (vect_gen_vector_loop_niters_mult_vf): Same.
6293 (slpeel_update_phi_nodes_for_loops): Same.
6294 (slpeel_update_phi_nodes_for_guard1): Same.
6295 (find_guard_arg): Same.
6296 (slpeel_update_phi_nodes_for_guard2): Same.
6297 (slpeel_update_phi_nodes_for_lcssa): Same.
6298 (vect_do_peeling): Same.
6299 (vect_create_cond_for_alias_checks): Same.
6300 (vect_loop_versioning): Same.
6301 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6302 (vect_inner_phi_in_double_reduction_p): Same.
6303 (vect_analyze_scalar_cycles_1): Same.
6304 (vect_fixup_scalar_cycles_with_patterns): Same.
6305 (vect_get_loop_niters): Same.
6306 (bb_in_loop_p): Same.
6307 (vect_get_max_nscalars_per_iter): Same.
6308 (vect_verify_full_masking): Same.
6309 (vect_compute_single_scalar_iteration_cost): Same.
6310 (vect_analyze_loop_form_1): Same.
6311 (vect_analyze_loop_form): Same.
6312 (vect_active_double_reduction_p): Same.
6313 (vect_analyze_loop_operations): Same.
6314 (neutral_op_for_slp_reduction): Same.
6315 (vect_is_simple_reduction): Same.
6316 (vect_model_reduction_cost): Same.
6317 (get_initial_def_for_reduction): Same.
6318 (get_initial_defs_for_reduction): Same.
6319 (vect_create_epilog_for_reduction): Same.
6320 (vectorize_fold_left_reduction): Same.
6321 (vectorizable_reduction): Same.
6322 (vectorizable_induction): Same.
6323 (vectorizable_live_operation): Same.
6324 (loop_niters_no_overflow): Same.
6325 (vect_get_loop_mask): Same.
6326 (vect_transform_loop_stmt): Same.
6327 (vect_transform_loop): Same.
6328 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6329 (vect_determine_precisions): Same.
6330 (vect_pattern_recog_1): Same.
6331 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6332 * tree-vect-stmts.c (stmt_vectype): Same.
6333 (process_use): Same.
6334 (vect_init_vector_1): Same.
6335 (vect_truncate_gather_scatter_offset): Same.
6336 (get_group_load_store_type): Same.
6337 (vect_build_gather_load_calls): Same.
6338 (vect_get_strided_load_store_ops): Same.
6339 (vectorizable_simd_clone_call): Same.
6340 (vectorizable_store): Same.
6341 (permute_vec_elements): Same.
6342 (vectorizable_load): Same.
6343 (vect_transform_stmt): Same.
6344 (supportable_widening_operation): Same.
6345 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6346 (vec_info::free_stmt_vec_info): Same.
6347 (vect_free_loop_info_assumptions): Same.
6348 (vect_loop_vectorized_call): Same.
6349 (set_uid_loop_bbs): Same.
6350 (vectorize_loops): Same.
6351 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6352 * tree.c (add_tree_to_fld_list): Same.
6353 (fld_type_variant_equal_p): Same.
6354 (fld_decl_context): Same.
6355 (fld_incomplete_type_of): Same.
6356 (free_lang_data_in_binfo): Same.
6357 (need_assembler_name_p): Same.
6358 (find_decls_types_r): Same.
6359 (get_eh_types_for_runtime): Same.
6360 (find_decls_types_in_eh_region): Same.
6361 (find_decls_types_in_node): Same.
6362 (assign_assembler_name_if_needed): Same.
6363 * value-prof.c (stream_out_histogram_value): Same.
6364 * value-prof.h: Same.
6365 * var-tracking.c (use_narrower_mode): Same.
6366 (prepare_call_arguments): Same.
6367 (vt_expand_loc_callback): Same.
6368 (resolve_expansions_pending_recursion): Same.
6369 (vt_expand_loc): Same.
6370 * varasm.c (const_hash_1): Same.
6371 (compare_constant): Same.
6372 (tree_output_constant_def): Same.
6373 (simplify_subtraction): Same.
6374 (get_pool_constant): Same.
6375 (output_constant_pool_2): Same.
6376 (output_constant_pool_1): Same.
6377 (mark_constants_in_pattern): Same.
6378 (mark_constant_pool): Same.
6379 (get_section_anchor): Same.
6380 * vr-values.c (compare_range_with_value): Same.
6381 (vr_values::extract_range_from_phi_node): Same.
6382 * vr-values.h: Same.
6383 * web.c (unionfind_union): Same.
6384 * wide-int.h: Same.
6385
6386 2019-07-09 Martin Sebor <msebor@redhat.com>
6387
6388 PR c++/61339
6389 * align.h: Change class-key from class to struct and vice versa
6390 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6391 * alloc-pool.h: Same.
6392 * asan.c (shadow_mem_size): Same.
6393 * auto-profile.c: Same.
6394 * basic-block.h: Same.
6395 * bitmap.h: Same.
6396 * cfgexpand.c (set_rtl): Same.
6397 (expand_one_stack_var_at): Same.
6398 * cfghooks.h: Same.
6399 * cfgloop.h: Same.
6400 * cgraph.h: Same.
6401 * config/i386/i386.h: Same.
6402 * df-problems.c (df_print_bb_index): Same.
6403 * df-scan.c: Same.
6404 * df.h (df_single_use): Same.
6405 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6406 (layout::annotation_line_showed_range_p): Same.
6407 (get_printed_columns): Same.
6408 (correction::ensure_terminated): Same.
6409 (line_corrections::~line_corrections): Same.
6410 * dojump.h: Same.
6411 * dse.c: Same.
6412 * dump-context.h: Same.
6413 * dumpfile.h: Same.
6414 * dwarf2out.c: Same.
6415 * edit-context.c: Same.
6416 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6417 * flags.h: Same.
6418 * function.c (assign_stack_local): Same.
6419 * function.h: Same.
6420 * gcc.c: Same.
6421 * gcov.c (block_info::block_info): Same.
6422 * genattrtab.c: Same.
6423 * genextract.c: Same.
6424 * genmatch.c (comparison_code_p): Same.
6425 (id_base::id_base): Same.
6426 (decision_tree::print): Same.
6427 * genoutput.c: Same.
6428 * genpreds.c (write_one_predicate_function): Same.
6429 * genrecog.c (validate_pattern): Same.
6430 (find_operand_positions): Same.
6431 (optimize_subroutine_group): Same.
6432 (merge_pattern_transition::merge_pattern_transition): Same.
6433 (merge_pattern_info::merge_pattern_info): Same.
6434 (merge_state_result::merge_state_result): Same.
6435 (merge_into_state): Same.
6436 * gensupport.c: Same.
6437 * gensupport.h: Same.
6438 * ggc-common.c (init_ggc_heuristics): Same.
6439 * ggc-tests.c (test_union): Same.
6440 * gimple-loop-interchange.cc (dump_induction): Same.
6441 * gimple-loop-versioning.cc: Same.
6442 * gimple-match.h (gimple_match_cond::any_else): Same.
6443 * gimple-ssa-backprop.c: Same.
6444 * gimple-ssa-sprintf.c: Same.
6445 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6446 Same.
6447 (store_immediate_info::store_immediate_info): Same.
6448 (merged_store_group::apply_stores): Same.
6449 (get_location_for_stmts): Same.
6450 * gimple-ssa-strength-reduction.c: Same.
6451 * gimple-ssa-warn-alloca.c: Same.
6452 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
6453 * godump.c (go_type_decl): Same.
6454 * hash-map-tests.c (test_map_of_strings_to_int): Same.
6455 * hash-map.h: Same.
6456 * hash-set-tests.c (test_set_of_strings): Same.
6457 * hsa-brig.c: Same.
6458 * hsa-common.h: Same.
6459 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
6460 * input.c (assert_loceq): Same.
6461 * input.h: Same.
6462 * ipa-cp.c: Same.
6463 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
6464 * ipa-fnsummary.h: Same.
6465 * ipa-inline.h: Same.
6466 * ipa-prop.h: Same.
6467 * ipa-split.c (visit_bb): Same.
6468 * ira-int.h (minmax_set_iter_next): Same.
6469 * loop-invariant.c: Same.
6470 * loop-iv.c: Same.
6471 * lra-eliminations.c: Same.
6472 * lra-int.h: Same.
6473 * lra-lives.c (mark_regno_dead): Same.
6474 * lra-remat.c: Same.
6475 * lra-spills.c: Same.
6476 * lto-streamer.h: Same.
6477 * mem-stats.h: Same.
6478 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
6479 * omp-low.c (omp_clause_aligned_alignment): Same.
6480 * optabs-query.h (get_vcond_eq_icode): Same.
6481 * optabs.h: Same.
6482 * opts.c (wrap_help): Same.
6483 * poly-int.h: Same.
6484 * predict.c (predict_paths_leading_to_edge): Same.
6485 * pretty-print.h: Same.
6486 * profile-count.h: Same.
6487 * read-md.h: Same.
6488 * read-rtl-function.c: Same.
6489 * ree.c: Same.
6490 * reginfo.c: Same.
6491 * regrename.c: Same.
6492 * regrename.h: Same.
6493 * reload.h: Same.
6494 * rtl-iter.h: Same.
6495 * rtl.h (costs_add_n_insns): Same.
6496 * sanopt.c: Same.
6497 * sched-int.h: Same.
6498 * sel-sched-ir.h: Same.
6499 * selftest.h: Same.
6500 * sese.h (vec_find): Same.
6501 * stmt.c: Same.
6502 * target-globals.h: Same.
6503 * tree-affine.c (aff_combination_find_elt): Same.
6504 * tree-affine.h: Same.
6505 * tree-data-ref.h: Same.
6506 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
6507 * tree-predcom.c: Same.
6508 * tree-scalar-evolution.c (find_var_scev_info): Same.
6509 * tree-ssa-alias.h: Same.
6510 * tree-ssa-ccp.c: Same.
6511 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
6512 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
6513 (rewrite_mem_refs): Same.
6514 (execute_sm_if_changed): Same.
6515 (hoist_memory_references): Same.
6516 * tree-ssa-loop-ivopts.c (operator<=): Same.
6517 * tree-ssa-loop.h: Same.
6518 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
6519 * tree-ssa-structalias.c: Same.
6520 * tree-switch-conversion.h (cluster::cluster): Same.
6521 (simple_cluster::simple_cluster): Same.
6522 * tree-vect-patterns.c (type_conversion_p): Same.
6523 * tree-vectorizer.c (dump_stmt_cost): Same.
6524 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
6525 * tree.c (protected_set_expr_location): Same.
6526 * tree.h (desired_pro_or_demotion_p): Same.
6527 (fndecl_built_in_p): Same.
6528 * unique-ptr-tests.cc: Same.
6529 * var-tracking.c (delete_variable_part): Same.
6530 * varasm.c (assemble_real): Same.
6531 (tree_output_constant_def): Same.
6532 * vec.c: Same.
6533 * wide-int-bitmask.h: Same.
6534 * wide-int.h (decompose): Same.
6535
6536 2019-07-09 Richard Biener <rguenther@suse.de>
6537
6538 PR tree-optimization/91114
6539 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
6540 find a vector type isn't fatal.
6541
6542 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6543
6544 * config/aarch64/aarch64-simd.md
6545 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
6546 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
6547 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
6548 (*aarch64_crypto_aese_fused,
6549 *aarch64_crypto_aesd_fused): Update to new definition.
6550 * config/aarch64/aarch64.c
6551 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
6552
6553 2019-07-09 Richard Biener <rguenther@suse.de>
6554
6555 * gimple-match.h (gimple_match_op::resimplify): New.
6556 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
6557 gimple_resimplify4, gimple_resimplify5): Remove.
6558 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
6559 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
6560 Make static.
6561 (gimple_match_op::resimplify): New.
6562 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
6563 according to availability. Use gimple_match_op::resimplify.
6564
6565 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
6566
6567 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
6568
6569 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6570
6571 * config/arm/crypto.md:
6572 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
6573 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
6574 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
6575 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
6576 * config/arm/arm.c
6577 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
6578 * config/arm/aarch-common-protos.h
6579 (aarch_crypto_can_dual_issue): Remove.
6580 * config/arm/aarch-common.c
6581 (aarch_crypto_can_dual_issue): Likewise.
6582 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
6583 * config/arm/cortex-a53.md: Likewise.
6584 * config/arm/cortex-a57.md: Likewise.
6585 * config/arm/iterators.md:
6586 (CRYPTO_BINARY): Redefine.
6587 (CRYPTO_UNARY): Removed.
6588 (CRYPTO_AES, CRYPTO_AESMC): New.
6589
6590 2019-07-09 Richard Biener <rguenther@suse.de>
6591
6592 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
6593 (vn_reference_lookup_3): If the main ref has no access path recorded
6594 but orig_ref has use it to do access-path based disambiguation.
6595 (vn_reference_lookup_pieces): Adjust.
6596 (vn_reference_lookup): Pass down original ref if we valueized.
6597
6598 2019-07-09 Martin Liska <mliska@suse.cz>
6599
6600 * doc/extend.texi: Document influence on loop
6601 optimizers.
6602
6603 2019-07-09 Martin Liska <mliska@suse.cz>
6604
6605 * lto-compress.c (lto_normalized_zstd_level): Do not use
6606 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
6607 of libzstd. One can use 0 as a default compression level.
6608
6609 2019-07-09 Martin Liska <mliska@suse.cz>
6610
6611 * doc/invoke.texi: Add link from -fprofile-dir option.
6612 Use better wording for 'gcno filename'.
6613
6614 2019-07-08 Martin Sebor <msebor@redhat.com>
6615
6616 PR middle-end/71924
6617 PR middle-end/90549
6618 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
6619 comment.
6620 (args_loc_t): New type.
6621 (args_loc_t, locmap_t): same.
6622 (diag_returned_locals): New function.
6623 (is_addr_local): Same.
6624 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
6625 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
6626 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
6627
6628 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6629
6630 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
6631 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
6632 and casts in offset when different, both through gimple stmts
6633 and through trees. Rewritten using loops to minimize code duplication
6634 for each operand.
6635
6636 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
6637
6638 * emit-rtl.c (set_insn_locations): New function moved from...
6639 * function.c (set_insn_locations): ...here.
6640 * ira-emit.c (emit_moves): Propagate location of the first instruction
6641 to the inserted move instructions.
6642 * reg-stack.c (compensate_edge): Set the location if the sequence is
6643 inserted on the edge.
6644 * rtl.h (set_insn_locations): Declare.
6645
6646 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6647
6648 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
6649 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
6650 .machine string.
6651
6652 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6653
6654 PR rtl-optimization/88233
6655 * common.opt (fsplit-wide-types-early): New option.
6656 * common/config/rs6000/rs6000-common.c
6657 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
6658 OPT_LEVELS_ALL.
6659 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
6660 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
6661 flag_split_wide_types_early.
6662 (pass_data_lower_subreg3): New.
6663 (pass_lower_subreg3): New.
6664 (make_pass_lower_subreg3): New.
6665 * passes.def (pass_lower_subreg2): Move after the loop passes.
6666 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
6667 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
6668 the pass pipeline; its previous place is taken by ...
6669 (make_pass_lower_subreg3): ... this.
6670
6671 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6672
6673 * config/s390/s390.c (s390_shift_truncation_mask): Define.
6674 (TARGET_SHIFT_TRUNCATION_MASK): Define.
6675
6676 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6677
6678 * config/s390/constraints.md: Add new jsc constraint.
6679 * config/s390/predicates.md: New predicates.
6680 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
6681 * config/s390/s390.c (s390_valid_shift_count): New function.
6682 (print_shift_count_operand): Use s390_valid_shift_count.
6683 (print_operand): Likewise.
6684 * config/s390/s390.md: Use new predicate.
6685 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
6686 * config/s390/vector.md: Use new predicate.
6687
6688 2019-07-08 Andrew Waterman <andrew@sifive.com>
6689 Jim Wilson <jimw@sifive.com>
6690
6691 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
6692 bitsize instead of BITS_PER_WORD.
6693
6694 2019-07-08 Martin Liska <mliska@suse.cz>
6695
6696 * collect2.c (defined): Revert to before r254460.
6697 (scan_prog_file): Revert to before r254460.
6698
6699 2019-07-08 Richard Biener <rguenther@suse.de>
6700
6701 PR tree-optimization/83518
6702 * tree-ssa-sccvn.c: Include splay-tree.h.
6703 (struct pd_range, struct pd_data): New.
6704 (struct vn_walk_cb_data): Add data to track partial definitions.
6705 (vn_walk_cb_data::~vn_walk_cb_data): New.
6706 (vn_walk_cb_data::push_partial_def): New.
6707 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
6708 (vn_reference_lookup_2): When partial defs are registered give up.
6709 (vn_reference_lookup_3): Track partial defs for memset and
6710 constructor zeroing and for defs from constants.
6711
6712 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6713
6714 * doc/install.texi (bootstrap-Og): Document.
6715
6716 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6717
6718 * config/riscv/pic.md (*local_pic_load_s<mode>)
6719 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
6720 referenced by <mode>, giving...
6721 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
6722 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
6723 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
6724 use <X:MODE> for the mode attribute.
6725
6726 2019-07-07 Jeff Law <law@redhat.com>
6727
6728 PR tree-optimization/91090
6729 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
6730 in handling of ranges to simplify switch statements.
6731
6732 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6733
6734 * config/darwin.c (darwin_override_options): Make a final check on PIC
6735 options.
6736
6737 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6738
6739 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
6740 on for kernel code.
6741
6742 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6743
6744 PR target/91068
6745 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
6746 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
6747 instead of matching them to "l" output operands.
6748
6749 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6750
6751 * config/mips/mips.c (mips_split_move): Zero-initialize addr
6752 and check whether addr.reg is nonnull before using it.
6753
6754 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6755
6756 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
6757 ctx->for_simd_scan_phase simd copy the outer var to the privatized
6758 variable(s). For conditional lastprivate look through outer
6759 GIMPLE_OMP_SCAN context.
6760 (lower_omp_1): For conditional lastprivate look through outer
6761 GIMPLE_OMP_SCAN context.
6762
6763 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
6764 member to combined_into_simd_safelen1.
6765 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
6766 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
6767 clauses if ctx->combined_into_simd_safelen1 put statements after the
6768 predicate conditionalized block rather than into it.
6769
6770 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6771
6772 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
6773 operand 1.
6774 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
6775 Make the choice of <mode> explicit, giving...
6776 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
6777
6778 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6779
6780 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
6781 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
6782 of .md attributes.
6783 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
6784 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
6785 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
6786 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
6787 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
6788 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
6789 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
6790 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
6791 (*avx512f_scatterdi<mode>): Likewise.
6792 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
6793
6794 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6795
6796 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
6797 specify the mode iterator referenced by <mode>, giving...
6798 (*push1_h8300hs_<QHI:mode>): ...this.
6799
6800 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6801
6802 * config/gcn/gcn-valu.md
6803 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
6804 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
6805 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
6806 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
6807 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
6808 but using the _exec comparison patterns.
6809 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
6810 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
6811 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
6812 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
6813 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
6814 but using the _exec comparison patterns.
6815
6816 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6817
6818 * config/arm/sync.md
6819 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
6820 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
6821 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
6822 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
6823 <SIDI:cas_cmp_str>.
6824
6825 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6826
6827 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
6828 (maybe_lookup_ctx): Add forward declaration.
6829 (omp_find_scan): Likewise. Walk into body of simd if composited
6830 with worksharing loop.
6831 (scan_omp_simd_scan): New function.
6832 (scan_omp_1_stmt): Call it.
6833 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
6834 ctx->for_simd_scan_phase.
6835 (lower_rec_input_clauses): Do much less work for inscan reductions
6836 in ctx->for_simd_scan_phase is_simd regions.
6837 (lower_omp_scan): Set is_simd also on simd constructs composited
6838 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
6839 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
6840 emit their body after in simd constructs composited with worksharing
6841 loop.
6842 (lower_omp_for_scan): Handle worksharing loop composited with simd.
6843
6844 * omp-low.c (omp_find_scan): Make static.
6845 (lower_omp_for_scan): Fix order of merge arguments in input phase of
6846 the second loop, var2 represents the first partial sum and so needs
6847 to go before rprivb[ivar].
6848
6849 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
6850
6851 * config/rs6000/rs6000-logue.c: Remove unused code.
6852
6853 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6854
6855 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
6856
6857 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
6858
6859 PR target/90712
6860 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
6861 check with a frame laid out check.
6862
6863 2019-07-05 Richard Biener <rguenther@suse.de>
6864
6865 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
6866 when comparing against a store with possibly the same value.
6867
6868 2019-07-05 Richard Biener <rguenther@suse.de>
6869
6870 PR tree-optimization/91091
6871 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
6872 (walk_non_aliased_vuses): Likewise.
6873 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
6874 (get_continuation_for_phi): New tbaa_p parameter and pass
6875 it down.
6876 (walk_non_aliased_vuses): Likewise.
6877 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
6878 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
6879 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
6880 Likewise.
6881 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
6882 (adjust_offsets_for_equal_base_address): New function.
6883 (vn_reference_lookup_3): Use it to catch more base equivalences.
6884 Handle and pass down tbaa_p flag.
6885 (vn_reference_lookup_pieces): Adjust.
6886 (vn_reference_lookup): Remove alias-set altering, instead pass
6887 down false as tbaa_p.
6888
6889 2019-07-05 Richard Biener <rguenther@suse.de>
6890
6891 PR tree-optimization/91091
6892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
6893 accesses can happen with -fno-strict-aliasing.
6894
6895 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
6896
6897 * tree-ssa-alias.c (alias_stats): Add
6898 nonoverlapping_component_refs_since_match_p_must_overlap.
6899 (dump_alias_stats): Print it.
6900 (nonoverlapping_component_refs_since_match_p): Add early exit.
6901 (nonoverlapping_component_refs_p): Do not account early exit.
6902
6903 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6904
6905 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
6906 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
6907 (emit_eh_dispatch): Delete.
6908 (lower_catch): Emit the eh_dispatch manually and set the location of
6909 the first catch statement onto it.
6910 (lower_eh_filter): Emit the eh_dispatch manually and set location.
6911 (lower_eh_dispatch): Propagate location.
6912 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
6913 (eliminate_build): Likewise.
6914
6915 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6916
6917 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
6918 phi nodes if possible.
6919 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
6920 location info on the newly created statement.
6921 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
6922 newly created increment if needed.
6923
6924 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6925
6926 PR middle-end/78884
6927 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
6928 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
6929 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
6930 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
6931 ctx->add_safelen1 is set.
6932
6933 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
6934 GOMP_loop_start at the start of second worksharing loop in a scan.
6935 For nowait, don't emit GOMP_loop_end_nowait at the end of first
6936 worksharing loop in a scan even if there are conditional lastprivates,
6937 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
6938
6939 2019-07-04 Jan Hubicka <jh@suse.cz>
6940
6941 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
6942 Fix check for match in the ref walk.
6943
6944 2019-07-04 Martin Liska <mliska@suse.cz>
6945
6946 * tree-ssa-loop-niter.c
6947 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
6948 (estimate_numbers_of_iterations):
6949 Support __builtin_expect_with_probability for analysis
6950 of # of loop iterations.
6951
6952 2019-07-04 Alexandre Oliva <oliva@adacore.com>
6953
6954 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
6955 * except.c: Likewise.
6956 * expr.c (expand_expr_real_1): Reject it.
6957 * gimplify.c (gimplify_expr): Gimplify it, within
6958 TRY_FINALLY_EXPR.
6959 * tree-dump.c (dequeue_and_dump): Dump it.
6960 * tree-pretty-print.c (dump_generic_node): Likewise.
6961 * tree.c (block_may_fallthru): Handle it.
6962 * tree.def (EH_ELSE_EXPR): Introduce it.
6963 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
6964 with GIMPLE_EH_ELSE as try/finally/else.
6965
6966 2019-07-04 Richard Biener <rguenther@suse.de>
6967
6968 PR ipa/91062
6969 * tree-pass.h (execute_all_ipa_transforms): Add a flag
6970 parameter whether to disable GC collection.
6971 * passes.c (execute_one_ipa_transform_pass): Likewise, and
6972 honor it.
6973 (execute_all_ipa_transforms): Likewise and pass it down.
6974 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
6975 collection from applying IPA transforms.
6976 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
6977 from applying IPA transforms.
6978
6979 2019-07-04 Richard Biener <rguenther@suse.de>
6980
6981 PR tree-optimization/90911
6982 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
6983 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
6984 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
6985 scalar_loop_scaling.
6986 (vect_transform_loop): Scale scalar loop profile if needed.
6987 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
6988 the loop copy from if-conversion adjust edge probabilities
6989 and scale the vectorized loop body profile, queue the scalar
6990 profile for updating after peeling.
6991
6992 2019-07-04 Jan Hubicka <jh@suse.cz>
6993
6994 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
6995 parameters; return early for must-alias.
6996 (indirect_ref_may_alias_decl_p): Likewise; when establishing
6997 outer types match, try nonoverlapping_component_refs
6998 if must-alias is not obvious.
6999 (indirect_refs_may_alias_p): Likewise.
7000 (refs_may_alias_p_2): Likewise.
7001
7002 2019-07-04 Richard Biener <rguenther@suse.de>
7003
7004 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
7005 argument.
7006 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
7007 globals into...
7008 (struct vn_walk_cb_data): New callback data struct.
7009 (vn_reference_lookup_2): Adjust.
7010 (vn_reference_lookup_3): Likewise.
7011 (vn_reference_lookup_pieces): Likewise.
7012 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
7013 (visit_reference_op_load): Adjust.
7014
7015 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7016
7017 PR tree-optimization/91063
7018 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
7019 stmt from stmts sequence before calling vect_init_vector_1.
7020 Formatting fix.
7021
7022 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7023
7024 PR target/88833
7025 * fwprop.c (reg_single_def_p): New function.
7026 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
7027 (forward_propagate_into): New parameter reg_prop_only
7028 with default value false.
7029 Propagate def's src into loop only if SET_SRC and SET_DEST
7030 of def_set have single definitions.
7031 Likewise if reg_prop_only is set to true.
7032 (fwprop): New param fwprop_addr_p.
7033 Integrate fwprop_addr into fwprop.
7034 (fwprop_addr): Remove.
7035 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
7036 to true.
7037 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
7038 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
7039 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
7040
7041 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7042
7043 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
7044 in worksharing loop scans.
7045
7046 PR tree-optimization/91074
7047 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
7048 temporary.
7049
7050 PR rtl-optimization/90756
7051 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
7052 for VECTOR_TYPE_P.
7053
7054 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
7055
7056 * config/aarch64/aarch64.md: Remove redundant constraints from
7057 define_expand but keep some patterns untouched if they are
7058 specially selected by TARGET_SECONDARY_RELOAD hook.
7059 * config/aarch64/aarch64-sve.md: Likewise.
7060 * config/aarch64/atomics.md: Remove redundant constraints from
7061 define_expand.
7062 * config/aarch64/aarch64-simd.md: Likewise.
7063
7064 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7065
7066 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
7067 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
7068 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
7069 clauses.
7070 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
7071 DARWIN_NOPIE_SPEC.
7072
7073 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7074
7075 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
7076 (STARTFILE_SPEC): Split crt3 into a separate spec.
7077 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
7078 (DARWIN_CRT2_SPEC): New.
7079 (DARWIN_CRT3_SPEC): New.
7080 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
7081 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
7082 (DARWIN_CRT3_SPEC): New.
7083
7084 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
7085
7086 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
7087 Change the RTL attribute "length" from "4" to "*" to allow the
7088 length attribute to be adjusted automatically for prefixed load,
7089 store, and add immediate instructions.
7090 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
7091 Likewise.
7092 (extendsi<mode>2, EXTSI iterator): Likewise.
7093 (movsi_internal1): Likewise.
7094 (movsi_from_sf): Likewise.
7095 (movdi_from_sf_zero_ext): Likewise.
7096 (mov<mode>_internal): Likewise.
7097 (movcc_internal1, QHI iterator): Likewise.
7098 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
7099 (movsf_from_si): Likewise.
7100 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
7101 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
7102 (mov<mode>, FMOVE128 iterator): Likewise.
7103 (movdi_internal64): Likewise.
7104 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
7105 Likewise.
7106 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
7107 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
7108 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
7109 (vsx_splat_v4sf): Likewise.
7110
7111 2019-07-03 Mark Wielaard <mark@klomp.org>
7112
7113 PR debug/90981
7114 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
7115 DW_AT_addr_base if there is actually a .debug_addr section with
7116 addresses.
7117 (output_addr_table): Add DWARF5 table header generation here after
7118 checking there are actually any addresses from...
7119 (dwarf2out_finish): ...here.
7120
7121 2019-07-03 Richard Biener <rguenther@suse.de>
7122
7123 PR middle-end/91069
7124 * match.pd (vec_perm -> bit_insert): Fix element read from
7125 first vector.
7126
7127 2019-07-03 Martin Liska <mliska@suse.cz>
7128
7129 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7130 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7131 condition.
7132 * generic-match-head.c: Include dbgcnt.h.
7133 * gimple-match-head.c: Likewise.
7134
7135 2019-07-03 Martin Liska <mliska@suse.cz>
7136
7137 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7138 (GCOV_COUNTER_V_TOPN): New.
7139 (GCOV_COUNTER_V_INDIR): Use _topn.
7140 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7141 (GCOV_TOPN_VALUES): New.
7142 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7143 (GCOV_TOPN_VALUES_COUNTERS): New.
7144 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7145 * tree-profile.c:
7146 (gimple_init_gcov_profiler): Rename variables from one_value
7147 to topn_values.
7148 (gimple_gen_one_value_profiler): Remove.
7149 (gimple_gen_topn_values_profiler): New function.
7150 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7151 names instead of SINGLE_VALUE.
7152 (stream_out_histogram_value): Likewise.
7153 (stream_in_histogram_value): Likewise.
7154 (get_most_common_single_value): Likewise.
7155 (gimple_divmod_fixed_value_transform): Likewise.
7156 (gimple_stringops_transform): Likewise.
7157 (gimple_divmod_values_to_profile): Likewise.
7158 (gimple_stringops_values_to_profile): Likewise.
7159 (gimple_find_values_to_profile): Likewise.
7160 * value-prof.h (enum hist_type): Rename to TOPN.
7161 (gimple_gen_one_value_profiler): Remove.
7162 (gimple_gen_topn_values_profiler): New.
7163
7164 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7165
7166 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7167 if it has the DW_AT_data_member_location attribute.
7168
7169 2019-07-03 Richard Biener <rguenther@suse.de>
7170
7171 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7172 dumping.
7173
7174 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7175
7176 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7177 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7178 (tlsdesc_small_sve_<mode>): Likewise.
7179
7180 2019-07-03 Martin Liska <mliska@suse.cz>
7181
7182 * Makefile.in: Define ZSTD_LIB.
7183 * common.opt: Adjust compression level
7184 to support also zstd levels.
7185 * config.in: Regenerate.
7186 * configure: Likewise.
7187 * configure.ac: Add --with-zstd and --with-zstd-include options
7188 and detect ZSTD.
7189 * doc/install.texi: Mention zstd dependency.
7190 * gcc.c: Print supported LTO compression algorithms.
7191 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7192 (lto_compression_zstd): Likewise.
7193 (lto_uncompression_zstd): Likewise.
7194 (lto_end_compression): Dispatch in between zlib and zstd.
7195 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7196 (lto_uncompression_zlib): Make it static.
7197 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7198 * lto-section-in.c (lto_get_section_data): Pass info
7199 about used compression.
7200 * lto-streamer-out.c: By default use zstd when possible.
7201 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7202 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7203
7204 2019-07-03 Martin Liska <mliska@suse.cz>
7205
7206 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7207 * lto-section-out.c (lto_destroy_simple_output_block): Never
7208 compress LTO_section_lto section.
7209 * lto-streamer-out.c (produce_asm): Do not set major_version
7210 and minor_version.
7211 (lto_output_toplevel_asms): Likewise.
7212 (produce_lto_section): New function.
7213 (lto_output): Call produce_lto_section.
7214 (lto_write_mode_table): Do not set major_version and
7215 minor_version.
7216 (produce_asm_for_decls): Likewise.
7217 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7218 type.
7219 (struct lto_header): Remove.
7220 (struct lto_section): New struct.
7221 (struct lto_simple_header): Do not inherit from lto_header.
7222 (struct lto_file_decl_data): Add lto_section_header field.
7223
7224 2019-07-03 Martin Liska <mliska@suse.cz>
7225
7226 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7227 dead assignemts.
7228 * reg-stack.c (check_asm_stack_operands): Likewise.
7229 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7230 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7231 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7232 force_expand_binop.
7233
7234 2019-07-03 Martin Liska <mliska@suse.cz>
7235
7236 PR tree-optimization/90892
7237 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7238 in string constants.
7239
7240 2019-07-03 Martin Liska <mliska@suse.cz>
7241
7242 PR middle-end/90899
7243 * multiple_target.c (create_dispatcher_calls): Add to comdat
7244 group only if set for ifunc.
7245
7246 2019-07-03 Martin Liska <mliska@suse.cz>
7247
7248 PR target/88056
7249 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7250 Define local_object_name in outer scope in order to handle
7251 use-after-scope issue.
7252
7253 2019-07-03 Martin Liska <mliska@suse.cz>
7254
7255 * common.opt: Add fprofile-note.
7256 * coverage.c (coverage_init): Append the option
7257 to bbg_file_name.
7258 * doc/invoke.texi: Document -fprofile-note.
7259
7260 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7261
7262 PR tree-optimization/91033
7263 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7264 vect_analyze_data_refs): Add bool * arguments.
7265 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7266 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7267 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7268 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7269 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7270 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7271 vect_analyze_data_refs caller.
7272
7273 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7274 clause.
7275 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7276 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7277 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7278 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7279 OMP_CLAUSE__SCANTEMP_ entry.
7280 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7281 * tree-pretty-print.c (dump_omp_clause): Likewise.
7282 * tree-nested.c (convert_nonlocal_omp_clauses,
7283 convert_local_omp_clauses): Likewise.
7284 * omp-general.h (struct omp_for_data): Add have_scantemp and
7285 have_nonctrl_scantemp members.
7286 * omp-general.c (omp_extract_for_data): Initialize them.
7287 * omp-low.c (struct omp_context): Add scan_exclusive member.
7288 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7289 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7290 ctx->scan_exclusive.
7291 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7292 of !ctx->scan_inclusive.
7293 (lower_rec_input_clauses): Simplify gimplification of dtors using
7294 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7295 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7296 loops. Don't add barrier for reduction_omp_orig_ref if
7297 ctx->scan_??xclusive.
7298 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7299 (lower_omp_scan): Use ctx->scan_exclusive instead
7300 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7301 reductions. Use new_vard != new_var instead of repeated
7302 omp_is_reference calls.
7303 (omp_find_scan, lower_omp_for_scan): New functions.
7304 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7305 inscan reductions.
7306 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7307 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7308 and fd->have_scantemp.
7309
7310 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7311 on worksharing loop propagate it as shared clause to containing
7312 combined parallel.
7313
7314 * omp-expand.c (expand_omp_for_static_nochunk,
7315 expand_omp_for_static_chunk): For nowait worksharing loop with
7316 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7317 at the end.
7318
7319 2019-07-02 qing zhao <qing.zhao@oracle.com>
7320
7321 PR preprocessor/90581
7322 * doc/cppopts.texi: Add document for -fmax-include-depth.
7323 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7324
7325 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7326
7327 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7328 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7329 (mmx_packssdw): Ditto.
7330 (mmx_punpckhbw): Ditto.
7331 (mmx_punpcklbw): Ditto.
7332 (mmx_punpckhwd): Ditto.
7333 (mmx_punpcklwd): Ditto.
7334 (mmx_punpckhdq): Ditto.
7335 (mmx_punpckldq): Ditto.
7336 (*vec_dupv4hi): Ditto.
7337 (*vec_dupv2si): Ditto.
7338 (mmx_pmovmskb): Ditto.
7339 * config/i386/sse.md (sse_cvtpi2ps): Use
7340 TARGET_SSE2 && SSE_REG_P in split condition.
7341 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7342 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7343 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7344 (ssse3_pshufbv8qi3): Ditto.
7345 (ssse3_palignrdi): Ditto.
7346
7347 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7348
7349 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7350 with inlined save and restore.
7351
7352 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7353
7354 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7355 to be inserted on single successor edge of the entry block. Then call
7356 commit_edge_insertions instead of inserting the instructions manually.
7357 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7358 RTL expansion and rebuild jump labels chain.
7359
7360 2019-07-02 Richard Biener <rguenther@suse.de>
7361
7362 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7363 TI_CHREC_KNOWN.
7364 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7365 Define here.
7366 * tree.c (build_common_tree_nodes): Initialize them.
7367 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7368 Make declarations comments.
7369 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7370 chrec_known): Remove definitions.
7371 (initialize_scalar_evolutions_analyzer): Remove.
7372 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7373 * tree-streamer.c (preload_common_nodes): Do not preload
7374 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7375
7376 2019-07-02 Jan Hubicka <jh@suse.cz>
7377
7378 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7379 sanity check.
7380
7381 2019-07-02 Jan Hubicka <jh@suse.cz>
7382
7383 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7384 to ..
7385 (nonoverlapping_component_refs_since_match_p): ... this one;
7386 handle also non-decl bases; return -1 if search gave up.
7387 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7388 nonoverlapping_component_refs_of_decl_p_no_alias to
7389 nonoverlapping_component_refs_since_match_p_may_alias,
7390 nonoverlapping_component_refs_since_match_p_no_alias.
7391 (dump_alias_stats): Update dumping.
7392 (aliasing_matching_component_refs_p): Break out from ...;
7393 dispatch to nonoverlapping_component_refs_for_decl_p
7394 and nonoverlapping_component_refs_since_match_p.
7395 (aliasing_component_refs_p): ... here; call
7396 nonoverlapping_component_refs_p in scenarios where we can not
7397 precisely determine base match.
7398 (decl_refs_may_alias_p): Use
7399 nonoverlapping_component_refs_since_match_p.
7400 (indirect_ref_may_alias_decl_p): Do not call
7401 nonoverlapping_component_refs_p.
7402 (indirect_refs_may_alias_p): Likewise.
7403
7404 2019-07-02 Jan Hubicka <jh@suse.cz>
7405
7406 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7407 to clobber of return value.
7408
7409 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7410
7411 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7412 for is_neon_type instructions that have not already been categorized.
7413
7414 2019-07-02 Richard Biener <rguenther@suse.de>
7415
7416 PR tree-optimization/58483
7417 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7418 for MEM_REF base hashing.
7419 (equal_mem_array_ref_p): Likewise for base comparison.
7420
7421 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7422
7423 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7424 parameterized name.
7425 (signbit<mode>2): Use that name. Simplify.
7426
7427 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7428
7429 PR middle-end/66726
7430 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7431 Tune heuristic from PR71016 to allow MIN / MAX.
7432
7433 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7434
7435 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7436 parameterized name.
7437 (abs<mode>2): Use that name. Simplify.
7438
7439 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7440
7441 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7442 parameterized name.
7443 (neg<mode>2): Use that name. Simplify.
7444
7445 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7446
7447 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
7448 name.
7449 (abs<mode>2): Use that name. Simplify.
7450
7451 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7452
7453 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
7454 name.
7455 (neg<mode>2): Use that name. Simplify.
7456
7457 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
7458
7459 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
7460 ("enabled" attribute): Handle sse_noavx isa attribute.
7461 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
7462 Use TARGET_SSE && SSE_REGNO_P in split condition.
7463 (*vec_dupv2sf): Ditto.
7464
7465 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7466
7467 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
7468 name.
7469 (floatsi<mode>2): Use that name. Simplify.
7470
7471 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7472
7473 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
7474 parameterized name.
7475 (extenddf<mode>2_vsx): Make this a parameterized name.
7476 (extenddf<mode>2): Use those names. Simplify.
7477
7478 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7479
7480 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
7481 name.
7482 (eh_return): Use that name. Simplify.
7483
7484 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7485
7486 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
7487 (doloop_end): Use that name. Simplify.
7488
7489 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7490
7491 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
7492 parameterized name.
7493 (indirect_jump): Use that name. Simplify.
7494
7495 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7496
7497 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
7498 parameterized name.
7499 (abs<mode>2): Use that name. Simplify.
7500
7501 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7502
7503 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
7504 parameterized name.
7505 (fix_trunc<mode>si2): Use that name. Simplify.
7506
7507 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7508
7509 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
7510 (allocate_stack): Use that name. Simplify.
7511
7512 2019-07-01 Martin Sebor <msebor@redhat.com>
7513
7514 PR middle-end/90923
7515 * hash-map.h (hash_map::put): On insertion invoke element ctor.
7516 (hash_map::get_or_insert): Same. Reformat comment.
7517 * hash-set.h (hash_set::add): On insertion invoke element ctor.
7518 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7519 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7520 * hash-table.h (hash_table::operator=): Prevent copy assignment.
7521 (hash_table::hash_table (const hash_table&)): Use copy ctor
7522 instead of assignment to copy elements.
7523
7524 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
7525 John David Anglin <danglin@gcc.gnu.org>
7526
7527 PR target/90963
7528 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
7529 using saved frame pointer.
7530
7531 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
7532
7533 PR middle-end/64242
7534 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
7535 Add frame clobber and schedule blockage.
7536
7537 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
7538
7539 * doc/invoke.texi (Link Options): Further editorial changes to
7540 -flinker-output docs.
7541
7542 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7543
7544 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
7545 Load both operands of a PLUS into registers separately.
7546
7547 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
7548
7549 * config/s390/vector.md: Fix shift count operand printing.
7550
7551 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7552
7553 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
7554
7555 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7556
7557 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
7558 Use recog_data to test for an output operand.
7559
7560 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7561
7562 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
7563 exclude any others that are disparaged or that are bound to need
7564 a reload or spill.
7565 (ira_get_dup_out_num): Expand comment.
7566
7567 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7568
7569 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
7570 constraint string for each operand/alternative combo. Only handle
7571 '%' at the start of constraint strings, and look for it outside
7572 the main loop.
7573
7574 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7575
7576 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
7577 alternative_mask instead of HARD_REG_SET to represent a
7578 bitmask of alternatives.
7579 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7580 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
7581
7582 2019-07-01 Martin Liska <mliska@suse.cz>
7583
7584 * edit-context.c (test_applying_fixits_unreadable_file): Do not
7585 use () for a constructor call.
7586 (test_applying_fixits_line_out_of_range): Likewise.
7587 * ggc-page.c (alloc_page): Use (void *) for %p printf format
7588 argument.
7589 (free_page): Likewise.
7590
7591 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
7592
7593 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
7594 parameter names to match usage (no functional change).
7595 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
7596
7597 2019-07-01 Richard Biener <rguenther@suse.de>
7598
7599 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
7600 pass parameter.
7601 (pass_fre::execute): Honor it.
7602 * passes.def: Adjust pass_fre invocations to allow iterating,
7603 add non-iterating pass_fre before late threading/dom.
7604
7605 2019-07-01 Richard Biener <rguenther@suse.de>
7606
7607 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
7608 TARGET_MEM_REF handling to also handle address-taken ones.
7609
7610 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
7611
7612 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7613 hardware attributes): Document avx512vp2intersect.
7614
7615 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7616
7617 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
7618 (abs<mode>2): New expander.
7619 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
7620 Use CODE_FOR_ssse3_absv8qi2.
7621 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
7622 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
7623
7624 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7625
7626 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
7627 to sse, sse_noavx and avx. Update all uses.
7628
7629 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7630
7631 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
7632 (*mmx_<plusminus_insn><mode>3): Ditto.
7633 (*mmx_mulv4hi3"): Ditto.
7634 (*mmx_smulv4hi3_highpart): Ditto.
7635 (*mmx_umulv4hi3_highpart): Ditto.
7636 (*mmx_pmaddwd): Ditto.
7637 (*sse2_umulv1siv1di3): Ditto.
7638 (*mmx_<code>v4hi3): Ditto.
7639 (*mmx_<code>v8qi3): Ditto.
7640 (mmx_ashr<mode>3): Ditto.
7641 ("mmx_<shift_insn><mode>3): Ditto.
7642 (*mmx_eq<mode>3): Ditto.
7643 (mmx_gt<mode>3): Ditto.
7644 (mmx_andnot<mode>3): Ditto.
7645 (*mmx_<code><mode>3): Ditto.
7646 (*mmx_pinsrw): Ditto.
7647 (*mmx_pextrw): Ditto.
7648 (mmx_pshufw_1): Ditto.
7649 (*mmx_uavgv8qi3): Ditto.
7650 (*mmx_uavgv4hi3): Ditto.
7651 ("mmx_psadbw): Ditto.
7652 * config/i386/sse.md (sse_cvtps2pi): Ditto.
7653 (sse_cvttps2pi): Ditto.
7654 (ssse3_pmaddubsw): Ditto.
7655 (*ssse3_pmulhrswv4hi3): Ditto.
7656 (ssse3_psign<mode>3): Ditto.
7657
7658 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
7659
7660 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
7661 adjustment for bit-fields to all aggregate types.
7662
7663 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
7664
7665 * config/rs6000/predicates.md (pcrel_address): Use
7666 SYMBOL_REF_LOCAL_P to determine if a label is local.
7667 (pcrel_external_address): New predicate.
7668 (non_prefixed_mem_operand): Delete, predicate not used.
7669 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
7670 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
7671 addressing.
7672 (SYMBOL_REF_PCREL_P): Likewise.
7673
7674 PR target/91009
7675 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
7676 alternative.
7677 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
7678 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
7679 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
7680
7681 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7682
7683 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
7684 override on extra_headers.
7685
7686 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7687
7688 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
7689 * config/darwin-driver.c (darwin_default_min_version): Remove newline
7690 from warning.
7691 (darwin_driver_init): Likewise.
7692
7693 2019-06-28 Jan Beulich <jbeulich@suse.com>
7694
7695 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7696 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
7697 Eliminate redundant alternative.
7698
7699 2019-06-28 Jan Beulich <jbeulich@suse.com>
7700
7701 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7702 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
7703 Use vector_operand.
7704
7705 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
7706
7707 * config/arc/arc.c (arc_rtx_costs): All short instructions are
7708 having a lower cost regardless of the speed option.
7709
7710 2019-06-28 Jan Beulich <jbeulich@suse.com>
7711
7712 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
7713 vector_operand plus, on both alternatives, "Bm" constraint.
7714
7715 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
7716
7717 * config/arm/arm.md: Remove redundant constraints from
7718 define_expand but leave reload_inm and reload_outm patterns
7719 untouched since they need special constraints to work.
7720 * config/arm/arm-fixed.md: Remove redundant constraints from
7721 define_expand.
7722 * config/arm/iwmmxt.md: Likewise.
7723 * config/arm/neon.md: Likewise.
7724 * config/arm/sync.md: Likewise.
7725 * config/arm/thumb1.md: Likewise.
7726 * config/arm/vec-common.md: Likewise.
7727
7728 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
7729
7730 * doc/install.texi: Document --disable-tm-clone-registry.
7731
7732 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7733
7734 PR c++/91024
7735 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
7736 statements.
7737
7738 PR tree-optimization/91010
7739 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
7740 return true. Otherwise, don't call operand_equal_p if offset1 or
7741 offset2 is NULL and just return false.
7742
7743 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7744
7745 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
7746 user-specified float mode choice for kernel mode code.
7747
7748 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7749
7750 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
7751 spec.
7752
7753 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7754
7755 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
7756 use longcall for 64b code.
7757
7758 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
7759
7760 * builtins.c (get_memory_rtx): Fix comment.
7761 * optabs.def (movmem_optab): Change to cpymem_optab.
7762 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
7763 (emit_block_move_hints): Change movmem to cpymem.
7764 * defaults.h: Change movmem to cpymem.
7765 * targhooks.c (get_move_ratio): Change movmem to cpymem.
7766 (default_use_by_pieces_infrastructure_p): Ditto.
7767 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
7768 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
7769 to cpymem.
7770 * config/aarch64/aarch64.h: Change movmem to cpymem.
7771 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
7772 * config/alpha/alpha.h: Change movmem to cpymem in comment.
7773 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
7774 movmem to cpymem.
7775 * config/arc/arc-protos.h: Change movmem to cpymem.
7776 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
7777 * config/arc/arc.h: Change movmem to cpymem in comment.
7778 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
7779 * config/arm/arm-protos.h: Change movmem to cpymem in names.
7780 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
7781 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
7782 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
7783 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
7784 * config/avr/avr-protos.h: Change movmem to cpymem.
7785 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
7786 avr_out_movmem): Change movmem to cpymem.
7787 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
7788 Change movmem to cpymem.
7789 * config/bfin/bfin-protos.h: Change movmem to cpymem.
7790 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
7791 Change movmem to cpymem.
7792 * config/bfin/bfin.h: Change movmem to cpymem in comment.
7793 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
7794 * config/c6x/c6x-protos.h: Change movmem to cpymem.
7795 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
7796 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
7797 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
7798 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
7799 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
7800 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
7801 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
7802 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
7803 expand_small_cpymem_or_setmem,
7804 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
7805 expand_set_or_cpymem_constant_prologue,
7806 ix86_expand_set_or_cpymem): Change movmem to cpymem.
7807 * config/i386/i386-protos.h: Change movmem to cpymem.
7808 * config/i386/i386.h: Change movmem to cpymem in comment.
7809 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
7810 (setmem<mode>): Change expansion function name.
7811 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
7812 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
7813 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
7814 * config/m32c/m32c-protos.h: Change movmem to cpymem.
7815 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
7816 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
7817 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
7818 to cpymem.
7819 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
7820 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
7821 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
7822 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
7823 Change movmem to cpymem.
7824 * config/mips/mips.h: Change movmem to cpymem.
7825 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
7826 * config/nds32/nds32-memory-manipulation.c
7827 (nds32_expand_movmemsi_loop_unknown_size,
7828 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
7829 nds32_expand_movmemsi_unroll,
7830 nds32_expand_movmemsi): Change movmem to cpymem.
7831 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
7832 * config/nds32/nds32-protos.h: Change movmem to cpymem.
7833 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
7834 (pa_adjust_insn_length): Change call to compute_movmem_length.
7835 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
7836 movmemdi, movmemdi_prereload,
7837 movmemdi_postreload): Change movmem to cpymem.
7838 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
7839 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
7840 * config/riscv/riscv.c: Change movmem to cpymem in comment.
7841 * config/riscv/riscv.h: Change movmem to cpymem.
7842 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
7843 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
7844 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
7845 movmem to cpymem.
7846 * config/s390/s390-protos.h: Change movmem to cpymem.
7847 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
7848 s390_expand_insv): Change movmem to cpymem.
7849 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
7850 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
7851 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
7852 * config/sparc/sparc.h: Change movmem to cpymem in comment.
7853 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
7854 for nonexistent function.
7855 * config/vax/vax.h: Change movmem to cpymem in comment.
7856 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
7857 * config/visium/visium.h: Change movmem to cpymem in comment.
7858 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
7859 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
7860 * doc/md.texi: Change movmem to cpymem and update description to match.
7861 * doc/rtl.texi: Change movmem to cpymem.
7862 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
7863 * doc/tm.texi: Regenerate.
7864
7865 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
7866
7867 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
7868 -fvariable-expansion-in-unroller by default.
7869 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
7870 default for Power.
7871
7872 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
7873
7874 Revert
7875 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7876 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7877
7878 * config.gcc(rs6000-*-*): Define target_gtfiles.
7879
7880 2019-06-27 Jan Hubicka <jh@suse.cz>
7881
7882 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
7883 (add_type_duplicate): When odr hash is not allocated, to nothing.
7884 (odr_based_tbaa_p): New function.
7885 (set_type_canonical_for_odr_type): New function.
7886 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
7887 set_type_canonical_for_odr_type): New.
7888 * tree.c (gimple_canonical_types_compatible_p): ODR types with
7889 ODR based TBAA are not equivalent to non-ODR types.
7890
7891 2019-06-27 Martin Liska <mliska@suse.cz>
7892
7893 PR tree-optimization/90974
7894 PR rtl-optimization/90975
7895 PR rtl-optimization/90976
7896 PR target/91016
7897 PR tree-optimization/91017
7898 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
7899 unused tmp.
7900 * lra.c (lra_set_insn_recog_data): Remove a leftover from
7901 initial commit of IRA.
7902 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
7903 of op0 and op1.
7904 * tree-vect-loop.c (vect_create_epilog_for_reduction):
7905 Remove unused mode1.
7906 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
7907 to new_stmt_info.
7908
7909 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7910
7911 PR target/90991
7912 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
7913 instead of register_operand for operands[1], add m to its constraints
7914 if operands[2] uses "C" constraint. Ensure in condition that if
7915 operands[2] is not 0, then operands[1] is not a MEM. For last two
7916 alternatives, use unaligned loads instead of aligned if operands[1] is
7917 misaligned_operand.
7918
7919 2019-06-27 Martin Liska <mliska@suse.cz>
7920
7921 * asan.c (asan_emit_allocas_unpoison): Remove obviously
7922 dead assignments.
7923 * bt-load.c (move_btr_def): Likewise.
7924 * builtins.c (expand_builtin_apply_args_1): Likewise.
7925 (expand_builtin_apply): Likewise.
7926 * cfgexpand.c (expand_asm_stmt): Likewise.
7927 (construct_init_block): Likewise.
7928 * cfghooks.c (verify_flow_info): Likewise.
7929 * cfgloopmanip.c (remove_path): Likewise.
7930 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
7931 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
7932 * combine.c (simplify_if_then_else): Likewise.
7933 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7934 (choose_basereg): Likewise.
7935 (ix86_expand_prologue): Likewise.
7936 (ix86_preferred_output_reload_class): Likewise.
7937 * cselib.c (cselib_record_sets): Likewise.
7938 * df-scan.c (df_scan_alloc): Likewise.
7939 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
7940 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
7941 * emit-rtl.c (try_split): Likewise.
7942 * graphite-scop-detection.c (assign_parameter_index_in_region):
7943 Likewise.
7944 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
7945 * ira-color.c (setup_profitable_hard_regs): Likewise.
7946 * ira.c (rtx_moveable_p): Likewise.
7947 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7948 * read-rtl.c (read_subst_mapping): Likewise.
7949 * regrename.c (scan_rtx): Likewise.
7950 * reorg.c (fill_slots_from_thread): Likewise.
7951 * tree-inline.c (tree_function_versioning): Likewise.
7952 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
7953 * tree-ssa-sink.c (statement_sink_location): Likewise.
7954 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
7955 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
7956 (vect_create_epilog_for_reduction): Likewise.
7957 * tree.c (build_nonstandard_integer_type): Likewise.
7958
7959 2019-06-27 Richard Biener <rguenther@suse.de>
7960
7961 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
7962
7963 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
7964
7965 PR tree-optimization/89772
7966 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
7967 out-of-bound accesses checking.
7968
7969 2019-06-27 Martin Liska <mliska@suse.cz>
7970
7971 PR tree-optimization/91014
7972 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
7973 when LHS is NULL_TREE.
7974
7975 2019-06-27 Martin Liska <mliska@suse.cz>
7976
7977 * symbol-summary.h (traverse): Pass
7978 argument a to the call of callback.
7979 (gt_ggc_mx): Mark arguments as unused.
7980 (gt_pch_nx): Likewise.
7981
7982 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
7983
7984 PR target/62147
7985 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
7986 finiteness.
7987
7988 2019-06-26 Jeff Law <law@redhat.com>
7989
7990 PR tree-optimization/90883
7991 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
7992 (delete_dead_or_redundant_assignment): Likewise.
7993
7994 PR tree-optimization/90883
7995 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
7996 * tree-ssa-dse.c: Update various comments to distinguish between
7997 dead and redundant stores.
7998 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
7999 (dse_optimize_redundant_stores): New function.
8000 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
8001 Distinguish between dead and redundant calls in dump output. All
8002 callers updated.
8003 (delete_dead_or_redundant_assignment): Similarly for assignments.
8004 (dse_optimize_stmt): Handle _CHK variants. For statements which
8005 store 0 into multiple memory locations, try to prove a subsequent
8006 store is redundant.
8007
8008 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
8009
8010 PR target/89021
8011 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
8012 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
8013
8014 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8015
8016 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
8017 (branch_islands): New extern.
8018 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
8019 * config/rs6000/rs6000.c: .. here.
8020
8021 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8022
8023 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
8024 (powerpc*-*-*) ... to here.
8025
8026 2019-06-26 Jeff Law <law@redhat.com>
8027
8028 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
8029 memcpy, memmove and memset builtins.
8030 (maybe_trim_memstar_call): Likewise.
8031
8032 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8033
8034 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
8035
8036 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8037
8038 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8039
8040 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8041
8042 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
8043 declaration.
8044 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
8045 "static".
8046 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
8047 declaration.
8048
8049 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8050
8051 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
8052
8053 2019-06-26 Richard Biener <rguenther@suse.de>
8054
8055 PR ipa/90982
8056 * tree-inline.c (remap_ssa_name): Copy SSA range info.
8057
8058 2019-06-26 Richard Biener <rguenther@suse.de>
8059
8060 * lto-streamer.h (lto_bitmap_alloc): Remove.
8061 (lto_bitmap_free): Likewise.
8062 * lto-streamer.c (lto_bitmap_alloc): Remove.
8063 (lto_bitmap_free): Likewise.
8064 (lto_obstack): Likewise.
8065 (lto_obstack_initialized): Likewise.
8066 * lto-streamer-out.c (lto_output): Use own obstack for local
8067 bitmap, free it consistently.
8068
8069 2019-06-26 Jakub Jelinek <jakub@redhat.com>
8070
8071 PR target/90991
8072 * config/i386/sse.md
8073 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
8074 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
8075 insns if operands[2] is misaligned_operand.
8076
8077 2019-06-26 Li Jia He <helijia@linux.ibm.com>
8078
8079 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
8080 TARGET_POWERPC64.
8081 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
8082 to GPR.
8083
8084 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8085
8086 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
8087
8088 2019-06-26 Martin Liska <mliska@suse.cz>
8089
8090 PR tree-optimization/90973
8091 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
8092 epilogue_cost_vec instead of prologue_cost_vec for
8093 a epilogue cost.
8094
8095 2019-06-26 Martin Liska <mliska@suse.cz>
8096
8097 * bb-reorder.c (connect_better_edge_p): Add missing else
8098 statement in the middle of if-else statements.
8099
8100 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
8101 H.J. Lu <hongjiu.lu@intel.com>
8102 Olga Makhotina <olga.makhotina@intel.com>
8103
8104 * common/config/i386/i386-common.c
8105 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
8106 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
8107 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
8108 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
8109 (ix86_handle_option): Handle -mavx512vp2intersect.
8110 * config/i386/avx512vp2intersectintrin.h: New.
8111 * config/i386/avx512vp2intersectvlintrin.h: New.
8112 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
8113 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8114 AVX512VP2INTERSECT.
8115 * config/i386/i386-builtin-types.def: Add new types.
8116 * config/i386/i386-builtin.def: Add new builtins.
8117 * config/i386/i386-builtins.c: (enum processor_features): Add
8118 F_AVX512VP2INTERSECT.
8119 (static const _isa_names_table isa_names_table): Ditto.
8120 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8121 __AVX512VP2INTERSECT__.
8122 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8123 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8124 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8125 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8126 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8127 * config/i386/i386-options.c (ix86_target_string): Add
8128 -mavx512vp2intersect.
8129 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8130 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8131 P2HImode and P2QImode.
8132 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8133 number for P2QImode and P2HImode.
8134 (ix86_regmode_natural_size): New function.
8135 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8136 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8137 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8138 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8139 * config/i386/i386.opt: Add -mavx512vp2intersect.
8140 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8141 avx512vp2intersectvlintrin.h.
8142 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8143 (define_mode_iterator VI48_AVX512VP2VL): New.
8144 (avx512vp2intersect_2intersect<mode>,
8145 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8146 * config.gcc: Add avx512vp2intersectvlintrin.h and
8147 avx512vp2intersectintrin.h to extra_headers.
8148 * doc/invoke.texi: Document -mavx512vp2intersect.
8149
8150 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8151
8152 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8153
8154 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8155
8156 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8157 savres_routine_syms, savres_routine_name, morestack_ref,
8158 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8159 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8160 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8161 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8162 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8163 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8164 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8165 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8166 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8167 get_stack_clash_protection_probe_interval,
8168 get_stack_clash_protection_guard_size,
8169 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8170 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8171 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8172 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8173 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8174 gen_frame_mem_offset, rs6000_savres_routine_name,
8175 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8176 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8177 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8178 rs6000_global_entry_point_prologue_needed_p,
8179 rs6000_get_separate_components, rs6000_components_for_bb,
8180 rs6000_disqualify_components, rs6000_emit_prologue_components,
8181 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8182 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8183 rs6000_output_savres_externs, rs6000_output_function_prologue,
8184 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8185 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8186 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8187 rs6000_output_function_epilogue, gen_add3_const,
8188 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8189 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8190 to rs6000-logue.c.
8191 (machine_function): Moved to rs6000.h.
8192 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8193 rs6000-internal.h.
8194 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
8195 savres_routine_syms, savres_routine_name, morestack_ref,
8196 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8197 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8198 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8199 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8200 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8201 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8202 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8203 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8204 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8205 get_stack_clash_protection_probe_interval,
8206 get_stack_clash_protection_guard_size,
8207 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8208 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8209 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8210 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8211 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8212 gen_frame_mem_offset, rs6000_savres_routine_name,
8213 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8214 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8215 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8216 rs6000_global_entry_point_prologue_needed_p,
8217 rs6000_get_separate_components, rs6000_components_for_bb,
8218 rs6000_disqualify_components, rs6000_emit_prologue_components,
8219 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8220 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8221 rs6000_output_savres_externs, rs6000_output_function_prologue,
8222 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8223 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8224 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8225 rs6000_output_function_epilogue, gen_add3_const,
8226 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8227 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8228 to here from rs6000.c.
8229 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8230 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8231 quad_address_offset_p) Moved to here from rs6000.c.
8232 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8233 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8234 collector.
8235
8236 2019-06-25 Martin Liska <mliska@suse.cz>
8237
8238 * hash-table.c (hashtab_chk_error): Move here from ...
8239 * hash-table.h (hashtab_chk_error): ... here.
8240
8241 2019-06-25 Martin Liska <mliska@suse.cz>
8242
8243 PR tree-optimization/90978
8244 * df-scan.c (df_update_entry_block_defs): Remove dead else
8245 branch.
8246 (df_update_exit_block_uses): Likewise.
8247
8248 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8249 Andrew Stubbs <ams@codesourcery.com>
8250
8251 * config.gcc (thread_file): Set to gcn for AMD GCN.
8252 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8253 (TARGET_EMUTLS_VAR_INIT): New hook.
8254
8255 2019-06-25 Martin Jambor <mjambor@suse.cz>
8256
8257 PR ipa/90939
8258 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8259
8260 2019-06-25 Richard Biener <rguenther@suse.de>
8261
8262 PR tree-optimization/90930
8263 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8264 into parallel form in the last pass instance.
8265
8266 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8267
8268 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8269 (arc_legitimize_pic_address): Simplify and cleanup the function.
8270 (SYMBOLIC_CONST): Remove.
8271 (prepare_pic_move): Likewise.
8272 (prepare_move_operands): Handle complex mov cases here.
8273 (arc_legitimize_address_0): Remove call to
8274 arc_legitimize_pic_address.
8275 (arc_legitimize_address): Remove call to
8276 arc_legitimize_tls_address.
8277 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8278 (movhi_insn): Likewise.
8279
8280 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8281
8282 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8283 PTRDIFF_TYPE.
8284 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8285 format of "__intN" types for UINTMAX_TYPE.
8286 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8287 format of "__intN" types for SIZETYPE.
8288 * tree.c (build_common_tree_nodes): Accept "__intN__"
8289 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8290 * doc/invoke.texi: Document that __intN__ disables pedantic
8291 warnings.
8292
8293 2019-06-25 Jan Hubicka <jh@suse.cz>
8294
8295 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8296 base2_alias_set is non-zero before doing TBAA based disambiguation.
8297
8298 2019-06-25 Martin Liska <mliska@suse.cz>
8299
8300 PR tree-optimization/90973
8301 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8302 of prologue and epilogue.
8303
8304 2019-06-24 Jan Hubicka <jh@suse.cz>
8305
8306 * ipa-utils.h (type_with_linkage_p): Verify that type is
8307 CXX_ODR_P.
8308 (odr_type_p): Remove extra return.
8309 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8310 hash STRING_FLAG only for arrays and integers.
8311 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8312 Update analogously.
8313 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8314 Likewise.
8315 * print-tree.c (print_node): Print cxx-odr-p
8316 and string-flag.
8317 * tree.c (need_assembler_name_p): Also check that type
8318 is CXX_ODR_TYPE_P
8319 (verify_type_variant): Update verification of SRING_FLAG;
8320 also check CXX_ODR_P.
8321 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8322 (TYPE_STRING_FLAG): Use it.
8323 (TYPE_CXX_ODR_P): New macro.
8324 * dwarf2out.c (gen_array_type_die): First check that type
8325 is an array and then test string flag.
8326
8327 2019-06-24 Richard Biener <rguenther@suse.de>
8328
8329 PR tree-optimization/90972
8330 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8331 in common code, dealing with STRING_CST properly.
8332
8333 2019-06-24 Richard Biener <rguenther@suse.de>
8334
8335 PR tree-optimization/90930
8336 PR tree-optimization/90316
8337 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8338 decrement of limit.
8339
8340 2019-06-24 Martin Sebor <msebor@redhat.com>
8341
8342 * tree-pretty-print.h: Remove unnecessary punctuation characters
8343 from a diagnostic.
8344 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8345
8346 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8347
8348 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8349 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8350 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8351
8352 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8353
8354 * config/rs6000/darwin.h: Handle GCC target pragma.
8355
8356 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8357
8358 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8359
8360 2019-06-22 Jeff Law <law@redhat.com>
8361
8362 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8363
8364 2019-06-22 Jan Hubicka <jh@suse.cz>
8365
8366 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8367 give up on bitfields; continue searching for different refs
8368 appearing later.
8369
8370 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8371
8372 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8373 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8374 containing the offset as possible simd lane access. Look through
8375 widening conversion. Move the
8376 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8377
8378 2019-06-21 Richard Biener <rguenther@suse.de>
8379
8380 PR tree-optimization/90930
8381 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8382 flag on new stmts to avoid re-processing them.
8383
8384 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8385
8386 PR c++/90875 - added -Wswitch-outside-range option
8387 * doc/invoke.texi (Wswitch-outside-range): Document.
8388
8389 2019-06-21 Jeff Law <law@redhat.com>
8390
8391 PR tree-optimization/90949
8392 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8393 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8394
8395 2019-06-21 Richard Biener <rguenther@suse.de>
8396
8397 PR debug/90914
8398 * dwarf2out.c (prune_unused_types_walk): Always consider
8399 function-local extern declarations as used.
8400
8401 2019-06-21 Richard Biener <rguenther@suse.de>
8402
8403 PR tree-optimization/90913
8404 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8405 the scalar variant of if-conversion versioning.
8406
8407 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8408
8409 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8410 create another "omp scan inscan exclusive" array if
8411 !ctx->scan_inclusive.
8412 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8413 (lower_omp_scan): Likewise.
8414 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8415 2-bit bitfield for simd_lane_access_p member.
8416 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8417 aux == (void *)-4 as simd lane access.
8418 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8419 comment with permutations to show the canonical permutation order.
8420 (vectorizable_scan_store): Handle exclusive scan.
8421 (vectorizable_store): Call vectorizable_scan_store even for
8422 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8423
8424 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8425 "omp simd array" arrays with one byte elements.
8426
8427 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8428
8429 * config/alpha/alpha.md (@unaligned_store<mode>):
8430 Rename from unaligned_store<mode>.
8431 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8432 * config/alpha/sync.md (@load_locked_<mode>): Rename
8433 from load_locked_<mode>.
8434 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8435 (@atomic_compare_and_swap<mode>_1): Rename
8436 from atomic_compare_and_swap<mode>_1.
8437 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8438 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8439 Use gen_reload_in_aligned and gen_unaligned_store.
8440 (emit_load_locked): Remove.
8441 (emit_store_conditional): Ditto.
8442 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8443 (alpha_split_compare_and_swap): Ditto.
8444 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8445 (alpha_split_compare_and_swap_12): Use gen_load_locked
8446 and gen_store_conditional.
8447 (alpha_split_atomic_exchange): Ditto.
8448 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
8449 (alpha_split_atomic_exchange_12): Use gen_load_locked
8450 and gen_store_conditional.
8451
8452 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
8453
8454 * config/aarch64/aarch64-errata.h: New file.
8455 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
8456 (CA53_ERR_843419_SPEC): Delete.
8457 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
8458 * config/aarch64/aarch64-linux.h: Likewise.
8459 * config/aarch64/aarch64-netbsd.h: Likewise.
8460 * config/aarch64/aarch64-freebsd.h: Likewise.
8461
8462 2019-06-20 Marek Polacek <polacek@redhat.com>
8463
8464 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
8465
8466 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
8467
8468 * config/rs6000/rs6000.md (isa attribute): Add support for
8469 for a future processor.
8470
8471 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
8472
8473 PR target/54855
8474 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
8475 standard scalar operation pattern for V2DF.
8476 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
8477 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
8478 (*ieee_<ieee_maxmin><mode>3): Likewise.
8479 (vec_setv2df_0): Likewise.
8480
8481 2019-06-20 Jan Hubicka <jh@suse.cz>
8482
8483 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
8484 parameter; it has no use in gimple memory model.
8485 (indirect_ref_may_alias_decl_p): Update.
8486
8487 2019-06-20 Martin Liska <mliska@suse.cz>
8488
8489 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
8490 to 10.
8491
8492 2019-06-20 Jakub Jelinek <jakub@redhat.com>
8493
8494 * tree-vect-stmts.c (enum scan_store_kind): New type.
8495 (scan_store_can_perm_p): Change last argument from int * to
8496 vec<enum scan_store_kind> *, record precisely which permutations
8497 need whole vector left shift or that plus VEC_COND_EXPR.
8498 (vectorizable_scan_store): Adjust caller, use whole vector left shift
8499 and additional VEC_COND_EXPR only for those iterations that need it.
8500
8501 2019-06-20 Alexandre Oliva <oliva@adacore.com>
8502
8503 * config.gcc: Fix ARM --with-fpu checking and error message.
8504
8505 2019-06-19 Marek Polacek <polacek@redhat.com>
8506
8507 PR c++/60364 - noreturn after first decl not diagnosed.
8508 * attribs.c (get_attribute_namespace): No longer static.
8509 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
8510 attributes.
8511 (attr_noreturn_exclusions): Make it extern.
8512 * attribs.h (get_attribute_namespace): Declare.
8513 * tree-inline.c (function_attribute_inlinable_p): Use
8514 get_attribute_name.
8515
8516 2019-06-19 Martin Sebor <msebor@redhat.com>
8517
8518 PR tree-optimization/90626
8519 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
8520
8521 PR tree-optimization/90626
8522 * tree-ssa-strlen.c (strxcmp_unequal): New function.
8523 (handle_builtin_string_cmp): Call it.
8524
8525 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8526
8527 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
8528 and DARWIN_NOPIE_SPEC.
8529 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
8530 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
8531 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
8532 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
8533 (DARWIN_EXPORT_DYNAMIC): Delete.
8534 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
8535 and pie options processing to darwin.h.
8536 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
8537
8538 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8539
8540 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
8541 in computing the number of options to be moved.
8542
8543 2019-06-19 Maya Rashish <coypu@sdf.org>
8544
8545 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
8546 (CLEAR_INSN_CACHE) Use it.
8547
8548 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
8549
8550 * config/i386/i386.md (cmpstrnsi): Remove dead code.
8551
8552 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
8553
8554 PR middle-end/84521
8555 * builtins.c (expand_builtin_setjmp_setup): Save
8556 hard_frame_pointer_rtx.
8557 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
8558 restore fp.
8559 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
8560 non-local goto.
8561 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
8562 elimination code.
8563 (remove_reg_equal_offset_note): Remove unused function.
8564 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
8565 code.
8566 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8567 (arc_builtin_setjmp_frame_value): Remove function.
8568 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8569 (avr_builtin_setjmp_frame_value): Remove function.
8570 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8571 (ix86_builtin_setjmp_frame_value): Remove function.
8572 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
8573 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8574 (sparc_builtin_setjmp_frame_value): Remove function.
8575 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8576 (vax_builtin_setjmp_frame_value): Remove function.
8577 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
8578 pointer if has_nonlocal_label.
8579
8580 2019-06-19 Jakub Jelinek <jakub@redhat.com>
8581
8582 * doc/md.texi: Document vec_shl_<mode> pattern.
8583 * optabs.def (vec_shl_optab): New optab.
8584 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
8585 argument, if == vec_shl_optab, check for left whole vector shift
8586 pattern rather than right shift.
8587 (expand_vec_perm_const): Add vec_shl_optab support.
8588 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
8589 in the comment.
8590 * tree-vect-generic.c (lower_vec_perm): Support permutations which
8591 can be handled by vec_shl_optab.
8592 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
8593 (check_scan_store): Use it.
8594 (vectorizable_scan_store): If target can't do normal permutations,
8595 try to use whole vector left shifts and if needed a VEC_COND_EXPR
8596 after it.
8597 * config/i386/sse.md (vec_shl_<mode>): New expander.
8598
8599 * omp-low.c (lower_rec_input_clauses): Handle references properly
8600 in inscan clauses.
8601 (lower_omp_scan): Likewise.
8602
8603 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8604
8605 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
8606 mem_mode is BLKmode.
8607
8608 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
8609
8610 PR target/90922
8611 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
8612 pointer adjustment for the case of no callee-saved registers and
8613 stack frame bigger than 128 bytes.
8614
8615 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8616
8617 PR middle-end/90862
8618 * omp-low.c (check_omp_nesting_restrictions): Handle
8619 GF_OMP_TARGET_KIND_OACC_DECLARE.
8620
8621 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
8622
8623 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
8624 (@add<mode>3_carry): Rename from add<mode>3_carry.
8625 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
8626 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
8627 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
8628 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
8629 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
8630 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
8631 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
8632 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
8633 (cmpstrnsi): Use gen_cmp_1.
8634 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
8635 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
8636 (@umonitor_<mode>): Rename from umonitor_<mode>.
8637 * config/i386/i386-expand.c (ix86_expand_copysign):
8638 Use gen_copysign3_const and gen_copysign3_var.
8639 (ix86_expand_xorsign): Use gen_xorsign3_1.
8640 (ix86_expand_branch): Use gen_sub3_carry_ccc,
8641 gen_sub3_carry_ccgz and gen_cmp1.
8642 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
8643 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
8644 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
8645 (ix86_split_lshr): Ditto.
8646 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
8647
8648 2019-06-18 Jason Merrill <jason@redhat.com>
8649
8650 * tree.c (build_constructor): Add MEM_STAT_DECL.
8651
8652 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8653
8654 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
8655 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
8656 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
8657 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
8658 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
8659 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
8660 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
8661 Use CC_NZC instead of CC.
8662 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
8663 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
8664 (aarch64_print_operand): Handle E_CC_NZCmode.
8665 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
8666 of gen_set_clobber_cc.
8667
8668 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8669
8670 * config/aarch64/aarch64-sve.md: Tabify file.
8671
8672 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8673
8674 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
8675 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
8676 * config/aarch64/aarch64-sve.md: Use it.
8677
8678 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8679
8680 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
8681 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
8682 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
8683 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
8684 (aarch64_expand_sve_vec_cmp_int): Use it.
8685 (aarch64_expand_sve_vec_cmp_float): Likewise.
8686 * config/aarch64/aarch64-sve.md: Likewise throughout.
8687
8688 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8689 Kugan Vivekanandarajah <kuganv@linaro.org>
8690
8691 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
8692 (*cond_<optab><mode>_z): Fold into...
8693 (*cond_<optab><mode>_any): ...here. Also handle cases in which
8694 operand 4 can be tied to operand 0 (either inherently or via RA).
8695
8696 2019-06-18 Richard Biener <rguenther@suse.de>
8697
8698 PR debug/90900
8699 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
8700 as if optimized away.
8701
8702 2019-06-18 Tom de Vries <tdevries@suse.de>
8703
8704 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
8705 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
8706 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
8707 Rename to ...
8708 (define_insn "@set_softstack_<mode>"): ... this.
8709 (define_insn "omp_simt_enter_<mode>"): Rename to ...
8710 (define_insn "@omp_simt_enter_<mode>"): ... this.
8711 (define_insn "omp_simt_exit_<mode>"): Rename to ...
8712 (define_insn "@omp_simt_exit_<mode>"): ... this.
8713
8714 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8715
8716 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
8717 vf parameter. Restore the previous iv step of nscalars_step,
8718 but give it iv_type rather than compare_type. Tweak code order
8719 to match the comments.
8720 (vect_set_loop_condition_masked): Update accordingly.
8721 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
8722 for iv_precision. Tweak comment formatting.
8723
8724 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8725
8726 * config/darwin.c: Strip trailing whitespace.
8727
8728 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8729
8730 * config/darwin.c (darwin_emit_unwind_label): New default to false.
8731 (darwin_override_options): Set darwin_emit_unwind_label as needed.
8732
8733 2019-06-18 Martin Jambor <mjambor@suse.cz>
8734
8735 PR ipa/90889
8736 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
8737 caller does not have flag_ipa_cp set.
8738
8739 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8740
8741 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
8742 from "*fold_left_plus_<mode>", updated operands order.
8743 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
8744 * internal-fn.c (mask_fold_left_direct): New define.
8745 (expand_mask_fold_left_optab_fn): Likewise.
8746 (direct_mask_fold_left_optab_supported_p): Likewise.
8747 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
8748 * optabs.def (mask_fold_left_plus_optab): New optab.
8749 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
8750 masked internal_fn for a reduction ifn.
8751 (vectorize_fold_left_reduction): Add support for masking reductions.
8752
8753 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
8754
8755 PR middle-end/80791
8756 * target.def (predict_doloop_p): New hook.
8757 * targhooks.h (default_predict_doloop_p): New declaration.
8758 * targhooks.c (default_predict_doloop_p): New function.
8759 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
8760 * doc/tm.texi: Regenerate.
8761 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
8762 (TARGET_PREDICT_DOLOOP_P): New macro.
8763 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
8764
8765 2019-06-17 Jakub Jelinek <jakub@redhat.com>
8766
8767 * omp-low.c (struct omp_context): Add scan_inclusive field.
8768 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
8769 if inclusive scan.
8770 (struct omplow_simd_context): Add lastlane member.
8771 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
8772 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
8773 1 or 2 argument.
8774 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
8775 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
8776 (lower_omp_scan): New function.
8777 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
8778 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
8779 check 3rd argument if present rather than 2nd.
8780 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
8781 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
8782 2-bit bitfield.
8783 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8784 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
8785 than 2nd.
8786 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
8787 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
8788 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
8789 init.
8790 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
8791 IFN_GOMP_SIMD_LANE argument.
8792 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
8793 encoded ->aux value.
8794 * tree-vect-stmts.c: Include attribs.h.
8795 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
8796 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
8797 functions.
8798 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
8799 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
8800
8801 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
8802
8803 PR target/62055
8804 * config/i386/i386.md (*nabstf2_1): New insn pattern.
8805 (*nabs<mode>2_1): Ditto.
8806 (nabs sse-reg splitter): New splitter.
8807 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
8808
8809 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8810
8811 PR bootstrap/90873.
8812 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8813 TMR index check.
8814
8815 2019-06-17 Tom de Vries <tdevries@suse.de>
8816
8817 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
8818 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
8819 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
8820 ...
8821 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
8822 match_operand 0.
8823 (define_insn "omp_simt_enter_insn"): Rename to ...
8824 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
8825 match_operand 0, 1 and 2, as well as the unspec_volatile result.
8826 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
8827 gen_omp_simt_enter_si.
8828 (define_expand "omp_simt_exit"): New.
8829 (define_insn "omp_simt_exit"): Rename to ...
8830 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
8831 match_operand 0.
8832
8833 2019-06-17 Matthew Green <mrg@eterna.com.au>
8834 Maya Rashish <coypu@sdf.org>
8835
8836 * config.gcc (aarch64*-*-netbsd*): New target.
8837 * config/aarch64/aarch64-netbsd.h: New file.
8838 * config/aarch64/t-aarch64-netbsd: Likewise.
8839
8840 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8841
8842 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
8843 the access path from base to first VIEW_CONVERT_EXPR or
8844 BIT_FIELD_REF.
8845
8846 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8847
8848 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
8849 access path on BIT_FIELD_REFs.
8850
8851 2019-06-17 Martin Liska <mliska@suse.cz>
8852
8853 PR ipa/90874
8854 * ipa-utils.h (odr_type_p): Remove dead code.
8855
8856 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8857
8858 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
8859 alternative Solaris 11.4 format.
8860 * configure: Regenerate.
8861
8862 2019-06-17 Tom de Vries <tdevries@suse.de>
8863
8864 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
8865 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
8866 match_operand 0.
8867 (define_insn "call_value_insn"): Rename to ...
8868 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
8869 match_operand 0.
8870 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
8871 DI.
8872
8873 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
8874
8875 PR middle-end/64242
8876 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
8877 frame clobbers and schedule block.
8878 (builtin_longjmp): Likewise.
8879
8880 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8881
8882 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
8883 describe how to perform MSPABI compliant 64-bit shift.
8884 * config/msp430/msp430.md (ashldi3): New define_expand.
8885 (ashrdi3): New define_expand.
8886 (lshrdi3): New define_expand.
8887
8888 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8889
8890 * doc/sourcebuild.texi: Document new effective target keyword
8891 longlong64.
8892
8893 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8894
8895 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
8896 indirect_refs_may_alias_p): Revert accidental commits.
8897
8898 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
8899 at the end of structures.
8900
8901 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8902
8903 * config/darwin.c (machopic_indirect_call_target): Use renamed
8904 darwin_picsymbol_stubs to decide on output.
8905 (darwin_override_options): Handle darwin_picsymbol_stubs.
8906 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
8907 (LD64_VERSION): Revise default.
8908 * config/darwin.opt: (mpic-symbol-stubs): New option.
8909 (darwin_picsymbol_stubs): New variable.
8910 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
8911 rename to TARGET_MACHO_PICSYM_STUBS.
8912 * config/i386/i386.c (output_pic_addr_const): Likewise.
8913 * config/i386/i386.h Likewise.
8914 * config/rs6000/darwin.h: Likewise.
8915 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
8916 darwin_picsymbol_stubs.
8917
8918 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8919
8920 * config/darwin.opt (prebind, noprebind, seglinkedit,
8921 noseglinkedit): Add RejectNegative.
8922
8923 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8924
8925 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
8926 in my previous patch.
8927
8928 2019-06-16 Tom de Vries <tdevries@suse.de>
8929
8930 PR tree-optimization/89376
8931 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
8932
8933 2019-06-15 Maya Rashish <coypu@sdf.org>
8934
8935 * doc/invoke.texi (Spec Files): Update location of the
8936 Fortran spec file.
8937
8938 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
8939
8940 * doc/extend.texi (Common Function Attributes): Clarify
8941 no_sanitize. Fix grammar.
8942
8943 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
8944
8945 * tree-ssa-alias.c (alias_stats): Add
8946 nonoverlapping_component_refs_p_may_alias,
8947 nonoverlapping_component_refs_p_no_alias,
8948 nonoverlapping_component_refs_of_decl_p_may_alias,
8949 nonoverlapping_component_refs_of_decl_p_no_alias.
8950 (dump_alias_stats): Dump them.
8951 (nonoverlapping_component_refs_of_decl_p): Add stats.
8952 (nonoverlapping_component_refs_p): Add stats; do not stop on first
8953 ARRAY_REF.
8954
8955 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
8956
8957 * config/i386/i386.md (and<mode>3): Generate zero-extends for
8958 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
8959 only.
8960 (*anddi3_doubleword): Split before reload. Merge with
8961 anddi->zext pre-reload splitter.
8962 (*andndi3_doubleword): Split before reload.
8963 (*<code>di3_doubleword): Ditto.
8964 (*one_cmpldi2_doubleword): Ditto.
8965
8966 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8967
8968 PR middle-end/90779
8969 * gimplify.c: Include omp-offload.h and context.h.
8970 (gimplify_bind_expr): Add "omp declare target" attributes
8971 to static block scope variables inside of target region or target
8972 functions.
8973
8974 2019-06-15 Tom de Vries <tdevries@suse.de>
8975
8976 PR tree-optimization/90009
8977 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
8978 Return NULL if bb contains IFN_UNIQUE.
8979
8980 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
8981
8982 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
8983 (un): New define_mode_attr.
8984 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
8985 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
8986 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
8987 merge into ...
8988 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
8989
8990 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
8991
8992 * config/darwin.opt: Add RejectNegative where needed, reorder
8993 and add minimal functional descriptions.
8994
8995 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8996
8997 PR rtl-optimization/90765
8998 * calls.c (update_stack_alignment_for_call): New function.
8999 (expand_call): Call update_stack_alignment_for_call when
9000 outgoing parameter is passed in the stack.
9001 (emit_library_call_value_1): Likewise.
9002 * function.c (locate_and_pad_parm): Don't update
9003 stack_alignment_needed and preferred_stack_boundary.
9004
9005 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9006
9007 PR target/90877
9008 * config/i386/i386-features.c
9009 (dimode_scalar_chain::compute_convert_gain): Replace
9010 mmxsse_to_integer with sse_to_integer.
9011 * config/i386/i386.c (ix86_register_move_cost): Verify that
9012 moves between MMX and non-MMX units require secondary memory.
9013 Correct costs of moves between SSE and integer units.
9014 * config/i386/i386.h (processor_costs): Rename cost of moving
9015 SSE register to integer to sse_to_integer. Rename cost of
9016
9017 2019-06-14 Matt Thomas <matt@3am-software.com>
9018 Matthew Green <mrg@eterna.com.au>
9019 Nick Hudson <skrll@netbsd.org>
9020 Maya Rashish <coypu@sdf.org>
9021 Richard Earnshaw <rearnsha@arm.com>
9022
9023 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
9024 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
9025 * config/arm/netbsd-eabi.h: New file.
9026 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
9027 redefining.
9028 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
9029 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
9030 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
9031 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
9032
9033 2019-06-14 Richard Biener <rguenther@suse.de>
9034
9035 * tree-loop-distribution.c (classify_partition): Return
9036 whether a reduction appeared in all partitions and do not
9037 stop builtin detection because of this.
9038 (distribute_loop): Sort a non-builtin partition last if
9039 there's a reduction in all partitions and make sure the
9040 partition prevailing as last is not a builtin.
9041
9042 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
9043
9044 PR ipa/90401
9045 * ipa-prop.c (add_to_agg_contents_list): New function.
9046 (clobber_by_agg_contents_list_p): Likewise.
9047 (extract_mem_content): Likewise.
9048 (get_place_in_agg_contents_list): Delete.
9049 (determine_known_aggregate_parts): Renamed from
9050 determine_locally_known_aggregate_parts. New parameter
9051 aa_walk_budget_p.
9052
9053 2019-06-13 Martin Sebor <msebor@redhat.com>
9054
9055 PR tree-optimization/90662
9056 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
9057 to the same type.
9058
9059 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9060
9061 PR bootstrap/90873
9062 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
9063 dbase is not TARGET_MEM_REF.
9064
9065 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9066
9067 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
9068 Update all uses.
9069 (and<mode>3): Use gen_extend_insn instead of indirect functions.
9070 Do not generate DImode extends for 32bit targets.
9071 (and->zext post-reload splitter): Use gen_extend_insn
9072 instead of indirect functions.
9073 (anddi->zext pre-reload splitter): New.
9074 (*zext<mode>_doubleword_and): Remove.
9075 (*zext<mode>_doubleword): Ditto.
9076 (*zextsi_doubleword): Dittto.
9077
9078 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9079
9080 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9081 Use gen_sub3_insn instead of indirect function.
9082 (ix86_expand_ashl_const): Use gen_add2_insn instead of
9083 indirect function.
9084 (ix86_adjust_counter): Ditto.
9085
9086 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
9087 Lijia He <helijia@linux.ibm.com>
9088
9089 PR tree-optimization/77820
9090 * tree-ssa-threadedge.c
9091 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
9092 function.
9093 (thread_across_edge): Add call to
9094 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
9095
9096 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
9097
9098 * config/darwin-driver.c (validate_macosx_version_min): New.
9099 (darwin_default_min_version): Cleanup and validate supplied version.
9100 (darwin_driver_init): Likewise and push cleaned version into opts.
9101
9102 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9103
9104 PR tree-optimization/90869
9105 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
9106 converts in MEM_REF referencing decl rather than view converts
9107 from decl type to MEM_REF type.
9108
9109 2019-06-13 Richard Biener <rguenther@suse.de>
9110
9111 PR tree-optimization/90856
9112 * tree-sra.c (build_ref_for_model): Only use
9113 build_reconstructed_reference when address-spaces are the same.
9114
9115 2019-06-13 Jakub Jelinek <jakub@redhat.com>
9116
9117 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
9118 wrap ei variable name in the declaration in ()s.
9119 (nvptx_single): Actually use mode_label variable. Formatting fix.
9120
9121 2019-06-13 Richard Biener <rguenther@suse.de>
9122
9123 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9124 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9125 also return the condition stmt.
9126 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9127 loop we can version and version that, reusing the loop version
9128 created by if-conversion instead of versioning again.
9129
9130 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9131
9132 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9133 may_contain_p.
9134 * tree-vrp (value_range_base::may_contain_p): Call into
9135 value_inside_range.
9136 (value_inside_range): Make private inside value_range_base class.
9137 Take min/max from *this.
9138 (range_includes_p): Remove.
9139 * tree-vrp.h (value_range_base): Add value_inside_range.
9140 (range_includes_p): Remove.
9141 (range_includes_zero_p): Call may_contain_p.
9142 * vr-values.c (compare_range_with_value): Same.
9143
9144 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9145
9146 * doc/extend.texi (ARC Function Attributes): Update info.
9147
9148 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9149
9150 PR tree-optimization/89713
9151 * doc/invoke.texi (-ffinite-loops): Document new option.
9152 * common.opt (-ffinite-loops): New option.
9153 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9154 IFN_GOACC_LOOP calls as necessary.
9155 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9156 is finite.
9157 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9158 IFN_GOACC_LOOP call is not used.
9159 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9160
9161 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9162
9163 PR target/88838
9164 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9165 compare_type is not with Pmode size, we will create an IV with
9166 Pmode size with truncated use (i.e. converted to the correct type).
9167 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9168 (vect_iv_limit_for_full_masking): New. Factored out of
9169 vect_set_loop_condition_masked.
9170 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9171 (vect_iv_limit_for_full_masking): Declare.
9172
9173 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9174
9175 PR target/88834
9176 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9177 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9178 (get_alias_ptr_type_for_ptr_address): Likewise.
9179 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9180 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9181 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9182 allow_reg_index_p.
9183
9184 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9185
9186 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9187
9188 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9189
9190 * common/config/pru/pru-common.c: New file.
9191 * config.gcc: Add PRU target.
9192 * config/pru/alu-zext.md: New file.
9193 * config/pru/constraints.md: New file.
9194 * config/pru/predicates.md: New file.
9195 * config/pru/pru-opts.h: New file.
9196 * config/pru/pru-passes.c: New file.
9197 * config/pru/pru-pragma.c: New file.
9198 * config/pru/pru-protos.h: New file.
9199 * config/pru/pru.c: New file.
9200 * config/pru/pru.h: New file.
9201 * config/pru/pru.md: New file.
9202 * config/pru/pru.opt: New file.
9203 * config/pru/t-pru: New file.
9204 * doc/extend.texi: Document PRU pragmas.
9205 * doc/invoke.texi: Document PRU-specific options.
9206 * doc/md.texi: Document PRU asm constraints.
9207
9208 2019-06-12 Martin Sebor <msebor@redhat.com>
9209
9210 PR middle-end/90676
9211 * tree-pretty-print.c (dump_mem_ref): New function. Include
9212 MEM_REF type in output when different size than operand.
9213 (dump_generic_node): Move code to dump_mem_ref and call it.
9214
9215 2019-06-12 Martin Sebor <msebor@redhat.com>
9216
9217 PR tree-optimization/90662
9218 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9219 to arrays.
9220
9221 2019-06-12 Tom de Vries <tdevries@suse.de>
9222
9223 PR tree-optimization/90009
9224 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9225
9226 2019-06-12 Martin Liska <mliska@suse.cz>
9227
9228 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9229 the created map.
9230 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9231 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9232 Do not sanitize created maps.
9233
9234 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9235
9236 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9237 value_range::singleton_p.
9238 * tree-vrp.c (value_range_constant_singleton): Remove.
9239 * tree-vrp.h (value_range_constant_singleton): Remove.
9240 * vr-values.c (vr_values::singleton): Use
9241 value_range::singleton_p.
9242
9243 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9244
9245 PR target/90811
9246 * cfgexpand.c (align_local_variable): Add really_expand argument,
9247 don't SET_DECL_ALIGN if it is false.
9248 (add_stack_var): Add really_expand argument, pass it through to
9249 align_local_variable.
9250 (expand_one_stack_var_1): Pass true as really_expand to
9251 align_local_variable.
9252 (expand_one_ssa_partition): Pass true as really_expand to
9253 add_stack_var.
9254 (expand_one_var): Pass really_expand through to add_stack_var.
9255
9256 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9257
9258 * config/arm/iterators.md (VABAL): New int iterator.
9259 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9260 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9261 UNSPEC_VABAL_U values.
9262
9263 2019-06-12 Martin Liska <mliska@suse.cz>
9264
9265 * value-prof.c (stream_out_histogram_value): Only first value
9266 can't be negative.
9267
9268 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9269
9270 PR c/90760
9271 * symtab.c (symtab_node::set_section): Allow being called on aliases
9272 as long as they aren't analyzed yet.
9273
9274 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9275
9276 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9277 to `mips_set_text_contents_type' to indicate whether a
9278 non-debug insn follows.
9279
9280 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9281
9282 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9283 enabling -mpcrel by default.
9284 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9285 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9286 that the test against -mcpu=future is done first. Then test if
9287 -mprefixed-addr is on for -mpcrel.
9288 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9289
9290 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9291
9292 PR target/90811
9293 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9294 instead of and.u%d.
9295
9296 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9297
9298 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9299
9300 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9301
9302 PR c++/90449 - add -Winaccessible-base option.
9303 * doc/invoke.texi (Winaccessible-base): Document.
9304
9305 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9306
9307 PR tree-optimization/62041
9308 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9309
9310 2019-06-11 Jason Merrill <jason@redhat.com>
9311
9312 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9313 * tree.c (get_tree_code_name): Likewise.
9314 * print-tree.c (print_node): Only briefly print a node with an
9315 invalid code.
9316
9317 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9318
9319 PR bootstrap/90819
9320 * trans-mem.c (tm_memopt_compute_available): Add assertion
9321 that blocks is not empty. Formatting fix.
9322
9323 2019-06-11 Martin Liska <mliska@suse.cz>
9324
9325 PR c++/87847
9326 * hash-table.h: Extend create_gcc, add one parameter
9327 that is passed into hash_table::hash_table.
9328
9329 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9330
9331 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9332 New prototype.
9333 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9334 Emit clobber also for non-sse operations.
9335 (ix86_split_fp_absneg_operator): New function.
9336 * config/i386/i386.md (SSEMODEF): New mode iterator.
9337 (ssevecmodef): New mode attribute.
9338 (<code>tf2): Use absneg code iterator.
9339 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9340 Add three-operand AVX alternatives.
9341 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9342 Use absneg code iterator and X87MODEF mode iterator.
9343 (absneg fp_reg non-sse splitter): Call absneg code iterator
9344 and X87MODEF mode iterator.
9345 (absneg general_reg non-sse splitter): Use absneg code iterator
9346 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9347 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9348 code iterator. Add three-operand AVX alternative.
9349 (absneg sse_reg splitter): Use absneg code iterator
9350 and SSEMODEF mode iterator. Handle AVX operands.
9351 (absneg fp_reg splitter): Use absneg code iterator
9352 and MODEF mode iterator.
9353 (absneg general_reg splitter): Merge splitters using MODEF mode
9354 iterator. Use absneg code iterator. Call
9355 ix86_split_fp_absneg_operator.
9356 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9357 Do not enable for non-sse modes before reload.
9358 (CSGNMODE): Remove.
9359 (CSGNVMODE): Ditto.
9360 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9361 ssevecmodef mode attribute instaed of CSGNVMODE.
9362 (copysign<mode>3_const): Ditto.
9363 (copysign<mode>3_var): Ditto.
9364 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9365 Use absneg code iterator. Simplify code using std::swap.
9366 * config/i386/predicates.md (absneg_operator): Remove.
9367
9368 2019-06-10 Martin Sebor <msebor@redhat.com>
9369
9370 * gimple-fold.c (get_range_strlen): Update comment that didn't
9371 make it into r267503 or related commits.
9372
9373 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9374
9375 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9376 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9377
9378 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9379
9380 * tree.def (OMP_SCAN): New tree code.
9381 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9382 OMP_CLAUSE_EXCLUSIVE.
9383 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9384 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9385 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9386 OMP_CLAUSE_{IN,EX}CLUSIVE.
9387 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9388 * tree-nested.c (convert_nonlocal_reference_stmt,
9389 convert_local_reference_stmt, convert_gimple_call): Handle
9390 GIMPLE_OMP_SCAN.
9391 * tree-pretty-print.c (dump_omp_clause): Handle
9392 OMP_CLAUSE_{IN,EX}CLUSIVE.
9393 (dump_generic_node): Handle OMP_SCAN.
9394 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9395 * gimple.h (gomp_scan): New type.
9396 (is_a_helper <gomp_scan *>::test,
9397 is_a_helper <const gomp_scan *>::test): New templates.
9398 (gimple_build_omp_scan): Declare.
9399 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9400 gimple_omp_scan_set_clauses): New inline functions.
9401 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9402 * gimple.c (gimple_build_omp_scan): New function.
9403 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9404 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9405 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9406 GIMPLE_OMP_TASKGROUP.
9407 (dump_gimple_omp_scan): New function.
9408 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9409 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9410 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9411 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9412 (is_gimple_stmt): Handle OMP_SCAN.
9413 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9414 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9415 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9416 mentioned in nested #pragma omp scan. Handle
9417 OMP_CLAUSE_{IN,EX}CLUSIVE.
9418 (gimplify_expr): Handle OMP_SCAN.
9419 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9420 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9421 simd constructs.
9422 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9423 GIMPLE_OMP_SCAN.
9424
9425 2019-06-10 Martin Liska <mliska@suse.cz>
9426
9427 * ipa-cp.c (ignore_edge_p): New function.
9428 (build_toporder_info): Use it.
9429 * ipa-inline.c (ignore_edge_p): New function.
9430 (inline_small_functions): Use it.
9431 * ipa-pure-const.c (ignore_edge_for_nothrow):
9432 Verify opt_for_fn for caller and callee.
9433 (ignore_edge_for_pure_const): Likewise.
9434 * ipa-reference.c (ignore_edge_p): Extend to check
9435 for opt_for_fn.
9436 * ipa-utils.c (searchc): Refactor.
9437 * ipa-utils.h: Fix coding style.
9438
9439 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9440
9441 * config/arc/arc.c (arc_rtx_costs): Update costs.
9442
9443 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9444
9445 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9446 (arc_split_ior): Likewise.
9447 (arc_check_mov_const): Likewise.
9448 (arc_split_mov_const): Likewise.
9449 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
9450 (arc_rtx_costs): Replace check Crr with Cax constraint.
9451 (prepare_move_operands): Cleanup, remove unused code.
9452 (arc_split_ior): New function.
9453 (arc_check_ior_const): Likewise.
9454 (arc_split_mov_const): Likewise.
9455 (arc_check_mov_const): Likewise.
9456 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
9457 in define_insn_and_split pattern.
9458 (iorsi3): Likewise.
9459 (mulsi3_v2): Add new matching variant.
9460 (andsi3_i): Cleanup pattern.
9461 (rotrsi3_cnt1): Update pattern.
9462 (rotrsi3_cnt8): New pattern.
9463 (ashlsi2_cnt8): Likewise.
9464 (ashlsi2_cnt16): Likewise.
9465 * config/arc/constraints.md (C0p): Update constraint.
9466 (Crr): Remove it.
9467 (C0x): New pattern.
9468 (Cax): New pattern.
9469
9470 2019-06-10 Martin Liska <mliska@suse.cz>
9471
9472 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
9473 Update coding style.
9474 (sem_item_optimizer::dump_cong_classes):
9475 Print how many items are in a non-singular class. Improve
9476 coding style.
9477
9478 2019-06-10 Martin Liska <mliska@suse.cz>
9479
9480 * value-prof.c (dump_histogram_value): Change dump format.
9481 (gimple_mod_subtract_transform): Remove legacy comment.
9482
9483 2019-06-10 Martin Liska <mliska@suse.cz>
9484
9485 * value-prof.c (dump_histogram_value): Print histogram values
9486 only if present.
9487
9488 2019-06-10 Martin Liska <mliska@suse.cz>
9489
9490 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
9491 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
9492 * ipa-profile.c (ipa_profile_generate_summary):
9493 Use get_most_common_single_value.
9494 * tree-profile.c (gimple_init_gcov_profiler):
9495 Instrument with __gcov_one_value_profiler_v2
9496 and __gcov_indirect_call_profiler_v4.
9497 * value-prof.c (dump_histogram_value):
9498 Print all values for HIST_TYPE_SINGLE_VALUE.
9499 (stream_out_histogram_value): Update assert for
9500 N values.
9501 (stream_in_histogram_value): Set number of
9502 counters for HIST_TYPE_SINGLE_VALUE.
9503 (get_most_common_single_value): New.
9504 (gimple_divmod_fixed_value_transform):
9505 Use get_most_common_single_value.
9506 (gimple_ic_transform): Likewise.
9507 (gimple_stringops_transform): Likewise.
9508 (gimple_find_values_to_profile): Set number
9509 of counters for HIST_TYPE_SINGLE_VALUE.
9510 * value-prof.h (get_most_common_single_value): New.
9511
9512 2019-06-10 Martin Liska <mliska@suse.cz>
9513
9514 * hash-map.h: Pass default value to hash_table ctor.
9515 * hash-table.h: Add default value to call of a ctor.
9516
9517 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
9518
9519 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
9520 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
9521
9522 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
9523
9524 PR target/90751
9525 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
9526 Call pa_output_function_label.
9527 (TARGET_ASM_FUNCTION_PROLOGUE): define.
9528 * config/pa/pa-protos.h (pa_output_function_label): Declare.
9529 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
9530 to declaration.
9531 (pa_linux_output_function_prologue): Declare.
9532 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
9533 (pa_output_function_label): New.
9534 (pa_output_function_prologue): Revise to use pa_output_function_label.
9535 (pa_linux_output_function_prologue): New.
9536 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
9537
9538 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
9539
9540 * tree-vrp.h (value_range_base::intersect): New.
9541 (value_range::intersect_helper): Move from here...
9542 (value_range_base::intersect_helper): ...to here.
9543 * tree-vrp.c (value_range::intersect_helper): Rename to...
9544 (value_range_base::intersect_helper): ...this, and rewrite to
9545 return a value instead of modifying THIS in place.
9546 Also, move equivalence handling...
9547 (value_range::intersect): ...here, while calling intersect_helper.
9548 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
9549 calling intersect.
9550 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
9551 Same.
9552 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
9553
9554 2019-06-07 Jakub Jelinek <jakub@redhat.com>
9555
9556 * Makefile.in (genprogerr): Add condmd.
9557 (genprog): Remove it here.
9558
9559 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
9560
9561 * doc/invoke.texi (AMD GCN Options): Add gfx906.
9562
9563 2019-06-07 Richard Biener <rguenther@suse.de>
9564
9565 PR debug/90574
9566 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
9567 that appear after user labels.
9568
9569 2019-06-07 Martin Liska <mliska@suse.cz>
9570
9571 * cselib.c (cselib_init): Disable hash table
9572 sanitization.
9573 * hash-set.h: Pass new default argument to m_table.
9574 * hash-table.c: Add global variable with hash table
9575 sanitization limit.
9576 * hash-table.h (Allocator>::hash_table): Add new argument
9577 to ctor.
9578 (hashtab_chk_error): New.
9579 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
9580 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
9581 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
9582
9583 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9584
9585 * common.opt (flto-odr-type-merging): Ignore.
9586 * invoke.texi (-flto-odr-type-merging): Remove.
9587 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
9588 (can_be_vtable_hashed_p): Remove.
9589 (hash_odr_vtable): Remove.
9590 (odr_vtable_hasher::hash): Remove.
9591 (types_same_for_odr): Remove.
9592 (types_odr_comparable): Remove.
9593 (odr_vtable_hasher::equal): Remove.
9594 (odr_vtable_hash_type, odr_vtable_hash): Remove.
9595 (add_type_duplicate): Do not synchronize vtable and name hashtables.
9596 (get_odr_type): Do not use vtable hash.
9597 (dump_odr_type): Remove commented out code.
9598 (build_type_inheritance_graph): Do not allocate vtable hash.
9599 (rebuild_type_inheritance_graph): Do not delete vtable hash.
9600 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
9601 (odr_type_p): Likewise.
9602 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
9603 test.
9604
9605 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9606
9607 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
9608 immediately after same_types_for_tbaa_p returns -1 and continue
9609 looking for possible exact match; if matching types are arrays
9610 watch for partial overlaps.
9611 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
9612 (indirect_refs_may_alias_p): Do type based disambiguation first;
9613 update comment.
9614
9615 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
9616
9617 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
9618
9619 2019-06-07 Martin Liska <mliska@suse.cz>
9620
9621 * doc/invoke.texi: Remove param.
9622 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
9623 Remove.
9624 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
9625 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
9626 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
9627 * profile.c (instrument_values): Remove
9628 HIST_TYPE_INDIR_CALL_TOPN.
9629 * tree-profile.c (init_ic_make_global_vars):
9630 Always build __gcov_indirect_call only.
9631 (gimple_init_gcov_profiler): Remove usage
9632 of PARAM_INDIR_CALL_TOPN_PROFILE.
9633 (gimple_gen_ic_profiler): Likewise.
9634 * value-prof.c (dump_histogram_value): Likewise.
9635 (stream_in_histogram_value): Likewise.
9636 (gimple_indirect_call_to_profile): Likewise.
9637 (gimple_find_values_to_profile): Likewise.
9638 * value-prof.h (enum hist_type): Likewise.
9639
9640 2019-06-07 Martin Liska <mliska@suse.cz>
9641
9642 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
9643 function.
9644
9645 2019-06-07 Martin Liska <mliska@suse.cz>
9646
9647 PR tree-optimization/78902
9648 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
9649 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
9650 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9651 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9652 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
9653 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9654 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
9655 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
9656 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9657 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9658 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9659 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
9660 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
9661 New.
9662 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
9663 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
9664 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
9665 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9666 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9667 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
9668 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9669 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9670 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
9671 warn_unused_result attribute.
9672 (BUILT_IN_STRDUP): Likewise.
9673 (BUILT_IN_STRNDUP): Likewise.
9674 (BUILT_IN_ALLOCA): Likewise.
9675 (BUILT_IN_CALLOC): Likewise.
9676 (BUILT_IN_MALLOC): Likewise.
9677 (BUILT_IN_REALLOC): Likewise.
9678
9679 2019-06-06 Jim Wilson <jimw@sifive.com>
9680
9681 PR target/89955
9682 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
9683 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
9684 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
9685
9686 2019-06-06 Martin Sebor <msebor@redhat.com>
9687
9688 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
9689 (handle_builtin_malloc): Remove trailing spaces.
9690 (handle_builtin_memset): Same.
9691 (handle_builtin_memcmp): Same.
9692 (compute_string_length): Same.
9693 (determine_min_objsize): Same.
9694 (handle_builtin_string_cmp): Same.
9695 (handle_char_store): Same. Break up excessively long line.
9696
9697 2019-06-06 Martin Jambor <mjambor@suse.cz>
9698
9699 * tree-sra.c (build_reconstructed_reference): Drop the alignment
9700 check.
9701
9702 2019-06-06 Martin Jambor <mjambor@suse.cz>
9703
9704 * tree-sra.c (struct access): New field grp_same_access_path.
9705 (dump_access): Dump it.
9706 (build_reconstructed_reference): New function.
9707 (build_ref_for_model): Use it if possible.
9708 (path_comparable_for_same_access): New function.
9709 (same_access_path_p): Likewise.
9710 (sort_and_splice_var_accesses): Set the new flag.
9711 (analyze_access_subtree): Likewise.
9712 (propagate_subaccesses_across_link): Propagate zero value of the new
9713 flag down the access tree.
9714
9715 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
9716
9717 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
9718 * config/gcn/gcn.opt (gpu_type): Add gfx906.
9719 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
9720 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
9721 Add gfx906.
9722
9723 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9724
9725 PR tree-optimization/90332
9726 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
9727 Handle VALS containing two vectors.
9728 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
9729 to...
9730 (@aarch64_combinez<mode>): ... This.
9731 (*aarch64_combinez_be<mode>): Rename to...
9732 (@aarch64_combinez_be<mode>): ... This.
9733 (vec_init<mode><Vhalf>): New define_expand.
9734 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
9735
9736 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9737
9738 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
9739 library functions only when not optimizing for size.
9740 (ashlsi3): Likewise.
9741 (ashrhi3): Likewise.
9742 (ashrsi3): Likewise.
9743 (lshrhi3): Likewise.
9744 (lshrsi3): Likewise.
9745
9746 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
9747
9748 PR rtl-optimization/88751
9749 * ira.c (ira): Use the number of the actually referenced registers
9750 when calculating the threshold.
9751
9752 2019-06-06 Jakub Jelinek <jakub@redhat.com>
9753
9754 * configure: Regenerate.
9755
9756 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9757
9758 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
9759 register if it is in memory, so the shift can be emulated with a rotate
9760 instruction.
9761 (ashrhi3): Likewise.
9762 (lshrhi3): Likewise.
9763
9764 2019-06-06 Martin Liska <mliska@suse.cz>
9765
9766 PR tree-optimization/87954
9767 * match.pd: Simplify mult where both arguments are 0 or 1.
9768
9769 2019-06-06 Richard Biener <rguenther@suse.de>
9770
9771 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
9772 put equivalences on UNDEFINED ranges.
9773 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9774 Make sure to drop defs of stmts added during simplification
9775 to VARYING.
9776
9777 2019-06-06 Richard Biener <rguenther@suse.de>
9778
9779 * tree-ssa-structalias.c: Include tree-cfg.h.
9780 (make_heapvar): Do not make heap vars artificial.
9781 (find_func_aliases_for_builtin_call): Handle stack allocation
9782 functions.
9783 (find_func_aliases): Delay processing of simple enough returns
9784 in non-IPA mode.
9785 (set_uids_in_ptset): Adjust.
9786 (find_what_var_points_to): Likewise.
9787 (solve_constraints): Do not dump points-to sets here.
9788 (compute_points_to_sets): Post-process return statements,
9789 amending the escaped solution. Dump points-to sets afterwards.
9790 (ipa_pta_execute): Dump points-to sets.
9791
9792 2019-06-06 Martin Liska <mliska@suse.cz>
9793
9794 PR web/87933
9795 * doc/install.texi: Fix HTML headers and
9796 titles for 'Installing GCC' pages.
9797
9798 2019-06-06 Martin Liska <mliska@suse.cz>
9799
9800 * ipa-icf-gimple.h (dump_message_1): Remove.
9801 (dump_message): Likewise.
9802 (return_false_with_message_1): Print also file.
9803 (return_false_with_msg): Likewise.
9804 (return_with_result): Likewise.
9805 (return_with_debug): Likewise.
9806 * ipa-icf.c (sem_function::equals_private): Remove call
9807 to dump_message.
9808
9809 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9810
9811 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
9812 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
9813 memory operand for it.
9814 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
9815
9816 2019-06-05 Martin Sebor <msebor@redhat.com>
9817
9818 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
9819 Adjust quoting and hyphenation.
9820 * convert.c (convert_to_real_1): Same.
9821 * gcc.c (driver_wrong_lang_callback): Same.
9822 (driver::handle_unrecognized_options): Same.
9823 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
9824 * opts-common.c (cmdline_handle_error): Same.
9825 (read_cmdline_option): Same.
9826 * opts-global.c (complain_wrong_lang): Same.
9827 (print_ignored_options): Same.
9828 (handle_common_deferred_options): Same.
9829 * pretty-print.h: Same.
9830 * print-rtl.c (debug_bb_n_slim): Same.
9831 * sched-rgn.c (make_pass_sched_fusion): Same.
9832 * tree-cfg.c (verify_gimple_assign_unary): Same.
9833 (verify_gimple_label): Same.
9834 * tree-ssa-operands.c (verify_ssa_operands): Same.
9835 * varasm.c (do_assemble_alias): Same.
9836 (assemble_alias): Same.
9837
9838 2019-06-05 Richard Henderson <rth@twiddle.net>
9839
9840 * config/alpha/alpha.c (direct_return): Move down after
9841 struct machine_function definition; use saved frame_size;
9842 return bool.
9843 (struct machine_function): Add sa_mask, sa_size, frame_size.
9844 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
9845 (alpha_compute_frame_layout): ... new function.
9846 (TARGET_COMPUTE_FRAME_LAYOUT): New.
9847 (alpha_initial_elimination_offset): Use saved sa_size.
9848 (alpha_vms_initial_elimination_offset): Likewise.
9849 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
9850 (alpha_expand_prologue): Use saved frame data. Merge integer
9851 and fp register save loops.
9852 (alpha_expand_epilogue): Likewise.
9853 (alpha_start_function): Use saved frame data.
9854 * config/alpha/alpha-protos.h (direct_return): Update.
9855 (alpha_sa_size): Remove.
9856
9857 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
9858
9859 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
9860 multiplication by a power-of-two value.
9861 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
9862 and turn the modulo operation into a masking operation.
9863
9864 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9865
9866 PR debug/90733
9867 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
9868 with VOIDmode inner operands.
9869
9870 2019-06-05 Richard Biener <rguenther@suse.de>
9871
9872 PR middle-end/90726
9873 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9874 turn an expression graph into a tree.
9875
9876 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9877
9878 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
9879 member.
9880 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
9881 treat it like explicit monotonic schedule modifier.
9882 (expand_omp_for): Initialize has_lastprivate_conditional.
9883 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
9884 schedule modifier.
9885
9886 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
9887 references, lookup in in hash map MEM_REF operand instead of the
9888 MEM_REF itself.
9889 (lower_omp_1): When looking for lastprivate conditional assignments,
9890 handle MEM_REFs with REFERENCE_TYPE operands.
9891
9892 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
9893 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
9894 and references a VLA. Handle references to non-VLAs if is_simd
9895 all privatization clauses like reductions.
9896 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
9897 If omp_is_reference, use always omp simd arrays and set
9898 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
9899 fails, emit reference initialization.
9900
9901 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9902
9903 PR target/89803
9904 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
9905 _mm_mask_fpclass_sd_mask): New intrinsics.
9906 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
9907 * config/i386/i386-builtin.def
9908 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
9909 New builtins.
9910 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
9911 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
9912 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
9913 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
9914 case QI_FTYPE_V2SF_INT): Ditto.
9915 * config/i386/sse.md
9916 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
9917 Extended to insnstructions with mask operands.
9918
9919 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9920
9921 * config/rs6000/constraints.md (define_register_constraint "wp"):
9922 Delete.
9923 (define_register_constraint "wq"): Delete.
9924 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9925 (rs6000_init_hard_regno_mode_ok): Adjust.
9926 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9927 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
9928 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
9929 (define_mode_attr VSa): Delete.
9930 (define_mode_attr VSisa): New.
9931 (rest of file): Adjust.
9932 * doc/md.texi (Machine Constraints): Adjust.
9933
9934 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9935
9936 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
9937 (define_attr "enabled"): Handle those new isa values.
9938
9939 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9940
9941 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
9942 (define_mode_attr VSr5): Delete.
9943 (define_mode_attr VStype_sqrt): Delete.
9944 (define_mode_iterator VSX_SPDP): Delete.
9945 (define_mode_attr VS_spdp_res): Delete.
9946 (define_mode_attr VS_spdp_insn): Delete.
9947 (define_mode_attr VS_spdp_type): Delete.
9948 (*vsx_sqrt<mode>2): Adjust.
9949 (vsx_<VS_spdp_insn>): Delete, split to...
9950 (vsx_xscvdpsp): ... this. New. And...
9951 (vsx_xvcvspdp): ... this. New. And...
9952 (vsx_xvcvdpsp): ... this. New.
9953
9954 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9955
9956 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
9957 and V2DF.
9958 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
9959 (rest of file): Adjust.
9960
9961 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9962
9963 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
9964 (vsx_extract_<mode>_var): Ditto.
9965
9966 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9967
9968 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
9969 with just "wa".
9970
9971 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9972
9973 * config/rs6000/constraints.md (define_register_constraint "ww"):
9974 Delete.
9975 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9976 (rs6000_init_hard_regno_mode_ok): Adjust.
9977 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9978 RS6000_CONSTRAINT_ww.
9979 * config/rs6000/rs6000.md: Adjust.
9980 * config/rs6000/vsx.md: Adjust.
9981 * doc/md.texi (Machine Constraints): Adjust.
9982
9983 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9984
9985 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
9986 (define_mode_attr sd): New.
9987 (define_mode_attr s): New.
9988 (define_mode_attr Ftrad): Delete.
9989 (define_mode_attr Fvsx): Delete.
9990 (define_mode_attr Fs): Delete.
9991 (rest of file): Use the new mode attributes.
9992 * config.rs6000/vsx.md: Use the new mode attributes.
9993
9994 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9995
9996 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
9997 with just "wa".
9998
9999 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10000
10001 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
10002 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
10003 used with VSX_B, VSX_D, or VSX_F, with just "wa".
10004
10005 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
10006
10007 PR target/78263
10008 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
10009 C++ with strict ANSI requirements.
10010
10011 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
10012
10013 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
10014 computations when step is 1.
10015
10016 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10017
10018 * config/rs6000/constraints.md (define_register_constraint "wf"):
10019 Delete.
10020 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10021 (rs6000_init_hard_regno_mode_ok): Adjust.
10022 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10023 RS6000_CONSTRAINT_wf.
10024 * config/rs6000/rs6000.md: Adjust.
10025 * config/rs6000/vsx.md: Adjust.
10026 * doc/md.texi (Machine Constraints): Adjust.
10027
10028 2019-06-04 Andrew Pinski <apinski@marvell.com>
10029
10030 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
10031 Fix ILP32 value.
10032
10033 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10034
10035 * config/rs6000/constraints.md (define_register_constraint "wd"):
10036 Delete.
10037 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10038 (rs6000_init_hard_regno_mode_ok): Adjust.
10039 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10040 RS6000_CONSTRAINT_wd.
10041 * config/rs6000/rs6000.md: Adjust.
10042 * config/rs6000/vsx.md: Adjust.
10043 * doc/md.texi (Machine Constraints): Adjust.
10044
10045 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10046
10047 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
10048 (rest of file): Adjust.
10049
10050 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10051
10052 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
10053 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
10054 (vsx_splat_<mode>_reg): Adjust.
10055
10056 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10057
10058 * config/rs6000/constraints.md (define_register_constraint "ws"):
10059 Delete.
10060 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10061 (rs6000_init_hard_regno_mode_ok): Adjust.
10062 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10063 RS6000_CONSTRAINT_ws.
10064 * config/rs6000/rs6000.md: Adjust.
10065 * config/rs6000/vsx.md: Adjust.
10066 * doc/md.texi (Machine Constraints): Adjust.
10067
10068 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10069
10070 * config/rs6000/constraints.md (define_register_constraint "wv"):
10071 Delete.
10072 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10073 (rs6000_init_hard_regno_mode_ok): Adjust.
10074 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10075 RS6000_CONSTRAINT_wv.
10076 * config/rs6000/rs6000.md: Adjust.
10077 * config/rs6000/vsx.md: Adjust.
10078 * doc/md.texi (Machine Constraints): Adjust.
10079
10080 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10081
10082 * config/rs6000/constraints.md (define_register_constraint "wi"):
10083 Delete.
10084 (define_register_constraint "wt"): Delete.
10085 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10086 (rs6000_init_hard_regno_mode_ok): Adjust.
10087 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10088 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
10089 * config/rs6000/rs6000.md: Adjust.
10090 * config/rs6000/vsx.md: Adjust.
10091 * doc/md.texi (Machine Constraints): Adjust.
10092
10093 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10094
10095 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
10096 const.
10097 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
10098 default_elf_asm_output_external.
10099
10100 2019-06-04 Martin Liska <mliska@suse.cz>
10101
10102 * ipa-icf.c (INCLUDE_LIST): Remove.
10103 (sem_item_optimizer::execute): Remove call to init_wpa.
10104 * ipa-icf.h (init_wpa): Remove.
10105
10106 2019-06-04 Jakub Jelinek <jakub@redhat.com>
10107
10108 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
10109 conditional on combined for simd.
10110 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
10111 member.
10112 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
10113 constructs, don't remove lastprivate_conditional_map, but instead set
10114 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
10115 to parent construct temporaries.
10116 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
10117 like !ctx->lastprivate_conditional_map.
10118 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
10119 use up->outer context instead of up.
10120 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
10121 gimple_omp_for_combined_p.
10122 (expand_omp_for_static_nochunk): Likewise.
10123 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10124 probably moved over into expand_omp_for_generic rather than being copied
10125 there.
10126
10127 2019-06-04 Martin Liska <mliska@suse.cz>
10128
10129 * value-prof.c (dump_histogram_value): Fix typo.
10130 (gimple_mod_subtract_transform): Likewise.
10131
10132 2019-06-04 Richard Biener <rguenther@suse.de>
10133
10134 PR middle-end/90726
10135 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10136 (tree_contains_chrecs): Likewise.
10137 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10138 exponential behaivor from ...
10139 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10140 ... here.
10141 (expression_expensive_p): Avoid exponential behavior and compute
10142 expanded size, rejecting any expansion.
10143 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10144 (idx_contains_abnormal_ssa_name_p): Likewise.
10145 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10146 (contains_abnormal_ssa_name_p): Simplify and use
10147 walk_tree_without_duplicates.
10148
10149 2019-06-04 Richard Biener <rguenther@suse.de>
10150
10151 PR tree-optimization/90738
10152 Revert
10153 2019-06-03 Richard Biener <rguenther@suse.de>
10154
10155 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10156 full reference tree and record in ref->ref.
10157 (vn_reference_lookup_3): Pass in original ref to
10158 ao_ref_init_from_vn_reference.
10159 (vn_reference_lookup): Likewise.
10160 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10161 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10162 Handle non-decl bases in the original reference.
10163
10164 2019-06-04 Martin Liska <mliska@suse.cz>
10165
10166 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10167 number of references.
10168 (sem_item_optimizer::do_congruence_step):
10169 (sem_item_optimizer::worklist_push): Dump how references
10170 a class has.
10171 (sem_item_optimizer::worklist_pop): Use heap.
10172 (sem_item_optimizer::process_cong_reduction): Likewise.
10173 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10174
10175 2019-06-04 Martin Liska <mliska@suse.cz>
10176
10177 * ipa-icf.h (struct sem_usage_pair_hash): New.
10178 (sem_usage_pair_hash::hash): Likewise.
10179 (sem_usage_pair_hash::equal): Likewise.
10180 (struct sem_usage_hash): Likewise.
10181 * ipa-icf.c (sem_item::sem_item): Initialize
10182 referenced_by_count.
10183 (sem_item::add_reference): Register a reference
10184 in ref_map and not in target->usages.
10185 (sem_item::setup): Remove initialization of
10186 dead vectors.
10187 (sem_item::~sem_item): Remove usage of dead vectors.
10188 (sem_item::dump): Remove dump of references.
10189 (sem_item_optimizer::sem_item_optimizer): Initialize
10190 m_references.
10191 (sem_item_optimizer::read_section): Remove useless
10192 dump.
10193 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10194 (sem_item_optimizer::build_graph): Pass m_references
10195 to ::add_reference.
10196 (sem_item_optimizer::verify_classes): Remove usage of dead
10197 vectors.
10198 (sem_item_optimizer::traverse_congruence_split): Return true
10199 when a class is split.
10200 (sem_item_optimizer::do_congruence_step_for_index): Use
10201 hash_map for look up of (sem_item *, index). That brings
10202 significant speed up.
10203 (sem_item_optimizer::do_congruence_step): Return true
10204 when a split is done.
10205 (congruence_class::is_class_used): Use referenced_by_count.
10206
10207 2019-06-04 Alan Modra <amodra@gmail.com>
10208
10209 PR target/90689
10210 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10211 error.
10212
10213 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10214
10215 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10216 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10217 (rs6000_secondary_reload_simple_move): Adjust.
10218 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10219 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10220 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10221 comment.
10222 (power6x): Adjust.
10223 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10224 (floatunssi<mode>2_lfiwzx): Adjust.
10225 (fix_trunc<mode>si2_stfiwx): Adjust.
10226 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10227 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10228 (mfpgpr): Mark as deprecated.
10229 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10230 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10231 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10232
10233 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10234
10235 * config/rs6000/constraints.md (define_register_constraint "wg"):
10236 Delete.
10237 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10238 RS6000_CONSTRAINT_wg.
10239 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10240 (rs6000_init_hard_regno_mode_ok): Adjust.
10241 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10242 Delete "wg" alternatives.
10243 * doc/md.texi (Machine Constraints): Adjust.
10244
10245 2019-06-03 Alan Modra <amodra@gmail.com>
10246
10247 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10248 (get_uncond_jump_length): Assert length less than INT_MAX and
10249 non-negative.
10250
10251 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10252
10253 PR middle-end/64242
10254 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10255 block.
10256 (expand_builtin_nonlocal_goto): Likewise.
10257
10258 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10259
10260 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10261 (aarch64_asm_output_external): Declare.
10262 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10263 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10264 (aarch64_asm_output_alias): New.
10265 (aarch64_asm_output_external): New.
10266 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10267 (ASM_OUTPUT_EXTERNAL): Define.
10268
10269 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10270 * tree-vrp.h (value_range_base::nonzero_p): New.
10271 (value_range_base::set_nonnull): Rename to...
10272 (value_range_base::set_nonzero): ...this.
10273 (value_range_base::set_null): Rename to...
10274 (value_range_base::set_zero): ...this.
10275 (value_range::set_nonnull): Remove.
10276 (value_range::set_null): Remove.
10277 * tree-vrp.c (range_is_null): Remove.
10278 (range_is_nonnull): Remove.
10279 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10280 instead of range_is_*null.
10281 (extract_range_from_unary_expr): Same.
10282 (value_range_base::set_nonnull): Rename to...
10283 (value_range_base::set_nonzero): ...this.
10284 (value_range::set_nonnull): Remove.
10285 (value_range_base::set_null): Rename to...
10286 (value_range_base::set_zero): ...this.
10287 (value_range::set_null): Remove.
10288 (extract_range_from_binary_expr): Rename set_*null uses to
10289 set_*zero.
10290 (extract_range_from_unary_expr): Same.
10291 (union_helper): Same.
10292 * vr-values.c (get_value_range): Use set_*zero instead of
10293 set_*null.
10294 (vr_values::extract_range_from_binary_expr): Same.
10295 (vr_values::extract_range_basic): Same.
10296
10297 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10298
10299 PR driver/90684
10300 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10301
10302 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10303
10304 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10305 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10306 Rename to...
10307 (aarch64_<su>abd<mode>_3): ... This.
10308 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10309
10310 2019-06-03 Richard Biener <rguenther@suse.de>
10311
10312 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10313 full reference tree and record in ref->ref.
10314 (vn_reference_lookup_3): Pass in original ref to
10315 ao_ref_init_from_vn_reference.
10316 (vn_reference_lookup): Likewise.
10317 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10318 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10319 Handle non-decl bases in the original reference.
10320
10321 2019-06-03 Martin Liska <mliska@suse.cz>
10322
10323 * doc/generic.texi: Remove Java Trees.
10324
10325 2019-06-03 Martin Liska <mliska@suse.cz>
10326
10327 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10328 returns 0 when operands are equal.
10329
10330 2019-06-03 Richard Biener <rguenther@suse.de>
10331
10332 PR tree-optimization/90716
10333 * tree-loop-distribution.c (destroy_loop): Process blocks in
10334 correct order.
10335
10336 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10337
10338 PR target/88837
10339 * vector-builder.h (vector_builder::count_dups): New method.
10340 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10341 Declare prototype.
10342 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10343 (vec_init<mode><Vel>): New pattern.
10344 * config/aarch64/aarch64.c (emit_insr): New function.
10345 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10346 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10347 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10348 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10349
10350 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10351
10352 PR tree-optimization/90681
10353 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10354 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10355 special case for SLP, but fail on non-groupped loads.
10356
10357 2019-06-03 Martin Liska <mliska@suse.cz>
10358
10359 * cfg.c (debug): Use TDF_DETAILS for debug and
10360 print edge info only once.
10361
10362 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10363
10364 PR fortran/90539
10365 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10366
10367 2019-06-01 Martin Sebor <msebor@redhat.com>
10368
10369 PR middle-end/90694
10370 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10371
10372 2019-05-31 Jan Hubicka <jh@suse.cz>
10373
10374 * alias.c: Include ipa-utils.h.
10375 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10376 * ipa-devirt.c (prevailing_odr_type): New.
10377 * ipa-utils.h (previaling_odr_type): Declare.
10378
10379 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10380 Hongtao Liu <hongtao.liu@intel.com>
10381
10382 PR target/89355
10383 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10384 NOTE_INSN_DELETED_LABEL check.
10385
10386 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10387 Robert Suchanek <robert.suchanek@mips.com>
10388
10389 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10390 and 3rd operands of the fmadd/fmsub/maddv builtin.
10391
10392 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10393
10394 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10395 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10396 on OMP_SIMD if not nested inside of worksharing loop that also has
10397 lastprivate conditional clause for the same decl.
10398 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10399 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10400 on simd.
10401 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10402 on simd construct.
10403 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10404 on simd construct.
10405 (lower_lastprivate_clauses): Likewise.
10406 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10407 calling lower_rec_input_clauses.
10408 (lower_omp_for): Likewise.
10409 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10410 clause on simd construct.
10411 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10412 OMP_CLAUSE__CONDTEMP_ clause is present.
10413
10414 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10415 ivar and lvar.
10416
10417 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10418
10419 PR c/43673
10420 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10421 TEX_D32, TEX_D64 or TEX_D128.
10422
10423 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10424
10425 * match.pd (~(vec?cst1:cst2)): New transformation.
10426
10427 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10428
10429 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10430 ((size_t)(A /[ex] B) CMP C): New transformation.
10431
10432 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10433
10434 * doc/md.texi: Document define_insn_and_rewrite.
10435 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10436 * gensupport.c (queue_elem): Update comment.
10437 (replace_operands_with_dups): New function.
10438 (gen_rewrite_sequence): Likewise.
10439 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10440 * read-rtl.c (apply_subst_iterator): Likewise.
10441 (add_condition_to_rtx, named_rtx_p): Likewise.
10442 (rtx_reader::read_rtx_operand): Likewise.
10443 * config/aarch64/aarch64-sve.md
10444 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10445 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10446 define_insn_and_rewrite.
10447 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
10448 Remove separate define_split.
10449
10450 2019-05-31 Jan Hubicka <jh@suse.cz>
10451
10452 * tree-ssa-alias.c (type_has_components_p): New function.
10453 (aliasing_component_refs_p): Use it.
10454
10455 2019-05-31 Martin Liska <mliska@suse.cz>
10456
10457 * gdbhooks.py: Add const_tree to TreePrinter.
10458
10459 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
10460
10461 PR debug/86964
10462 * common.opt (feliminate-unused-debug-symbols): Enable by default.
10463 * doc/invoke.texi (Debugging Options): Document new default of
10464 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
10465
10466 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10467
10468 PR tree-optimization/90671
10469 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
10470 template_block used to be empty on the first call, don't use
10471 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
10472 seq with bb_seq and set it with set_bb_seq.
10473
10474 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
10475
10476 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
10477
10478 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10479 Michael Meissner <meissner@linux.ibm.com>
10480
10481 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
10482 (prefixed_mem_operand): Likewise.
10483 (non_prefixed_mem_operand): Likewise.
10484 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
10485 prototype.
10486 * config/rs6000/rs6000.c (print_operand_address): Handle
10487 PC-relative addresses.
10488 (mode_supports_prefixed_address_p): New function.
10489 (rs6000_prefixed_address): New function.
10490 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
10491 (SYMBOL_REF_PCREL_P): Likewise.
10492
10493 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10494
10495 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
10496 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
10497 (gimplify_omp_for): If worksharing loop with lastprivate conditional
10498 is nested inside of parallel region, add _condtemp_ clause to both.
10499 * tree-nested.c (convert_nonlocal_omp_clauses,
10500 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
10501 assertion failure.
10502 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
10503 member.
10504 * omp-general.c (omp_extract_for_data): Compute it.
10505 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
10506 (lower_rec_input_clauses): Likewise.
10507 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
10508 clause is already present, just add one further one after it.
10509 (lower_lastprivate_clauses): Handle cond_ptr with array type.
10510 (lower_send_shared_vars): Clear _condtemp_ vars.
10511 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
10512 or section or taskgroup.
10513 * omp-expand.c (determine_parallel_type): Disallow combining only if
10514 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
10515 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
10516 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10517 expand_omp_for_static_chunk, expand_omp_for): Use
10518 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
10519 determine if a special set of API routines are needed and if condtemp
10520 needs to be initialized, while always initialize cond_var if
10521 fd->lastprivate_conditional is non-zero.
10522
10523 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10524 Michael Meissner <meissner@linux.ibm.com>
10525
10526 * config/rs6000/constraints.md (eI): New constraint.
10527 * config/rs6000/predicates.md (cint34_operand): New predicate.
10528 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
10529 (SIGNED_34BIT_OFFSET_P): Likewise.
10530 * doc/md.texi (eI): Document constraint.
10531
10532 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
10533
10534 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
10535
10536 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10537 Michael Meissner <meissner@linux.ibm.com>
10538
10539 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
10540 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
10541 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
10542 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
10543 (OTHER_FUTURE_MASKS): Likewise.
10544 (POWERPC_MASKS): Likewise.
10545 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
10546 specified without -mprefixed-addr or -mcpu=future. Error if
10547 -mprefixed-addr is specified without -mcpu=future.
10548 (rs6000_opt_masks): Add entry for prefixed-addr.
10549 * rs6000.opt (mprefixed-addr): New option.
10550
10551 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
10552
10553 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
10554 cfun->is_thunk check.
10555
10556 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10557
10558 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
10559 to length.
10560
10561 2019-05-30 Martin Liska <mliska@suse.cz>
10562
10563 * gdbinit.in: Fix 'ptc' command. Add trt
10564 that prints TREE_TYPE($).
10565
10566 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
10567 Alan Modra <amodra@gmail.com>
10568
10569 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
10570 calls here...
10571 (rs6000_indirect_call_template_1): ...and here.
10572 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
10573 plt16_ha, plt16_lo, mtctr indirect calls. Use
10574 rs6000_pltseq_enum.
10575 (rs6000_decl_ok_for_sibcall): New function.
10576 (rs6000_function_ok_for_sibcall): Refactor.
10577 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
10578 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
10579 when pcrel. Reorganize.
10580 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
10581 * rs6000.h (rs6000_pltseq_enum): New enum.
10582 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
10583 (*pltseq_tocsave): Use rs6000_pltseq_enum.
10584 (*pltseq_plt16_ha): Likewise.
10585 (*pltseq_plt16_lo): Likewise.
10586 (*pltseq_mtctr): Likewise.
10587 (*pltseq_plt_pcrel): New insn.
10588 (*call_local_aix): Handle @notoc calls.
10589 (*call_value_local_aix): Likewise.
10590 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
10591 (*call_value_nonlocal_aix): Likewise.
10592 (*call_indirect_pcrel): New insn.
10593 (*call_value_indirect_pcrel): Likewise.
10594
10595 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
10596
10597 * config/i386/sse.md (*save_multiple<mode>): Rename from
10598 save_multiple<mode>.
10599 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
10600 (*restore_multiple_and_return<mode>): Rename from
10601 restore_multiple_and_return<mode>.
10602 (*restore_multiple_leave_return<mode>): Rename from
10603 restore_multiple_leave_return<mode>.
10604
10605 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
10606
10607 * config.gcc (rx-*-linux*): New target.
10608 * config/rx/elf.opt: New file.
10609 * config/rx/linux.h: Likewise.
10610 * config/rx/t-linux: Likewise.
10611 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
10612 make it zero.
10613 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
10614 (ASM_APP_OFF): Likewise.
10615 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
10616 moved elsewhere.
10617
10618 2019-05-29 Jan Hubicka <jh@suse.cz>
10619
10620 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
10621 variants are pointer equivalent.
10622
10623 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10624
10625 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
10626 * config/aarch64/aarch64-sve2.md: New file.
10627 (<u>avg<mode>3_floor): New pattern.
10628 (<u>avg<mode>3_ceil): Likewise.
10629 (*<sur>h<addsub><mode>): Likewise.
10630 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
10631 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
10632
10633 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10634
10635 PR bootstrap/90543
10636 * optc-save-gen.awk: In cl_optimization_print, use correct condition
10637 for var_opt_string printing. In cl_optimization_print_diff, print
10638 (null) instead of invoking undefined behavior if one of the
10639 var_opt_string pointers is NULL and use && instead of first || in the
10640 guarding condition. For var_target_other options, handle const char *
10641 target variables similarly to const char * optimize node variables.
10642
10643 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
10644
10645 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
10646 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
10647 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
10648 Add autib1716 and pacib1716 initialisation.
10649 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
10650 for autib1716 and pacib1716.
10651 * config/aarch64/aarch64-protos.h (aarch64_key_type,
10652 aarch64_post_cfi_startproc): Define.
10653 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
10654 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
10655 aarch64_handle_pac_ret_protection): Set default sign key to A.
10656 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
10657 aarch64_expand_prologue): Add check for b-key.
10658 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
10659 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
10660 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
10661 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
10662 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
10663 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
10664 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10665 * config/aarch64/aarch64.md (do_return): Add check for b-key.
10666 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
10667 pauth_hint_num_a with pauth_hint_num.
10668 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
10669 pauth_hint_num_a with pauth_hint_num.
10670 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
10671 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
10672 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10673 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
10674 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
10675 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
10676 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
10677 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10678 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
10679 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
10680 UNSPEC_AUTIA1716 respectively.
10681 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
10682 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
10683 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
10684 * doc/invoke.texi (-mbranch-protection): Add b-key type.
10685 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
10686 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
10687
10688 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10689
10690 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
10691 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
10692 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
10693 explicit clause on combined parallel into implicit shared clause.
10694 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
10695 and firstprivate if the decl has one too from combined parallel to
10696 the worksharing construct.
10697
10698 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
10699 Michael Meissner <meissner@linux.ibm.com>
10700
10701 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
10702
10703 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
10704
10705 * rtl.h (LABEL_REF_P): New #define.
10706
10707 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
10708
10709 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
10710
10711 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10712
10713 * internal-fn.c: Marked mask_load_direct as vectorizable.
10714 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
10715 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
10716 combined even if masks different with allow_slp_p param.
10717 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
10718 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
10719 dissolve SLP-only vectorizable groups when SLP has been discarded.
10720 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
10721 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
10722 masks.
10723 (vect_build_slp_tree_1): Fixed comment typo.
10724 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
10725 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
10726 loads for SLP only.
10727 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
10728 vectorizable.
10729 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
10730
10731 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10732
10733 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
10734 Remove obsolete use_thunk reference.
10735 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10736 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10737 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10738 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10739 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10740 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10741 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10742 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10743 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10744
10745 2019-05-28 Nathan Sidwell <nathan@acm.org>
10746
10747 * tree.h (IDENTIFIER_ANON_P): New.
10748 (anon_aggrname_format, anon_aggname_p): Don't declare.
10749 (make_anon_name): Declare.
10750 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
10751 (hash_tree): Likewise.
10752 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
10753 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
10754 (anon_cnt, make_anon_name): New.
10755
10756 2019-05-28 Martin Liska <mliska@suse.cz>
10757
10758 PR other/90315
10759 * opts-global.c (decode_options): Print help for all
10760 help_option_arguments.
10761 * opts.c (print_help): Add new argument.
10762 (common_handle_option): Remember all values into
10763 help_option_arguments.
10764 * opts.h (print_help): Add new argument.
10765
10766 2019-05-28 Martin Liska <mliska@suse.cz>
10767
10768 PR ipa/90555
10769 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
10770 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
10771 (func_checker::compare_bb): Call compare_loops.
10772
10773 2019-05-27 Jakub Jelinek <jakub@redhat.com>
10774
10775 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10776 on sections construct.
10777 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
10778 construct.
10779 (lower_omp_sections): Handle lastprivate conditional.
10780 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
10781 lastprivate_conditional_map.
10782 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
10783
10784 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
10785 critical, taskgroup and section regions when looking for a region
10786 with non-NULL lastprivate_conditional_map.
10787
10788 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10789
10790 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
10791 (*ix86_gen_sub3): Ditto.
10792 (*ix86_gen_sub3_carry): Ditto.
10793 (*ix86_gen_one_cmpl2): Ditto.
10794 (*ix86_gen_andsp): Ditto.
10795 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
10796 (gen_and2_insn): New static function.
10797 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
10798 Use gen_add3_insn instead of ix86_gen_add3.
10799 (ix86_expand_split_stack_prologue): Use gen_add2_insn
10800 instead of ix86_gen_add3.
10801 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
10802 Use gen_sub3_insn instead of ix86_gen_sub3.
10803 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
10804 instead of ix86_gen_add3.
10805 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
10806 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
10807 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
10808 * config/i386/i386-options.c (ix86_option_override_internal):
10809 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
10810 ix86_gen_one_cmpl2 and ix86_gen_andsp.
10811
10812 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
10813
10814 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
10815 and DW_OP_GNU_const_index opcodes.
10816
10817 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10818
10819 * config/i386/i386.h (STACK_SIZE_MODE): Define.
10820
10821 2019-05-27 Richard Biener <rguenther@suse.de>
10822
10823 PR tree-optimization/90637
10824 * tree-ssa-sink.c (statement_sink_location): Honor the
10825 computed sink location for single-uses.
10826
10827 2019-05-27 Richard Biener <rguenther@suse.de>
10828
10829 PR middle-end/90610
10830 * match.pd (vec_perm): Avoid clobbering op0 when not generating
10831 a bit-insert.
10832
10833 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10834
10835 * config/i386/i386.md (@sub<mode>3_carry): Rename
10836 from sub<mode>3_carry.
10837 (@leave_<mode>): New expander.
10838 (*leave): Rename from leave.
10839 (*leave_rex64): Rename from leave_rex64.
10840 (@monitorx_<mode>): Rename from monitorx_<mode>.
10841 (@clzero_<mode>): Rename from clzero_<mode>.
10842 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
10843 from sse3_monitor_<mode>.
10844 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
10845 (*ix86_gen_leave): Ditto.
10846 (*ix86_gen_monitor): Ditto.
10847 (*ix86_gen_monitorx): Ditto.
10848 (*ix86_gen_clzero): Ditto.
10849 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
10850 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
10851 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
10852 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
10853 Use gen_sse3_monitor instead of ix86_gen_monitor.
10854 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
10855 instead of ix86_gen_monitorx.
10856 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
10857 instead of ix86_gen_clzero.
10858 * config/i386/i386-options.c (ix86_option_override_internal):
10859 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
10860 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
10861
10862 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10863
10864 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
10865 Rename from tls_global_dynamic_64_<mode>.
10866 (@tls_local_dynamic_base_64_<mode>): Rename from
10867 tls_local_dynamic_base_64_<mode>.
10868 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
10869 Remove indirect function.
10870 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
10871 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
10872 instead of ix86_gen_tls_global_dynamic_64.
10873 Use gen_tls_local_dynamic_base_64 instead of
10874 ix86_gen_tls_local_dynamic_base_64.
10875 * config/i386/i386-options.c (ix86_option_override_internal):
10876 Do not initialize ix86_gen_tls_global_dynamic_64 and
10877 ix86_gen_tls_local_dynamic_base_64.
10878
10879 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10880
10881 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
10882 Rename from pro_epilogue_adjust_stack_<mode>_add.
10883 (@pro_epilogue_adjust_stack_sub_<mode>)
10884 Rename from pro_epilogue_adjust_stack_<mode>_sub.
10885 (@allocate_stack_worker_probe_<mode>):
10886 Rename from allocate_stack_worker_probe_<mode>.
10887 (allocate_stack): Use gen_allocate_stack_worker_probe.
10888 (probe_stack): Use gen_probe_stack_1.
10889 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
10890 (@adjust_stack_and_probe_<mode>): Rename from
10891 adjust_stack_and_probe<mode>.
10892 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
10893 (stack_protect_set): Use gen_stack_protect_set_1.
10894 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
10895 (stack_protect_test): Use gen_stack_protect_test_1.
10896 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
10897 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
10898 Remove indirect function.
10899 (*ix86_gen_adjust_stack_and_probe): Ditto.
10900 (*ix86_gen_probe_stack_range): Ditto.
10901 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
10902 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
10903 (ix86_adjust_stack_and_probe_stack_clash): Use
10904 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
10905 (ix86_adjust_stack_and_probe): Ditto.
10906 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
10907 of ix86_gen_probe_stack_range.
10908 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
10909 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
10910 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
10911 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
10912 CODE_FOR_stack_protect_test_{si,di}.
10913 * config/i386/i386-options.c (ix86_option_override_internal):
10914 Do not initialize ix86_gen_allocate_stack_worker,
10915 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10916
10917 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
10918
10919 * doc/invoke.texi (Link Options): Many editorial changes around
10920 -flinker-output.
10921
10922 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10923
10924 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
10925 pre-Solaris 11 referene and most Studio compiler details.
10926
10927 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
10928
10929 PR target/90530
10930 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
10931 DImode to SImode in floating-point registers on 64-bit target.
10932 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
10933 register_operand in xmpyu patterns.
10934
10935 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10936
10937 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
10938 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
10939 OMP_CLAUSE__REDUCTEMP_.
10940 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10941 OMP_CLAUSE__CONDTEMP_.
10942 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
10943 * tree-pretty-print.c (dump_omp_clause): Likewise.
10944 * tree-nested.c (convert_nonlocal_omp_clauses,
10945 convert_local_omp_clauses): Likewise.
10946 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
10947 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
10948 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
10949 on OMP_FOR.
10950 (gimplify_omp_for): Warn and disable conditional modifier from
10951 lastprivate on loop iterators.
10952 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
10953 member.
10954 * omp-general.c (omp_extract_for_data): Initialize it.
10955 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
10956 member.
10957 (delete_omp_context): Delete it.
10958 (lower_lastprivate_conditional_clauses): New function.
10959 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
10960 handle lastprivate conditional clauses.
10961 (lower_reduction_clauses): Add CLIST argument, emit it into
10962 the critical section if any.
10963 (lower_omp_sections): Adjust lower_lastprivate_clauses and
10964 lower_reduction_clauses callers.
10965 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
10966 to lower_lastprivate_clauses.
10967 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
10968 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
10969 clist into a critical section if not emitted there already by
10970 lower_reduction_clauses.
10971 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
10972 callers.
10973 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
10974 conditional variables.
10975 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
10976 clause is present.
10977 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10978 expand_omp_for_static_chunk): Handle lastprivate conditional.
10979 (expand_omp_for): Handle fd.lastprivate_conditional like
10980 fd.have_reductemp.
10981
10982 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10983
10984 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
10985 kernel does not exit cleanly.
10986 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
10987
10988 2019-05-24 Jason Merrill <jason@redhat.com>
10989
10990 Revert:
10991 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
10992
10993 2019-05-24 Richard Biener <rguenther@suse.de>
10994
10995 PR testsuite/90607
10996 * tree-loop-distribution.c (struct partition): Add location
10997 member.
10998 (partition_alloc): Initialize all fields.
10999 (generate_memset_builtin): Use the location recorded in the
11000 partition for the generated call.
11001 (generate_memcpy_builtin): Likewise.
11002 (classify_partition): Record the location of a single store
11003 as location for the partition.
11004
11005 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11006
11007 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
11008 for lo-part.
11009
11010 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
11011
11012 PR target/90588
11013 * common/config/aarch64/aarch64-common.c
11014 (aarch64_rewrite_selected_cpu): Change local temporary variable
11015 type from unsigned long to uint64_t.
11016 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
11017 aarch64_get_extension_string_for_isa_flags): Change declaration to
11018 match new definition by replacing unsigned long with uint64_t.
11019
11020 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11021
11022 PR target/90568
11023 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
11024 gen_attr_type just once instead of 4-7 times. Formatting fixes.
11025 Handle stack_protect_test_<mode> codegen similarly to corresponding
11026 sub instruction.
11027
11028 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
11029
11030 * config/i386/darwin.h: Reject -mfentry*.
11031 * doc/sourcebuild.texi: Document mfentry target support.
11032
11033 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11034
11035 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
11036 Rename to rs6000_global_entry_point_prologue_needed_p. Return
11037 false for PC-relative functions.
11038 (rs6000_output_function_prologue): Change called function name to
11039 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
11040 name,1" for PC-relative functions.
11041 (rs6000_elf_declare_function_name): Change called function name to
11042 rs6000_global_entry_point_prologue_needed_p.
11043
11044 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
11045
11046 PR target/90552
11047 * config/i386/i386.c (gen_rtx_cost):
11048 Use ix86_tune_cost instead of ix86_cost.
11049
11050 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11051 Michael Meissner <meissner@linux.ibm.com>
11052 Segher Boessenkool <segher@kernel.crashing.org>
11053
11054 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
11055 OPTION_MASK_PCREL.
11056 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
11057 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
11058 (rs6000_fndecl_pcrel_p): Likewise.
11059 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
11060 error if -mpcrel is requested without -mcpu=future.
11061 (rs6000_opt_masks): Add entry for pcrel.
11062 (rs6000_fndecl_pcrel_p): New function.
11063 (rs6000_pcrel_p): Likewise.
11064 * config/rs6000/rs6000.opt (mpcrel): New option.
11065 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
11066
11067 2019-05-23 Jan Hubicka <jh@suse.cz>
11068 Martin Liska <mliska@suse.cz>
11069
11070 PR tree-optimization/90576
11071 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
11072 poly_int_tree_p.
11073 (aliasing_component_refs_p): Fix three way size compare conditional;
11074 give up earlier in case we can not decide on equivalence.
11075
11076 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11077 Michael Meissner <meissner@linux.ibm.com>
11078 Segher Boessenkool <segher@kernel.crashing.org>
11079
11080 * config.gcc: Add future cpu.
11081 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
11082 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
11083 #define.
11084 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
11085 (RS6000_CPU): New instantiation for future cpu.
11086 * config/rs6000/rs6000-opts.h (enum processor_type): Add
11087 PROCESSOR_FUTURE.
11088 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
11089 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
11090 * config/rs6000/rs6000-tables.opt: Regenerate.
11091 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
11092 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
11093 (rs6000_machine_from_flags): Handle future cpu.
11094 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
11095 PROCESSOR_POWER9 for now.
11096 (rs6000_adjust_cost): Likewise.
11097 (rs6000_issue_rate): Likewise.
11098 (rs6000_register_move_cost): Likewise.
11099 (rs6000_opt_masks): Add entry for future.
11100 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
11101 (MASK_FUTURE): New #define.
11102 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
11103 * config/rs6000/rs6000.opt (mfuture): New target option.
11104 * doc/invoke.texi (mcpu): Add future cpu.
11105
11106 2019-05-23 Martin Liska <mliska@suse.cz>
11107
11108 PR c++/90587
11109 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
11110 operation points to a temporary (pointed via tree_to_wide_ref)
11111 that is out of scope after the &.
11112
11113 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
11114
11115 PR c++/90592
11116 * doc/extend.texi (Function Names): Add missing word.
11117
11118 2019-05-23 Richard Biener <rguenther@suse.de>
11119
11120 PR tree-optimization/88440
11121 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11122 at -O[2s]+.
11123 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11124 generated call.
11125 (generate_memcpy_builtin): Likewise.
11126 (distribute_loop): Pass in whether to only distribute patterns.
11127 (prepare_perfect_loop_nest): Also allow size optimization.
11128 (pass_loop_distribution::execute): When optimizing a loop
11129 nest for size allow pattern replacement.
11130
11131 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11132
11133 PR target/90568
11134 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11135 of xor.
11136
11137 2019-05-23 Martin Liska <mliska@suse.cz>
11138
11139 PR sanitizer/90570
11140 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11141 expression similarly to gimplify_decl_expr.
11142
11143 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11144
11145 * cse.c (cse_dump_path): s/dump_file/f.
11146
11147 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11148
11149 PR c++/90462
11150 * diagnostic-format-json.cc: Include "selftest.h".
11151 (json_from_expanded_location): Only add "file" key for non-NULL
11152 file strings.
11153 (json_from_location_range): Don't add "start" and "finish"
11154 children if they are UNKNOWN_LOCATION.
11155 (selftest::test_unknown_location): New selftest.
11156 (selftest::test_bad_endpoints): New selftest.
11157 (selftest::diagnostic_format_json_cc_tests): New function.
11158 * json.cc (json::object::get): New function.
11159 (selftest::test_object_get): New selftest.
11160 (selftest::json_cc_tests): Call it.
11161 * json.h (json::object::get): New decl.
11162 * selftest-run-tests.c (selftest::run_tests): Call
11163 selftest::diagnostic_format_json_cc_tests.
11164 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11165 decl.
11166
11167 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11168 Andrew Stubbs <amd@codesourcery.com>
11169
11170 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11171 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11172 (kernel): Rename to...
11173 (main_kernel): ... this.
11174 (load_image): Load _init_array and _fini_array kernels.
11175 (run): Add argument for kernel to run.
11176 (main): Run init_array_kernel before main_kernel, and
11177 fini_array_kernel after.
11178 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11179 amdgpu_hsa_kernel attribute on functions.
11180 (gcn_disable_constructors): Delete.
11181 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11182 * config/gcn/crt0.c (size_t): Define.
11183 (_init_array, _fini_array): New.
11184 (__preinit_array_start, __preinit_array_end,
11185 __init_array_start, __init_array_end,
11186 __fini_array_start, __fini_array_end): Declare weak references.
11187
11188 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11189
11190 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11191
11192 2019-05-22 Jason Merrill <jason@redhat.com>
11193
11194 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11195
11196 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11197
11198 PR target/88483
11199 * config/i386/i386-options.c (ix86_init_machine_status): Set
11200 stack_frame_required to true.
11201 * config/i386/i386.c (ix86_get_frame_size): New function.
11202 (ix86_frame_pointer_required): Replace get_frame_size with
11203 ix86_get_frame_size.
11204 (ix86_compute_frame_layout): Likewise.
11205 (ix86_find_max_used_stack_alignment): Changed to void. Set
11206 stack_frame_required.
11207 (ix86_finalize_stack_frame_flags): Always call
11208 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11209 ix86_get_frame_size.
11210 * config/i386/i386.h (machine_function): Add stack_frame_required.
11211
11212 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11213
11214 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11215
11216 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11217
11218 * common/config/aarch64/aarch64-common.c
11219 (struct aarch64_option_extension, struct processor_name_to_arch,
11220 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11221 aarch64_contains_opt,
11222 aarch64_get_extension_string_for_isa_flags): Change type of
11223 variables storing flags to uint64_t.
11224 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11225 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11226 * config/aarch64/aarch64.c (struct processor,
11227 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11228 aarch64_validate_march, aarch64_override_options,
11229 aarch64_option_print, aarch64_handle_attr_isa_flags,
11230 aarch64_declare_function_name, aarch64_start_file): Make flag
11231 variables uint64_t.
11232 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11233 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11234 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11235 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11236 * config/aarch64/driver-aarch64.c
11237 (struct aarch64_arch_extension, struct aarch64_core_data,
11238 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11239 flag variables uint64_t.
11240 * doc/invoke.texi: Add documentation for new arguments.
11241
11242 2019-05-22 Richard Biener <rguenther@suse.de>
11243
11244 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11245 rewrite ...
11246 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11247
11248 2019-05-22 Martin Liska <mliska@suse.cz>
11249
11250 PR lto/90500
11251 * doc/extend.texi: Document the change.
11252
11253 2019-05-22 Richard Biener <rguenther@suse.de>
11254
11255 PR tree-optimization/90450
11256 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11257 (mem_ref_hasher::equal): Check it.
11258 (mem_ref_alloc): Initialize it.
11259 (gather_mem_refs_stmt): Set it.
11260
11261 2019-05-22 Richard Biener <rguenther@suse.de>
11262
11263 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11264 Add ABS_EXPR.
11265 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11266 as ABSU_EXPR.
11267
11268 2019-05-22 Alan Modra <amodra@gmail.com>
11269
11270 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11271 (ASM_CPU_SPEC): Conditionally add -many.
11272 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11273 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11274 (rs6000_file_start): ..extracted from here, and modified to
11275 test all ISA bits.
11276 (rs6000_output_function_prologue): Emit .machine as necessary.
11277
11278 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11279
11280 PR middle-end/90553
11281 * ira-lives.c (process_bb_node_lives): Consider defs
11282 for a call insn to be die before the call, not after.
11283
11284 * function.c (assign_parm_setup_block): Raise alignment of
11285 stacked parameter only for STRICT_ALIGNMENT targets.
11286
11287 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11288
11289 * config/rs6000/constraints.md (define_register_constraint "wz"):
11290 Delete.
11291 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11292 RS6000_CONSTRAINT_wz.
11293 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11294 (rs6000_init_hard_regno_mode_ok): Adjust.
11295 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11296 * doc/md.texi (Machine Constraints): Adjust.
11297
11298 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11299
11300 * config/rs6000/constraints.md (define_register_constraint "wl"):
11301 Delete.
11302 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11303 RS6000_CONSTRAINT_wl.
11304 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11305 (rs6000_init_hard_regno_mode_ok): Adjust.
11306 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11307 * doc/md.texi (Machine Constraints): Adjust.
11308
11309 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11310
11311 * config/rs6000/constraints.md (define_register_constraint "wm"):
11312 Delete.
11313 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11314 RS6000_CONSTRAINT_wm.
11315 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11316 (rs6000_init_hard_regno_mode_ok): Adjust.
11317 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11318 * doc/md.texi (Machine Constraints): Adjust.
11319
11320 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11321
11322 * config/rs6000/constraints.md (define_register_constraint "wk"):
11323 Delete.
11324 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11325 RS6000_CONSTRAINT_wk.
11326 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11327 (rs6000_init_hard_regno_mode_ok): Adjust.
11328 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11329 * doc/md.texi (Machine Constraints): Adjust.
11330
11331 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11332
11333 * config/rs6000/constraints.md (define_register_constraint "wj"):
11334 Delete.
11335 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11336 RS6000_CONSTRAINT_wj.
11337 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11338 (rs6000_init_hard_regno_mode_ok): Adjust.
11339 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11340 (VS_64dm): Delete.
11341 * config/rs6000/vsx.md: Ditto.
11342 * doc/md.texi (Machine Constraints): Adjust.
11343
11344 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11345
11346 * config/rs6000/constraints.md (define_register_constraint "wh"):
11347 Delete.
11348 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11349 RS6000_CONSTRAINT_wh.
11350 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11351 (rs6000_init_hard_regno_mode_ok): Adjust.
11352 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11353 * doc/md.texi (Machine Constraints): Adjust.
11354
11355 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11356
11357 PR target/90547
11358 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11359 Avoid calling gen_lowpart with CONST operand.
11360
11361 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11362
11363 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11364 field template_last_to_copy.
11365 (ssa_create_duplicates): Set it, and use it. Attempt to
11366 preserve more debug stmts.
11367
11368 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11369
11370 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11371 (signbit<mode>2): New expander
11372
11373 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11374
11375 PR bootstrap/87338
11376 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11377 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11378
11379 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11380
11381 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11382 %ebx and %ecx bafore calling cpuid with leaf 1 or
11383 non-constant leaf argument.
11384
11385 2019-05-21 Alan Modra <amodra@gmail.com>
11386
11387 PR target/90545
11388 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11389 power9 direct move cost.
11390
11391 2019-05-21 Richard Biener <rguenther@suse.de>
11392
11393 PR middle-end/90510
11394 * fold-const.c (fold_read_from_vector): New function.
11395 * fold-const.h (fold_read_from_vector): Declare.
11396 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11397 single-element insert permutations. Canonicalize selector
11398 further and fix issue with last commit.
11399
11400 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11401
11402 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11403 parameter with default value false to declaration.
11404 (split_edges_for_insertion): New inline function. Wrapper for
11405 split_critical_edges with for_edge_insertion_p = true.
11406 * tree-cfg.c (split_critical_edges): Don't split non-critical
11407 edges if for_edge_insertion_p is false. Fix whitespace.
11408 * tree-ssa-pre.c (pass_pre::execute): Call
11409 split_edges_for_insertion instead of split_critical_edges.
11410 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11411 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11412 (pass_data_sink_code): Update function name in the comment.
11413
11414 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11415
11416 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11417 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11418 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11419 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11420 positives.
11421
11422 2019-05-21 Martin Liska <mliska@suse.cz>
11423
11424 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11425 an extra newline.
11426 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11427 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11428 vec_lvsr.
11429 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11430 Quote a C type.
11431 (rs6000_function_arg): Likewise.
11432 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11433 (rs6000_expand_ternop_builtin): Use interval syntax.
11434 (get_element_number): Likewise.
11435 (altivec_expand_builtin): Likewise.
11436 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11437
11438 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11439
11440 PR c++/59813
11441 PR target/90418
11442 * function.h (struct function): Add calls_eh_return member.
11443 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11444 gimplifying __builtin_eh_return call.
11445 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11446 to cfun.
11447 (expand_call_inline): Or in src_cfun->calls_eh_return into
11448 dst_cfun->calls_eh_return.
11449 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
11450 cfun->calls_eh_return.
11451 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
11452 * lto-streamer-out.c (output_struct_function_base): Write
11453 calls_eh_return.
11454
11455 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
11456
11457 PR rtl-optimization/43147
11458 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
11459 IX86_BUILTIN_SHUFPD.
11460
11461 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11462
11463 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
11464 (refs_may_alias_p_1): ... here; update stats.
11465 (refs_may_alias_p): Do not update stats here.
11466
11467 2019-05-20 Richard Biener <rguenther@suse.de>
11468
11469 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
11470 doesn't produce pointers.
11471 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
11472 the first operand points to.
11473
11474 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11475
11476 * tree-ssa-alias.c (compare_sizes): New function.
11477 (sompare_type_sizes): New function
11478 (aliasing_component_refs_p): Use it.
11479 (indirect_ref_may_alias_decl_p): Likewise.
11480
11481 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11482
11483 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
11484
11485 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11486
11487 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
11488 (LIBLSAN_EARLY_SPEC): Likewise.
11489 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
11490
11491 2019-05-20 Martin Liska <mliska@suse.cz>
11492
11493 * config/i386/i386.c (ix86_libc_has_fast_function):
11494 Add ATTRIBUTE_UNUSED for the argument.
11495
11496 2019-05-20 Richard Biener <rguenther@suse.de>
11497
11498 * gimple-match-head.c: Include vec-perm-indices.h.
11499 * generic-match-head.c: Likewise.
11500 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
11501 is included.
11502 * fold-const.c (fold_vec_perm): Export.
11503 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
11504 (match.pd): ...here.
11505
11506 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11507
11508 * cfgloop.h (struct loop): Add simdlen member.
11509 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
11510 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
11511 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
11512 as new argument to autovectorize_vector_sizes target hook. If
11513 loop->simdlen, pick up vector size where the vectorization factor
11514 is equal to loop->simd, and if there is none, fall back to the first
11515 successful one.
11516 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
11517 caller.
11518 * omp-low.c (omp_clause_aligned_alignment): Likewise.
11519 * omp-general.c (omp_max_vf): Likewise.
11520 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
11521 * tree-vect-slp.c (vect_slp_bb): Likewise.
11522 * target.def (autovectorize_vector_sizes): Add ALL argument and
11523 document it.
11524 * doc/tm.texi: Adjust documentation.
11525 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
11526 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
11527 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
11528 bool argument.
11529 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
11530 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
11531 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
11532 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
11533 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
11534 preferred vector size is not 512-bit or 256-bit, just put those
11535 unpreferred ones last.
11536
11537 2019-05-20 Martin Liska <mliska@suse.cz>
11538
11539 * targhooks.c (default_libc_has_fast_function): New function.
11540 * targhooks.h (default_libc_has_fast_function): Likewise.
11541
11542 2019-05-20 Martin Liska <mliska@suse.cz>
11543
11544 PR middle-end/90263
11545 * builtins.c (expand_builtin_memory_copy_args): When having a
11546 target with fast mempcpy implementation do now use memcpy.
11547 * config/i386/i386.c (ix86_libc_has_fast_function): New.
11548 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
11549 * doc/tm.texi: Likewise.
11550 * doc/tm.texi.in: Likewise.
11551 * target.def:
11552 * expr.c (emit_block_move_hints): Add 2 new arguments.
11553 * expr.h (emit_block_move_hints): Bail out when libcall
11554 to memcpy would be used.
11555
11556 2019-05-20 Martin Liska <mliska@suse.cz>
11557
11558 * profile-count.c: Add vertical spacing in order
11559 to separate functions.
11560 * profile-count.h: Likewise.
11561
11562 2019-05-20 Martin Liska <mliska@suse.cz>
11563
11564 * profile-count.h: Do not use full qualified
11565 names if possible.
11566 * profile-count.c (profile_count::to_frequency): Likewise.
11567
11568 2019-05-20 Martin Liska <mliska@suse.cz>
11569
11570 * profile-count.h (enum profile_quality): Use capital letters
11571 for enum value names. Use the adjusted names.
11572 * profile-count.c: Use the adjusted names.
11573
11574 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11575
11576 * config/rs6000/constraints.md (define_register_constraint "wH"):
11577 Delete.
11578 (define_register_constraint "wI"): Delete.
11579 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11580 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
11581 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11582 (rs6000_init_hard_regno_mode_ok): Adjust.
11583 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
11584 resp. "d", or with "wa" as appropriate, all with "p8v".
11585 * config/rs6000/vsx.md: Ditto.
11586 * doc/md.texi (Machine Constraints): Adjust.
11587
11588 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11589
11590 * config/rs6000/constraints.md (define_register_constraint "wy"):
11591 Delete.
11592 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11593 RS6000_CONSTRAINT_wy.
11594 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11595 (rs6000_init_hard_regno_mode_ok): Adjust.
11596 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
11597 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
11598 (define_mode_attr Fisa): New.
11599 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
11600 * doc/md.texi (Machine Constraints): Adjust.
11601
11602 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11603
11604 * config/rs6000/constraints.md (define_register_constraint "wu"):
11605 Delete.
11606 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11607 RS6000_CONSTRAINT_wu.
11608 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11609 (rs6000_init_hard_regno_mode_ok): Adjust.
11610 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
11611 both with "p8v".
11612 (define_mode_attr Fa): Delete.
11613 * config/rs6000/vsx.md: Ditto.
11614 * doc/md.texi (Machine Constraints): Adjust.
11615
11616 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11617
11618 * config/rs6000/constraints.md (define_register_constraint "wJ"):
11619 Delete.
11620 (define_register_constraint "wK"): Delete.
11621 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11622 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
11623 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11624 (rs6000_init_hard_regno_mode_ok): Adjust.
11625 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
11626 Replace "wK" constraint by "wH" with "p9v".
11627 * config/rs6000/vsx.md: Ditto.
11628 * doc/md.texi (Machine Constraints): Adjust.
11629
11630 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11631
11632 * config/rs6000/constraints.md (define_register_constraint "wb"):
11633 Delete.
11634 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11635 RS6000_CONSTRAINT_wb.
11636 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11637 (rs6000_init_hard_regno_mode_ok): Adjust.
11638 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
11639 * config/rs6000/vsx.md: Ditto.
11640 * doc/md.texi (Machine Constraints): Adjust.
11641
11642 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11643
11644 * config/rs6000/constraints.md (define_register_constraint "wo"):
11645 Delete.
11646 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11647 RS6000_CONSTRAINT_wo.
11648 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11649 (rs6000_init_hard_regno_mode_ok): Adjust.
11650 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
11651 * config/rs6000/altivec.md: Ditto.
11652 * doc/md.texi (Machine Constraints): Adjust.
11653
11654 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11655
11656 * config/darwin-c.c (darwin_register_objc_includes): Do not
11657 prepend the sysroot when building gnu-runtime header search
11658 paths.
11659
11660 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11661
11662 * config/darwin.c (darwin_file_end): Use switch_to_section ()
11663 instead of direct output of the asm.
11664
11665 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11666
11667 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
11668 argument to be type bool (was int before).
11669 (rs6000_emit_epilogue): Simplify some code. Declare some variables
11670 at first use. Use type bool for some variables. Fix a theoretical
11671 eh_return bug for svr4.
11672
11673 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11674
11675 * config/rs6000/rs6000.md (isa): New attribute.
11676 (enabled): New attribute.
11677
11678 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
11679
11680 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
11681 assemble_start_function and assemble_end_function.
11682
11683 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
11684
11685 PR middle-end/89433
11686 * omp-general.c (oacc_verify_routine_clauses): Change formal
11687 parameters. Add checking if already marked with an OpenACC
11688 'routine' directive. Adjust all users.
11689
11690 PR middle-end/89433
11691 * omp-general.c (oacc_build_routine_dims): Move some of its
11692 processing into...
11693 (oacc_verify_routine_clauses): ... this new function.
11694 * omp-general.h (oacc_verify_routine_clauses): New prototype.
11695
11696 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11697
11698 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
11699 formating of picbase labels to match other ports.
11700
11701 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11702
11703 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
11704 in the generated code.
11705
11706 2019-05-16 Martin Sebor <msebor@redhat.com>
11707
11708 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
11709 identifiers, keywords, operators, and types in diagnostics. Correct
11710 quoting, spelling, and sentence capitalization issues.
11711 (expand_builtin_atomic_is_lock_free): Same.
11712 (fold_builtin_next_arg): Same.
11713 * cfgexpand.c (expand_one_var): Same.
11714 (tree_conflicts_with_clobbers_p): Same.
11715 (expand_asm_stmt): Same.
11716 (verify_loop_structure): Same.
11717 * cgraphunit.c (process_function_and_variable_attributes): Same.
11718 * collect-utils.c (collect_execute): Same.
11719 * collect2.c (maybe_run_lto_and_relink): Same.
11720 (is_lto_object_file): Same.
11721 (scan_prog_file): Same.
11722 * convert.c (convert_to_real_1): Same.
11723 * dwarf2out.c (dwarf2out_begin_prologue): Same.
11724 * except.c (verify_eh_tree): Same.
11725 * gcc.c (execute): Same.
11726 (eval_spec_function): Same.
11727 (run_attempt): Same.
11728 (driver::set_up_specs): Same.
11729 (compare_debug_auxbase_opt_spec_function): Same.
11730 * gcov-tool.c (unlink_gcda_file): Same.
11731 (do_merge): Same.
11732 (do_rewrite): Same.
11733 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
11734 * gimplify.c (gimplify_asm_expr): Same.
11735 (gimplify_adjust_omp_clauses): Same.
11736 * hsa-gen.c (gen_hsa_addr_insns): Same.
11737 (gen_hsa_insns_for_load): Same.
11738 (gen_hsa_cmp_insn_from_gimple): Same.
11739 (gen_hsa_insns_for_operation_assignment): Same.
11740 (gen_get_level): Same.
11741 (gen_hsa_alloca): Same.
11742 (omp_simple_builtin::generate): Same.
11743 (gen_hsa_atomic_for_builtin): Same.
11744 (gen_hsa_insns_for_call): Same.
11745 * input.c (dump_location_info): Same.
11746 * ipa-devirt.c (compare_virtual_tables): Same.
11747 * ira.c (ira_setup_eliminable_regset): Same.
11748 * lra-assigns.c (lra_assign): Same.
11749 * lra-constraints.c (lra_constraints): Same.
11750 * lto-streamer-in.c (lto_input_mode_table): Same.
11751 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
11752 (merge_and_complain): Same.
11753 (compile_offload_image): Same.
11754 (compile_images_for_offload_targets): Same.
11755 (debug_objcopy): Same.
11756 (run_gcc): Same.
11757 (main): Same.
11758 * opts.c (print_specific_help): Same.
11759 (parse_no_sanitize_attribute): Same.
11760 (print_help): Same.
11761 (handle_param): Same.
11762 * plugin.c (add_new_plugin): Same.
11763 (parse_plugin_arg_opt): Same.
11764 (try_init_one_plugin): Same.
11765 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
11766 operators, and types in diagnostics. Correct quoting and spelling
11767 issues.
11768 * read-rtl-function.c (parse_edge_flag_token): Same.
11769 (function_reader::parse_enum_value): Same.
11770 * reg-stack.c (check_asm_stack_operands): Same.
11771 * regcprop.c (validate_value_data): Same.
11772 * sched-rgn.c (make_pass_sched_fusion): Same.
11773 * stmt.c (check_unique_operand_names): Same.
11774 * targhooks.c (default_target_option_pragma_parse): Same.
11775 * tlink.c (recompile_files): Same.
11776 * toplev.c (process_options): Same.
11777 (do_compile): Same.
11778 * trans-mem.c (diagnose_tm_1): Same.
11779 (ipa_tm_scan_irr_block): Same.
11780 (ipa_tm_diagnose_transaction): Same.
11781 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
11782 format a tree code name in a diagnostic.
11783 (verify_types_in_gimple_min_lval): Same.
11784 (verify_types_in_gimple_reference): Same.
11785 (verify_gimple_call): Same.
11786 (verify_gimple_assign_unary): Same.
11787 (verify_gimple_assign_binary): Same.
11788 (verify_gimple_assign_ternary): Same.
11789 (verify_gimple_assign_single): Same.
11790 (verify_gimple_switch): Same.
11791 (verify_gimple_label): Same.
11792 (verify_gimple_phi): Same.
11793 (verify_gimple_in_seq): Same.
11794 (verify_eh_throw_stmt_node): Same.
11795 (collect_subblocks): Same.
11796 (gimple_verify_flow_info): Same.
11797 (do_warn_unused_result): Same.
11798 * tree-inline.c (expand_call_inline): Same.
11799 * tree-into-ssa.c (update_ssa): Same.
11800 * tree.c (tree_int_cst_elt_check_failed): Same.
11801 (tree_vec_elt_check_failed): Same.
11802 (omp_clause_operand_check_failed): Same.
11803 (verify_type_variant): Same.
11804 (verify_type): Same.
11805 * value-prof.c (verify_histograms): Same.
11806 * varasm.c (assemble_start_function): Same.
11807
11808 2019-05-16 Martin Sebor <msebor@redhat.com>
11809
11810 * config/i386/i386-expand.c (get_element_number): Quote keywords
11811 and other internal names in diagnostics. Adjust other diagnostic
11812 formatting issues noted by -Wformat-diag.
11813 * config/i386/i386-features.c
11814 (ix86_mangle_function_version_assembler_name): Same.
11815 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
11816 * config/i386/i386.c (ix86_function_type_abi): Same.
11817 (ix86_function_ms_hook_prologue): Same.
11818 (classify_argument): Same.
11819 (ix86_expand_prologue): Same.
11820 (ix86_md_asm_adjust): Same.
11821 (ix86_memmodel_check): Same.
11822
11823 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11824
11825 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
11826 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
11827 and fpxx modes.
11828
11829 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
11830
11831 PR target/90497
11832 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
11833 intrinsics without SSE/SSE2/SSSE3.
11834 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
11835 check.
11836 (*mmx_uavgv8qi3): Likewise.
11837
11838 2019-05-17 Richard Biener <rguenther@suse.de>
11839
11840 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
11841 VEC_PERM_EXPR as __VEC_PERM with -gimple.
11842
11843 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
11844
11845 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
11846 vec_sldw insn pattern.
11847
11848 2019-05-17 Richard Biener <rguenther@suse.de>
11849
11850 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
11851
11852 2019-05-17 Martin Liska <mliska@suse.cz>
11853
11854 PR driver/90496
11855 * toplev.c (output_stack_usage): With LTO and sanitizer it
11856 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
11857 has no file location.
11858
11859 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11860
11861 PR c++/90484
11862 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
11863 sz0 is equal to sz1, instead return false in that case.
11864
11865 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
11866 has non-constant expression, force sctx.lane and use two
11867 argument IFN_GOMP_SIMD_LANE instead of single argument.
11868 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
11869 two argument IFN_GOMP_SIMD_LANE without lhs.
11870 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
11871 member.
11872 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
11873 Define.
11874 (LOOP_REQUIRES_VERSIONING): Or in
11875 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
11876 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11877 simd_if_cond.
11878 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
11879 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
11880 from simd if clause if needed.
11881
11882 2019-05-16 Richard Biener <rguenther@suse.de>
11883
11884 * tree-affine.c (expr_to_aff_combination): New function split
11885 out from...
11886 (tree_to_aff_combination): ... here.
11887 (aff_combination_expand): Avoid building a GENERIC tree.
11888
11889 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
11890
11891 * cgraphunit.c (cgraph_node::expand_thunk): Remove
11892 assemble_start_function and assemble_end_function calls.
11893 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
11894 assemble_start_function and assemble_end_function.
11895 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
11896 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
11897 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
11898 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
11899 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
11900 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
11901 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
11902 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
11903 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11904 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11905 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11906 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
11907 Likewise.
11908 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
11909 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
11910 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
11911 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
11912 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11913 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11914 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
11915 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
11916 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11917 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11918 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11919 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11920 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
11921 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
11922 Likewise.
11923 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11924 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11925 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
11926
11927 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
11928
11929 * tree-ssa-alias.c (alias_stats): Add
11930 aliasing_component_refs_p_may_alias and
11931 aliasing_component_refs_p_no_alias.
11932 (dump_alias_stats): Print aliasing_component_refs_p stats.
11933 (aliasing_component_refs_p): Update stats.
11934
11935 2019-05-16 Martin Liska <mliska@suse.cz>
11936
11937 PR lto/90500
11938 * multiple_target.c (expand_target_clones): Do not allow
11939 target_clones being used with a symbol that is an alias.
11940
11941 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
11942
11943 PR tree-optimization/90394
11944 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
11945 positives rather than ICE for cases where (code2 == NE_EXPR
11946 && code1 == BIT_AND_EXPR).
11947
11948 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11949
11950 PR fortran/90329
11951 * tree-core.h (struct tree_decl_common): Document
11952 decl_nonshareable_flag for PARM_DECLs.
11953 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
11954 * calls.c (expand_call): Don't try tail call if caller
11955 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
11956 passed on the stack and callee needs to pass any arguments on the
11957 stack.
11958 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11959 else if instead of series of mutually exclusive ifs. Handle
11960 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
11961 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
11962
11963 * lto-streamer.h (LTO_major_version): Bump to 9.
11964
11965 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
11966
11967 PR tree-optimization/90106
11968 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
11969 new parameter as new internal function call, also move it to new
11970 basic block.
11971 (use_internal_fn): Pass internal function call to
11972 shrink_wrap_one_built_in_call_with_conds.
11973
11974 2019-05-15 Jakub Jelinek <jakub@redhat.com>
11975
11976 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
11977 max_vf to 1.
11978 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
11979 safelen_int and set loop->dont_vectorize.
11980
11981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11982
11983 PR target/89021
11984 * config/i386/i386-builtin.def: Enable MMX intrinsics with
11985 SSE/SSE2/SSSE3.
11986 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11987 Likewise.
11988 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
11989 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
11990 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
11991 is defined.
11992
11993 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11994
11995 PR target/89021
11996 * config/i386/mmx.md (*vec_dupv2sf): Changed to
11997 define_insn_and_split to support SSE emulation.
11998 (*vec_extractv2sf_0): Likewise.
11999 (*vec_extractv2sf_1): Likewise.
12000 (*vec_extractv2si_0): Likewise.
12001 (*vec_extractv2si_1): Likewise.
12002 (*vec_extractv2si_zext_mem): Likewise.
12003 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
12004 (vec_extractv2sf_1 splitter): Likewise.
12005 (vec_extractv2sfsf): Likewise.
12006 (vec_setv2si): Likewise.
12007 (vec_extractv2si_1 splitter): Likewise.
12008 (vec_extractv2sisi): Likewise.
12009 (vec_setv4hi): Likewise.
12010 (vec_extractv4hihi): Likewise.
12011 (vec_setv8qi): Likewise.
12012 (vec_extractv8qiqi): Likewise.
12013 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12014 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
12015 (vec_extractv2sisi): Likewise.
12016 (vec_extractv4hihi): Likewise.
12017 (vec_extractv8qiqi): Likewise.
12018 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12019 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
12020 (vec_initv2sisi): Likewise.
12021 (vec_initv4hihi): Likewise.
12022 (vec_initv8qiqi): Likewise.
12023 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
12024 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
12025 (vec_setv4hi): Likewise.
12026 (vec_setv8qi): Likewise.
12027
12028 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12029
12030 PR target/89021
12031 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
12032 TARGET_MMX_WITH_SSE.
12033 (MMXMODE:*mov<mode>_internal): Likewise.
12034 (MMXMODE:movmisalign<mode>): Likewise.
12035
12036 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
12037
12038 PR target/89021
12039 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
12040 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
12041 (sse2_cvtpd2pi): Ditto.
12042 (sse2_cvttpd2pi): Ditto.
12043 (*vec_concatv2sf_sse4_1): Ditto.
12044 (*vec_concatv2sf_sse): Ditto.
12045 (*vec_concatv2si_sse4_1): Ditto.
12046 (*vec_concatv2si): Ditto.
12047 (*vec_concatv4si_0): Ditto.
12048 (*vec_concatv2di_0): Ditto.
12049
12050 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12051
12052 PR target/89021
12053 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
12054
12055 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12056
12057 PR target/89021
12058 * config/i386/sse.md (ssse3_palignrdi): Changed to
12059 define_insn_and_split to support SSE emulation.
12060
12061 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12062
12063 PR target/89021
12064 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
12065
12066 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12067
12068 PR target/89021
12069 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
12070 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12071 SSE emulation.
12072
12073 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12074
12075 PR target/89021
12076 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
12077 or TARGET_MMX_WITH_SSE.
12078 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
12079
12080 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12081
12082 PR target/89021
12083 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
12084
12085 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12086
12087 PR target/89021
12088 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
12089 Changed to define_insn_and_split to support SSE emulation.
12090
12091 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12092
12093 PR target/89021
12094 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
12095 Changed to define_insn_and_split to support SSE emulation.
12096
12097 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12098
12099 PR target/89021
12100 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
12101 (*mmx_<emms>): This.
12102 (mmx_<emms>): New expander.
12103
12104 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12105
12106 PR target/89021
12107 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
12108 support.
12109 (*sse2_umulv1siv1di3): Add SSE2 emulation.
12110
12111 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12112
12113 PR target/89021
12114 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
12115
12116 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12117
12118 PR target/89021
12119 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
12120
12121 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12122
12123 PR target/89021
12124 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12125 TARGET_MMX_WITH_SSE.
12126 (*mmx_uavgv4hi3): Add SSE emulation.
12127
12128 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12129
12130 PR target/89021
12131 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12132 and TARGET_MMX_WITH_SSE.
12133 (*mmx_uavgv8qi3): Add SSE emulation.
12134
12135 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12136
12137 PR target/89021
12138 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12139 maskmovdqu for __MMX_WITH_SSE__.
12140
12141 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12142
12143 PR target/89021
12144 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12145 TARGET_MMX and TARGET_MMX_WITH_SSE.
12146 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12147
12148 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12149
12150 PR target/89021
12151 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12152 define_insn_and_split to support SSE emulation.
12153
12154 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12155
12156 PR target/89021
12157 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12158 and TARGET_MMX_WITH_SSE.
12159 (mmx_<code>v8qi3): Likewise.
12160 (smaxmin:<code>v4hi3): New.
12161 (umaxmin:<code>v8qi3): Likewise.
12162 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12163 (umaxmin:*mmx_<code>v8qi3): Likewise.
12164
12165 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12166
12167 PR target/89021
12168 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12169 TARGET_MMX_WITH_SSE.
12170 (*mmx_pinsrw): Add SSE emulation.
12171
12172 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12173
12174 PR target/89021
12175 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12176
12177 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12178
12179 PR target/89021
12180 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12181 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12182 SSE emulation.
12183
12184 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12185
12186 PR target/89021
12187 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12188 (sse_cvttps2pi): Likewise.
12189
12190 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12191
12192 PR target/89021
12193 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12194 TARGET_MMX_WITH_SSE.
12195 (mmx_pshufw_1): Add SSE emulation.
12196 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12197 TARGET_MMX_WITH_SSE to support SSE emulation.
12198
12199 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12200
12201 PR target/89021
12202 * config/i386/constraints.md (Yw): New constraint.
12203 * config/i386/mmx.md (*vec_dupv2si): Changed to
12204 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12205 support SSE emulation.
12206
12207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12208
12209 PR target/89021
12210 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12211 TARGET_MMX_WITH_SSE.
12212 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12213 support.
12214 (mmx_gt<mode>3): Likewise.
12215
12216 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12217
12218 PR target/89021
12219 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12220 TARGET_MMX_WITH_SSE. Add SSE support.
12221
12222 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12223
12224 PR target/89021
12225 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12226 TARGET_MMX_WITH_SSE.
12227 (any_logic:<code><mode>3): New.
12228 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12229 Add SSE support.
12230
12231 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12232
12233 PR target/89021
12234 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12235 TARGET_MMX_WITH_SSE. Add SSE emulation.
12236 (mmx_<shift_insn><mode>3): Likewise.
12237 (ashr<mode>3): New.
12238 (<shift_insn><mode>3): Likewise.
12239
12240 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12241
12242 PR target/89021
12243 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12244 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12245
12246 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12247
12248 PR target/89021
12249 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12250 TARGET_MMX_WITH_SSE.
12251 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12252 SSE support.
12253
12254 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12255
12256 PR target/89021
12257 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12258 TARGET_MMX_WITH_SSE.
12259 (mulv4hi3): New.
12260 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12261 support.
12262
12263 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12264
12265 PR target/89021
12266 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12267 (plusminus:mmx_<plusminus_insn><mode>3): Check
12268 TARGET_MMX_WITH_SSE.
12269 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12270 (<plusminus_insn><mode>3): New.
12271 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12272 (*mmx_<plusminus_insn><mode>3): Likewise.
12273
12274 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12275
12276 PR target/89021
12277 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12278 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12279 prototype.
12280 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12281 define_insn_and_split to support SSE emulation.
12282 (mmx_punpcklbw): Likewise.
12283 (mmx_punpckhwd): Likewise.
12284 (mmx_punpcklwd): Likewise.
12285 (mmx_punpckhdq): Likewise.
12286 (mmx_punpckldq): Likewise.
12287
12288 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12289 Uros Bizjak <ubizjak@gmail.com>
12290
12291 PR target/89021
12292 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12293 New function.
12294 (ix86_split_mmx_pack): Likewise.
12295 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12296 New prototype.
12297 (ix86_split_mmx_pack): Likewise.
12298 * config/i386/i386.md (mmx_isa): New.
12299 (enabled): Also check mmx_isa.
12300 * config/i386/mmx.md (any_s_truncate): New code iterator.
12301 (s_trunsuffix): New code attr.
12302 (mmx_packsswb): Removed.
12303 (mmx_packssdw): Likewise.
12304 (mmx_packuswb): Likewise.
12305 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12306 MMX packsswb/packuswb with SSE2.
12307 (mmx_packssdw): Likewise.
12308 * config/i386/predicates.md (register_mmxmem_operand): New.
12309
12310 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12311
12312 PR target/89021
12313 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12314 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12315 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12316 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12317 (ix86_vector_mode_supported_p): Likewise.
12318 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12319
12320 2019-05-15 Martin Liska <mliska@suse.cz>
12321
12322 PR middle-end/90478
12323 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12324 Check for overflow.
12325
12326 2019-05-15 Richard Biener <rguenther@suse.de>
12327
12328 * tree-into-ssa.c (pass_build_ssa::execute): Run
12329 update_address_taken before going into SSA.
12330
12331 2019-05-15 Richard Biener <rguenther@suse.de>
12332
12333 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12334 as __BIT_FIELD_REF with type with -gimple.
12335
12336 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12337
12338 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12339 semantically equivalent branches (left over after prior refactorings).
12340
12341 2019-05-15 Richard Biener <rguenther@suse.de>
12342
12343 PR tree-optimization/88828
12344 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12345 bogus check.
12346
12347 2019-05-14 Richard Biener <rguenther@suse.de>
12348
12349 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12350 as __VIEW_CONVERT with -gimple.
12351
12352 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12353
12354 PR target/82920
12355 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12356 Darwin.
12357
12358 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12359
12360 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12361 define_split to become a define_insn_and_split.
12362
12363 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12364
12365 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12366 arguments.
12367 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12368 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12369 (sibcall_epilogue): Adjust.
12370 (epilogue): Adjust.
12371
12372 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12373
12374 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12375 to unsupported ones.
12376 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12377 * config.host: Likewise.
12378 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12379 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12380 __svr4__]: Remove "brand" fallback.
12381 [!KSTAT_DATA_STRING]: Remove.
12382 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12383 to *-*-solaris2*.
12384 (comdat_group): Likewise.
12385 (set_have_as_tls): Likewise.
12386 (gcc_cv_target_dl_iterate_phdr): Likewise.
12387 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12388 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12389 * configure: Regenerate.
12390 * doc/install.texi: Simplify Solaris target triplets.
12391 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12392 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12393 Remove Solaris 10 references.
12394 Remove obsolete Solaris bug reference.
12395 (Specific, sparc-sun-solaris2.10): Remove.
12396
12397 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12398
12399 * config/i386/i386.md (any_div): New code iterator.
12400 (paired_mod): New code attribute.
12401 (sgnprefix): Handle DIV and UDIV RTXes.
12402 (u): Ditto.
12403 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12404 and udivmod<mode>4 patterns using any_div code iterator.
12405 (divmod splitters): Macroize splitters using any_div code iterator.
12406 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12407 (*udivmodsi4_pow2_zext_2): Ditto.
12408 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12409 and *udivmod<mode>4_noext patterns using any_div code iterator.
12410 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12411 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12412 patterns using any_div code iterator.
12413 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12414 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12415 patterns using any_div code iterator.
12416 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12417 udivmodhiqi3 patterns using any_extend code iterator.
12418
12419 2019-05-14 Richard Biener <rguenther@suse.de>
12420 H.J. Lu <hongjiu.lu@intel.com>
12421
12422 PR tree-optimization/88828
12423 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12424 permuting in a single non-constant element not extracted
12425 from a vector.
12426
12427 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12428
12429 * internal-fn.def (SIGNBIT): New.
12430 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12431 defined.
12432 (signbitv4sf2): Likewise.
12433
12434 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12435
12436 PR target/90357
12437 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12438 next insn when the SRC reg is dead.
12439
12440 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12441
12442 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12443 (alloc_cand_and_find_basis): Ditto.
12444 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12445 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12446 (create_add_imm_cand, slsr_process_cast): Ditto.
12447 (slsr_process_copy, replace_mult_candidate): Ditto.
12448 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
12449 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
12450 (pass_strength_reduction::execute): Init the first NULL element.
12451
12452 2019-05-13 Nathan Sidwell <nathan@acm.org>
12453
12454 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
12455 (run_attempt): Reformat line break.
12456
12457 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
12458
12459 PR target/90418
12460 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
12461 data registers in sibcall epilogues.
12462 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12463
12464 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
12465
12466 PR target/89221
12467 * configure.ac (--enable-frame-pointer):
12468 Disable by default for cygwin and mingw.
12469 * configure: Regenerate.
12470
12471 2019-05-13 Nathan Sidwell <nathan@acm.org>
12472
12473 * dwarf2out.c (breakout_comdat_types): Move comment to correct
12474 piece of code.
12475 (const_ok_for_output_1): Balance parens around #if/#else/#endif
12476 (gen_member_die): Move abstract origin check earlier. Only VARs
12477 can be static_inline_p. Simplify splicing control flow.
12478
12479 2019-05-13 Richard Biener <rguenther@suse.de>
12480
12481 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
12482 VIEW_CONVERT_EXPR.
12483 (vect_build_slp_tree_1): Likewise.
12484
12485 2019-05-13 Richard Biener <rguenther@suse.de>
12486
12487 PR tree-optimization/90402
12488 * tree-if-conv.c (tree_if_conversion): Value number only
12489 the loop body by making the latch an exit of the region
12490 as well.
12491 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
12492 processing PHIs.
12493 (do_rpo_vn): Deal with multiple edges into the entry block
12494 that are not backedges inside the region by skipping PHIs
12495 of the entry block.
12496
12497 2019-05-13 Richard Biener <rguenther@suse.de>
12498
12499 PR tree-optimization/90316
12500 * tree-ssa-pre.c (insert_aux): Fold into ...
12501 (insert): ... this function. Use a RPO walk to reduce the
12502 number of required iterations.
12503
12504 2019-05-13 Martin Liska <mliska@suse.cz>
12505
12506 PR tree-optimization/90416
12507 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
12508 string instead of passing the second part as va_arg argument.
12509
12510 2019-05-13 Martin Liska <mliska@suse.cz>
12511
12512 PR gcov-profile/90380
12513 * gcov.c (handle_cycle): Do not support zero cycle count,
12514 it should not be possible.
12515 (path_contains_zero_cycle_arc): New function.
12516 (circuit): Ignore zero cycle arc counts.
12517
12518 2019-05-13 Martin Liska <mliska@suse.cz>
12519
12520 PR gcov-profile/90380
12521 * gcov.c (enum loop_type): Remove the enum and
12522 the operator.
12523 (handle_cycle): Assert that we should not reach
12524 a negative count.
12525 (circuit): Use loop_found instead of a tri-state loop_type.
12526 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
12527 happen.
12528
12529 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12530
12531 PR target/82920
12532 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
12533 (ix86_output_indirect_branch_via_reg): Use output mechanism
12534 accounting for __USER_LABEL_PREFIX__.
12535 (ix86_output_indirect_branch_via_push): Likewise.
12536 (ix86_output_function_return): Likewise.
12537 (ix86_output_indirect_function_return): Likewise.
12538
12539 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
12540
12541 * doc/md.texi: Document use of code attributes in rtx patterns.
12542 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
12543 * read-rtl.c (find_code): Split out search loops into...
12544 (maybe_find_code): ...this new function.
12545 (check_code_iterator): Make the error message more informative.
12546 (check_code_attribute): New function.
12547 (rtx_reader::rtx_alloc_for_name): Likewise.
12548 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
12549 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
12550 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
12551 <max_opp> directly as an rtx code instead of via a match_operator.
12552 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
12553 (<su>abd<mode>_3): Update accordingly.
12554
12555 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12556
12557 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
12558 is given, print the state of the EH "save world" computation for
12559 Darwin.
12560
12561 2019-05-11 Jakub Jelinek <jakub@redhat.com>
12562
12563 PR c++/59813
12564 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
12565 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12566
12567 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
12568
12569 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
12570 Use pinsrd for TARGET_SSE4_1.
12571 * config/i386/sse.md (movdi_to_sse): Ditto.
12572
12573 2019-05-10 Richard Biener <rguenther@suse.de>
12574
12575 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
12576 (do_rpo_vn): Initialize next_value_id.
12577
12578 2019-05-10 Martin Liska <mliska@suse.cz>
12579
12580 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12581 Fix plural form.
12582
12583 2019-05-10 Jakub Jelinek <jakub@redhat.com>
12584
12585 PR tree-optimization/90385
12586 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
12587 arguments of the exit phis.
12588
12589 PR c++/90383
12590 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
12591 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
12592 id->do_not_fold.
12593 (copy_tree_body_r): Likewise.
12594 (copy_fn): Set id.do_not_fold to true.
12595
12596 2019-05-10 Martin Liska <mliska@suse.cz>
12597
12598 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
12599 Reapply changes from r269790.
12600
12601 2019-05-10 Martin Liska <mliska@suse.cz>
12602
12603 PR middle-end/90340
12604 * doc/invoke.texi: New params.
12605 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
12606 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
12607 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12608 Use it.
12609 * tree-switch-conversion.h (struct jump_table_cluster):
12610 Likewise.
12611
12612 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
12613
12614 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
12615
12616 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
12617
12618 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
12619
12620 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
12621
12622 PR rtl-optimization/88879
12623 * sel-sched.c (sel_target_adjust_priority): Remove assert.
12624
12625 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
12626
12627 PR target/90405
12628 * config/arm/arm.c (callee_saved_reg_p): Move before
12629 thumb_find_work_register.
12630 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
12631 thumb_find_work_register. Only call df_get_live_out once.
12632 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
12633 (thumb_find_work_register): Use
12634 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
12635 algorithms to locate a spare call clobbered reg.
12636
12637 2019-05-09 Martin Liska <mliska@suse.cz>
12638
12639 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
12640 and MAX_EXPR in GIMPLE FE format.
12641
12642 2019-05-09 Martin Liska <mliska@suse.cz>
12643
12644 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
12645 * gimple-pretty-print.c (dump_gimple_bb_header):
12646 Dump BB count.
12647 (pp_cfg_jump): Dump edge probability.
12648 * profile-count.c (profile_quality_as_string): Simplify
12649 with a static array.
12650 (parse_profile_quality): New function.
12651 (profile_count::dump): Simplify with a static array.
12652 (profile_count::from_gcov_type): Add new argument.
12653 * profile-count.h (parse_profile_quality): Likewise.
12654 * predict.h (set_hot_bb_threshold): New.
12655 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12656 New param.
12657 * predict.c (get_hot_bb_threshold): Set from the new param.
12658 (set_hot_bb_threshold): New.
12659
12660 2019-05-09 Richard Biener <rguenther@suse.de>
12661
12662 PR tree-optimization/90395
12663 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
12664 rewrite vector stores that throw internally.
12665
12666 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
12667
12668 * cif-code.def (CHKP): Remove.
12669
12670 PR target/89221
12671 * configure.ac (--enable-frame-pointer): Disable by default for
12672 GNU systems.
12673 * configure: Regenerate.
12674
12675 2019-05-09 Alan Modra <amodra@gmail.com>
12676
12677 PR target/89271
12678 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
12679 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
12680 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
12681 cost for general <-> vsx when direct moves are available.
12682 Cost union classes at minimal cost for any reg in the class.
12683 Correct calculation for moves between vsx, float, and altivec.
12684 Don't return a low cost for moves between special regs. Don't
12685 use hard coded register numbers.
12686 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
12687 (rs6000_ira_change_pseudo_allocno_class): New function.
12688 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
12689 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
12690 alternatives.
12691 (movsi_internal1): Don't disparage vector alternatives.
12692 (mov<mode>_internal): Likewise, excepting alternative that
12693 will be split.
12694 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
12695 we <- b alternative.
12696
12697 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12698
12699 PR c++/59813
12700 PR tree-optimization/89060
12701 * tree-ssa-live.h (live_vars_map): New typedef.
12702 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
12703 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
12704 (struct compute_live_vars_data): New type.
12705 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
12706 live_vars_at_stmt, destroy_live_vars): New functions.
12707 * tree-tailcall.c: Include tree-ssa-live.h.
12708 (live_vars, live_vars_vec): New global variables.
12709 (find_tail_calls): Perform variable life analysis before punting.
12710 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
12711 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
12712 member.
12713 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
12714 Perform variable life analysis to select variables that really need
12715 clobbers added.
12716 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
12717 instead set id->eh_landing_pad_dest and assert it is the same.
12718 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
12719
12720 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
12721 Richard Earnshaw <rearnsha@arm.com>
12722
12723 PR target/88167
12724 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
12725 function.
12726 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
12727 (thumb1_compute_save_core_reg_mask): Don't force a spare work
12728 register if both the epilogue and prologue can use call-clobbered
12729 regs.
12730 (thumb1_unexpanded_epilogue): Use
12731 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
12732 picking temporaries for restoring high regs to match that of the
12733 prologue where possible.
12734 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
12735 the list of work registers. Detect if the return address is still live
12736 at the end of the prologue and avoid using it for a work register if so.
12737 If the return address is not live, add LR to the list of pushable regs
12738 after the first pass.
12739
12740 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12741
12742 PR tree-optimization/90078
12743 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
12744 (INFTY): Increase the value for infinite cost.
12745 (struct comp_cost): Promote type of members to int64_t.
12746 (infinite_cost): Don't set complexity in initialization.
12747 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
12748 overflows to infinite_cost.
12749 (adjust_setup_cost): Promote type of parameter and cost computation
12750 to int64_t.
12751 (struct ainc_cost_data, struct iv_ca): Promote type of member to
12752 int64_t.
12753 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
12754 cost computation to int64_t.
12755 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
12756 int64_t's format specifier in dump.
12757
12758 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12759
12760 PR tree-optimization/90240
12761 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
12762 with respect to scaling factor pre-computed for each basic block.
12763 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
12764 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
12765 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
12766 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
12767 live range for array of loop's basic blocks. Cleanup aux field of
12768 loop's basic blocks.
12769
12770 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12771
12772 PR tree-optimization/90356
12773 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
12774
12775 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
12776
12777 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
12778 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
12779 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
12780 (ix86_handle_option): Handle -mavx512bf16.
12781 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
12782 to extra_headers.
12783 * config/i386/avx512bf16vlintrin.h: New.
12784 * config/i386/avx512bf16intrin.h: New.
12785 * config/i386/cpuid.h (bit_AVX512BF16): New.
12786 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
12787 * config/i386/i386-builtin-types.def: Add new types.
12788 * config/i386/i386-builtin.def: Add new builtins.
12789 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12790 __AVX512BF16__.
12791 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
12792 (ix86_option_override_internal): Handle BF16.
12793 (ix86_valid_target_attribute_inner_p): Ditto.
12794 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
12795 * config/i386/i386-builtin.c (enum processor_features): Add
12796 F_AVX512BF16.
12797 (static const _isa_names_table isa_names_table): Ditto.
12798 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
12799 (PTA_AVX512BF16): Ditto.
12800 * config/i386/i386.opt: Add -mavx512bf16.
12801 * config/i386/immintrin.h: Include avx512bf16intrin.h
12802 and avx512bf16vlintrin.h.
12803 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
12804 avx512f_cvtneps2bf16_<mode><mask_name>,
12805 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
12806 * config/i386/subst.md (mask_half): Add new subst.
12807 * doc/invoke.texi: Document -mavx512bf16.
12808
12809 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12810
12811 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
12812 Delete declaration.
12813 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
12814 (rs6000_debug_legitimize_reload_address): Delete.
12815 (rs6000_legitimize_reload_address_ptr): Delete.
12816 (rs6000_option_override_internal): Adjust.
12817 (mem_operand_gpr): Adjust comment.
12818 (legitimate_lo_sum_address_p): Ditto.
12819 (rs6000_legitimize_reload_address): Delete.
12820 (rs6000_debug_legitimize_reload_address): Delete.
12821 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
12822
12823 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
12824
12825 PR target/89765
12826 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12827 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
12828 to compute vector element selector for both constant and variable
12829 operands.
12830
12831 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12832
12833 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
12834 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
12835 ashrdi3_cvt using SWI48 mode iterator.
12836
12837 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12838
12839 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
12840 (aarch64_<su>abd<mode>_3): Likewise.
12841 (*aarch64_<su>abd<mode>_3): New define_insn.
12842 (<sur>sad<vsi2qi>): New define_expand.
12843 * config/aarch64/iterators.md: Added MAX_OPP attribute.
12844 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
12845 (build_vect_cond_expr): Likewise.
12846
12847 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12848
12849 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
12850 clobbers outside of accessible_reg_set.
12851 * config/i386/i386.c (ix86_conditional_register_usage):
12852 Disable register sets by clearing corresponding bits in
12853 accessible_reg_set. Do not set corresponding bits in fixed_regs,
12854 call_used_regs and don't clear corresponding reg_names array members.
12855
12856 2019-05-07 Richard Biener <rguenther@suse.de>
12857
12858 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
12859 not specified still compute a comp_vectype for invariant
12860 compares.
12861
12862 2019-05-07 Richard Biener <rguenther@suse.de>
12863
12864 PR tree-optimization/90316
12865 * tree-ssa-pre.c (translate_vuse_through_block): When
12866 same_valid is NULL do not bother to search for a virtual
12867 PHI continuation.
12868 (phi_translate_1): When operands changed we cannot keep
12869 the same value-number so do not bother to ask whether
12870 that's possible from translate_vuse_through_block.
12871
12872 2019-05-07 Martin Liska <mliska@suse.cz>
12873
12874 * bitmap.c (bitmap_register): Come up with
12875 alloc_descriptor_max_uid and assign it for
12876 a new bitmap.
12877 (register_overhead): Use get_descriptor as
12878 a descriptor.
12879 (release_overhead): New.
12880 (bitmap_elem_to_freelist): Call it.
12881 (bitmap_elt_clear_from): Likewise.
12882 (bitmap_obstack_free): Likewise.
12883 (bitmap_move): Sensitively release memory.
12884 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
12885 (bitmap_initialize): Initialize alloc_descriptor to zero.
12886 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
12887
12888 2019-05-07 Richard Biener <rguenther@suse.de>
12889
12890 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
12891 we build a SLP node. Remove max_size and limiting.
12892 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
12893
12894 2019-05-07 Richard Biener <rguenther@suse.de>
12895
12896 PR tree-optimization/90316
12897 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
12898 limit by reference.
12899 (walk_non_aliased_vuses): Take walking limit argument.
12900 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
12901 walking if it is reached instead of just counting.
12902 (get_continuation_for_phi): Likewise.
12903 (walk_non_aliased_vuses): Likewise, instead of leaving counter
12904 limiting to the callback.
12905 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
12906 (vn_reference_lookup_3): Likewise.
12907 (vn_reference_lookup_pieces): Likewise.
12908 (vn_reference_lookup): Likewise.
12909 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
12910 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
12911 (avail_exprs_stack::lookup_avail_expr): Likewise.
12912
12913 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
12914
12915 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
12916 for comparaible types in the second direction even if first one
12917 hits incomparable type.
12918
12919 2019-05-07 Richard Biener <rguenther@suse.de>
12920
12921 PR lto/90369
12922 * lto-wrapper.c (debug_objcopy): Use the original filename
12923 including archive offset for the filename used for -save-temps.
12924
12925 2019-05-07 Li Jia He <helijia@linux.ibm.com>
12926
12927 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
12928 detection.
12929
12930 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
12931 Hongtao Liu <hongtao.liu@intel.com>
12932
12933 PR target/89750
12934 PR target/86444
12935 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
12936 Modified, original implementation isn't correct.
12937
12938 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12939
12940 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
12941 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
12942 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
12943 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
12944 (FRAME_POINTER_REGNUM): Change numbering.
12945 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
12946 (alt_reg_names): Adjust.
12947 (rs6000_conditional_register_usage): Don't mark hard register 64 as
12948 fixed.
12949 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12950 (DWARF_FRAME_REGISTERS): Delete.
12951 (DWARF2_FRAME_REG_OUT): Fix whitespace.
12952 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12953 Adjust.
12954 (REG_ALLOC_ORDER): Adjust.
12955 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
12956 (REG_CLASS_CONTENTS): Adjust.
12957 (RETURN_ADDR_RTX): Change comment.
12958 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
12959 instead of 67.
12960 (REGISTER_NAMES): Adjust.
12961 (ADDITIONAL_REGISTER_NAMES): Adjust.
12962 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12963
12964 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12965
12966 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
12967 Delete.
12968 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12969 (DWARF_FRAME_REGISTERS): Adjust.
12970 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12971 Adjust.
12972 (REG_ALLOC_ORDER): Adjust.
12973 (enum reg_class): Delete SPR_REGS.
12974 (REG_CLASS_NAMES): Delete SPR_REGS.
12975 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
12976 (REGISTER_NAMES): Adjust.
12977 (ADDITIONAL_REGISTER_NAMES): Adjust.
12978 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12979 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
12980 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
12981 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
12982 (htm_spr_regno): Delete.
12983 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
12984 argument.
12985 (rs6000_dbx_register_number): Adjust.
12986
12987 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12988
12989 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
12990
12991 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12992
12993 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
12994 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
12995
12996 2019-05-06 Jakub Jelinek <jakub@redhat.com>
12997
12998 PR tree-optimization/88709
12999 PR tree-optimization/90271
13000 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
13001 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
13002 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
13003 variable.
13004 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
13005 of the store merging group is larger than
13006 PARAM_STORE_MERGING_MAX_SIZE parameter.
13007 (split_group): Add bzero_first argument. If set, always emit first
13008 the first store which must be = {} of the whole area and then for the
13009 rest of the stores consider all zero bytes as paddings.
13010 (imm_store_chain_info::output_merged_store): Check if first store
13011 is = {} of the whole area and if yes, determine which setting of
13012 bzero_first for split_group gives smaller number of stores. Adjust
13013 split_group callers.
13014 (lhs_valid_for_store_merging_p): Allow decls.
13015 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
13016 no elts.
13017 (pass_store_merging::process_store): Likewise.
13018
13019 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
13020
13021 PR target/89424
13022 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13023 handling of V1TImode.
13024
13025 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
13026
13027 PR target/89221
13028 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
13029 and enable_frame_pointer ...
13030 * configure.ac: ... here. Update help strings for
13031 --enable-frame-pointer.
13032 * configure: Regenerate.
13033 * config/i386/i386-options.c (ix86_option_override_internal): Remove
13034 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
13035 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
13036 (USE_X86_64_FRAME_POINTER): Ditto.
13037
13038 2019-05-06 Martin Liska <mliska@suse.cz>
13039
13040 * config.gcc: Append to target_gtfiles and fix indentation.
13041
13042 2019-05-06 Richard Biener <rguenther@suse.de>
13043
13044 PR tree-optimization/90358
13045 * tree-vect-stmts.c (get_group_load_store_type): Properly
13046 detect unused upper half of load.
13047 (vectorizable_load): Likewise.
13048
13049 2019-05-06 Richard Biener <rguenther@suse.de>
13050
13051 PR tree-optimization/88828
13052 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
13053 (simplify_vector_constructor): ...here. Handle constants in
13054 the constructor.
13055
13056 2019-05-06 Richard Biener <rguenther@suse.de>
13057
13058 PR tree-optimization/90328
13059 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
13060 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
13061 is valid in the loop nest before using it.
13062 (initialize_data_dependence_relation): Adjust.
13063 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
13064 loop as loop-nest to dr_may_alias_p.
13065
13066 2019-05-06 Richard Biener <rguenther@suse.de>
13067
13068 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
13069
13070 2019-05-06 Richard Biener <rguenther@suse.de>
13071
13072 PR tree-optimization/90316
13073 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
13074 compute target on demand.
13075 (get_continuation_for_phi): Remove code walking stmts to
13076 get to a target virtual operand which could end up being
13077 quadratic.
13078
13079 2019-05-06 Martin Liska <mliska@suse.cz>
13080
13081 PR sanitizer/90312
13082 * config/i386/i386-options.c (ix86_option_override_internal): Error only
13083 when -mabi is selected to a non-default version.
13084
13085 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
13086 Martin Liska <mliska@suse.cz>
13087
13088 * Makefile.in: Add lto-dump.texi.
13089 * cgraph.h: Add new functions get_visibility_string and
13090 get_symtab_type_string.
13091 * doc/gcc.texi: Include lto-dump section.
13092 * doc/lto-dump.texi: New file.
13093 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
13094 (parse_dump_option): Factor out this function.
13095 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
13096 (parse_dump_option): Export the function.
13097 * symtab.c (symtab_node::get_visibility_string): New function.
13098 (symtab_node::get_symtab_type_string): Likewise.
13099
13100 2019-05-06 Martin Liska <mliska@suse.cz>
13101
13102 * config/i386/i386-builtins.c: New file.
13103 * config/i386/i386-builtins.h: New file.
13104 * config/i386/i386-expand.c: New file.
13105 * config/i386/i386-expand.h: New file.
13106 * config/i386/i386-features.c: New file.
13107 * config/i386/i386-features.h: New file.
13108 * config/i386/i386-options.c: New file.
13109 * config/i386/i386-options.h: New file.
13110 * config.gcc: Add new files into extra_objs and
13111 target_gtfiles.
13112 * config/i386/i386.c: Split content of the file
13113 into newly introduced files.
13114 * config/i386/i386.h: Declare common variables
13115 and macros.
13116 * config/i386/t-i386: Define dependencies for new files.
13117
13118 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
13119
13120 PR target/89400
13121 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
13122 Restrict 'all' variant to 32-bit configurations.
13123 (unaligned_loadhiu): Likewise.
13124 (unaligned_storehi): Likewise.
13125 (unaligned_storesi): Likewise.
13126 (unaligned_loadhis): Disable when compiling for thumb1.
13127
13128 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13129
13130 PR tree-optimization/90269
13131 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13132 Ignore clobbers.
13133
13134 2019-05-03 Martin Liska <mliska@suse.cz>
13135
13136 * hash-map.h: Add is_empty function.
13137 * hash-set.h: Likewise.
13138 * hash-table.h: Likewise.
13139 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13140 elements () == 0 (and similar usages).
13141 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13142 * gimplify.c (gimplify_bind_expr): Likewise.
13143 (gimplify_switch_expr): Likewise.
13144 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13145 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13146 * postreload-gcse.c (dump_hash_table): Likewise.
13147 (gcse_after_reload_main): Likewise.
13148 * predict.c (combine_predictions_for_bb): Likewise.
13149 * tree-parloops.c (reduction_phi): Likewise.
13150 (separate_decls_in_region): Likewise.
13151 (transform_to_exit_first_loop): Likewise.
13152 (gen_parallel_loop): Likewise.
13153 (gather_scalar_reductions): Likewise.
13154 (try_create_reduction_list): Likewise.
13155 * var-tracking.c (dump_vars): Likewise.
13156 (emit_notes_for_changes): Likewise.
13157 (vt_emit_notes): Likewise.
13158
13159 2019-05-03 Richard Biener <rguenther@suse.de>
13160
13161 PR tree-optimization/90316
13162 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13163 before running VN.
13164
13165 2019-05-03 Richard Biener <rguenther@suse.de>
13166
13167 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13168 peeling for gaps by loading only lower halves of vectors
13169 if possible.
13170 (vectorizable_load): Likewise.
13171
13172 2019-05-03 Richard Biener <rguenther@suse.de>
13173
13174 PR middle-end/89518
13175 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13176
13177 2019-05-03 Richard Biener <rguenther@suse.de>
13178
13179 PR middle-end/87314
13180 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13181 Handle STRING_CST vs DECL or STRING_CST.
13182
13183 2019-05-03 Richard Biener <rguenther@suse.de>
13184
13185 PR tree-optimization/88963
13186 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13187 vector loads feeding only BIT_FIELD_REFs to component
13188 loads. Rewrite stores fed by CONSTRUCTORs to component
13189 stores.
13190
13191 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13192
13193 * opts.h (finish_options): Remove lang_mask argument.
13194 (print_help, help_option_argument): Declare.
13195 * opts.c (print_help): Remove forward declaration, no longer static.
13196 (finish_options): Remove lang_mask argument, don't call print_help
13197 here.
13198 * opts-global.c (decode_options): Adjust finish_option caller, call
13199 print_help here.
13200
13201 PR tree-optimization/90303
13202 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13203 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13204
13205 2019-05-03 Richard Biener <rguenther@suse.de>
13206
13207 PR tree-optimization/89698
13208 * gimple-fold.c (canonicalize_constructor_val): Early out
13209 for constants, handle unfolded INTEGER_CSTs as they appear in
13210 C++ virtual table ctors.
13211
13212 2019-05-03 Richard Biener <rguenther@suse.de>
13213
13214 * passes.c (execute_function_todo): Remove dead code.
13215
13216 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13217
13218 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13219 the internal register number, for any "real" register.
13220
13221 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13222
13223 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13224 correct numbers for TFHAR, TFIAR, TEXASR.
13225
13226 2019-05-02 Richard Biener <rguenther@suse.de>
13227
13228 PR tree-optimization/89653
13229 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13230 update-address-taken before the pass.
13231 * passes.def (pass_tree_loop_init): Put comment before it.
13232
13233 2019-05-02 Richard Biener <rguenther@suse.de>
13234
13235 PR tree-optimization/89509
13236 * tree-ssa-structalias.c (compute_dependence_clique): Look
13237 at the first subvar when determining whether it is restrict.
13238
13239 2019-05-02 Richard Biener <rguenther@suse.de>
13240
13241 PR tree-optimization/90273
13242 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13243 useless debug stmts.
13244
13245 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13246
13247 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13248 ACLE branch.
13249 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13250 SVE ACLE branch.
13251 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13252 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13253 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13254 (vectorizable_reduction): Use the functions above to vectorize in a
13255 fully masked loop codes that don't have a conditional internal
13256 function.
13257
13258 2019-05-02 Martin Liska <mliska@suse.cz>
13259
13260 * cgraphclones.c: Call valid_attribute_p with 1 for
13261 target_clone.
13262 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13263 it's for target attribute.
13264 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13265 Add new boolean argument.
13266 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13267 Likewise.
13268 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13269 to ix86_valid_target_attribute_inner_p.
13270 (ix86_valid_target_attribute_p): Pass flags argument to
13271 ix86_valid_target_attribute_inner_p.
13272 (get_builtin_code_for_version): Use 0 as it's target attribute.
13273
13274 2019-05-02 Martin Liska <mliska@suse.cz>
13275
13276 * gcc.c (process_command): Add dummy file only
13277 if n_infiles == 0.
13278 * opts-global.c (decode_options): Pass lang_mask.
13279 * opts.c (print_help): New function.
13280 (finish_options): Print --help if help_option_argument
13281 is set.
13282 (common_handle_option): Factor out content of OPT__help_
13283 into print_help.
13284 * opts.h (finish_options): Add new argument.
13285
13286 2019-05-02 Martin Liska <mliska@suse.cz>
13287
13288 PR target/88809
13289 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13290 With -minline-all-stringops use inline expansion using 4B loop.
13291 * doc/invoke.texi: Document the change of
13292 -minline-all-stringops.
13293
13294 2019-05-01 Jeff Law <law@redhat.com>
13295
13296 PR tree-optimization/88797
13297 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13298 PHI feeds a conditional on the RHS of an assignment.
13299
13300 2019-04-30 Andrew Waterman <andrew@sifive.com>
13301 Jim Wilson <jimw@sifive.com>
13302
13303 * config/riscv/constraints.md (L): New.
13304 * config/riscv/predicates.md (lui_operand): New.
13305 (sfb_alu_operand): New.
13306 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13307 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13308 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13309 * config/riscv/risc.md (type): Add sfb_alu.
13310 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13311 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13312 (branch_zero<mode>): Delete.
13313 (mov<mode>cc): New.
13314 (mov<GPR:mode><X:mode>cc): Likewise.
13315 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13316
13317 2019-04-30 Nathan Sidwell <nathan@acm.org>
13318
13319 * tree.h (MARK_TS_EXP): New.
13320
13321 2019-04-30 Martin Liska <mliska@suse.cz>
13322
13323 * opts.c (enable_warning_as_error): Provide hints
13324 for unknown options.
13325
13326 2019-04-30 Martin Liska <mliska@suse.cz>
13327
13328 PR debug/90288
13329 * doc/invoke.texi: Add missing dash for gas-locview-support
13330 and gno-as-locview-support.
13331
13332 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13333
13334 PR target/89093
13335 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13336 whitespace at the start of target attribute string.
13337
13338 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13339
13340 PR target/86538
13341 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13342 Define __ARM_FEATURE_ATOMICS.
13343
13344 2019-04-30 Martin Liska <mliska@suse.cz>
13345
13346 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13347 into built_in_function enum. Remove code for endp == 2 and
13348 use BUILT_IN_* constants.
13349 (gimple_fold_builtin): Call the function with fcode.
13350
13351 2019-04-30 Martin Liska <mliska@suse.cz>
13352
13353 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13354 DECL_FUNCTION_CODE into ix86_builtins enum before
13355 the switch statement.
13356
13357 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13358
13359 PR tree-optimization/89475
13360 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13361 calls.
13362
13363 2019-04-30 Martin Liska <mliska@suse.cz>
13364
13365 PR translation/90274
13366 * opts.c (print_filtered_help): Wrap string in _(...).
13367
13368 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13369
13370 PR tree-optimization/90240
13371 Revert:
13372 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13373
13374 PR tree-optimization/90078
13375 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13376 checks for infinite_cost overflow.
13377
13378 2019-04-29 Jeff Law <law@redhat.com>
13379
13380 * passes.def: Move -Wrestrict pass after copy propagation.
13381
13382 2019-04-29 Maya Rashish <coypu@sdf.org>
13383
13384 * config.gcc (default_gnu_indirect_function): Default to yes
13385 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13386 sparc*-*-netbsd*, x86_64-*-netbsd*.
13387
13388 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13389
13390 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13391 where cond2 is NE_EXPR.
13392 (is_value_included_in): Update comment.
13393
13394 2019-04-29 Richard Biener <rguenther@suse.de>
13395
13396 PR tree-optimization/90278
13397 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13398 EH on comparison simplification.
13399
13400 2019-04-29 Jason Merrill <jason@redhat.com>
13401
13402 PR c++/82081 - tail call optimization breaks noexcept
13403 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13404 nothrow function to a might-throw function into a tail call.
13405
13406 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13407
13408 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13409 (DDR_INNER_LOOP): Likewise.
13410 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13411 (initialize_data_dependence_relation): Likewise.
13412 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13413
13414 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13415
13416 PR rtl-optimization/90257
13417 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13418 return value.
13419
13420 Revert the revert:
13421 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13422
13423 PR target/90178
13424 Revert:
13425 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13426
13427 Revert the revert:
13428 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13429
13430 Revert:
13431 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13432
13433 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13434
13435 2019-04-29 Richard Biener <rguenther@suse.de>
13436
13437 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13438 rhs issue a reset.
13439
13440 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13441
13442 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13443 varasm.h, and netbsd-protos.h.
13444
13445 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13446
13447 PR target/89261
13448 * config/i386/i386-protos.h (ix86_data_alignment): Change
13449 the second argument type to unsigned int.
13450 * config/i386/i386.c (ix86_data_alignment): Change "align"
13451 argument type to unsigned int.
13452
13453 2019-04-27 Martin Liska <mliska@suse.cz>
13454
13455 PR middle-end/90258
13456 * opt-suggestions.c (option_proposer::build_option_suggestions):
13457 When get_valid_option_values returns empty values, add the
13458 misspelling candidate.
13459
13460 2019-04-26 Jim Wilson <jimw@sifive.com>
13461
13462 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
13463 parameter.
13464 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
13465 Pass orig_mode to riscv_build_integer.
13466 (riscv_split_integer): Pass mode to riscv_move_integer.
13467 (riscv_legitimize_const_move): Likewise.
13468 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
13469 promoted_mode. Replace force_reg call with code to load constant into
13470 promoted reg and then subreg it for the store.
13471 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
13472 riscv_move_integer.
13473
13474 2018-04-26 Eugene Sharygin <eush@ispras.ru>
13475
13476 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
13477 corrupt codes.
13478
13479 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
13480
13481 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
13482 commentary about the encoding of precision.
13483
13484 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
13485
13486 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
13487 * config/i386/t-freebsd64: New file.
13488 * config.gcc: Add the t-freebsd64 for multilib support.
13489
13490 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
13491
13492 * doc/extend.texi (vector_size): Add missing comma after @xref.
13493
13494 2019-04-25 Jakub Jelinek <jakub@redhat.com>
13495
13496 * BASE-VER: Set to 10.0.0.
13497
13498 2019-04-25 Richard Biener <rguenther@suse.de>
13499
13500 PR middle-end/89765
13501 * gimplify.c (gimplify_expr): Avoid turning a lvalue
13502 VIEW_CONVERT_EXPR into one operating on an rvalue.
13503
13504 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
13505
13506 PR target/89929
13507 * config/i386/i386.c (feature_priority): Moved to file scope.
13508 (processor_features): Likewise.
13509 (processor_model): Likewise.
13510 (_arch_names_table): Likewise.
13511 (arch_names_table): Likewise.
13512 (_feature_list): Removed.
13513 (feature_list): Likewise.
13514 (_isa_names_table): Moved to file scope. Add priority.
13515 (isa_names_table): Likewise.
13516 (get_builtin_code_for_version): Replace feature_list with
13517 isa_names_table. Update error message for P_ZERO priority.
13518
13519 2019-04-25 Richard Biener <rguenther@suse.de>
13520
13521 * tree-pass.h (make_pass_phi_only_cprop): Remove.
13522 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
13523
13524 2019-04-24 Jeff Law <law@redhat.com>
13525
13526 PR tree-optimization/90037
13527 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
13528 * passes.def: Replace all instance of phi-only cprop with the
13529 lattice propagator. Move propagation pass from after erroneous
13530 path isolation to before erroneous path isolation.
13531 * tree-ssa-phionlycprop.c: Remove.
13532
13533 2019-04-24 Richard Biener <rguenther@suse.de>
13534
13535 PR middle-end/90213
13536 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
13537 by size and BITS_PER_UNIT on poly-wide-ints.
13538
13539 2019-04-25 Richard Biener <rguenther@suse.de>
13540
13541 PR middle-end/90194
13542 * match.pd: Add pattern to simplify view-conversion of an
13543 empty constructor.
13544
13545 2019-04-24 Clement Chigot <clement.chigot@atos.net>
13546
13547 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
13548 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
13549 for Go on 32 bit AIX.
13550 * config/rs6000/aix72.h: Likewise.
13551
13552 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13553
13554 PR target/90193
13555 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
13556 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
13557
13558 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
13559
13560 PR target/89952
13561 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
13562 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
13563 for restored hard frame pointer.
13564 (s390_sched_dependencies_evaluation): Implement new target hook.
13565 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
13566
13567 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
13568
13569 * config/arc/arc-options.def: Fix typos and spelling mistakes.
13570 * config/arc/arc.c (arc_init): Cleanup warning message.
13571 (arc_override_options): Likewise.
13572
13573 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13574
13575 PR target/90187
13576 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
13577 a register if both if_true and if_false are MEMs.
13578
13579 PR tree-optimization/90208
13580 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
13581 after labels of new_bb, not before them.
13582
13583 PR tree-optimization/90211
13584 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
13585 which are not SSA_NAMEs.
13586
13587 2018-04-23 Sudakshina Das <sudi.das@arm.com>
13588
13589 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
13590 AArch64.
13591 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
13592
13593 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13594
13595 PR rtl-optimization/87979
13596 * modulo-sched.c (sms_schedule): Start ii value "mii" should
13597 not equal zero.
13598
13599 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13600
13601 PR rtl-optimization/84032
13602 * modulo-sched.c (ps_insn_find_column): Change condition so that
13603 branch will always be the last insn in a row inside partial
13604 schedule.
13605
13606 2019-04-23 Richard Biener <rguenther@suse.de>
13607
13608 PR debug/90131
13609 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
13610 dest_single_pred_p argument.
13611 (remove_forwarder_block): Adjust.
13612 (remove_forwarder_block_with_phi): Likewise.
13613
13614 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13615 Bernd Edlinger <bernd.edlinger@hotmail.de>
13616 Jakub Jelinek <jakub@redhat.com>
13617
13618 PR target/89093
13619 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
13620 if used with general-regs-only.
13621 (arm_conditional_register_usage): Don't add non-general regs if
13622 general-regs-only.
13623 (arm_valid_target_attribute_rec): Handle general-regs-only.
13624 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
13625 general-regs-only.
13626 (TARGET_HARD_FLOAT_SUB): Define.
13627 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
13628 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
13629 (TARGET_REALLY_IWMMXT2): Likewise.
13630 * config/arm/arm.opt: Add -mgeneral-regs-only.
13631 * doc/extend.texi: Document ARM general-regs-only target.
13632 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
13633
13634 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13635
13636 PR tree-optimization/90078
13637 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13638 checks for infinite_cost overflow.
13639
13640 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13641
13642 PR tree-optimization/90021
13643 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
13644 and check univariate against it.
13645 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
13646 * tree-data-ref.c (add_other_self_distances): Pass new argument.
13647
13648 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13649
13650 PR target/90178
13651 Revert:
13652 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13653
13654 Revert the revert:
13655 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13656
13657 Revert:
13658 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13659
13660 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13661
13662 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
13663
13664 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
13665 names using operand format, rather than hard-wired.
13666 (speculation_barrier): Likewise.
13667
13668 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
13669
13670 PR tree-optimization/88055
13671 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
13672 (gen_one_condition): Use it if !HONOR_NANS.
13673
13674 2019-04-19 Jakub Jelinek <jakub@redhat.com>
13675
13676 PR middle-end/90139
13677 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
13678 assign_temp instead of gen_reg_rtx.
13679
13680 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
13681
13682 PR translation/90118
13683 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13684 Add missing space before %<.
13685
13686 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
13687
13688 PR rtl-optimization/87871
13689 * ira-lives.c (make_object_dead): Don't add conflicts to
13690 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
13691
13692 2019-04-18 Martin Sebor <msebor@redhat.com>
13693
13694 PR middle-end/89797
13695 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
13696 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
13697 assuming type size fits in SHWI.
13698
13699 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
13700
13701 PR ipa/85051
13702 * ipa-inline.c (flatten_function): New parameter UPDATE.
13703 (ipa_inline, early_inliner): Use it.
13704
13705 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13706
13707 * fold-const.c (int_const_binop): Return early on failure.
13708
13709 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13710
13711 PR middle-end/85164
13712 * combine.c (force_int_to_mode): Cast the argument rather than
13713 the result of known_alignment.
13714 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
13715
13716 2019-04-18 Richard Biener <rguenther@suse.de>
13717
13718 PR debug/90131
13719 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
13720 out from ...
13721 (remove_forwarder_block): ... here.
13722 (remove_forwarder_block_with_phi): Also move debug stmts here.
13723
13724 2019-04-18 Jakub Jelinek <jakub@redhat.com>
13725
13726 PR translation/79183
13727 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
13728 inform where appropriate.
13729
13730 2019-04-18 Richard Biener <rguenther@suse.de>
13731
13732 * tree.c (get_qualified_type): Put found type variants at the
13733 head of the variant list.
13734
13735 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13736
13737 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
13738
13739 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
13740
13741 PR target/90125
13742 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
13743 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
13744 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
13745 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
13746 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
13747
13748 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
13749
13750 * ira-conflicts.c (print_allocno_conflicts): Always print something,
13751 even for allocno's with no conflicts.
13752 (print_conflicts): Print an extra newline.
13753
13754 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13755
13756 * auto-inc-dec.c (attempt_change): Set the alignment of the
13757 temporary memory to that of the original.
13758
13759 2019-04-17 Joao Moreira <jmoreira@suse.de>
13760
13761 * targhooks.c (default_print_patchable_function_entry): Emit
13762 __patchable_function_entries section with writable flags to allow
13763 relocation resolution.
13764
13765 2019-04-17 Jonny Grant <jg@jguk.org>
13766
13767 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
13768
13769 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13770
13771 PR middle-end/90095
13772 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
13773 on lowpart SUBREGs.
13774
13775 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
13776
13777 * config/arc/arc.c (arc_init): Format diagnostic string.
13778 (arc_override_options): Likewise.
13779 (check_if_valid_regno_const): Likewise.
13780 (arc_reorg): Likewise.
13781
13782 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13783
13784 PR target/17108
13785 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
13786 name.
13787 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
13788 name.
13789 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
13790 (*movdi_update1): Use Pmode.
13791 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
13792 (movdi_<mode>_update_stack): Rename to ...
13793 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
13794 use Pmode.
13795 (*movsi_update1): Use Pmode.
13796 (*movsi_update2): Use Pmode.
13797 (movsi_update): Rename to ...
13798 (movsi_<mode>_update): ... this. Use Pmode.
13799 (movsi_update_stack): Fix condition.
13800 (*movhi_update1): Use Pmode. Fix argument to
13801 avoiding_indexed_address_p.
13802 (*movhi_update2): Ditto.
13803 (*movhi_update3): Ditto.
13804 (*movhi_update4): Ditto.
13805 (*movqi_update1): Ditto.
13806 (*movqi_update2): Ditto.
13807 (*movqi_update3): Ditto.
13808 (*movsf_update1, *movdf_update1): Merge, rename to...
13809 (*mov<mode>_update1): This. Use Pmode. Fix argument to
13810 avoiding_indexed_address_p. Add "size" attribute.
13811 (*movsf_update2, *movdf_update2): Merge, rename to...
13812 (*mov<mode>_update2): This. Ditto.
13813 (*movsf_update3): Use Pmode. Fix argument to
13814 avoiding_indexed_address_p.
13815 (*movsf_update4): Ditto.
13816 (allocate_stack): Simplify condition. Adjust pattern names.
13817
13818 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13819
13820 PR target/89093
13821 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
13822 whitespace at the start of target attribute string.
13823
13824 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
13825
13826 PR target/84369
13827 * config/rs6000/power9.md: Add store forwarding bypass.
13828
13829 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
13830
13831 PR debug/89528
13832 * valtrack.c (dead_debug_insert_temp): Reset debug references
13833 to the return value of a call being removed.
13834
13835 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13836
13837 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
13838 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
13839 implement target hook.
13840 (arc_memory_move_cost): New function.
13841 (TARGET_REGISTER_MOVE_COST): Define.
13842 (TARGET_MEMORY_MOVE_COST): Likewise.
13843 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
13844 (MEMORY_MOVE_COST): Likewise.
13845
13846 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13847
13848 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
13849 (sibcall_value_insn): Likewise.
13850 * config/arc/constraints.md (Rs5): Remove.
13851
13852 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13853
13854 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
13855 for last two fake registers.
13856 (arc_conditional_register_usage): Make sure fake frame and arg
13857 pointer regs are in general regs class.
13858 (FRAME_POINTER_MASK): Remove.
13859 (RETURN_ADDR_MASK): Remove.
13860 (arc_must_save_register): Use hard frame regnum.
13861 (frame_restore_reg): Use hard_frame_pointer_rtx.
13862 (arc_save_callee_saves): Likewise.
13863 (arc_restore_callee_saves): Likewise.
13864 (arc_save_callee_enter): Likewise.
13865 (arc_restore_callee_leave): Likewise.
13866 (arc_save_callee_milli): Likewise.
13867 (arc_eh_return_address_location): Likewise.
13868 (arc_check_multi): Use hard frame regnum.
13869 (arc_can_eliminate): Likewise.
13870 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
13871 for register allocator.
13872 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
13873 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
13874 (FRAME_POINTER_REGNUM): Change it to a fake register.
13875 (HARD_FRAME_POINTER_REGNUM): Defined.
13876 (ARG_POINTER_REGNUM): Change it to a new fake register.
13877 (ELIMINABLE_REGS): Update.
13878 (REGISTER_NAMES): Update names.
13879 * config/arc/arc.md (LP_START): Remove.
13880 (LP_END): Likewise.
13881 (shift_si3_loop): Update pattern.
13882
13883 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13884
13885 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
13886 to avoid delay slot scheduling.
13887 (arc_must_save_register): Don't save SP.
13888 * config/arc/arc.md (stack_tie): Remove.
13889 (UNSPEC_ARC_STKTIE): Likewise.
13890
13891 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
13892 Shiva Chen <shiva0217@gmail.com>
13893
13894 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
13895 code gen with large shift amount.
13896
13897 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
13898
13899 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
13900 subreg.
13901
13902 2019-04-16 Jakub Jelinek <jakub@redhat.com>
13903
13904 PR target/90096
13905 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
13906 print -m64/-mx32/-m32 if it is true.
13907 (ix86_debug_options, ix86_function_specific_print): Pass true as
13908 ADD_ABI_P to ix86_target_string.
13909 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
13910 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
13911 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
13912
13913 PR rtl-optimization/90082
13914 * dce.c (can_delete_call): New function.
13915 (deletable_insn_p, mark_insn): Use it.
13916
13917 PR tree-optimization/90090
13918 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
13919 throw internally.
13920 (is_division_by_square): Likewise. Formatting fix.
13921
13922 2019-04-16 Richard Biener <rguenther@suse.de>
13923
13924 PR tree-optimization/56049
13925 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
13926 equality check if alias-set zero will prevail.
13927
13928 2019-04-15 Jeff Law <law@redhat.com>
13929
13930 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
13931 size and alignment as unsigned.
13932
13933 2019-04-15 Richard Biener <rguenther@suse.de>
13934
13935 PR debug/90074
13936 * tree-loop-distribution.c (destroy_loop): Preserve correct
13937 debug info.
13938
13939 2019-04-15 Richard Biener <rguenther@suse.de>
13940
13941 PR tree-optimization/90071
13942 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
13943 abnormal operands from def stmts.
13944
13945 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
13946
13947 PR rtl-optimization/89794
13948 * combine.c (count_auto_inc): New function.
13949 (try_combine): Count how many auto_inc expressions there were in the
13950 original instructions. Ensure we have the same number in the new
13951 instructions. Remove the code that tried to ensure auto_inc side
13952 effects on i1 and i0 are not lost.
13953
13954 2019-04-15 Richard Biener <rguenther@suse.de>
13955
13956 PR ipa/88936
13957 * tree.h (auto_var_p): Declare.
13958 * tree.c (auto_var_p): New function, split out from ...
13959 (auto_var_in_fn_p): ... here.
13960 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
13961 member.
13962 (new_var_info): Initialize it.
13963 (set_uids_in_ptset): Also set the shadow variable uid if required.
13964 (ipa_pta_execute): Postprocess points-to solutions assigning
13965 shadow variable uids for locals that may reach their containing
13966 function recursively.
13967 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
13968 assert but instead check whether the points-to solution is
13969 a singleton.
13970
13971 2019-04-15 Martin Jambor <mjambor@suse.cz>
13972
13973 PR ipa/pr89693
13974 * cgraph.c (clone_of_p): Loop over clone chain for each step in
13975 the thunk chain.
13976
13977 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13978
13979 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
13980
13981 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13982 Kito Cheng <kito.cheng@gmail.com>
13983 Shiva Chen <shiva0217@gmail.com>
13984
13985 * config/nds32/nds32-md-auxiliary.c
13986 (nds32_legitimize_pic_address): Use new PIC pattern.
13987 (nds32_legitimize_tls_address): Use new TLS pattern.
13988 (nds32_output_symrel): New.
13989 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
13990 (nds32_alloc_relax_group_id): Ditto.
13991 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
13992 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
13993 relax_group_id.
13994 (nds32_group_tls_insn): Ditto.
13995 (nds32_group_float_insns): Ditto.
13996 * config/nds32/nds32.md (tls_le): New.
13997 (sym_got): Ditto.
13998
13999 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
14000
14001 * configure: Add nds32 target for dwarf2 debug_line checking.
14002 * configure.ac: Regenerated.
14003
14004 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
14005
14006 PR lto/89358
14007 * ipa-devirt.c (skip_in_fields_list_p): New.
14008 (odr_types_equivalent_p): Use it.
14009
14010 2019-04-13 Jakub Jelinek <jakub@redhat.com>
14011
14012 PR target/89093
14013 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
14014 instead of strncmp when checking for thumb and arm. Formatting fixes.
14015
14016 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
14017
14018 * doc/install.texi: Document --with-target-system-zlib.
14019
14020 2019-04-12 Martin Sebor <msebor@redhat.com>
14021
14022 PR c/88383
14023 PR c/89288
14024 PR c/89798
14025 PR c/89797
14026 * targhooks.c (default_vector_alignment): Avoid assuming
14027 argument fits in SHWI.
14028 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
14029 a shift expression.
14030 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
14031
14032 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14033
14034 PR rtl-optimization/89965
14035 * dce.c: Include rtl-iter.h.
14036 (struct check_argument_load_data): New type.
14037 (check_argument_load): New function.
14038 (find_call_stack_args): Check for loads from stack slots still tracked
14039 in sp_bytes and punt if any is found.
14040
14041 * config/mips/loongson-mmiintrin.h: Fix up #error message.
14042
14043 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
14044
14045 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
14046 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
14047
14048 2019-04-12 Martin Liska <mliska@suse.cz>
14049
14050 PR middle-end/89970
14051 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
14052 in error message.
14053 (separate_attrs): Handle multiple 'default's.
14054 (expand_target_clones): Rework error handling code.
14055
14056 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
14057
14058 PR target/87532
14059 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
14060 mode of vector rather than mode of destination for move instruction.
14061 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
14062 Use QI inner mode with V16QI vector mode.
14063
14064 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14065
14066 PR target/52726
14067 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
14068 "invalid %%t operand" in output_operand_lossage message.
14069
14070 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
14071
14072 * config/s390/predicates.md (permute_pattern_operand): New
14073 predicate.
14074 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
14075 operand for the permute pattern.
14076 ("*vec_perm<mode>"): New insn definition.
14077 ("bswap<mode>"): Generate the permute pattern operand in the
14078 expander and perform the operand reloads for pre arch13 level
14079 already.
14080 ("*bswap<mode>_emu"): Rename to ...
14081 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
14082 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
14083 Add the USE operand for the permute pattern.
14084 ("*vec_set_bswap_vec<mode>"): Likewise.
14085
14086 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14087
14088 PR c/89946
14089 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
14090 and gcc_unreachable if it fails, just call tree_to_uhwi which
14091 verifies that too. Test TREE_CHAIN instead of list_length > 1.
14092 Start warning message with a lower-case letter. Formatting fixes.
14093
14094 PR rtl-optimization/90026
14095 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
14096 successors, look for BARRIERs inside of the whole BB_FOOTER chain
14097 rather than just at the start of it. If e->src BB_FOOTER is not NULL
14098 in cfglayout mode, use emit_barrier_after_bb.
14099
14100 2018-04-11 Steve Ellcey <sellcey@marvell.com>
14101
14102 PR rtl-optimization/87763
14103 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
14104 New Instruction.
14105
14106 2019-04-11 Tom de Vries <tdevries@suse.de>
14107
14108 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
14109 max macro using statement expression.
14110
14111 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
14112
14113 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
14114 * xcoffout.c (xcoff_private_rodata_section_name): Define.
14115 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
14116 read_only_private_data_section using xcoff_private_rodata_section_name.
14117 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
14118
14119 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
14120
14121 PR target/90016
14122 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14123
14124 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14125
14126 PR rtl-optimization/89965
14127 * dce.c (sp_based_mem_offset): New function.
14128 (find_call_stack_args): Use sp_based_mem_offset.
14129
14130 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14131
14132 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14133
14134 2019-04-11 Richard Biener <rguenther@suse.de>
14135
14136 PR tree-optimization/90020
14137 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14138 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14139 * tree-ssa-pre.c (compute_avail): Use it to not put
14140 possibly trapping references after a call that might not
14141 return into EXP_GEN.
14142 * gcse.c (compute_hash_table_work): Do not elide
14143 marking a block containing a call if the call might not
14144 return.
14145
14146 2019-04-11 Richard Biener <rguenther@suse.de>
14147
14148 PR tree-optimization/90018
14149 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14150 Test both SLP and interleaving variants.
14151
14152 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14153
14154 * config/s390/8561.md: New file.
14155 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14156 Add arch13 cpu model.
14157 * config/s390/s390-opts.h (enum processor_type): Likewise.
14158 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14159 (s390_get_unit_mask): Likewise.
14160 (s390_is_fpd): Likewise.
14161 (s390_is_fxd): Likewise.
14162 * config/s390/s390.h (s390_tune_attr): Likewise.
14163 * config/s390/s390.md: Include arch13 pipeline description.
14164 * config/s390/s390.opt: Add arch13.
14165
14166 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14167
14168 PR rtl-optimization/87763
14169 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14170 New prototype.
14171 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14172 New function.
14173 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14174 New instruction.
14175 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14176 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14177 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14178 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14179
14180 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14181
14182 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14183 "Although" in -fipa-icf documentation.
14184
14185 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14186 of using multiple -g options.
14187
14188 2019-04-10 Martin Liska <mliska@suse.cz>
14189
14190 PR gcov-profile/89959
14191 * doc/gcov.texi: Make documentation of -x option
14192 more precise.
14193
14194 2019-04-10 Richard Biener <rguenther@suse.de>
14195
14196 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14197 member.
14198 (DR_GROUP_SAME_DR_STMT): Remove.
14199 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14200 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14201 replace with assert.
14202 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14203 (vect_record_grouped_load_vectors): Remove unreachable code.
14204
14205 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14206
14207 PR target/90016
14208 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14209 obsolete reference to N.
14210
14211 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14212
14213 PR middle-end/90025
14214 * expr.c (store_expr): Set properly size on the MEM passed to
14215 clear_storage.
14216
14217 PR c++/90010
14218 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14219 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14220 translation is needed, and when translation is needed, only append
14221 ... if the string length is hostsz or more bytes long. Avoid using
14222 strncpy or strcat.
14223
14224 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14225
14226 PR target/90024
14227 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14228 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14229 into three.
14230 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14231 differences directly.
14232 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14233
14234 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14235
14236 PR translation/90011
14237 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14238 from diagnostics.
14239 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14240 diagnostics.
14241 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14242 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14243 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14244 trailing space from -gsplit-dwarf diagnostics.
14245
14246 PR tree-optimization/89998
14247 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14248 instead of integer_type_node if possible, don't add ranges if return
14249 type is not compatible with int.
14250 * gimple-fold.c (gimple_fold_builtin_sprintf,
14251 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14252 integer_type_node.
14253
14254 2019-04-09 Martin Liska <mliska@suse.cz>
14255
14256 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14257 * doc/install.texi: Document the new config.
14258
14259 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14260
14261 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14262 use gimple_expr_type for load and store calls. Skip over the
14263 condition argument in a conditional internal function.
14264 Protect use of TREE_INT_CST_LOW.
14265
14266 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14267
14268 PR target/90015
14269 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14270 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14271 trailing period from it too.
14272
14273 2019-04-08 wu yuan <wuyuan5@huawei.com>
14274
14275 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14276 * config/aarch64/aarch64.md : Add "tsv110.md"
14277 * config/aarch64/tsv110.md: New file.
14278
14279 2019-04-08 Richard Biener <rguenther@suse.de>
14280
14281 PR tree-optimization/90006
14282 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14283 calls like lrint.
14284
14285 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14286
14287 PR target/83033
14288 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14289 construction.
14290 (fma_root_node): Likewise.
14291 (func_fma_steering): Likewise.
14292
14293 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14294
14295 PR rtl-optimization/89865
14296 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14297
14298 PR rtl-optimization/89865
14299 * config/i386/i386.md
14300 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14301 numbers not to clash with the additional operands[4].
14302 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14303 with extra register copy in the middle.
14304
14305 2019-04-08 Martin Liska <mliska@suse.cz>
14306
14307 PR gcov-profile/89961
14308 * doc/gcov.texi: Document data_file.
14309 * gcov.c (generate_results): Add data_info into JSON output.
14310
14311 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14312
14313 PR tree-optimization/89725
14314 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14315 loop's chrec as invariant symbol.
14316 * tree-chrec.h (chrec_contains_symbols): New parameter.
14317 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14318 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14319 function of loops not in DDR's loop_nest.
14320 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14321
14322 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14323
14324 PR target/89623
14325 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14326 Mask.
14327
14328 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14329
14330 PR target/89945
14331 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14332 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14333
14334 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14335
14336 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14337 targetm.fixed_condition_code_regs.
14338
14339 2019-04-05 Richard Biener <rguenther@suse.de>
14340
14341 PR debug/89892
14342 PR debug/89905
14343 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14344 debug bind stmts but reset them if they are not valid at the
14345 destination.
14346
14347 2019-04-05 Martin Liska <mliska@suse.cz>
14348
14349 PR translation/89936
14350 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14351 order to wrap keywords or arguments.
14352 * collect2.c (main): Likewise.
14353 (scan_prog_file): Likewise.
14354 (scan_libraries): Likewise.
14355 * common/config/riscv/riscv-common.c
14356 (riscv_subset_list::parsing_subset_version): Likewise.
14357 (riscv_subset_list::parse_std_ext): Likewise.
14358 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14359 Likewise.
14360 * config/arm/arm.c (arm_option_override): Likewise.
14361 * config/cris/cris.c (cris_print_operand): Likewise.
14362 * config/darwin-c.c (darwin_pragma_options): Likewise.
14363 (darwin_pragma_unused): Likewise.
14364 (darwin_pragma_ms_struct): Likewise.
14365 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14366 * config/i386/i386.c (print_reg): Likewise.
14367 (ix86_print_operand): Likewise.
14368 * config/i386/xm-djgpp.h: Likewise.
14369 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14370 * config/m32c/m32c.c (m32c_option_override): Likewise.
14371 * config/msp430/msp430.c (msp430_option_override): Likewise.
14372 * config/nds32/nds32.c (nds32_option_override): Likewise.
14373 * config/nvptx/mkoffload.c (main): Likewise.
14374 * config/rx/rx.c (rx_print_operand): Likewise.
14375 (valid_psw_flag): Likewise.
14376 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14377 (vms_pragma_nomember_alignment): Likewise.
14378 (vms_pragma_extern_model): Likewise.
14379 * lto-wrapper.c (compile_offload_image): Likewise.
14380 * omp-offload.c (oacc_parse_default_dims): Likewise.
14381 * symtab.c (symtab_node::verify_base): Likewise.
14382 * tlink.c (recompile_files): Likewise.
14383 (start_tweaking): Likewise.
14384 * tree-profile.c (parse_profile_filter): Likewise.
14385
14386 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14387
14388 PR tree-optimization/89956
14389 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14390 multiple negates of the same value.
14391
14392 2019-04-04 Martin Sebor <msebor@redhat.com>
14393
14394 PR middle-end/89957
14395 PR middle-end/89911
14396 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14397 have the same precision since the function crashes otherwise.
14398 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14399 has non-zero arguments.
14400
14401 2019-04-04 Martin Sebor <msebor@redhat.com>
14402
14403 PR middle-end/89934
14404 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14405 out if the number of arguments is less than expected.
14406
14407 2019-04-04 Jeff Law <law@redhat.com>
14408
14409 PR rtl-optimization/89399
14410 * ree.c (combine_set_extension): Use single_set rather than
14411 digging into PATTERN for items on the candidate list.
14412 (combine_reaching_defs): Likewise.
14413
14414 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14415
14416 PR rtl-optimization/46590
14417 * loop-invariant.c (find_defs): Move df_remove_problem and
14418 df_process_deferred_rescans to move_invariants.
14419 Move df_live_add_problem and df_live_set_all_dirty calls
14420 to move_invariants.
14421 (move_invariants): Likewise.
14422 (move_loop_invariants): Likewise, making the df_live calls
14423 conditional on -O. Remove the problem again if we added it
14424 locally.
14425
14426 2019-04-03 qing zhao <qing.zhao@oracle.com>
14427
14428 PR tree-optimization/89730
14429 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14430 -flive-patching=inline-only-static.
14431 (can_inline_edge_by_limits_p): Add the checking for
14432 -flive-patching=inline-only-static and grant always_inline
14433 even when -flive-patching=inline-only-static is specified.
14434
14435 2019-04-03 Jeff Law <law@redhat.com>
14436
14437 PR rtl-optimization/81025
14438 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14439
14440 2019-04-03 Richard Biener <rguenther@suse.de>
14441
14442 PR tree-optimization/84101
14443 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14444 regs.h for hard_regno_nregs.
14445 (cfun_returns): New helper.
14446 (vect_model_store_cost): When vectorizing a store to a decl
14447 we return and the function ABI returns in a multi-reg location
14448 account for the possible spilling that will happen.
14449
14450 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
14451
14452 * config/s390/s390.c (s390_legitimate_address_p): Reject long
14453 displacement addresses for vector mode operands.
14454
14455 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
14456
14457 * config/arc/arc.c (GMASK_LEN): Define.
14458 (arc_restore_callee_saves): Restore first blink when
14459 !optimize_size.
14460
14461 2019-04-03 Sudakshina Das <sudi.das@arm.com>
14462
14463 * doc/extend.texi: Add deprecated comment on sign-return-address
14464 function attribute and add mbranch-protection.
14465 * doc/invoke.texi: Add bti to the options for mbranch-protection.
14466
14467 2019-04-03 Richard Biener <rguenther@suse.de>
14468
14469 PR lto/89896
14470 * lto-wrapper.c (run_gcc): Avoid implicit rules making
14471 the all target phony.
14472
14473 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
14474
14475 PR target/89902
14476 PR target/89903
14477 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14478 Return false for variable DImode shifts.
14479 (dimode_scalar_chain::compute_convert_gain): Do not handle
14480 register count operand in variable DImode shifts.
14481 (dimode_scalar_chain::make_vector_copies): Remove support to copy
14482 count argument of a variable shift instruction to a vector register.
14483 (dimode_scalar_chain::convert_reg): Remove support to convert
14484 count argument of a variable shift instruction.
14485
14486 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14487
14488 PR rtl-optimization/84206
14489 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
14490 iterating over loop headers.
14491
14492 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14493
14494 PR rtl-optimization/85876
14495 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
14496 beyond the original fence.
14497
14498 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
14499
14500 * config.gcc: Mark spu* targets as deprecated/obsolete.
14501
14502 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14503
14504 * config/s390/s390-builtin-types.def: New builtin function type
14505 definitions. Remove unused types.
14506 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
14507 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
14508 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
14509 overloaded builtins.
14510 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
14511 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
14512 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
14513 (vec_double, vec_signed, vec_unsigned): Define to use the new
14514 overloaded builtins.
14515 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
14516 Remove expanders.
14517
14518 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14519
14520 * config/s390/s390-builtin-types.def: New builtin function type
14521 definitions.
14522 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
14523 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
14524 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
14525 (s390_vstrszh, s390_vstrszf): New low-level builtins.
14526 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
14527 constant definitions.
14528 * config/s390/vecintrin.h (vec_search_string_cc)
14529 (vec_search_string_until_zero_cc): New builtin name definitions.
14530 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
14531 expanders.
14532 ("vec_vstrs<mode>"): New insn definition.
14533
14534 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14535
14536 * config/s390/s390-builtin-types.def: Add new builtin function
14537 types.
14538 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
14539 New overloaded builtins.
14540 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
14541 s390_vsrd.
14542 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
14543 (UNSPEC_VEC_SLDBYTE): ... this.
14544 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
14545 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
14546 definitions.
14547 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
14548 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
14549 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
14550
14551 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14552
14553 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
14554 New insn definition.
14555 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
14556 * config/s390/vector.md (V_HW_HSD): ... here.
14557
14558 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14559
14560 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
14561 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
14562 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
14563 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
14564 New insn definitions.
14565
14566 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14567
14568 * config/s390/s390-builtin-types.def: Add new builtin function type.
14569 * config/s390/s390-builtins.def: Add overloaded builtin
14570 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
14571 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
14572 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
14573 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
14574 ("eltswap<mode>"): New expander.
14575 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
14576 insn definitions.
14577
14578 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14579
14580 * config/s390/s390-builtin-types.def: Add new builtin function types.
14581 * config/s390/s390-builtins.def: Add overloaded builtin
14582 s390_vec_revb. Add low-level builtins for vlbr and vstbr
14583 instructions.
14584 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
14585 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
14586 ("bswap<mode>"): New expander.
14587 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
14588
14589 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14590
14591 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
14592 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
14593 vector builtin version number in __VEC__.
14594
14595 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14596
14597 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
14598 iterators.
14599 (SFSI): New mode attribute.
14600 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
14601 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
14602 rename to ...
14603 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
14604 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
14605 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
14606 ("floatsi<mode>2"): Add wcefb instruction.
14607
14608 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14609
14610 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
14611 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
14612 mode iterators.
14613 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
14614 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
14615 support 32 bit fp-int conversions. Rename to ...
14616 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14617 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14618 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
14619 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
14620 ... to these.
14621
14622 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14623
14624 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
14625 if-then-else constructs if we can use the select instruction.
14626 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
14627
14628 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14629
14630 * config/s390/s390.md ("*popcountdi_arch13_cc")
14631 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
14632 definition.
14633 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
14634 Append _z196 to make it ...
14635 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
14636 ("popcounthi2_z196"): ... this.
14637 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
14638 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
14639
14640 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14641
14642 * config/s390/s390.c (s390_canonicalize_comparison): Convert
14643 certain compares for arch13 in order to make use of the condition
14644 code result produced by the new instructions.
14645 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
14646 nxrk, and nxgrk instruction patterns.
14647 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
14648 (inv_no): Add new code iterator together with some attributes.
14649 ("*andc_split_<mode>"): Disable splitter for arch13.
14650 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
14651 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
14652 ("*<ANDOR:bitops_name>c<GPR:mode>")
14653 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
14654 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
14655 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
14656 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
14657
14658 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14659
14660 * common/config/s390/s390-common.c (processor_flags_table): New
14661 entry for arch13.
14662 * config.gcc: Support arch13 with the --with-arch= configure flag.
14663 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14664 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
14665 * config/s390/s390.c (s390_get_sched_attrmask)
14666 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
14667 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
14668 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
14669 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
14670 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
14671 definitions.
14672 * config/s390/s390.opt: Support arch13 as processor type in
14673 command line options.
14674
14675 2019-04-02 Martin Liska <mliska@suse.cz>
14676
14677 PR translation/89912
14678 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
14679 Fix param description of graphite-max-arrays-per-scop.
14680
14681 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
14682
14683 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
14684 (ASAN_CC1_SPEC): Use it in 64-bit mode.
14685 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
14686
14687 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14688
14689 PR rtl-optimization/85412
14690 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
14691 sel_sched_region_1, not after.
14692
14693 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14694
14695 PR rtl-optimization/86928
14696 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
14697 compute_live if necessary.
14698 (sel_redirect_edge_and_branch): Likewise.
14699
14700 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
14701
14702 PR rtl-optimization/89865
14703 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
14704 register if it is a part of small class.
14705
14706 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14707
14708 PR rtl-optimization/87273
14709 * sel-sched-ir.c (merge_fences): Remove assert.
14710
14711 2019-04-01 Richard Biener <rguenther@suse.de>
14712
14713 PR tree-optimization/46590
14714 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
14715 (dom_walker::m_reachability): Add in place of...
14716 (dom_walker::m_skip_unreachable_blocks): ...this.
14717 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
14718 Move complex initialization ...
14719 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
14720 lazily and initialize edge flags on each invocation.
14721 (dom_walker::bb_reachable): Use m_reachability.
14722
14723 2019-04-01 Martin Liska <mliska@suse.cz>
14724
14725 PR driver/89861
14726 * opt-suggestions.c (option_proposer::build_option_suggestions):
14727 Add variant without any argument in order to provide better
14728 hints.
14729
14730 2019-04-01 Richard Biener <rguenther@suse.de>
14731
14732 PR c/71598
14733 * gimple.c: Include langhooks.h.
14734 (gimple_get_alias_set): Treat enumeral types as the underlying
14735 integer type.
14736
14737 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14738 Eric Botcazou <ebotcazou@adacore.com>
14739
14740 PR rtl-optimization/89862
14741 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
14742 that operates on the full registers for WORD_REGISTER_OPERATIONS
14743 architectures.
14744
14745 2019-03-29 Jim Wilson <jimw@sifive.com>
14746
14747 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
14748 Clear MASK_RVC and then set if C subset supported.
14749
14750 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14751
14752 PR c/89872
14753 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
14754 non-addressable complit into its initializer if it is volatile.
14755
14756 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
14757
14758 * opts-common.c (integral_argument): Set errno properly in one case.
14759
14760 2019-03-29 Martin Liska <mliska@suse.cz>
14761
14762 * doc/invoke.texi: Remove -Wchkp from documentation.
14763
14764 2019-03-29 Martin Liska <mliska@suse.cz>
14765
14766 * dbgcnt.c (print_limit_reach): New function.
14767 (dbg_cnt): Use it.
14768
14769 2019-03-29 Martin Liska <mliska@suse.cz>
14770
14771 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
14772 (dbg_cnt_process_opt): Parse first tokens aas
14773 dbg_cnt_process_single_pair is also using strtok.
14774
14775 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14776
14777 PR rtl-optimization/87485
14778 * function.c (expand_function_end): Move stack_protect_epilogue
14779 before loading of return value into hard register(s).
14780
14781 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14782
14783 PR middle-end/89621
14784 * tree-inline.h (struct copy_body_data): Add
14785 dont_remap_vla_if_no_change flag.
14786 * tree-inline.c (remap_type_3, remap_type_2): New functions.
14787 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
14788 and remap_type_2 returns false.
14789 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
14790 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
14791 only from where it is copied to nested contexts.
14792
14793 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14794
14795 PR target/89865
14796 * config/i386/i386.md (RMW operation with LEA peephole):
14797 Use LEAMODE mode attribute instead of SWI mode iterator for
14798 LEA pattern.
14799
14800 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14801
14802 PR target/89848
14803 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
14804 Also process XEXP (src, 0) of a shift insn.
14805
14806 2019-03-28 David Malcolm <dmalcolm@redhat.com>
14807
14808 PR middle-end/89725
14809 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
14810 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
14811
14812 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14813
14814 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
14815 test.
14816 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
14817 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
14818 immediately after first one with df_analyze in between, but rather
14819 process all bbs, queueing ones that need second pass in a worklist,
14820 df_analyze, process queued debug insn changes and if second pass is
14821 needed, process bbs from worklist, df_analyze, process queued debug
14822 insns again.
14823
14824 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
14825 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
14826 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
14827
14828 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
14829
14830 PR c/79022
14831 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
14832 definition.
14833
14834 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
14835
14836 PR target/85667
14837 * config/i386/i386.c (ix86_function_value_1): Call the newly added
14838 function for 32-bit MS_ABI.
14839 (function_value_ms_32): New function.
14840
14841 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
14842
14843 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
14844 (movdi): Call gen_movdi_symbol_save_scc.
14845 (gen_movdi_symbol_save_scc): New insn and split.
14846
14847 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
14848
14849 PR rtl-optimization/89313
14850 * function.c (matching_constraint_num): New static function.
14851 (match_asm_constraints_1): Use it. Fixup white space and comment.
14852 Don't replace inputs with non-matching constraints which conflict
14853 with early clobber outputs.
14854
14855 2019-03-27 Jeff Law <law@redhat.com>
14856
14857 PR rtl-optimization/87761
14858 PR rtl-optimization/89826
14859 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
14860 slightly later.
14861 (pass_cprop_hardreg::execute): Call df_analyze after adding the
14862 note problem to get REG_DEAD/REG_UNUSED notes updated.
14863
14864 2019-03-27 Richard Biener <rguenther@suse.de>
14865
14866 PR tree-optimization/89463
14867 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
14868 queue edges to remove.
14869 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
14870 dead stmts. Delay edge removal until PHIs are removed to
14871 make debug-stmt creation not confused by seemingly degenerate
14872 PHIs.
14873
14874 2019-03-27 Alan Modra <amodra@gmail.com>
14875
14876 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
14877 throughout file.
14878 * config/rs6000/darwin.h: Likewise.
14879 * config/rs6000/rs6000.c: Likewise.
14880
14881 2019-03-27 Alan Modra <amodra@gmail.com>
14882
14883 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
14884 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
14885
14886 2019-03-26 Andrew Waterman <andrew@sifive.com>
14887 Jim Wilson <jimw@sifive.com>
14888
14889 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
14890 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
14891 (generic_idivdi, generic_fmul_single, generic_fmul_double)
14892 (generic_fdiv, generic_fsqrt): Add check for generic tune.
14893 (generic_alu): Add auipc to type list.
14894 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
14895 (riscv_microarchitecture): Declare.
14896 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
14897 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
14898 field.
14899 (riscv_microarchitecture): New.
14900 (sifive_7_tune_info): New.
14901 (riscv_cpu_info_table): Add microarchitecture value for rocket and
14902 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
14903 entries.
14904 (riscv_store_data_bypass_p): New.
14905 (riscv_option_override): Set riscv_microarchitecture from
14906 cpu->microarchitecture.
14907 * config/riscv/riscv.md: Include sifive-7.md.
14908 (type): Add auipc.
14909 (tune): New.
14910 (auipc<mode>): Change type to auipc.
14911 (restore_stack_nonlocal): New.
14912 * config/riscv/sifive-7.md: New.
14913 * doc/invoke.texi (RISC-V Options): Update mtune docs.
14914
14915 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
14916
14917 PR target/89827
14918 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
14919 Also process XEXP (src, 0) of a shift insn.
14920
14921 2019-03-26 Richard Biener <rguenther@suse.de>
14922
14923 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
14924 (copy_debug_stmt): Likewise.
14925 (expand_call_inline): Likewise.
14926 (copy_bb): Avoid redundant lookup & set of gimple_block.
14927 * gimple-low.c (lower_gimple_return): Likewise.
14928 (lower_builtin_setjmp): Likewise.
14929
14930 2019-03-26 Jakub Jelinek <jakub@redhat.com>
14931
14932 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
14933 is constant 0, turn into static const data member initialized to false.
14934 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
14935 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
14936
14937 2019-03-26 Jason Merrill <jason@redhat.com>
14938 Jakub Jelinek <jakub@redhat.com>
14939
14940 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
14941 method.
14942 (mem_alloc_description::release_object_overhead): Fix comment typos.
14943 * hash-table.h (hash_table::~hash_table): Call
14944 release_instance_overhead only if m_entries is non-NULL, otherwise
14945 call unregister_descriptor.
14946
14947 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
14948
14949 PR tree-optimization/81740
14950 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14951 In case of outer loop vectorization, check for backward dependence
14952 at the inner loop if outer loop dependence is reversed.
14953
14954 2019-03-26 Alan Modra <amodra@gmail.com>
14955
14956 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
14957 rs6000_vector_mem init. Correct wI and wJ comment.
14958
14959 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
14960
14961 PR rtl-optimization/88347
14962 PR rtl-optimization/88423
14963 * sched-deps.c (sched_analyze_insn): Take into account that for
14964 tablejumps the barrier appears after a label and a jump_table_data.
14965
14966 2019-03-25 Martin Sebor <msebor@redhat.com>
14967
14968 PR c/89812
14969 * c-common.c (check_user_alignment): Rename local. Correct maximum
14970 alignment in diagnostic. Avoid assuming argument fits in SHWI,
14971 convert it to UHWI when it fits.
14972
14973 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
14974
14975 PR debug/86964
14976 * dwarf2out.c (premark_used_variables): New function.
14977 (prune_unused_types_walk): Do not mark not premarked external
14978 variables.
14979 (prune_unused_types): Call premark_used_variables.
14980
14981 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
14982
14983 PR rtl-optimization/89676
14984 * lra-constraints.c (curr_insn_transform): Do match reload for
14985 early clobbers when the match was successful only for different
14986 registers.
14987
14988 2019-03-25 Martin Sebor <msebor@redhat.com>
14989
14990 * doc/extend.texi (Common Type Attributes): Document vector_size.
14991 (Common Variable Attributes): Mention size constraint. Correct
14992 quoting and typos.
14993 (Vector Extensions): Use @dfn when defining bas type. Clarify
14994 base type and size constraints.
14995
14996 2019-03-25 Richard Biener <rguenther@suse.de>
14997
14998 PR tree-optimization/89789
14999 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
15000 changes from non-undefined back to undefined.
15001
15002 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
15003
15004 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
15005 heap string and a gc string, but since this variable is unknown to
15006 ggc the gc string might get reused and corrupted. Fixed by always
15007 using a heap string.
15008
15009 2019-03-25 Richard Biener <rguenther@suse.de>
15010
15011 PR tree-optimization/89779
15012 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
15013 to remove IV defs, delay actual removal.
15014 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
15015 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
15016 very end, properly also reset loop control IV information.
15017
15018 2019-03-25 Richard Biener <rguenther@suse.de>
15019
15020 PR tree-optimization/89802
15021 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
15022 move EH data to folded stmt.
15023
15024 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15025
15026 * config/s390/s390-builtin-types.def: Remove few unused types and
15027 fix sort order for others.
15028
15029 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15030
15031 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
15032 expected and found types with -mdebug during builtin matching.
15033
15034 2019-03-25 Richard Biener <rguenther@suse.de>
15035
15036 PR middle-end/89790
15037 * fold-const.c (operand_equal_p): Revert last change with
15038 updated comment.
15039
15040 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
15041
15042 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
15043 notes for the result of the __tls_get_addr calls.
15044 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
15045
15046 2019-03-24 Jeff Law <law@redhat.com>
15047
15048 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
15049
15050 PR rtl-optimization/87761
15051 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
15052 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
15053 as needed.
15054 (pass_cprop_hardreg::execute): Add df note problem and defer insn
15055 rescans. Reprocess blocks as needed, calling df_analyze before
15056 reprocessing. Always call df_analyze before fixing up debug bind
15057 insns.
15058
15059 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
15060
15061 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
15062 big endian.
15063
15064 2019-03-22 Andrew Pinski <apinski@marvell.com>
15065
15066 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
15067 attrribute for uxtw.
15068
15069 2019-03-26 Jeff Law <law@redhat.com>
15070
15071 PR rtl-optimization/87761
15072 * config/mips/mips-protos.h (mips_split_move): Add new argument.
15073 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
15074 (mips_split_move): Accept new INSN argument. Try to forward SRC
15075 into the next instruction.
15076 (mips_split_move_insn): Pass INSN through to mips_split_move.
15077
15078 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
15079
15080 PR rtl-optimization/89676
15081 * lra-constraints.c (curr_insn_transform): Do match reload for
15082 early clobbers even if the match was successful.
15083
15084 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15085
15086 PR c++/87481
15087 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
15088
15089 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
15090
15091 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
15092
15093 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15094
15095 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
15096 <avx512>_fmsub_<mode>_mask3<round_name>,
15097 <avx512>_fnmadd_<mode>_mask3<round_name>,
15098 <avx512>_fnmsub_<mode>_mask3<round_name>,
15099 avx512f_vmfmadd_<mode>_mask3<round_name>,
15100 avx512f_vmfmsub_<mode>_mask3<round_name>,
15101 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
15102 instead of register_operand and %v instead of v for match_operand 1.
15103 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
15104 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
15105 <round_nimm_predicate> instead of register_operand and %v instead of v
15106 for match_operand 1.
15107
15108 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
15109 <avx512>_fmadd_<mode>_mask3<round_name>,
15110 <avx512>_fmsub_<mode>_mask<round_name>,
15111 <avx512>_fmsub_<mode>_mask3<round_name>,
15112 <avx512>_fnmadd_<mode>_mask<round_name>,
15113 <avx512>_fnmadd_<mode>_mask3<round_name>,
15114 <avx512>_fnmsub_<mode>_mask<round_name>,
15115 <avx512>_fnmsub_<mode>_mask3<round_name>,
15116 <avx512>_fmaddsub_<mode>_mask<round_name>,
15117 <avx512>_fmaddsub_<mode>_mask3<round_name>,
15118 <avx512>_fmsubadd_<mode>_mask<round_name>,
15119 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
15120 <round_nimm_predicate> instead of nonimmediate_operand.
15121 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
15122 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15123 Use register_operand instead of <round_nimm_predicate> for the
15124 operand that needs to match output.
15125 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15126 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15127 Likewise. Formatting fixes.
15128
15129 PR target/89784
15130 * config/i386/i386.c (enum ix86_builtins): Remove
15131 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15132 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15133 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15134 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15135 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15136 __builtin_ia32_vfmsubss3_mask3): New builtins.
15137 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15138 avx512f_vmfmadd_<mode>_mask3<round_name>,
15139 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15140 *avx512f_vmfmsub_<mode>_mask<round_name>,
15141 avx512f_vmfmsub_<mode>_mask3<round_name>,
15142 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15143 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15144 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15145 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15146 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15147 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15148 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15149 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15150 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15151 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15152 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15153 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15154 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15155 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15156 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15157 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15158 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15159 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15160 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15161 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15162 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15163 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15164 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15165 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15166 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15167 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15168 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15169 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15170
15171 2019-03-21 Martin Sebor <msebor@redhat.com>
15172
15173 PR tree-optimization/89350
15174 * builtins.c (compute_objsize): Also ignore offsets whose upper
15175 bound is negative.
15176 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15177 (builtin_memref::builtin_memref): Initialize new member.
15178 Allow EXPR to be null.
15179 (builtin_memref::extend_offset_range): Replace local with a member.
15180 Avoid assuming pointer offsets are unsigned.
15181 (builtin_memref::set_base_and_offset): Determine base object
15182 before computing offset range.
15183 (builtin_access::builtin_access): Handle memset.
15184 (builtin_access::generic_overlap): Replace local with a member.
15185 (builtin_access::strcat_overlap): Same.
15186 (builtin_access::overlap): Same.
15187 (maybe_diag_overlap): Same.
15188 (maybe_diag_access_bounds): Same.
15189 (wrestrict_dom_walker::check_call): Handle memset.
15190 (check_bounds_or_overlap): Same.
15191
15192 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15193 Jakub Jelinek <jakub@redhat.com>
15194
15195 PR lto/89692
15196 * tree.c (fld_type_variant, fld_incomplete_type_of,
15197 fld_process_array_type): Call fld->pset.add and don't call
15198 add_tree_to_fld_list if it returns true.
15199 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15200 non-marked types from TYPE_NEXT_VARIANT list.
15201 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15202
15203 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15204
15205 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15206 to false, if true, don't alloc_entries during construction, but defer
15207 it to the first method that needs m_entries allocated.
15208 (hash_table::hash_table, hash_table::~hash_table,
15209 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15210 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15211 hash_table::clear_slot, hash_table::traverse_noresize,
15212 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15213 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15214 false.
15215 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15216 NO_INSERT instead of find_with_hash.
15217 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15218 hash_set::m_table): Add Lazy to template params of hash_table.
15219 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15220 * attribs.c (test_attribute_exclusions): Likewise.
15221 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15222 hash_set. Add tests for hash_set with Lazy = true.
15223
15224 2019-03-21 Richard Biener <rguenther@suse.de>
15225
15226 PR tree-optimization/89779
15227 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15228 checks with respect to released SSA names now having error_mark_node
15229 type.
15230 * fold-const.c (operand_equal_p): Likewise.
15231
15232 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15233
15234 PR target/89775
15235 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15236 available to ...
15237 (s390_optimize_register_info): Use global_not_special_regno_p to
15238 check for global regs.
15239
15240 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15241
15242 PR target/89752
15243 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15244 update this_alternative nor this_alternative_set.
15245
15246 2019-03-19 Jim Wilson <jimw@sifive.com>
15247
15248 PR target/89411
15249 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15250 align, size, offset. Use them to handle a BLKmode reference. Update
15251 comment.
15252 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15253
15254 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15255
15256 PR rtl-optimization/89768
15257 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15258 instead of GEN_INT.
15259 (unroll_loop_runtime_iterations): Likewise.
15260
15261 2019-03-19 Martin Sebor <msebor@redhat.com>
15262
15263 PR tree-optimization/89644
15264 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15265 rather than endptr as an indicator of nul-termination.
15266
15267 PR tree-optimization/89644
15268 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15269 arrays in determining sequence sizes in strncpy and stpncpy.
15270
15271 2019-03-19 Martin Liska <mliska@suse.cz>
15272
15273 PR middle-end/89737
15274 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15275 unlikely_edges if there's an edge that belongs to both these sets.
15276
15277 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15278
15279 PR target/89746
15280 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15281 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15282 go via a stack temporary.
15283
15284 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15285
15286 PR target/89378
15287 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15288 instead of gen_rtx_SUBREG.
15289 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15290
15291 2019-03-19 Richard Biener <rguenther@suse.de>
15292
15293 PR debug/88389
15294 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15295
15296 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15297
15298 PR lto/87809
15299 PR lto/89335
15300 * tree.c (free_lang_data_in_decl): Do not free context of C++
15301 destrutors.
15302
15303 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15304
15305 PR target/89506
15306 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15307 subs for the first alternative except when operands[3] is 1.
15308
15309 PR target/89752
15310 * gimplify.c (gimplify_asm_expr): For output argument with
15311 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15312 diagnose error.
15313
15314 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15315
15316 PR rtl-optimization/89753
15317 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15318 explicit unrolling factor even more robust.
15319
15320 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15321
15322 PR target/89726
15323 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15324 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15325 signed zeros, do another copysign after the compensation.
15326
15327 2019-03-18 Martin Sebor <msebor@redhat.com>
15328
15329 PR tree-optimization/89720
15330 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15331 more conservatively, the same as anti-range.
15332
15333 2019-03-18 Richard Biener <rguenther@suse.de>
15334
15335 PR middle-end/88945
15336 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15337 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15338 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15339 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15340
15341 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15342
15343 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15344 Extend queue to 1024 entries.
15345 Add "consumed" field.
15346 (gomp_print_output): Remove print_index parameter.
15347 Add final parameter.
15348 Change limit to unsigned.
15349 Use consumed field to implement circular buffer.
15350 Detect interrupted print in final pass.
15351 Flush output at the end.
15352 (run): Update gomp_print_output usage.
15353 (main): Initialize kernargs->output_data.consumed.
15354
15355 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15356
15357 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15358 calculation of the minimum number of scalar iterations for
15359 fully-predicated loops.
15360
15361 2019-03-18 Martin Jambor <mjambor@suse.cz>
15362
15363 PR tree-optimization/89546
15364 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15365 any propagation to its children took place.
15366
15367 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15368
15369 PR target/89627
15370 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15371 parameter, and make use of it.
15372 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15373
15374 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15375
15376 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15377 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15378 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15379 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15380 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15381 match what the ops is doing.
15382 (push_multi_fp_blink): Likewise.
15383 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15384 compiling for size and elf target.
15385 (arc_save_callee_enter): Adjust note to match what enter/leave
15386 operation does.
15387
15388 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15389
15390 * config/arc/arc.md (tst_movb): Fix constraint.
15391
15392 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15393
15394 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15395
15396 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15397
15398 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15399 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15400 reg_alloc_order references.
15401 (size_alloc_order): Define.
15402 (arc_adjust_reg_alloc_order): New function.
15403 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15404 order.
15405 (ADJUST_REG_ALLOC_ORDER): Define.
15406 (HONOR_REG_ALLOC_ORDER): Likewise.
15407
15408 2019-03-18 Richard Biener <rguenther@suse.de>
15409
15410 PR target/87561
15411 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15412 loads and stores a bit more.
15413
15414 2019-03-18 Richard Biener <rguenther@suse.de>
15415
15416 PR target/87561
15417 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15418 load pessimization to stores as well.
15419
15420 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15421
15422 PR middle-end/86979
15423 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15424 successor, use NULL as its av set.
15425
15426 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15427
15428 PR rtl-optimization/89721
15429 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15430
15431 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15432
15433 PR target/87532
15434 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15435 When handling vec_extract, use modular arithmetic to allow
15436 constant selectors greater than vector length.
15437 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15438 V1TImode vectors to have constant selector values greater than 0.
15439 Use modular arithmetic to compute vector index.
15440 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15441 index for in-memory vectors. Correct code generation for
15442 in-register vectors.
15443 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15444 compute index.
15445
15446 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
15447
15448 PR c++/88534
15449 PR c++/88537
15450 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
15451 VAR_DECL args.
15452
15453 2019-03-15 Jakub Jelinek <jakub@redhat.com>
15454
15455 PR c++/89709
15456 * tree.c (inchash::add_expr): Strip any location wrappers.
15457 * fold-const.c (operand_equal_p): Move stripping of location wrapper
15458 after hash verification.
15459
15460 PR debug/89704
15461 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
15462 SIGN_EXTEND and ZERO_EXTEND.
15463
15464 2019-03-14 Jason Merrill <jason@redhat.com>
15465 Jakub Jelinek <jakub@redhat.com>
15466
15467 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
15468 than if is_empty (*slot).
15469 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
15470 existing elt and for elt removal.
15471 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
15472 of already removed elt.
15473
15474 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
15475
15476 PR target/89650
15477 * config/i386/i386.c (remove_partial_avx_dependency): Handle
15478 REG_EH_REGION note.
15479
15480 2019-03-14 Martin Liska <mliska@suse.cz>
15481
15482 PR other/89712
15483 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
15484
15485 2019-03-14 Richard Biener <rguenther@suse.de>
15486
15487 PR target/89711
15488 * config/i386/i386.c (make_resolver_func): Properly set
15489 DECL_CONTEXT on the RESULT_DECL.
15490 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
15491
15492 2019-03-14 Richard Biener <rguenther@suse.de>
15493
15494 * gimple-pretty-print.c: Include cfgloop.h.
15495 (dump_gimple_phi): Adjust.
15496 (dump_gimple_bb_header): Dump loop header for GIMPLE.
15497 (pp_cfg_jump): Adjust.
15498 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
15499 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
15500 (lower_phi_internal_fn): Remove.
15501 (verify_gimple_call): Remove IFN_PHI special-casing.
15502 (dump_function_to_file): Dump IL state.
15503 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
15504 done to deal with PHI nodes being present in non-SSA state.
15505
15506 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15507
15508 PR ipa/89684
15509 * multiple_target.c (create_dispatcher_calls): Change
15510 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
15511 In the node->iterate_referring loop, push *ref rather than ref, call
15512 ref->remove_reference () and always pass 0 to iterate_referring.
15513
15514 PR rtl-optimization/89679
15515 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
15516 would contain a paradoxical SUBREG.
15517
15518 2019-03-14 Richard Biener <rguenther@suse.de>
15519
15520 PR tree-optimization/89710
15521 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
15522 safe_dyn_cast.
15523
15524 2019-03-14 Martin Liska <mliska@suse.cz>
15525
15526 * coverage.c (coverage_begin_function): Stream also
15527 end_column.
15528 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
15529 documentation about function declaration location.
15530 * gcov-dump.c (tag_function): Print whole range
15531 of function declaration.
15532 * gcov.c (struct function_info): Add end_column field.
15533 (function_info::function_info): Initialize it.
15534 (output_json_intermediate_file): Output {start,end}_column
15535 fields.
15536 (read_graph_file): Read end_column.
15537
15538 2019-03-14 Richard Biener <rguenther@suse.de>
15539
15540 PR middle-end/89698
15541 * fold-const.c (operand_equal_p): For INDIRECT_REF check
15542 that the access types are similar.
15543
15544 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15545
15546 PR tree-optimization/89703
15547 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
15548 aren't compatible also with builtin_decl_explicit. Check pure
15549 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
15550 and BUILT_IN_STPNCPY{,_CHK}.
15551
15552 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
15553
15554 PR target/89523
15555 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
15556 addr32 prefix to VSIB address for X32.
15557 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
15558 "%M2" to opcode.
15559 (*avx512pf_gatherpf<mode>df_mask): Likewise.
15560 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
15561 (*avx512pf_scatterpf<mode>df_mask): Likewise.
15562 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
15563 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
15564 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
15565 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
15566 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
15567 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
15568 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
15569 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
15570 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
15571 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
15572 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
15573 (*avx512f_scatterdi<mode>): Likewise.
15574
15575 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
15576
15577 PR target/85860
15578 * lra-constraints.c (inherit_in_ebb): Update
15579 potential_reload_hard_regs along with live_hard_regs.
15580
15581 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15582
15583 PR debug/89498
15584 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
15585 DWARF_OFFSET_SIZE.
15586 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
15587
15588 2019-03-13 Martin Sebor <msebor@redhat.com>
15589
15590 PR tree-optimization/89662
15591 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
15592 has a size.
15593
15594 2019-03-13 Richard Biener <rguenther@suse.de>
15595
15596 PR middle-end/89677
15597 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
15598 throw FP expressions at tree-affine.
15599
15600 2019-03-14 Richard Biener <rguenther@suse.de>
15601
15602 * tree-pretty-print.c (dump_generic_node): For -gimple properly
15603 dump negative integer constants using _Literal (type) -num.
15604
15605 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15606
15607 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
15608 nonlocal_value member.
15609
15610 PR middle-end/88588
15611 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
15612 (ipa_simd_modify_function_body): Handle PHIs.
15613
15614 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15615
15616 * config/s390/s390.c (s390_option_override_internal): Use more
15617 aggressive inlining parameters.
15618
15619 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15620
15621 * config/s390/3906.md: New file.
15622 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15623 (LONGRUNNING_THRESHOLD): Remove.
15624 (MAX_SCHED_MIX_SCORE): Decrease.
15625 (MAX_SCHED_MIX_DISTANCE): Decrease.
15626 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
15627 (struct s390_sched_state): New struct to hold scheduling state.
15628 (S390_SCHED_STATE_NORMAL): Remove.
15629 (S390_SCHED_STATE_CRACKED): Remove.
15630 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
15631 (s390_get_sched_attrmask): Use new attribute.
15632 (s390_get_unit_mask): Use new units.
15633 (s390_is_fpd): New function.
15634 (s390_is_fxd): New function.
15635 (s390_is_longrunning): New function.
15636 (s390_sched_score): Use new functions.
15637 (s390_sched_reorder): Likewise.
15638 (s390_sched_variable_issue): Rework and use new functions.
15639 (s390_sched_init): Use new functions.
15640 * config/s390/s390.h (s390_tune_attr): Add z14.
15641 * config/s390/s390.md: Add z14.
15642
15643 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15644
15645 * config/s390/2964.md: Update pipeline description.
15646 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15647 (LONGRUNNING_THRESHOLD): Remove.
15648 (LATENCY_FACTOR): Remove.
15649 (s390_get_unit_mask): Add unit.
15650 (s390_sched_score): Use fxd/fpd.
15651 (s390_sched_variable_issue): Use fxd/fpd.
15652
15653 2019-03-12 Martin Liska <mliska@suse.cz>
15654
15655 * config/i386/i386.c: Reword an error message.
15656
15657 2019-03-12 Martin Jambor <mjambor@suse.cz>
15658
15659 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
15660 terminate with newline.
15661
15662 2019-03-12 Jakub Jelinek <jakub@redhat.com>
15663
15664 PR target/52726
15665 * config/s390/s390.md (tabort): Use %wd instead of
15666 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
15667 letters and periods.
15668 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
15669 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
15670 's with %< and %>.
15671
15672 PR middle-end/89663
15673 * builtins.c (expand_builtin_int_roundingfn,
15674 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
15675 gcc_unreachable if validate_arglist fails.
15676
15677 2019-03-12 Richard Biener <rguenther@suse.de>
15678
15679 PR tree-optimization/89664
15680 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
15681 free the occurance tree after the early out.
15682
15683 2019-03-11 Jakub Jelinek <jakub@redhat.com>
15684
15685 PR middle-end/89655
15686 PR bootstrap/89656
15687 * vr-values.c (vr_values::update_value_range): If
15688 old_vr->varying_p (), don't update it, make new_vr also VARYING
15689 and return false.
15690
15691 2019-03-11 Martin Liska <mliska@suse.cz>
15692
15693 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15694 Fix double string quoting.
15695
15696 2019-03-11 Martin Liska <mliska@suse.cz>
15697
15698 * collect-utils.c (collect_wait): Wrap apostrophes
15699 in gcc internal format with %'.
15700 * collect2.c (main): Likewise.
15701 (scan_prog_file): Likewise.
15702 (scan_libraries): Likewise.
15703 * config/i386/i386.c (ix86_expand_call): Likewise.
15704 (ix86_handle_interrupt_attribute): Likewise.
15705 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15706 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
15707 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
15708 * lto-wrapper.c (find_crtoffloadtable): Likewise.
15709 * symtab.c (symtab_node::verify_base): Likewise.
15710 * tree-cfg.c (verify_gimple_label): Likewise.
15711 * tree.c (verify_type_variant): Likewise.
15712
15713 2019-03-11 Martin Liska <mliska@suse.cz>
15714
15715 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
15716 in a string format message and fix GNU coding style.
15717 (expand_builtin_set_thread_pointer): Likewise.
15718 * common/config/aarch64/aarch64-common.c
15719 (aarch64_rewrite_selected_cpu): Likewise.
15720 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
15721 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
15722 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
15723 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
15724 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
15725 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
15726 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
15727 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
15728 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
15729 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
15730 Likewise.
15731 * common/config/riscv/riscv-common.c
15732 (riscv_subset_list::parsing_subset_version): Likewise.
15733 (riscv_subset_list::parse_std_ext): Likewise.
15734 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
15735 (riscv_subset_list::parse): Likewise.
15736 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
15737 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
15738 (aarch64_override_options_internal): Likewise.
15739 (aarch64_validate_mcpu): Likewise.
15740 (aarch64_validate_march): Likewise.
15741 (aarch64_validate_mtune): Likewise.
15742 (aarch64_override_options): Likewise.
15743 * config/alpha/alpha.c (alpha_option_override): Likewise.
15744 * config/arc/arc.c (arc_init): Likewise.
15745 (parse_mrgf_banked_regs_option): Likewise.
15746 (arc_override_options): Likewise.
15747 (arc_expand_builtin_aligned): Likewise.
15748 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
15749 (arm_expand_builtin): Likewise.
15750 * config/arm/arm.c (arm_option_check_internal): Likewise.
15751 (arm_configure_build_target): Likewise.
15752 (arm_option_override): Likewise.
15753 (arm_options_perform_arch_sanity_checks): Likewise.
15754 (arm_handle_cmse_nonsecure_entry): Likewise.
15755 (arm_handle_cmse_nonsecure_call): Likewise.
15756 (arm_tls_referenced_p): Likewise.
15757 (thumb1_expand_prologue): Likewise.
15758 * config/avr/avr.c (avr_option_override): Likewise.
15759 * config/bfin/bfin.c (bfin_option_override): Likewise.
15760 * config/c6x/c6x.c (c6x_option_override): Likewise.
15761 * config/cr16/cr16.c (cr16_override_options): Likewise.
15762 * config/cris/cris.c (cris_option_override): Likewise.
15763 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
15764 * config/darwin-c.c (macosx_version_as_macro): Likewise.
15765 * config/darwin.c (darwin_override_options): Likewise.
15766 * config/frv/frv.c (frv_expand_builtin): Likewise.
15767 * config/h8300/h8300.c (h8300_option_override): Likewise.
15768 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
15769 (ix86_option_override_internal): Likewise.
15770 (warn_once_call_ms2sysv_xlogues): Likewise.
15771 (ix86_expand_prologue): Likewise.
15772 (split_stack_prologue_scratch_regno): Likewise.
15773 (ix86_warn_parameter_passing_abi): Likewise.
15774 * config/ia64/ia64.c (fix_range): Likewise.
15775 * config/m68k/m68k.c (m68k_option_override): Likewise.
15776 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
15777 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
15778 (mips_set_compression_mode): Likewise.
15779 * config/mmix/mmix.c (mmix_option_override): Likewise.
15780 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
15781 * config/msp430/msp430.c (msp430_option_override): Likewise.
15782 * config/nds32/nds32.c (nds32_option_override): Likewise.
15783 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
15784 (nios2_option_override): Likewise.
15785 (nios2_expand_custom_builtin): Likewise.
15786 * config/nvptx/mkoffload.c (main): Likewise.
15787 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
15788 * config/pa/pa.c (fix_range): Likewise.
15789 (pa_option_override): Likewise.
15790 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
15791 (riscv_option_override): Likewise.
15792 * config/rl78/rl78.c (rl78_option_override): Likewise.
15793 * config/rs6000/aix61.h: Likewise.
15794 * config/rs6000/aix71.h: Likewise.
15795 * config/rs6000/aix72.h: Likewise.
15796 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
15797 * config/rs6000/freebsd64.h: Likewise.
15798 * config/rs6000/linux64.h: Likewise.
15799 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
15800 (rs6000_expand_zeroop_builtin): Likewise.
15801 (rs6000_expand_mtfsb_builtin): Likewise.
15802 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
15803 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
15804 (rs6000_invalid_builtin): Likewise.
15805 (rs6000_expand_split_stack_prologue): Likewise.
15806 * config/rs6000/rtems.h: Likewise.
15807 * config/rx/rx.c (valid_psw_flag): Likewise.
15808 (rx_expand_builtin): Likewise.
15809 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15810 * config/s390/s390.c (s390_expand_builtin): Likewise.
15811 (s390_function_profiler): Likewise.
15812 (s390_option_override_internal): Likewise.
15813 (s390_option_override): Likewise.
15814 * config/sh/sh.c (sh_option_override): Likewise.
15815 (sh_builtin_saveregs): Likewise.
15816 (sh_fix_range): Likewise.
15817 * config/sh/vxworks.h: Likewise.
15818 * config/sparc/sparc.c (sparc_option_override): Likewise.
15819 * config/spu/spu.c (spu_option_override): Likewise.
15820 (fix_range): Likewise.
15821 * config/visium/visium.c (visium_option_override): Likewise.
15822 (visium_handle_interrupt_attr): Likewise.
15823 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
15824 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
15825 (dbg_cnt_process_opt): Likewise.
15826 * dwarf2out.c (output_dwarf_version): Likewise.
15827 * except.c (expand_eh_return): Likewise.
15828 * gcc.c (defined): Likewise.
15829 (driver_handle_option): Likewise.
15830 (process_command): Likewise.
15831 (compare_files): Likewise.
15832 (driver::prepare_infiles): Likewise.
15833 (driver::do_spec_on_infiles): Likewise.
15834 (driver::maybe_run_linker): Likewise.
15835 * omp-offload.c (oacc_parse_default_dims): Likewise.
15836 * opts-global.c (handle_common_deferred_options): Likewise.
15837 * opts.c (parse_sanitizer_options): Likewise.
15838 (common_handle_option): Likewise.
15839 (enable_warning_as_error): Likewise.
15840 * passes.c (enable_disable_pass): Likewise.
15841 * plugin.c (parse_plugin_arg_opt): Likewise.
15842 (default_plugin_dir_name): Likewise.
15843 * targhooks.c (default_expand_builtin_saveregs): Likewise.
15844 (default_pch_valid_p): Likewise.
15845 * toplev.c (init_asm_output): Likewise.
15846 (process_options): Likewise.
15847 (toplev::run_self_tests): Likewise.
15848 * tree-cfg.c (verify_gimple_call): Likewise.
15849 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
15850 (tree_inlinable_function_p): Likewise.
15851 * var-tracking.c (vt_find_locations): Likewise.
15852
15853 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
15854
15855 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
15856 only on the else branch.
15857
15858 2019-03-11 Martin Liska <mliska@suse.cz>
15859
15860 * gcov.c (output_intermediate_json_line): Print function
15861 name of each line.
15862 (output_json_intermediate_file): Add new argument.
15863 * doc/gcov.texi: Document the change.
15864
15865 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
15866
15867 PR rtl-optimization/89588
15868 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15869 explicit unrolling factor more robust.
15870
15871 2019-03-11 Richard Biener <rguenther@suse.de>
15872
15873 PR tree-optimization/89649
15874 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
15875 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
15876 on the prolog and epilog loops.
15877 (vect_loop_versioning): Return copy of loop.
15878 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
15879 on the non-vectorized version of the loop.
15880
15881 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
15882
15883 PR target/68924
15884 * config/i386/sse.md (*vec_extractv2di_0_sse):
15885 Add (=r,x) alternative and corresponding splitter.
15886
15887 2019-03-10 Martin Jambor <mjambor@suse.cz>
15888
15889 PR tree-optimization/85762
15890 PR tree-optimization/87008
15891 PR tree-optimization/85459
15892 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
15893 it points to if there is a type changing MEM_REF. Adjust all callers.
15894 (build_accesses_from_assign): Disable total scalarization if
15895 contains_vce_or_bfcref_p returns true through the new parameter, for
15896 both rhs and lhs.
15897
15898 2019-03-09 Jakub Jelinek <jakub@redhat.com>
15899
15900 PR c/88568
15901 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
15902 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
15903
15904 PR target/79645
15905 * common.opt (fdiagnostics-show-labels,
15906 fdiagnostics-show-line-numbers, fdiagnostics-format=,
15907 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
15908 gas-locview-support, ginline-points, ginternal-reset-location-views):
15909 Terminate description text with a dot.
15910 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
15911 * config/mcore/mcore.opt (m210, m340): Likewise.
15912 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
15913 mnops=): Start description text with a capital letter.
15914 * config/arc/arc.opt (msize-level=): Likewise.
15915 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
15916 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
15917 mnewlib): Likewise.
15918 * config/ft32/ft32.opt (msim): Likewise.
15919 (mft32b, mcompress): Likewise. Terminate description text with a dot.
15920 (mnodiv, mnopm): Terminate description text with a dot.
15921 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
15922 a colon.
15923 * config/i386/i386.opt (prefer_vector_width, instrument_return):
15924 Likewise.
15925 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
15926 text.
15927
15928 PR rtl-optimization/89634
15929 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
15930 are modified in BB_END (e->src) instruction.
15931
15932 2019-03-08 David Malcolm <dmalcolm@redhat.com>
15933
15934 PR target/79926
15935 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
15936 messages more amenable to translation, and improve wording.
15937
15938 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
15939
15940 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
15941 ud- and du-chains between phases.
15942
15943 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
15944
15945 PR debug/89631
15946 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
15947 instead of POLY_INT_CST.
15948
15949 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
15950
15951 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
15952 requirement.
15953
15954 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
15955
15956 PR target/68924
15957 PR target/78782
15958 PR target/87558
15959 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
15960 (_mm_storeu_si64): Ditto.
15961
15962 2019-03-08 Martin Liska <mliska@suse.cz>
15963
15964 PR target/86952
15965 * config/i386/i386.c (ix86_option_override_internal): Disable
15966 jump tables when retpolines are used.
15967
15968 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
15969
15970 PR go/63560
15971 * ipa-split.c (execute_split_functions): Do not split
15972 'noinline' or 'section' function.
15973
15974 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15975
15976 PR target/79846
15977 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
15978 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
15979 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
15980
15981 PR ipa/80000
15982 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15983 from diagnostics. Formatting fixes.
15984
15985 PR target/85665
15986 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
15987 warn_odr diagnostics.
15988
15989 PR other/80058
15990 * lra-constraints.c (process_alt_operands): Avoid one space before
15991 " at the end of line and another after " on another line in a string
15992 literal.
15993 * attribs.c (handle_dll_attribute): Likewise.
15994 * config/avr/avr-devices.c (avr_texinfo): Likewise.
15995
15996 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
15997 warning_at or inform messages in G_() if there is no ?:.
15998
15999 PR tree-optimization/89550
16000 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
16001 returned true. Formatting fixes.
16002 (expand_builtin_strnlen): Formatting fixes.
16003 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
16004 if warning_at returned true.
16005 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
16006
16007 2019-03-08 Richard Biener <rguenther@suse.de>
16008
16009 PR middle-end/89578
16010 * cfgloop.h (struct loop): Add owned_clique field.
16011 * cfgloopmanip.c (copy_loop_info): Copy it.
16012 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
16013 cliques.
16014 * tree-inline.c (copy_loops): Remap owned_clique.
16015 * lto-streamer-in.c (input_cfg): Stream owned_clique.
16016 * lto-streamer-out.c (output_cfg): Likewise.
16017
16018 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16019
16020 PR target/80190
16021 * config/darwin.c: Include intl.h.
16022 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
16023 composing the message out of two separate parts.
16024
16025 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16026
16027 PR target/80003
16028 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
16029 doesn't start with a capital letter and doesn't end with a dot.
16030 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
16031 with a capital letter.
16032 (ix86_mangle_function_version_assembler_name): Likewise.
16033 (ix86_generate_version_dispatcher_body): Likewise.
16034 (fold_builtin_cpu): Likewise.
16035 (get_builtin_code_for_version): Likewise. Remove extraneous space.
16036 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
16037 translators, wrap full type name in %qs.
16038
16039 PR translation/79999
16040 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
16041 depend clause with source (or sink) modifier.
16042 * omp-expand.c (expand_omp_ordered_sink): Likewise.
16043
16044 PR target/89602
16045 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
16046 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
16047 (avx512f_load<mode>_mask): New define_expand.
16048 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
16049 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
16050 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
16051 __builtin_ia32_movess_mask): New builtins.
16052 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
16053 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
16054 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
16055 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
16056
16057 2019-03-07 Martin Jambor <mjambor@suse.cz>
16058
16059 PR lto/87525
16060 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
16061 for extern inline functions.
16062
16063 2019-03-07 Martin Jambor <mjambor@suse.cz>
16064
16065 PR ipa/88235
16066 * cgraph.h (cgraph_node): New inline method former_thunk_p.
16067 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
16068 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
16069 have multiple callees. At the end check if declarations match as
16070 opposed to cgraph_nodes.
16071
16072 2019-03-07 Martin Liska <mliska@suse.cz>
16073
16074 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
16075 which is equivalent to searching for this in clones chain.
16076 * symtab.c (symtab_node::verify_base): Similarly compare ASM
16077 names with a neighbour and special case first node in a chain.
16078
16079 2019-01-25 Jason Merrill <jason@redhat.com>
16080
16081 PR c++/80916 - spurious "static but not defined" warning.
16082 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
16083 for an internal symbol with DECL_EXTERNAL.
16084
16085 2019-04-07 Richard Biener <rguenther@suse.de>
16086
16087 PR middle-end/89618
16088 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
16089 * tree-inline.c (copy_loops): Simplify.
16090
16091 2019-03-07 Martin Liska <mliska@suse.cz>
16092
16093 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
16094
16095 2019-03-07 Richard Biener <rguenther@suse.de>
16096
16097 PR tree-optimization/89595
16098 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
16099 stmt iterator as reference, take boolean output parameter to
16100 indicate whether the stmt was removed and thus the iterator
16101 already advanced.
16102 (dom_opt_dom_walker::before_dom_children): Re-iterate over
16103 stmts created by folding.
16104
16105 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16106
16107 PR c++/89585
16108 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
16109 at toplevel.
16110
16111 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
16112
16113 PR rtl-optimization/88845
16114 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
16115 LRA.
16116 * lra.c (remove_scratches_1): New function.
16117 (remove_scratches): Use it.
16118 (lra_emit_move): Likewise.
16119
16120 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
16121
16122 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16123 unaligned_access variable.
16124 * config/arc/arc.c (arc_override_options): Set unaligned access
16125 default on for HS CPUs.
16126 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16127
16128 2019-03-06 Martin Liska <mliska@suse.cz>
16129
16130 PR gcov-profile/89577
16131 * doc/gcov.texi: Prefer to use --coverage.
16132 * doc/sourcebuild.texi: Likewise.
16133
16134 2019-03-02 Jason Merrill <jason@redhat.com>
16135
16136 PR c++/86485 - -Wmaybe-unused with empty class ?:
16137 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16138
16139 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16140
16141 PR target/89587
16142 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16143 if_multiarch.
16144
16145 PR middle-end/89590
16146 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16147 exactly one argument.
16148
16149 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16150 Richard Sandiford <richard.sandiford@arm.com>
16151
16152 PR tree-optimization/89570
16153 * match.pd (vec_cond into cond_op simplification): Don't use
16154 get_conditional_internal_fn, use as_internal_fn (cond_op).
16155
16156 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16157
16158 PR target/89222
16159 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16160 to decide when to split off a non-zero offset from a symbol.
16161 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16162 in function symbols.
16163
16164 2019-03-05 Richard Biener <rguenther@suse.de>
16165
16166 PR tree-optimization/89594
16167 * tree-if-conv.c (pass_if_conversion::execute): Handle
16168 case where .LOOP_VECTORIZED_FUNCTION was removed.
16169
16170 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16171
16172 PR bootstrap/89560
16173 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16174 instead alloca it only when needed with the needed size.
16175
16176 PR tree-optimization/89570
16177 * match.pd (vec_cond into cond_op simplification): Guard with
16178 vectorized_internal_fn_supported_p test and #if GIMPLE.
16179
16180 PR tree-optimization/89566
16181 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16182 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16183 Punt if get_user_idx_format succeeds, but idx_format argument is
16184 not provided or doesn't have pointer type, or if idx_args is above
16185 number of provided arguments.
16186
16187 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16188
16189 PR tree-optimization/89437
16190 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16191
16192 2019-03-04 Richard Biener <rguenther@suse.de>
16193
16194 PR middle-end/89572
16195 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16196 safe_dyn_cast.
16197
16198 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16199
16200 PR tree-optimization/89487
16201 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16202 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16203 (distribute_loop): Don't do runtime alias check if there is non-
16204 addressable data reference.
16205 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16206 is a register variable.
16207
16208 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16209
16210 PR target/89506
16211 * config/arm/arm.md (cmpsi2_addneg): Use
16212 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16213 If operands[2] is 0 or INT_MIN, force use of subs.
16214 (*compare_scc splitter): Use gen_int_mode.
16215 (*negscc): Likewise.
16216 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16217
16218 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16219 Monk Chiang <sh.chiang04@gmail.com>
16220
16221 * common/config/riscv/riscv-common.c: Include sstream.
16222 (riscv_subset_list::to_string): New.
16223 (riscv_arch_str): Likewise.
16224 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16225 * config.in: Regen.
16226 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16227 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16228 (riscv_emit_attribute): New.
16229 (riscv_file_start): Emit attribute if needed.
16230 (riscv_option_override): Init riscv_emit_attribute_p.
16231 * config/riscv/riscv.opt (mriscv-attribute): New option.
16232 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16233 * configure: Regen.
16234 * doc/install.texi: Document --with-riscv-attribute.
16235 * doc/invoke.texi: Document -mriscv-attribute.
16236
16237 * common/config/riscv/riscv-common.c:
16238 Include config/riscv/riscv-protos.h.
16239 (INCLUDE_STRING): Defined.
16240 (RISCV_DONT_CARE_VERSION): Defined.
16241 (riscv_subset_t): Declare.
16242 (riscv_subset_t::riscv_subset_t): New.
16243 (riscv_subset_list): Declare.
16244 (riscv_subset_list::riscv_subset_list): New.
16245 (riscv_subset_list::~riscv_subset_list): Likewise.
16246 (riscv_subset_list::parsing_subset_version): Likewise.
16247 (riscv_subset_list::parse_std_ext): Likewise.
16248 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16249 (riscv_subset_list::add): Likewise.
16250 (riscv_subset_list::lookup): Likewise.
16251 (riscv_subset_list::xlen): Likewise.
16252 (riscv_subset_list::parse): Likewise.
16253 (riscv_supported_std_ext): Likewise.
16254 (current_subset_list): Likewise.
16255 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16256 parse.
16257
16258 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16259
16260 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16261 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16262 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16263
16264 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16265
16266 PR rtl-optimization/85899
16267 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16268 fallthru edges leading to the exit block.
16269
16270 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16271
16272 PR target/89517
16273 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16274 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16275
16276 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16277
16278 PR tree-optimization/89535
16279 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16280 for each operand. Calculate the fallback choice for mask operands
16281 and pass it to vect_get_vec_def_for_operand.
16282
16283 2019-03-01 Richard Biener <rguenther@suse.de>
16284
16285 PR middle-end/89541
16286 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16287 get virtual operands.
16288 (get_expr_operands): Handle CONST_DECL like other decls.
16289
16290 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16291
16292 PR middle-end/89503
16293 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16294 on DECL_P and EXPR_P.
16295
16296 2019-03-01 Richard Biener <rguenther@suse.de>
16297
16298 PR middle-end/89497
16299 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16300 argument, defaulted to zero.
16301 * passes.c (execute_function_todo): Pass down SSA update flags
16302 to cleanup_tree_cfg.
16303 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16304 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16305 form if requested.
16306 (cleanup_tree_cfg): Get and pass down SSA update flags.
16307
16308 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16309
16310 PR bootstrap/89539
16311 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16312 early_lto_debug argument.
16313
16314 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16315
16316 PR tree-optimization/89536
16317 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16318 only whether bit #0 of the value is 0 instead of the entire value.
16319
16320 2019-02-28 Marek Polacek <polacek@redhat.com>
16321
16322 PR c++/87068 - missing diagnostic with fallthrough statement.
16323 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16324 at the end of a seq, save its location to walk_stmt_info.
16325 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16326 a switch.
16327
16328 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16329
16330 PR lto/88585
16331 * tree.c (find_atomic_core_type): Move ahead in file.
16332 (check_base_type): Correctly compare alignments of atomic types.
16333
16334 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16335
16336 PR target/89455
16337 * config/i386/i386.c (get_builtin_code_for_version): Identify
16338 Westmere from PCLMUL, instead of AES.
16339
16340 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16341
16342 PR target/89434
16343 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16344 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16345 -UINTVAL (...).
16346
16347 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16348
16349 PR target/88530
16350 * config/aarch64/aarch64-option-extensions.def: Document it.
16351 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16352 if empty hwcaps.
16353
16354 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16355
16356 PR c/89520
16357 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16358 builtins if they don't have a single scalar floating point argument.
16359 Formatting fixes.
16360
16361 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16362
16363 PR rtl-optimization/89490
16364 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16365 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16366 block section is not mergeable.
16367
16368 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16369
16370 PR target/70341
16371 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16372 old define_insn to ...
16373 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16374 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16375 Rename old define_insn to ...
16376 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16377 (thumb2_casesi_internal_pic): New define_expand. Rename old
16378 define_insn to ...
16379 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16380 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16381 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16382
16383 2019-02-27 Richard Biener <rguenther@suse.de>
16384
16385 PR debug/88878
16386 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16387
16388 2019-02-27 Richard Biener <rguenther@suse.de>
16389
16390 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16391 building.
16392
16393 2019-02-27 Richard Biener <rguenther@suse.de>
16394
16395 PR debug/88878
16396 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16397 parameter, prefix section name with .gnu.debuglto_ if true.
16398 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16399 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16400
16401 2019-02-27 Richard Biener <rguenther@suse.de>
16402
16403 PR debug/89514
16404 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16405 rather than on use_debug_types, doing what output_die does.
16406 (value_format): Likewise.
16407
16408 2019-02-27 Martin Jambor <mjambor@suse.cz>
16409 Martin Sebor <msebor@redhat.com>
16410
16411 * doc/invoke.texi (Warning Options): Reword description of
16412 -Wno-absolute-value.
16413
16414 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16415
16416 PR tree-optimization/89280
16417 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16418 builtin_setjmp_setup_bb): New functions.
16419 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16420 When visiting __builtin_setjmp_setup block, queue in special
16421 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16422 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16423 from visited after the loop if they don't have any visited successor
16424 blocks.
16425
16426 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16427
16428 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16429 New function.
16430 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16431
16432 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16433
16434 PR c++/89507
16435 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16436 with types other than sizetype/ssizetype.
16437
16438 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16439
16440 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16441 (enum sparc_processor_type): ...this.
16442 (enum sparc_code_model_type): New enumeration type.
16443 (enum sparc_memory_model_type): Tweak comments.
16444 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16445 (mtune): Likewise.
16446 (mcmodel): Use sparc_code_model enumeration and variable.
16447 (sparc_code_model): New enumeration.
16448 (mdebug): Add Undocumented marker.
16449 * config/sparc/sparc.h (enum cmodel): Delete.
16450 (sparc_cmodel): Likewise.
16451 (TARGET_CM_MEDLOW): Adjust to above renaming.
16452 (TARGET_CM_MEDMID): Likewise.
16453 (TARGET_CM_MEDANY): Likewise.
16454 (TARGET_CM_EMBMEDANY): Likewise.
16455 * config/sparc/sparc.c (sparc_cmodel): Delete.
16456 (sparc_option_override): Remove string/value mapping support for the
16457 code model. Move code and memory model support to after the handling
16458 of target flags. Do private machine setup last.
16459 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
16460 (sparc_legitimize_reload_address): Likewise.
16461 (sparc_output_mi_thunk): Likewise.
16462 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
16463
16464 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16465
16466 PR tree-optimization/89500
16467 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
16468 (handle_builtin_strlen): Remove noncst_bound variable. Always
16469 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
16470 cst if the first cst bytes starting at x are known to be non-zero,
16471 even if the string is not zero terminated. Don't try to modify
16472 *si for strnlen. Update strlen_to_stridx only for strlen or if
16473 we can prove strnlen returns the same value as strlen would.
16474
16475 2019-02-26 Martin Liska <mliska@suse.cz>
16476
16477 * alloc-pool.h (struct pool_usage): Remove extra
16478 print_dash_line.
16479 * bitmap.h (struct bitmap_usage): Likewise.
16480 * ggc-common.c (struct ggc_usage): Likewise.
16481 * mem-stats.h (struct mem_usage): Likewise.
16482 (mem_alloc_description::dump): Print dash lines
16483 here and repeat header at the end of a table report.
16484 It's then more readable.
16485 * tree-phinodes.c (phinodes_print_statistics): Make
16486 horizontal alignment.
16487 * tree-ssanames.c (ssanames_print_statistics): Likewise.
16488 * vec.c (struct vec_usage): Remove extra print_dash_line.
16489 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
16490
16491 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
16492
16493 * doc/extend.texi (__builtin_object_size):
16494 Use @pxref instead of @xref inside parenthesis.
16495 (__builtin_has_attribute): Add missing comma after @xref.
16496 (__builtin_object_size): Ditto.
16497 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
16498
16499 2019-02-26 Jeff Law <law@redhat.com>
16500
16501 PR rtl-optimization/87761
16502 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
16503 detect obviously dead insns and delete them.
16504
16505 2019-02-26 Richard Biener <rguenther@suse.de>
16506
16507 PR tree-optimization/89505
16508 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
16509 to handle restrict pointed-to vars with multiple subvars
16510 correctly.
16511
16512 2019-02-26 Richard Biener <rguenther@suse.de>
16513
16514 PR tree-optimization/89489
16515 * tree-parloops.c (create_loop_fn): Copy over last_clique.
16516
16517 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16518
16519 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
16520 and move around comment.
16521 <BIT_AND_EXPR>: Likewise.
16522 <BIT_NOT_EXPR>: Add specific handling for boolean types.
16523
16524 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16525
16526 PR target/89474
16527 * config/i386/i386.c (remove_partial_avx_dependency): Call
16528 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
16529 after changing possibly many instructions to use that pseudo. Fix up
16530 insertion of v4sf_const0 setter at the start of bb.
16531
16532 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16533
16534 PR c/80409
16535 * doc/extend.texi (Variadic Pointer Args): New section.
16536
16537 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16538 Martin Sebor <msebor@gmail.com>
16539
16540 * common.opt (Wattribute-alias): Likewise.
16541 * doc/invoke.texi (Option Summary): List general form of
16542 -Wattribute-alias=. List positive form of -Wmissing-attributes.
16543 (-Wmissing-attributes): Invert entry, rewrite and correct default.
16544 Add cross-references.
16545 (-Wattribute-alias): Rewrite and correct default. Mention
16546 considered attributes (same as for -Wmissing-attributes).
16547
16548 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
16549
16550 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
16551 (_mm_cvtpd_ps): Likewise.
16552 (_mm_cvttpd_epi32): Likewise.
16553
16554 PR target/89338
16555 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
16556 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
16557
16558 PR target/89339
16559 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
16560
16561 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16562
16563 PR target/88530
16564 * common/config/aarch64/aarch64-common.c
16565 (struct aarch64_option_extension): Add is_synthetic.
16566 (all_extensions): Use it.
16567 (TARGET_OPTION_INIT_STRUCT): Define hook.
16568 (struct gcc_targetm_common): Moved to end.
16569 (all_extensions_by_on): New.
16570 (opt_ext_cmp, typedef opt_ext): New.
16571 (aarch64_option_init_struct): New.
16572 (aarch64_contains_opt): New.
16573 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
16574 * config/aarch64/aarch64-option-extensions.def
16575 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
16576 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
16577 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
16578 Set is_synthetic to false.
16579 (crypto): Set is_synthetic to true.
16580 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
16581 SYNTHETIC.
16582
16583 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16584
16585 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16586 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
16587 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16588 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
16589 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
16590 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
16591 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
16592 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
16593 Rename ...
16594 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
16595 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16596 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
16597 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
16598 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
16599 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
16600 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
16601 vfmlsl_laneq_high_f16): ... To this.
16602 * config/arm/neon.md: Update comments.
16603
16604 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16605
16606 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16607 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
16608 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16609 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
16610 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
16611 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
16612 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
16613 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
16614 Rename ...
16615 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
16616 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16617 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
16618 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
16619 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
16620 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
16621 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
16622 vfmlslq_laneq_high_f16): ... To this.
16623
16624 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
16625
16626 PR rtl-optimization/86096
16627 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
16628 comparing mw_order values.
16629
16630 2019-02-25 Jakub Jelinek <jakub@redhat.com>
16631
16632 PR target/89434
16633 * config/arm/arm.md (*subsi3_carryin_const): Use
16634 arm_neg_immediate_operand predicate instead of
16635 arm_not_immediate_operand, "L" constraint instead of "K" and
16636 print it using %n2 instead of %B2.
16637 (*subsi3_carryin_const0): New define_insn.
16638 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
16639 instead of arm_not_operand and "I" constraint instead of "K" and
16640 print it using %n3 instead of %B2. Instead of using match_dup 2 add
16641 another match_operand and in the condition check that it is negation
16642 of operands[2].
16643 (*subsi3_carryin_compare_const0): New define_ins.
16644 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
16645 *subsi3_carryin_const.
16646 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
16647 split into *subsi3_carryin_compare_const0 if the highpart is zero.
16648
16649 PR target/89438
16650 * config/arm.vfp.md (*negdf2_vfp): Use
16651 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
16652 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
16653
16654 2019-02-24 Jakub Jelinek <jakub@redhat.com>
16655
16656 PR rtl-optimization/89445
16657 * simplify-rtx.c (simplify_ternary_operation): Don't use
16658 simplify_merge_mask on operands that may trap.
16659 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
16660 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
16661 second operand is CONST_VECTOR, check if any element could be zero.
16662 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
16663 their operands can trap.
16664
16665 2019-02-23 Martin Sebor <msebor@redhat.com>
16666
16667 * gimple-ssa-sprintf.c (target_strtol): Rename...
16668 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
16669 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
16670 check for range error.
16671
16672 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
16673
16674 PR driver/69471
16675 * opts-common.c (prune_options): Also prune joined switches
16676 with Negative and RejectNegative.
16677 * config/i386/i386.opt (march=): Add Negative(march=).
16678 (mtune=): Add Negative(mtune=).
16679 * doc/options.texi: Document Negative used together with Joined
16680 and RejectNegative.
16681
16682 2019-02-22 Martin Sebor <msebor@redhat.com>
16683
16684 * doc/extend.texi (Other Builtins): Add
16685 __builtin_is_constant_evaluated.
16686
16687 2019-02-22 Richard Biener <rguenther@suse.de>
16688
16689 PR tree-optimization/87609
16690 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
16691
16692 2019-02-22 Jeff Law <law@redhat.com>
16693
16694 PR rtl-optimization/87761
16695 * config/mips/mips.md: Add new combiner pattern to recognize
16696 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
16697
16698 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
16699
16700 PR target/89324
16701 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
16702 destination register in peepholes generating patterns for ADDS/SUBS.
16703 (add<mode>3_compare0,
16704 *addsi3_compare0_uxtw, add<mode>3_compareC,
16705 add<mode>3_compareV_imm, add<mode>3_compareV,
16706 *adds_<optab><ALLX:mode>_<GPI:mode>,
16707 *subs_<optab><ALLX:mode>_<GPI:mode>,
16708 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
16709 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
16710 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
16711 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
16712 sub<mode>3_compare1): Allow stack pointer for source register.
16713 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
16714
16715 2019-02-22 Martin Sebor <msebor@redhat.com>
16716
16717 PR tree-optimization/88993
16718 PR tree-optimization/88853
16719 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
16720 New helper.
16721 (sprintf_dom_walker::call_info::is_string_func): New helper.
16722 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
16723 for formatted string functions.
16724 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
16725
16726 2019-02-22 Martin Sebor <msebor@redhat.com>
16727
16728 PR c/89425
16729 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
16730 unreachable subexpressions.
16731
16732 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
16733 Hongtao Liu <hongtao.liu@intel.com>
16734 Sunil K Pandey <sunil.k.pandey@intel.com>
16735
16736 PR target/87007
16737 * config/i386/i386-passes.def: Add
16738 pass_remove_partial_avx_dependency.
16739 * config/i386/i386-protos.h
16740 (make_pass_remove_partial_avx_dependency): New.
16741 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
16742 New function.
16743 (pass_data_remove_partial_avx_dependency): New.
16744 (pass_remove_partial_avx_dependency): Likewise.
16745 (make_pass_remove_partial_avx_dependency): Likewise.
16746 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
16747 (*extendsfdf2): Add avx_partial_xmm_update.
16748 (truncdfsf2): Likewise.
16749 (*float<SWI48:mode><MODEF:mode>2): Likewise.
16750 (SF/DF conversion splitters): Disabled for TARGET_AVX.
16751
16752 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
16753
16754 PR middle-end/85598
16755 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
16756 analysis for pass.
16757
16758 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
16759
16760 PR target/89444
16761 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
16762 (PTA_SKYLAKE): Add PTA_AES.
16763 (PTA_GOLDMONT): Likewise.
16764
16765 2019-02-22 Sudakshina Das <sudi.das@arm.com>
16766
16767 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
16768 instruction if enabled.
16769 (aarch64_override_options): Remove reference to return address key.
16770
16771 2019-02-22 Richard Biener <rguenther@suse.de>
16772
16773 PR tree-optimization/89440
16774 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16775 not necessary assert.
16776
16777 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
16778
16779 PR fortran/72741
16780 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
16781 (oacc_replace_fn_attrib_attr): ... this new function.
16782 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
16783 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
16784
16785 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16786
16787 * config/arm/arm-cpus.in (ares): Rename to...
16788 (neoverse-n1): ... This. Add ares as alias.
16789 * config/arm/arm-tables.opt: Regenerate.
16790 * config/arm/arm-tune.md: Likewise.
16791 * doc/invoke.txt (ARM Options): Document neoverse-n1.
16792
16793 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16794
16795 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
16796 * config/aarch64/aarch64-tune.md: Regenerate.
16797 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
16798
16799 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16800
16801 * config/aarch64/aarch64.c (ares_tunings): Rename to...
16802 (neoversen1_tunings): ... This.
16803 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
16804 (neoverse-n1): New CPU.
16805 * config/aarch64/aarch64-tune.md: Regenerate.
16806 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
16807
16808 2019-02-22 Richard Biener <rguenther@suse.de>
16809
16810 PR middle-end/87609
16811 * cfghooks.h (dependence_hash): New typedef.
16812 (struct copy_bb_data): New type.
16813 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
16814 (duplicate_block): Likewise.
16815 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
16816 (copy_bbs): Create and pass down copy_bb_data.
16817 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
16818 (rtl_duplicate_bb): Likewise.
16819 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
16820 remap dependence info.
16821
16822 2019-02-22 Richard Biener <rguenther@suse.de>
16823
16824 PR tree-optimization/87609
16825 * tree-core.h (tree_base): Document special clique values.
16826 * tree-inline.c (remap_dependence_clique): Do not use the
16827 special clique value of one.
16828 (maybe_set_dependence_info): Use clique one.
16829 (clear_dependence_clique): New callback.
16830 (compute_dependence_clique): Clear clique one from all refs
16831 before assigning it (again).
16832
16833 2019-02-21 Martin Sebor <msebor@redhat.com>
16834
16835 * doc/extend.texi (__clear_cache): Correct signature.
16836
16837 2019-02-21 Ian Lance Taylor <iant@golang.org>
16838
16839 PR go/89170
16840 * varasm.c (decode_addr_const): Call lookup_constant_def rather
16841 than output_constant_def.
16842 (add_constant_to_table): New static function.
16843 (output_constant_def): Call add_constant_to_table.
16844 (tree_output_constant_def): Likewise.
16845
16846 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16847
16848 PR c++/89285
16849 * builtins.c (fold_builtin_arith_overflow): If first two args are
16850 INTEGER_CSTs, set intres and ovfres to constants rather than calls
16851 to ifn.
16852
16853 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
16854
16855 PR target/87412
16856 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
16857 error for -mindirect-branch/-mfunction-return with incompatible
16858 -fcf-protection.
16859
16860 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16861
16862 PR bootstrap/88714
16863 * constraints.md (q): Remove.
16864 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
16865 instead of q.
16866
16867 2019-02-21 Martin Jambor <mjambor@suse.cz>
16868
16869 PR hsa/89302
16870 * omp-general.c (omp_extract_for_data): Removed a duplicate call
16871 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
16872 (omp_adjust_for_condition): ...here. Added necessary parameters.
16873 * omp-general.h (omp_adjust_for_condition): Updated declaration.
16874 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
16875 proper values to new parameters of omp_adjust_for_condition.
16876
16877 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16878
16879 PR middle-end/89412
16880 * expr.c (expand_assignment): If result is a MEM, use change_address
16881 instead of simplify_gen_subreg.
16882
16883 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16884 David Malcolm <dmalcolm@redhat.com>
16885
16886 PR middle-end/89091
16887 * fold-const.c (decode_field_reference): Return NULL_TREE if
16888 lang_hooks.types.type_for_size returns NULL. Check it before
16889 overwriting *exp_. Use return NULL_TREE instead of return 0.
16890
16891 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16892
16893 PR middle-end/88074
16894 PR middle-end/89415
16895 * toplev.c (do_compile): Double the emin/emax exponents to workaround
16896 buggy mpc_norm.
16897
16898 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
16899
16900 PR target/89397
16901 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
16902 TARGET_SSE in addition to TARGET_SSE_MATH.
16903
16904 (ix86_excess_precision): Ditto.
16905 (ix86_float_exceptions_rounding_supported_p): Ditto.
16906 (use_rsqrt_p): Ditto.
16907 * config/i386/sse.md (rsqrt<mode>2): Ditto.
16908
16909 2019-02-20 David Malcolm <dmalcolm@redhat.com>
16910
16911 PR c/89410
16912 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
16913 linenum_arith_t when determining if two adjacent line spans are
16914 close enough to merge.
16915 (diagnostic_show_locus): Use linenum_arith_t when iterating over
16916 lines within each line_span.
16917
16918 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
16919
16920 PR target/86487
16921 * lra-constraints.c(uses_hard_regs_p): Fix handling of
16922 paradoxical SUBREGS.
16923
16924 2019-02-20 Li Jia He <helijia@linux.ibm.com>
16925
16926 PR target/88100
16927 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
16928 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
16929 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
16930 range checking it.
16931
16932 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
16933
16934 * config/gcn/gcn.c (print_operand): Fix typo.
16935
16936 2019-02-19 Richard Biener <rguenther@suse.de>
16937
16938 PR middle-end/88074
16939 * toplev.c (do_compile): Initialize mpfr's exponent range
16940 based on available float modes.
16941
16942 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
16943
16944 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
16945 as long as the epilogue isn't completed.
16946
16947 2019-02-18 Martin Sebor <msebor@redhat.com>
16948
16949 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
16950 __has_cpp_attribute, and __has_include.
16951
16952 2019-02-18 Martin Sebor <msebor@redhat.com>
16953
16954 * doc/invoke.texi (-Wreturn-type): Correct and expand.
16955
16956 2019-02-18 Martin Sebor <msebor@redhat.com>
16957
16958 PR middle-end/89294
16959 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
16960 expression.
16961 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
16962
16963 2019-02-18 Richard Biener <rguenther@suse.de>
16964
16965 PR tree-optimization/89296
16966 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
16967 of no-warning flag to cases that might emit the bogus warning.
16968
16969 2019-02-18 Jakub Jelinek <jakub@redhat.com>
16970
16971 PR bootstrap/88714
16972 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
16973 "q" constraint.
16974 * config/arm/vfp.md (*movdi_vfp): Likewise.
16975 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
16976 "q" constraint for operands[0].
16977
16978 PR target/89369
16979 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
16980 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
16981 pattern in a temporary buffer.
16982 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
16983 than 64-operands[2].
16984
16985 PR target/89361
16986 * config/s390/s390.c (s390_indirect_branch_attrvalue,
16987 s390_indirect_branch_settings): Define unconditionally.
16988 (s390_set_current_function): Likewise, but guard the whole body except
16989 the s390_indirect_branch_settings call with
16990 #if S390_USE_TARGET_ATTRIBUTE.
16991 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
16992
16993 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
16994 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
16995 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
16996 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
16997 HOST_WIDE_INT_1U instead of 1ULL.
16998 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
16999 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
17000 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
17001 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
17002 instead of 1UL.
17003 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
17004 instead of 1ul.
17005
17006 2019-02-18 Martin Jambor <mjambor@suse.cz>
17007
17008 PR tree-optimization/89209
17009 * tree-sra.c (create_access_replacement): New optional parameter
17010 reg_tree. Use it as a type if non-NULL and access type is not of
17011 a register type.
17012 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
17013 to create_access_replacement.
17014 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
17015 Check lacc is non-NULL before attempting to re-create it on the RHS.
17016
17017 2019-02-18 Martin Liska <mliska@suse.cz>
17018
17019 PR ipa/89306
17020 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
17021 by default.
17022 (symbol_table::free_edge): Recycle m_summary_id.
17023 * cgraph.h (get_summary_id): New.
17024 (symbol_table::release_symbol): Set m_summary_id to -1
17025 by default.
17026 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
17027 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
17028 function_summary to fast_function_summary.
17029 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
17030 * ipa-pure-const.c (class funct_state_summary_t):
17031 Switch from function_summary to fast_function_summary.
17032 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
17033 (class ipa_ref_opt_summary_t): Switch from function_summary
17034 to fast_function_summary.
17035 * symbol-summary.h (class function_summary_base): New class
17036 that is created from base of former function_summary.
17037 (function_summary_base::unregister_hooks): New.
17038 (class function_summary): Inherit from function_summary_base.
17039 (class call_summary_base): New class
17040 that is created from base of former call_summary.
17041 (class call_summary): Inherit from call_summary_base.
17042 (struct is_same): New.
17043 (class fast_function_summary): New summary class.
17044 (class fast_call_summary): New summary class.
17045 * vec.h (vec_safe_grow_cleared): New function.
17046
17047 2019-02-18 Martin Liska <mliska@suse.cz>
17048
17049 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
17050 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
17051 * doc/tm.texi: Document new target hook.
17052 * doc/tm.texi.in: Likewise.
17053 * target.def: Add new target macro.
17054 * gcc.c (find_fortran_preinclude_file): Do not search multilib
17055 suffixes.
17056
17057 2019-02-17 Alan Modra <amodra@gmail.com>
17058
17059 PR target/89271
17060 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
17061 output reg on add insn.
17062 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
17063
17064 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17065
17066 PR target/89372
17067 * config/i386/sse.md (ssedoublemode): Remove V4HI.
17068 (PMULHRSW): Likewise.
17069 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
17070 TARGET_AVX2.
17071 (ssse3_pmulhrswv4hi3): New expander.
17072
17073 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17074
17075 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
17076 MMX. Add isa attribute.
17077
17078 2019-02-16 Jakub Jelinek <jakub@redhat.com>
17079
17080 PR rtl-optimization/66152
17081 * builtins.h (c_readstr): Declare.
17082 * builtins.c (c_readstr): Remove forward declaration. Add
17083 null_terminated_p argument, if false, read all bytes from the
17084 string instead of stopping after '\0'.
17085 * expr.c (string_cst_read_str): New function.
17086 (store_expr): Use string_cst_read_str instead of
17087 builtin_strncpy_read_str. Try to store by pieces the whole
17088 exp_len first, and only if that fails, split it up into
17089 store by pieces followed by clear_storage. Formatting fix.
17090
17091 * config/i386/i386.md (*movqi_internal): Remove static from
17092 buf variable. Use output_asm_insn (buf, operands); return "";
17093 instead of return buf;.
17094 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
17095 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
17096 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
17097
17098 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17099
17100 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
17101 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
17102 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
17103 (CC1_SPEC): Likewise.
17104 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
17105
17106 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17107
17108 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
17109 the base address on 64-bit strict-alignment platforms.
17110
17111 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
17112
17113 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
17114
17115 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17116
17117 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
17118
17119 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
17120
17121 PR rtl-optimization/88308
17122 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17123 on copied instruction.
17124
17125 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17126
17127 * final.c (insn_current_reference_address): Replace test on JUMP_P
17128 with test on jump_to_label_p.
17129 * config/visium/visium-passes.def: New file.
17130 * config/visium/t-visium (PASSES_EXTRA): Define.
17131 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17132 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17133 (TRAMPOLINE_ALIGNMENT): Define.
17134 * config/visium/visium.c (visium_option_override): Do not register
17135 the machine-specific reorg pass here.
17136 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17137 for the GR6.
17138 (output_branch): Adjust threshold for long branch instruction.
17139 * config/visium/visium.md (cpu): Move around.
17140 (length): Adjust for the GR6.
17141
17142 2019-02-15 Richard Biener <rguenther@suse.de>
17143 Jakub Jelinek <jakub@redhat.com>
17144
17145 PR tree-optimization/89278
17146 * tree-loop-distribution.c: Include tree-eh.h.
17147 (generate_memset_builtin, generate_memcpy_builtin): Call
17148 rewrite_to_non_trapping_overflow on builtin->size before passing it
17149 to force_gimple_operand_gsi.
17150
17151 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17152
17153 PR other/89342
17154 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17155 optimize_debug.
17156 * opth-gen.awk: Likewise.
17157
17158 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17159
17160 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17161 Enable MMX, SSE and SSE2 by default.
17162 * config/i386/i386.c (ix86_option_override_internal): Do not
17163 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17164
17165 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17166
17167 PR rtl-optimization/89354
17168 * combine.c (make_extraction): Punt if extraction_mode is narrower
17169 than len bits.
17170
17171 2019-02-14 Maya Rashish <coypu@sdf.org>
17172
17173 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17174 * config/netbsd-d.c: New file.
17175 * config/t-netbsd: Add netbsd-d.o
17176
17177 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17178
17179 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17180 affects_type_identity to true for aarch64_vector_pcs.
17181 (aarch64_comp_type_attributes): New function.
17182 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17183
17184 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17185
17186 PR target/88850
17187 * config/arm/iterators.md (ANY64): Add V4HF.
17188
17189 2019-02-14 Martin Liska <mliska@suse.cz>
17190
17191 PR rtl-optimization/89242
17192 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17193 process a transformation.
17194
17195 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17196
17197 PR tree-optimization/89314
17198 * fold-const.c (fold_binary_loc): Cast strlen argument to
17199 const char * before dereferencing it. Formatting fixes.
17200
17201 PR middle-end/89284
17202 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17203
17204 2019-02-13 Ian Lance Taylor <iant@golang.org>
17205
17206 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17207 and set current index for other optimizations.
17208
17209 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17210
17211 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17212 nonimmediate_operand as operand 2 predicate.
17213 (vec_set<VF2_512_256:mode>_0): Ditto.
17214 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17215 (*vec_concatv2si): Remove alternative 2.
17216 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17217 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17218 (vec_concatv2di): Split alternatives 4,5,6 to ...
17219 (*vec_concatv2di_0) ... new pattern.
17220
17221 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17222
17223 PR target/89190
17224 * config/arm/arm.c (ldm_stm_operation_p) Set
17225 addr_reg_in_reglist correctly for first register.
17226 (load_multiple_sequence): Remove dead base check.
17227 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17228
17229 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17230
17231 PR target/88847
17232 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17233 Expose as @aarch64_pred_mov.
17234 * config/aarch64/aarch64.c (aarch64_classify_address):
17235 Use expand_insn which legitimizes operands.
17236
17237 2019-02-13 Martin Liska <mliska@suse.cz>
17238
17239 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17240 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17241 and pointer_offset fields.
17242 (initialize_argument_information): Remove usage of dead
17243 fields.
17244 * cgraph.h (struct cgraph_thunk_info): Remove
17245 add_pointer_bounds_args.
17246 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17247 fields.
17248 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17249 fields.
17250 * config/i386/i386.c (ix86_function_arg_advance): Remove
17251 unrelated comment.
17252 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17253 (def_builtin): Remove usage of dead fields.
17254 (ix86_add_new_builtins): Likewise.
17255 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17256 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17257 (sem_function::init): Likewise.
17258 (sem_variable::merge): Likewise.
17259 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17260 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17261 * lto-cgraph.c (lto_output_node): Likewise.
17262 (lto_output_varpool_node): Likewise.
17263 (input_node): Likewise.
17264 (input_varpool_node): Likewise.
17265 * lto-streamer-out.c (lto_output): Likewise.
17266 * tree-inline.c (expand_call_inline): Remove usage of
17267 assign_stmts.
17268 * tree-inline.h (struct copy_body_data): Likewise.
17269 * varpool.c (varpool_node::dump): Likewise.
17270
17271 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17272
17273 PR middle-end/89303
17274 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17275 into pt->vars_contains_escaped_heap instead of setting
17276 pt->vars_contains_escaped_heap to it.
17277
17278 PR middle-end/89281
17279 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17280 INTVAL (size), compare it to GET_MODE_MASK instead of
17281 1 << GET_MODE_BITSIZE.
17282
17283 PR target/89290
17284 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17285 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17286 -mcmodel=large.
17287
17288 2019-02-13 Martin Liska <mliska@suse.cz>
17289
17290 PR lto/88858
17291 * cfgrtl.c (remove_barriers_from_footer): New function.
17292 (try_redirect_by_replacing_jump): Use it.
17293 (cfg_layout_redirect_edge_and_branch): Likewise.
17294
17295 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17296
17297 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17298 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17299 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17300 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17301 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17302 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17303 New BU_CRYPTO_2.
17304 * config/rs6000/rs6000.c (builtin_function_type)
17305 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17306 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17307 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17308 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17309 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17310
17311 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17312
17313 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17314 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17315
17316 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17317
17318 PR target/89229
17319 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17320 268678 and revision 268657.
17321 (*movti_internal): Likewise.
17322
17323 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17324
17325 PR target/89233
17326 * config/s390/s390.c (s390_decompose_address): Update comment.
17327 (s390_check_qrst_address): Reject invalid address forms after
17328 LRA.
17329
17330 2019-02-12 Martin Liska <mliska@suse.cz>
17331
17332 PR lto/88876
17333 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17334 we need default values of funct_state for a function that
17335 is not optimized.
17336
17337 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17338
17339 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17340 the object to pick the size of stores on strict-alignment platforms.
17341
17342 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17343 (*movdi_insn_sp32): Likewise.
17344 (*movdi_insn_sp64): Likewise.
17345
17346 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17347
17348 PR lto/88677
17349 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17350 types that needs constructiong.
17351 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17352
17353 2019-02-12 Richard Biener <rguenther@suse.de>
17354
17355 PR tree-optimization/89253
17356 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17357 duplicate the loop.
17358
17359 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17360
17361 PR lto/88147
17362 * input.c (selftest::test_line_offset_overflow): New selftest.
17363 (selftest::input_c_tests): Call it.
17364
17365 2019-02-11 Martin Sebor <msebor@redhat.com>
17366
17367 PR tree-optimization/88771
17368 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17369 when -Wstringop-overflow is set.
17370 (builtin_memref::builtin_memref): Adjust excessive upper bound
17371 only when lower bound is not excessive.
17372 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17373 -Wstringop-ovefflow.
17374 (maybe_diag_offset_bounds): Rename...
17375 (maybe_diag_access_bounds): ...to this.
17376 (check_bounds_or_overlap): Adjust for name change above.
17377
17378 2019-02-11 Martin Sebor <msebor@redhat.com>
17379
17380 PR c++/87996
17381 * builtins.c (max_object_size): Move from here...
17382 * builtins.h (max_object_size): ...and here...
17383 * tree.c (max_object_size): ...to here...
17384 * tree.h (max_object_size): ...and here.
17385
17386 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17387
17388 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17389 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17390 for correct semantics.
17391
17392 2019-02-11 Alan Modra <amodra@gmail.com>
17393
17394 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17395 -mlongcall and -mpltseq.
17396 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17397 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17398 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17399 * config/rs6000/sysv4.opt (mpltseq): New option.
17400 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17401 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17402 support is lacking. Don't allow -mpltseq with -mbss-plt.
17403 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17404 -mpltseq given for ELFv1.
17405 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17406 Only use UNSPEC_PLTSEQ for inline PLT calls.
17407 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17408 use UNSPEC_PLTSEQ for inline PLT calls.
17409 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17410 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17411 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17412 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17413 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17414 (pltseq_mtctr_<mode>): Likewise.
17415
17416 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17417
17418 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17419 Solaris ld.
17420 * configure: Regenerate.
17421
17422 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17423
17424 PR bootstrap/88714
17425 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17426 instead of r.
17427
17428 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17429
17430 * function.c (assign_parm_setup_block): Use the stored
17431 size, not the passed size, when allocating stack-space,
17432 also for a parameter with alignment larger than
17433 MAX_SUPPORTED_STACK_ALIGNMENT.
17434
17435 2019-02-11 Martin Liska <mliska@suse.cz>
17436
17437 PR ipa/89009
17438 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17439 * ipa-inline.c (inline_small_functions): Likewise.
17440 * ipa-pure-const.c (propagate_pure_const): Likewise.
17441 (propagate_nothrow): Likewise.
17442 * ipa-reference.c (propagate): Likewise.
17443 * ipa-utils.c (struct searchc_env): Remove unused field.
17444 (searchc): Always search across AVAIL_INTERPOSABLE.
17445 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17446 the only called IPA pure const can properly not propagate
17447 across interposable boundary.
17448 * ipa-utils.h (ipa_reduced_postorder): Remove param.
17449
17450 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
17451
17452 * config/nds32/nds32.md (call_internal, call_value_internal,
17453 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
17454
17455 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17456
17457 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
17458 typo.
17459
17460 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
17461
17462 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
17463 in comments
17464
17465 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17466
17467 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
17468
17469 2019-02-10 Jakub Jelinek <jakub@redhat.com>
17470
17471 PR tree-optimization/89268
17472 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
17473 if preds is non-NULL.
17474
17475 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17476
17477 PR lto/89272
17478 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
17479 polymorphic types.
17480
17481 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17482
17483 * config/nds32/nds32.md (trap): New pattern.
17484
17485 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17486
17487 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
17488 dwarf span.
17489
17490 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17491
17492 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
17493 to split POST_INC.
17494
17495 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17496
17497 * ipa-visibility.c (localize_node): Also do not localize
17498 LDPR_PREVAILING_DEF_IRONLY_EXP.
17499
17500 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17501
17502 PR lto/87957
17503 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
17504 instead of type_with_linkage.
17505
17506 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17507
17508 PR ipa/88755
17509 * params.def (uninlined-function-insns, uninlined-function-time,
17510 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
17511 bound so we don't get overflows.
17512
17513 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
17514
17515 * config/rs6000/rs6000-string.c (expand_compare_loop,
17516 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
17517 memcmp/strncmp.
17518
17519 2019-02-09 Jakub Jelinek <jakub@redhat.com>
17520
17521 PR middle-end/89246
17522 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17523 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
17524 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
17525
17526 2019-02-09 Alan Modra <amodra@gmail.com>
17527
17528 PR target/88343
17529 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
17530 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
17531 setup.
17532
17533 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
17534
17535 PR middle-end/88560
17536 * lra-constraints.c (process_alt_operands): Don't increase reject
17537 for memory when offset memory is required.
17538
17539 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
17540
17541 * config/s390/vector.md: Implement vector copysign.
17542
17543 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17544
17545 * expr.c (expand_constructor): Correct indentations.
17546
17547 2019-02-08 Richard Biener <rguenther@suse.de>
17548
17549 PR tree-optimization/89247
17550 * tree-if-conv.c: Include tree-cfgcleanup.h.
17551 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
17552 (tree_if_conversion): Pass through predicate vector.
17553 (pass_if_conversion::execute): Do CFG cleanup and SSA update
17554 inline, see if any if-converted loops we refrece in
17555 LOOP_VECTORIZED calls vanished and fixup.
17556 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
17557
17558 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
17559
17560 * config/s390/constraints.md (jdd): New constraint.
17561
17562 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17563
17564 PR target/89229
17565 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
17566 upper 16 vector registers without TARGET_AVX512VL.
17567 (*movti_internal): Likewise.
17568
17569 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17570
17571 PR rtl-optimization/89234
17572 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
17573 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
17574 (copy_reg_eh_region_note_backward): Likewise.
17575
17576 2019-02-08 Richard Biener <rguenther@suse.de>
17577
17578 PR middle-end/89223
17579 * tree-data-ref.c (initialize_matrix_A): Fail if constant
17580 doesn't fit in HWI.
17581 (analyze_subscript_affine_affine): Handle failure from
17582 initialize_matrix_A.
17583
17584 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17585
17586 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
17587 cfun everywhere.
17588
17589 2019-02-07 David Malcolm <dmalcolm@redhat.com>
17590
17591 PR tree-optimization/86637
17592 PR tree-optimization/89235
17593 * tree-vect-loop.c (optimize_mask_stores): Add an
17594 auto_purge_vect_location sentinel to ensure that vect_location is
17595 purged on exit.
17596 * tree-vectorizer.c
17597 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
17598 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
17599 to ensure that vect_location is purged on exit.
17600 (pass_slp_vectorize::execute): Likewise, replacing the manual
17601 reset.
17602 * tree-vectorizer.h (class auto_purge_vect_location): New class.
17603
17604 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17605
17606 * config/aarch64/iterators.md (max_opp): New code_attr.
17607 (USMAX): New code iterator.
17608 * config/aarch64/predicates.md (aarch64_smin): New predicate.
17609 (aarch64_smax): Likewise.
17610 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
17611 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
17612 MINUS (MAX MIN).
17613
17614 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
17615
17616 PR target/89229
17617 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
17618 for TARGET_AVX512VL.
17619 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
17620
17621 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
17622
17623 * config/s390/s390-builtin-types.def: Add new types.
17624 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
17625 (s390_vec_xlw4): Make the memory operand into a const pointer.
17626 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
17627 float.
17628 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
17629 a new vector type with the alignment of the scalar memory operand.
17630
17631 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
17632 Jakub Jelinek <jakub@redhat.com>
17633
17634 PR bootstrap/88714
17635 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
17636 arm_count_ldrdstrd_insns): New declarations.
17637 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
17638 MINUS.
17639 (valid_operands_ldrd_strd): New function.
17640 (arm_count_ldrdstrd_insns): New function.
17641 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
17642 sets instead of single DImode set and define new insns to match this.
17643
17644 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17645
17646 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
17647 Make it a C initializer.
17648
17649 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17650
17651 PR/target 88850
17652 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
17653
17654 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17655
17656 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
17657 Use neon_dot<q> for type.
17658 (neon_<sup>dot_lane<vsi2qi>): Likewise.
17659
17660 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17661
17662 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
17663 Use neon_dot<q> for type.
17664 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
17665 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
17666
17667 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
17668
17669 PR rtl-optimization/89225
17670 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
17671 sizes check.
17672
17673 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
17674
17675 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
17676 after restoring registers saved to allocate the frame on Windows.
17677
17678 2019-02-06 Richard Biener <rguenther@suse.de>
17679
17680 PR tree-optimization/89182
17681 * graphite.h (cached_scalar_evolution_in_region): Declare.
17682 * graphite.c (struct seir_cache_key): New.
17683 (struct sese_scev_hash): Likewise.
17684 (seir_cache): New global.
17685 (cached_scalar_evolution_in_region): New function.
17686 (graphite_transform_loops): Allocate and release seir_cache.
17687 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
17688 cached_scalar_evolution_in_region.
17689 * graphite-scop-detection.c (scop_detection::can_represent_loop):
17690 Simplify.
17691 (scop_detection::graphite_can_represent_expr: Use
17692 cached_scalar_evolution_in_region.
17693 (scop_detection::stmt_simple_for_scop_p): Likewise.
17694 (find_params_in_bb): Likewise.
17695 (gather_bbs::before_dom_children): Likewise.
17696 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
17697 (add_loop_constraints): Likewise.
17698
17699 2019-02-06 Jakub Jelinek <jakub@redhat.com>
17700
17701 PR middle-end/89210
17702 * fold-const-call.c (fold_const_vec_convert): Pass true as last
17703 operand to new_unary_operation only if both element types are integral
17704 and it isn't a widening conversion. Return NULL_TREE if
17705 new_unary_operation failed.
17706
17707 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
17708
17709 PR target/88856
17710 * config/s390/s390.md: Remove load and test FP splitter.
17711
17712 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17713
17714 PR target/89112
17715 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
17716 expand_compare_loop, expand_block_compare_gpr,
17717 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
17718 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
17719 #include "profile-count.h" and "predict.h" for types and functions
17720 needed to work with REG_BR_PROB notes.
17721
17722 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17723
17724 PR target/89112
17725 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
17726 for the long branch case.
17727
17728 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17729
17730 PR target/89188
17731 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
17732 can throw, non-call exceptions are enabled and we can't delete
17733 dead exceptions or alter cfg. Set must_clean if
17734 delete_insn_and_edges returns true, don't set it blindly for calls.
17735 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
17736
17737 PR rtl-optimization/89195
17738 * combine.c (make_extraction): For MEMs, don't extract bytes outside
17739 of the original MEM.
17740
17741 2019-02-05 Martin Liska <mliska@suse.cz>
17742
17743 PR gcov-profile/89000
17744 * gcov.c (function_summary): Remove argument.
17745 (file_summary): New function.
17746 (print_usage): Replace tabs with spaces.
17747 (generate_results): Use new function file_summary.
17748
17749 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17750
17751 PR target/89186
17752 * optabs.c (prepare_cmp_insn): Pass x and y to
17753 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
17754
17755 2019-02-05 Richard Biener <rguenther@suse.de>
17756
17757 PR middle-end/89150
17758 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
17759 (struct bitmap_element): Drop chain_prev so we properly recurse on
17760 the prev member, supporting tree views.
17761 (struct bitmap_head): GTY skip the obstack member.
17762
17763 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
17764
17765 PR c/88698
17766 * doc/extend.texi (Vector Extensions): Add an example of using vector
17767 types together with x86 intrinsics.
17768
17769 2019-02-04 Alan Modra <amodra@gmail.com>
17770
17771 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
17772 str[] size to 160, and comment.
17773
17774 2019-02-04 Alan Modra <amodra@gmail.com>
17775
17776 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
17777 (rs6000_pltseq_template): Guard output of TLS markers with
17778 TARGET_TLS_MARKERS.
17779 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
17780 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
17781 to use inline PLT sequences.
17782 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17783 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17784 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
17785
17786 2019-02-04 Martin Liska <mliska@suse.cz>
17787
17788 PR ipa/88985
17789 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
17790 out when ipa_fn_summaries does not contain entry for callee.
17791
17792 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
17793
17794 * config/sparc/sparc.h: Remove superfluous blank lines.
17795 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
17796 (got_register_rtx): ...this.
17797 (sparc_got): Adjust to above renaming.
17798 (sparc_tls_got): Likewise.
17799 (sparc_delegitimize_address): Likewise.
17800 (sparc_output_mi_thunk): Likewise.
17801 (sparc_init_pic_reg): Likewise.
17802 (save_local_or_in_reg_p): Fix test on the GOT register.
17803 (USE_HIDDEN_LINKONCE): Move around.
17804 (get_pc_thunk_name): Likewise.
17805 (gen_load_pcrel_sym): Likewise.
17806 (load_got_register): Likewise.
17807
17808 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
17809
17810 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
17811 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
17812
17813 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17814
17815 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
17816 into consideration.
17817
17818 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17819
17820 * config.gcc (with_nds32_lib, glibc):
17821 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
17822 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
17823 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
17824
17825 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
17826
17827 PR target/89071
17828 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
17829 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
17830 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
17831 (*rcpsf2_sse): Ditto.
17832 (*rsqrtsf2_sse): Ditto.
17833 (sse4_1_round<mode<2): Ditto.
17834
17835 2019-02-03 Richard Biener <rguenther@suse.de>
17836
17837 PR debug/87295
17838 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
17839 orig.
17840
17841 2019-02-02 Jakub Jelinek <jakub@redhat.com>
17842
17843 PR middle-end/87887
17844 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17845 Punt with warning on aggregate return or argument types. Ignore
17846 type/mode checking for uniform arguments.
17847
17848 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
17849
17850 * combine.c (try_combine): Do not print "Can't combine" messages unless
17851 printing failed combination attempts.
17852
17853 2019-02-01 Martin Jambor <mjambor@suse.cz>
17854
17855 PR hsa/87863
17856 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
17857 segment and global segment variables before making them static.
17858
17859 2019-02-01 Martin Jambor <mjambor@suse.cz>
17860
17861 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
17862 missed optimization dump with dump_enabled_p.
17863
17864 2019-02-01 Richard Biener <rguenther@suse.de>
17865
17866 PR middle-end/88597
17867 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
17868 the instantiate cache.
17869 (instantiate_scev_binary): Elide second operand procesing
17870 if equal to the first.
17871 * tree-chrec.c (chrec_contains_symbols): Add visited set.
17872 (chrec_contains_undetermined): Likewise.
17873 (tree_contains_chrecs): Likewise.
17874
17875 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
17876
17877 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
17878
17879 2019-02-01 Jakub Jelinek <jakub@redhat.com>
17880
17881 PR tree-optimization/89143
17882 * wide-int-range.h (wide_int_range_absu): Declare.
17883 * wide-int-range.cc (wide_int_range_absu): New function.
17884 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
17885
17886 PR tree-optimization/88107
17887 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
17888 instead of assertion that eh_region_outermost is non-NULL, if it
17889 is NULL, set *ALL to true and return NULL.
17890 (move_sese_region_to_fn): Adjust caller, if all is set, call
17891 duplicate_eh_regions with NULL region.
17892
17893 2019-02-01 Richard Biener <rguenth@suse.de>
17894
17895 PR rtl-optimization/88593
17896 * mode-switching.c (optimize_mode_switching): Free dominators before
17897 calling cleanup_cfg.
17898
17899 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
17900
17901 PR tree-optimization/88932
17902 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
17903
17904 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17905
17906 PR middle-end/89137
17907 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
17908 bogus clang warning.
17909
17910 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
17911
17912 PR target/89071
17913 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
17914 alternative to avoid partial SSE register stall for TARGET_AVX.
17915 (truncdfsf2): Ditto.
17916 (sse4_1_round<mode>2): Ditto.
17917
17918 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
17919
17920 PR tree-optimization/89008
17921 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
17922 process anything of the form X * 0.
17923
17924 2019-01-31 Richard Biener <rguenther@suse.de>
17925
17926 PR tree-optimization/89135
17927 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
17928 with abnormal preds.
17929
17930 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17931
17932 PR sanitizer/89124
17933 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
17934 always_inline callees into no_sanitize_address callers.
17935
17936 2019-01-31 Richard Biener <rguenther@suse.de>
17937
17938 PR rtl-optimization/89115
17939 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
17940
17941 2019-01-30 Martin Sebor <msebor@redhat.com>
17942
17943 PR other/89106
17944 * doc/extend.texi (cast to a union): Correct and expand.
17945
17946 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
17947
17948 PR rtl-optimization/87246
17949 * lra-constraints.c (simplify_operand_subreg): Reload memory
17950 in subreg if the address became invalid.
17951
17952 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
17953
17954 PR target/87064
17955 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
17956 Disable for little-endian.
17957
17958 2019-01-30 Richard Biener <rguenther@suse.de>
17959
17960 PR rtl-optimization/89115
17961 * opts.c (default_options_optimization): Reduce
17962 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
17963 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
17964 to the default.
17965
17966 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17967
17968 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
17969 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
17970 type of vector element when vec_extract is implemented by direct
17971 move.
17972
17973 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
17974
17975 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
17976
17977 2019-01-30 Richard Biener <rguenther@suse.de>
17978
17979 PR tree-optimization/89111
17980 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
17981 canonicalization to appropriately sized access types.
17982
17983 2019-01-30 Jakub Jelinek <jakub@redhat.com>
17984
17985 PR c++/89105
17986 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
17987 for arguments to functions that are TU-local and shouldn't be
17988 referenced by assembly.
17989
17990 2019-01-30 Ulrich Drepper <drepper@redhat.com>
17991
17992 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
17993 after '='.
17994
17995 2019-01-29 Martin Sebor <msebor@redhat.com>
17996
17997 PR c/88956
17998 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
17999
18000 2019-01-29 Jakub Jelinek <jakub@redhat.com>
18001
18002 PR c++/66676
18003 PR ipa/89104
18004 * omp-simd-clone.c (simd_clone_clauses_extract)
18005 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
18006 OMP_CLAUSE_ALIGNED_ALIGNMENT.
18007
18008 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
18009
18010 * config.gcc: Force .init_array for ARC.
18011
18012 2019-01-29 Richard Biener <rguenther@suse.de>
18013
18014 PR debug/87295
18015 * dwarf2out.c (collect_skeleton_dies): New helper.
18016 (copy_decls_for_unworthy_types): Call it.
18017 (build_abbrev_table): Assert we do not try to replace
18018 DW_AT_signature refs with local refs.
18019
18020 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18021
18022 PR middle-end/89002
18023 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
18024 for lastprivate/linear IV, push gimplify context around gimplify_assign
18025 and, if it needed any temporaries, pop it into a gimple bind around the
18026 sequence.
18027
18028 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18029
18030 * common.opt (-Wattribute-alias): Remove "no-" from name.
18031 Make -Wattribute-alias command line option and
18032 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
18033
18034 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18035
18036 PR target/89073
18037 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
18038 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
18039 x86 ISA options.
18040 (bmi2): Add missing @opindex.
18041 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
18042 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
18043 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
18044 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
18045 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
18046 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
18047 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
18048 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
18049 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
18050 xsavec, xsaveopt and xsaves options.
18051
18052 2019-01-28 Richard Biener <rguenther@suse.de>
18053
18054 PR debug/89076
18055 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
18056 support removal.
18057
18058 2019-01-28 Richard Biener <rguenther@suse.de>
18059
18060 PR tree-optimization/88739
18061 * tree-cfg.c (verify_types_in_gimple_reference): Verify
18062 BIT_FIELD_REFs only are applied to mode-precision operands
18063 when they are integral.
18064 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
18065 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
18066 BIT_FIELD_REFs of non-mode-precision integral operands.
18067
18068 2019-01-27 Jakub Jelinek <jakub@redhat.com>
18069
18070 PR target/87214
18071 * config/i386/sse.md
18072 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
18073 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
18074 first constants in pairs are multiples of 2. Formatting fixes.
18075 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
18076 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
18077 first constants in each quadruple are multiples of 4. Formatting fixes.
18078
18079 2019-01-26 Martin Jambor <mjambor@suse.cz>
18080
18081 PR ipa/88933
18082 * tree-inline.c: Include tree-cfgcleanup.h.
18083 (delete_unreachable_blocks_update_callgraph): Move...
18084 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
18085 ...here, make externally visible, make second argument bool, adjust
18086 all callers.
18087 * tree-cfgcleanup.c: Include cgraph.h.
18088 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
18089 Declare.
18090 * ipa-prop.c: Include tree-cfgcleanup.h.
18091 (ipcp_transform_function): Call
18092 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
18093
18094 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
18095
18096 PR rtl-optimization/88846
18097 * ira.c (process_set_for_memref_referenced_p): New.
18098 (memref_referenced_p): Add new param. Use
18099 process_set_for_memref_referenced_p. Add new switch cases.
18100 (memref_used_between_p): Pass new arg to memref_referenced_p.
18101
18102 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
18103
18104 PR target/88469
18105 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
18106 argument ABI_BREAK. Set to true if the calculated alignment has
18107 changed in gcc-9. Check bit-fields for their base type alignment.
18108 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
18109 (aarch64_function_arg_boundary): Likewise.
18110 (aarch64_gimplify_va_arg_expr): Likewise.
18111
18112 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18113
18114 PR middle-end/89037
18115 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
18116 instead of accessing TREE_INT_CST_ELT directly.
18117
18118 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
18119
18120 * doc/sourcebuild.texi (Environment attributes): Add fenv and
18121 fenv_exceptions description.
18122
18123 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18124
18125 PR rtl-optimization/87763
18126 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18127 Allow SUBREG when matching CC_NZmode compare.
18128
18129 2019-01-25 Richard Biener <rguenther@suse.de>
18130
18131 PR tree-optimization/89049
18132 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18133 Look at the pattern stmt to determine if the stmt is vectorized.
18134
18135 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18136
18137 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18138 (pred_mov<mode>): Handle all-register forms using both a new
18139 alternative and a split.
18140
18141 2019-01-25 Richard Biener <rguenther@suse.de>
18142
18143 PR tree-optimization/86865
18144 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18145 Reject non-do-while loops.
18146
18147 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18148
18149 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18150 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18151 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18152 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18153 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18154 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18155 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18156 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18157 vlogical_operand, gpc_reg_operand, int_reg_operand,
18158 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18159 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18160 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18161 (save_world_operation, restore_world_operation, lmw_operation,
18162 stmw_operation): Use MEM_P and REG_P.
18163 (tie_operand): Use MEM_P.
18164 (vrsave_operation, crsave_operation): Use REG_P.
18165 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18166 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18167 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18168 (call_operand): Use HARD_REGISTER_P.
18169 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18170 Use CONST_INT_P.
18171 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18172 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18173 quad_aligned_load_p, replace_swapped_aligned_store,
18174 recombine_lvx_pattern, replace_swapped_aligned_load,
18175 recombine_stvx_pattern): Use MEM_P.
18176 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18177 Use MEM_P and SYMBOL_REF_P.
18178 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18179 (insn_is_swappable_p): Use REG_P and MEM_P.
18180 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18181 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18182 Use CONST_INT_P.
18183 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18184 Use CONST_DOUBLE_P.
18185 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18186 CONST_WIDE_INT_P.
18187 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18188 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18189 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18190 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18191 reg_or_subregno:
18192 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18193 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18194 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18195 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18196 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18197 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18198 rs6000_split_logical_di): Use CONST_INT_P.
18199 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18200 REG_P and SYMBOL_REF_P.
18201 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18202 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18203 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18204 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18205 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18206 (small_data_operand, print_operand_address): Use CONST_INT_P and
18207 SYMBOL_REF_P.
18208 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18209 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18210 Use HARD_REGISTER_NUM_P.
18211 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18212 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18213 SUBREG_P and SYMBOL_REF_P.
18214 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18215 and HARD_REGISTER_NUM_P.
18216 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18217 reg_or_subregno.
18218 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18219 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18220 MEM_P and REG_P.
18221 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18222 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18223 find_addr_reg): Use REG_P.
18224 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18225 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18226 (offsettable_ok_by_alignment, constant_pool_expr_p,
18227 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18228 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18229 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18230 rs6000_assemble_integer, create_TOC_reference,
18231 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18232 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18233 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18234 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18235 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18236 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18237 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18238 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18239 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18240 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18241 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18242 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18243 and cbranch<mode>4): Use CONST_INT_P.
18244 (multiple define_splits): Use REG_P and SUBREG_P.
18245 (define_expands call, call_value): Use MEM_P.
18246 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18247 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18248 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18249 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18250 and HARD_REGISTER_NUM_P.
18251 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18252
18253 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18254
18255 PR rtl-optimization/88948
18256 * rtl.h (prepare_copy_insn): New prototype.
18257 * gcse.c (prepare_copy_insn): New function, split out from
18258 process_insert_insn.
18259 (process_insert_insn): Use prepare_copy_insn.
18260 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18261 instead of gen_move_insn.
18262
18263 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18264
18265 PR debug/89006
18266 * config/i386/i386.c (ix86_pic_register_p): Return true for
18267 UNSPEC_SET_GOT too.
18268
18269 PR tree-optimization/88964
18270 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18271 punt if HONOR_SNANS (chrec).
18272
18273 PR middle-end/89015
18274 * tree-nested.c (convert_nonlocal_reference_stmt,
18275 convert_local_reference_stmt, convert_tramp_reference_stmt,
18276 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18277 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18278 or GIMPLE_OMP_TASK.
18279
18280 PR tree-optimization/89027
18281 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18282 for "omp simd array" variables.
18283
18284 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18285
18286 PR target/88469
18287 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18288 force the alignment of m_val.
18289
18290 2019-01-24 Richard Biener <rguenther@suse.de>
18291
18292 PR lto/87187
18293 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18294 When in "legacy" debug mode make sure to reset self-origins.
18295
18296 2019-01-24 Martin Liska <mliska@suse.cz>
18297
18298 PR gcov-profile/88994
18299 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18300 result will be always smaller or equal to the original.
18301 * gcov.c (mangle_name): Fix else branch where we should
18302 also copy to PTR and shift the pointer.
18303
18304 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18305
18306 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18307 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18308
18309 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18310
18311 * common/config/i386/i386-common.c
18312 (OPTION_MASK_ISA_ENQCMD_SET,
18313 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18314 (ix86_handle_option): Handle -menqcmd.
18315 * config.gcc (enqcmdintrin.h): New header file.
18316 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18317 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18318 -menqcmd.
18319 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18320 function type.
18321 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18322 __builtin_ia32_enqcmds): New builtins.
18323 * config/i386/i386-c.c (__ENQCMD__): New macro.
18324 * config/i386/i386-option.c (ix86_target_string): Add
18325 -menqcmd.
18326 (ix86_valid_target_attribute_inner_p): Likewise.
18327 * config/i386/i386-expand.c
18328 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18329 IX86_BUILTIN_ENQCMDS.
18330 * config/i386/i386.h (TARGET_ENQCMD): New.
18331 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18332 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18333 (movdir64b_<mode>): Parameterize to enable share expansion code
18334 with ENQCMD in function ix86_expand_builtin.
18335 * config/i386/i386.opt: Add -menqcmd.
18336 * config/i386/immintrin.h: Include enqcmdintrin.h.
18337 * config/i386/enqcmdintrin.h: New intrinsic file.
18338 * doc/invoke.texi: Add -menqcmd.
18339
18340 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18341 Steve Ellcey <sellcey@marvell.com>
18342
18343 PR target/85711
18344 * recog.c (address_operand): Return false on wrong mode for address.
18345 (constrain_operands): Check for mode with 'p' constraint.
18346
18347 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18348
18349 PR target/88998
18350 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18351 Disparage MMX alternative.
18352 (sse2_cvtpd2pi): Ditto.
18353 (sse2_cvttpd2pi): Ditto.
18354
18355 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18356
18357 PR driver/89014
18358 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18359 use-after-free of the result of
18360 aarch64_get_extension_string_for_isa_flags.
18361
18362 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18363
18364 PR c/44715
18365 * doc/extend.texi: Document break and continue behavior in
18366 statement expressions.
18367
18368 2019-01-23 Richard Biener <rguenther@suse.de>
18369
18370 PR tree-optimization/89008
18371 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18372 not leave another stray operand.
18373
18374 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18375
18376 * BASE-VER: Bump to 9.0.1.
18377
18378 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18379
18380 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18381 thunk that returns by reference, use the type of the return object
18382 of the thunk instead of that of the alias to build the dereference.
18383
18384 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18385
18386 * config/arc/atomic.md: Add operand to DMB instruction.
18387
18388 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18389
18390 PR tree-optimization/88964
18391 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18392 build_zero_cst instead of build_int_cst. Return false for loop
18393 invariants which honor signed zeros.
18394
18395 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18396
18397 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18398
18399 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18400
18401 PR target/88965
18402 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18403 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18404 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18405
18406 PR middle-end/88968
18407 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18408 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18409
18410 PR target/87064
18411 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18412 Disable for little endian.
18413
18414 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18415
18416 PR target/88469
18417 * config/arm/arm.c (arm_needs_double_word_align): Check
18418 DECL_BIT_FIELD_TYPE.
18419
18420 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18421 H.J. Lu <hongjiu.lu@intel.com>
18422
18423 PR target/88909
18424 * config/i386/i386-builtin.def: Add mask2 to all builtin
18425 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18426 SPECIAL_ARGS.
18427 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18428 (BDESC_FIRST): Likewise.
18429 (define_builtin): Add an argument for mask2. Updated to handle
18430 both ix86_isa_flags and ix86_isa_flags2.
18431 (define_builtin_const): Likewise.
18432 (define_builtin_pure): Likewise.
18433 (define_builtin2): Deleted.
18434 (define_builtin_const2): Likewise.
18435 (builtin_description): Add a member, mask2.
18436 (bdesc_*): Add mask2 to builtin initializations.
18437 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18438 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18439 support.
18440 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18441
18442 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18443
18444 PR target/88954
18445 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18446 noplt attribute.
18447
18448 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18449
18450 PR target/88469
18451 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
18452 alignment is dominated by a bitfield with 64-bit aligned base type.
18453 (arm_function_arg): Emit a warning if the alignment has changed since
18454 earlier GCC releases.
18455 (arm_function_arg_boundary): Likewise.
18456 (arm_setup_incoming_varargs): Likewise.
18457
18458 2019-01-22 Richard Biener <rguenther@suse.de>
18459
18460 PR tree-optimization/88862
18461 * graphite-scop-detection.c
18462 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
18463
18464 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
18465
18466 * doc/extend.tex (AMD GCN Function Attributes): New section.
18467 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
18468 * doc/invoke.texi (AMD GCN Options): New section.
18469 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
18470
18471 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
18472
18473 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
18474 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
18475
18476 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18477
18478 PR tree-optimization/88044
18479 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
18480 is false in the first iteration, but !every_iteration, return false
18481 instead of true with niter->niter zero.
18482
18483 PR rtl-optimization/88904
18484 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
18485 any nonequal registers before processing BB_END (b).
18486
18487 PR target/88905
18488 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
18489 GET_MODE (op0).
18490 (expand_binop_directly, expand_doubleword_clz,
18491 expand_doubleword_popcount, expand_ctz, expand_ffs,
18492 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
18493
18494 PR rtl-optimization/49429
18495 PR target/49454
18496 PR rtl-optimization/86334
18497 PR target/88906
18498 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
18499 addressable from here...
18500 (emit_block_op_via_libcall): ... to here.
18501
18502 2019-01-22 Richard Biener <rguenther@suse.de>
18503
18504 * tree-vect-loop.c (vect_analyze_loop_operations): Use
18505 auto_vec for cost vector to fix memleak.
18506 (vectorize_fold_left_reduction): Properly gather SLP defs.
18507 (vectorizable_comparison): Do not swap operands to properly
18508 gather SLP defs.
18509
18510 2019-01-22 Alan Modra <amodra@gmail.com>
18511
18512 PR target/88614
18513 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
18514 stays a reg. Allow a const_int.
18515 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
18516 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
18517 (IS_NOMARK_TLSGETADDR): Define.
18518 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
18519 (rs6000_output_tlsargs): New function.
18520 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
18521 __tls_get_addr call takes an arg.
18522 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
18523 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
18524 delete split..
18525 (call_value_nonlocal_sysv): ..or here, delete split.
18526 (tls_gdld_nomark): Delete.
18527 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
18528 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
18529 (call_value_nonlocal_sysv): Likewise.
18530 (call_value_nonlocal_sysv_secure): Likewise.
18531 (call_value_nonlocal_aix): Likewise.
18532 (call_value_indirect_aix): Likewise.
18533 (call_value_indirect_elfv2): Likewise.
18534 (call_value_local32, call_value_local64): Disable for no-mark tls.
18535 (call_value_local_aix): Likewise.
18536
18537 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
18538
18539 PR target/88938
18540 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
18541 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
18542
18543 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
18544
18545 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
18546 string contents as hash_map keys.
18547
18548 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
18549
18550 PR c/88928
18551 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
18552 for rvalue context. Handle rvalues correctly. Use min_align_of_type
18553 instead of TYPE_ALIGN.
18554 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
18555 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
18556 pointer from TYPE_STUB_DECL.
18557
18558 2019-01-21 Richard Biener <rguenther@suse.de>
18559
18560 PR tree-optimization/88934
18561 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
18562 at the possibly non-constant operand.
18563 (vect_get_constant_vectors): Adjust.
18564
18565 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
18566
18567 PR target/71659
18568 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
18569 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
18570 instead of _X86INTRIN_H_INCLUDED.
18571 * onfig/i386/clwbintrin.h: Likewise.
18572 * config/i386/pkuintrin.h: Likewise.
18573 * config/i386/prfchwintrin.h: Likewise.
18574 * config/i386/rdseedintrin.h: Likewise.
18575 * config/i386/wbnoinvdintrin.h: Likewise.
18576 * config/i386/xsavecintrin.h: Likewise.
18577 * config/i386/xsavesintrin.h: Likewise.
18578 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
18579 * config/i386/xsaveintrin.h: Likewise.
18580 * config/i386/xsaveoptintrin.h: Likewise.
18581 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
18582 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
18583 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
18584 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
18585 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
18586 * config/i386/immintrin.h: Here.
18587
18588 2019-01-20 Martin Jambor <mjambor@suse.cz>
18589
18590 PR ipa/87615
18591 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
18592 with aa_walk_budget.
18593 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
18594 aa_walk_budget_p parameter.
18595 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
18596 walk. Updated all callers.
18597 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
18598 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
18599 unmodified_parm.
18600 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
18601 parameter info. Extract info from fbi. Pass fbi to recursive calls
18602 and to unmodified_parm.
18603 (phi_result_unknown_predicate): New parameter fbi, removed parameter
18604 info, updated call to will_be_nonconstant_expr_predicate.
18605 (param_change_prob): New parameter fbi, limit AA walking.
18606 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
18607 calls to various above functions.
18608 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
18609 parameter. Use it to limit AA walking.
18610 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
18611 fbi, limit AA walk.
18612 (detect_type_change): New parameter fbi, pass it on to
18613 detect_type_change_from_memory_writes.
18614 (detect_type_change_ssa): Likewise.
18615 (aa_overwalked): Removed.
18616 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
18617 accordingly, adjust to the neew AA limiting scheme.
18618 (parm_ref_data_preserved_p): Likewise.
18619 (ipa_compute_jump_functions_for_edge): Adjust call to
18620 get_dynamic_type.
18621 (ipa_analyze_call_uses): Likewise.
18622 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
18623 (ipa_analyze_node): Initialize aa_walk_budget.
18624 (ipcp_transform_function): Likewise.
18625 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
18626 to get_dynamic_type.
18627
18628 2019-01-19 Jakub Jelinek <jakub@redhat.com>
18629
18630 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
18631 outside of #if CHECKING_P code.
18632
18633 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
18634
18635 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
18636 New function, split out from...
18637 (loop_versioning::analyze_stride): ...here.
18638 (loop_versioning::find_per_loop_multiplication): Use gassign.
18639 (loop_versioning::analyze_term_using_scevs): Return a success code.
18640 (loop_versioning::analyze_arbitrary_term): New function.
18641 (loop_versioning::analyze_address_fragment): Use
18642 analyze_arbitrary_term if all else fails.
18643
18644 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
18645
18646 PR target/88892
18647 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
18648 operands.
18649
18650 2019-01-18 Richard Biener <rguenther@suse.de>
18651
18652 PR tree-optimization/88903
18653 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
18654 scalar stmts a SLP shift amount is composed of when detecting
18655 shifts by scalars.
18656
18657 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
18658
18659 PR target/88799
18660 * config/arm/arm-cpus.in (mp): New feature.
18661 (sec): New feature.
18662 (fgroup ARMv7ve): Add mp and sec features.
18663 (arch armv7-a): Add options to allow mp and sec extensions.
18664 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
18665 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
18666 extenstions to the base architecture.
18667 (cpu cortex-a8): Add sec extension to the base architecture.
18668 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
18669 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
18670 variants down to the base v7-a varaint.
18671 * config/arm/t-multilib (v7_a_arch_variants): New variable.
18672 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
18673 of permitted extensions for -march=armv7-a and for
18674 -mcpu=generic-armv7-a.
18675
18676 2019-01-18 Martin Liska <mliska@suse.cz>
18677
18678 * params.def: Fix comment.
18679 * tree-profile.c (gimple_init_gcov_profiler): Bump function
18680 name.
18681 (gimple_gen_ic_func_profiler): Likewise.
18682
18683 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18684
18685 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
18686 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
18687 and put in error checks for stack protector guard options.
18688 (aarch64_stack_protect_guard): New.
18689 (TARGET_STACK_PROTECT_GUARD): Define.
18690 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
18691 (reg_stack_protect_address<mode>): New.
18692 (stack_protect_set): Adjust for SSP_GLOBAL.
18693 (stack_protect_test): Likewise.
18694 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
18695 (-mstack-protector-guard): Likewise.
18696 (-mstack-protector-guard-offset): Likewise.
18697
18698 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18699
18700 PR tree-optimization/86214
18701 * tree-inline.h (struct copy_body_data): Add
18702 add_clobbers_to_eh_landing_pads member.
18703 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
18704 (copy_edges_for_bb): Call it if EH edge destination is <
18705 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
18706 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
18707 if flag_stack_reuse != SR_NONE and clear it afterwards.
18708
18709 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
18710
18711 PR target/85596
18712 * doc/install.texi (with-multilib-list): Document for aarch64.
18713
18714 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18715
18716 PR target/88734
18717 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
18718 (("..."))) with ("...").
18719
18720 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18721
18722 * doc/extend.texi (Built-in Functions for Memory Model Aware
18723 Atomic Operations): Document atomic fetch and nand.
18724
18725 2019-01-18 Martin Liska <mliska@suse.cz>
18726 Richard Biener <rguenther@suse.de>
18727
18728 PR middle-end/88587
18729 * cgraph.h (create_version_clone_with_body): Add new argument
18730 with attributes.
18731 * cgraphclones.c (cgraph_node::create_version_clone): Add
18732 DECL_ATTRIBUTES to a newly created decl. And call
18733 valid_attribute_p so that proper cl_target_optimization_node
18734 is set for the newly created declaration.
18735 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
18736 for declaration.
18737 (expand_target_clones): Do not call valid_attribute_p, it must
18738 be already done.
18739 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
18740 vector types.
18741
18742 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18743
18744 PR target/88734
18745 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
18746 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
18747 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
18748
18749 2019-01-17 Martin Sebor <msebor@redhat.com>
18750
18751 PR middle-end/88273
18752 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
18753 Handle anti-ranges the same as no range at all.
18754
18755 2018-01-17 Steve Ellcey <sellcey@cavium.com>
18756
18757 * config/aarch64/aarch64.c (cgraph.h): New include.
18758 (intl.h): New include.
18759 (supported_simd_type): New function.
18760 (currently_supported_simd_type): Ditto.
18761 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
18762 (aarch64_simd_clone_adjust): Ditto.
18763 (aarch64_simd_clone_usable): Ditto.
18764 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
18765 (TARGET_SIMD_CLONE_ADJUST): Ditto.
18766 (TARGET_SIMD_CLONE_USABLE): Ditto.
18767 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
18768 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
18769 call.
18770
18771 2019-01-17 Martin Sebor <msebor@redhat.com>
18772
18773 PR tree-optimization/88800
18774 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
18775 NO_WARNING bit here. Avoid folding out-of-bounds calls.
18776 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
18777 redundant argument. Add new argument and issue diagnostics under
18778 its control. Detect out-of-bounds access even with warnings
18779 disabled.
18780 (check_bounds_or_overlap): Change return type. Add argument.
18781 (wrestrict_dom_walker::check_call): Adjust.
18782 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
18783 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
18784 check_bounds_or_overlap's return value.
18785 (handle_builtin_stxncpy): Same.
18786 (handle_builtin_strcat): Same.
18787
18788 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18789 Kwok Cheung Yeung <kcy@codesourcery.com>
18790 Julian Brown <julian@codesourcery.com>
18791 Tom de Vries <tom@codesourcery.com>
18792
18793 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
18794
18795 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18796
18797 * doc/sourcebuild.texi: Document dg-require-effective-target
18798 llvm_binutils and offload_gcn.
18799
18800 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18801 Kwok Cheung Yeung <kcy@codesourcery.com>
18802 Julian Brown <julian@codesourcery.com>
18803 Tom de Vries <tom@codesourcery.com>
18804
18805 * doc/sourcebuild.texi: Document dg-required-effective-target
18806 exceptions.
18807
18808 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18809 Kwok Cheung Yeung <kcy@codesourcery.com>
18810 Julian Brown <julian@codesourcery.com>
18811 Tom de Vries <tom@codesourcery.com>
18812 Jan Hubicka <hubicka@ucw.cz>
18813 Martin Jambor <mjambor@suse.cz>
18814
18815 * config.gcc: Add amdgcn*-*-amdhsa configuration.
18816 * configure.ac: Check for dlopen.
18817 * configure: Regenerate.
18818
18819 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18820 Kwok Cheung Yeung <kcy@codesourcery.com>
18821 Julian Brown <julian@codesourcery.com>
18822 Tom de Vries <tom@codesourcery.com>
18823 Jan Hubicka <hubicka@ucw.cz>
18824 Martin Jambor <mjambor@suse.cz>
18825
18826 * common/config/gcn/gcn-common.c: New file.
18827 * config/gcn/driver-gcn.c: New file.
18828 * config/gcn/gcn-builtins.def: New file.
18829 * config/gcn/gcn-hsa.h: New file.
18830 * config/gcn/gcn-modes.def: New file.
18831 * config/gcn/gcn-opts.h: New file.
18832 * config/gcn/gcn-passes.def: New file.
18833 * config/gcn/gcn-protos.h: New file.
18834 * config/gcn/gcn-run.c: New file.
18835 * config/gcn/gcn-tree.c: New file.
18836 * config/gcn/gcn.c: New file.
18837 * config/gcn/gcn.h: New file.
18838 * config/gcn/gcn.opt: New file.
18839 * config/gcn/t-gcn-hsa: New file.
18840
18841 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18842 Kwok Cheung Yeung <kcy@codesourcery.com>
18843 Julian Brown <julian@codesourcery.com>
18844 Tom de Vries <tom@codesourcery.com>
18845 Jan Hubicka <hubicka@ucw.cz>
18846 Martin Jambor <mjambor@suse.cz>
18847
18848 * config/gcn/constraints.md: New file.
18849 * config/gcn/gcn-valu.md: New file.
18850 * config/gcn/gcn.md: New file.
18851 * config/gcn/predicates.md: New file.
18852
18853 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
18854
18855 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
18856 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
18857 (stmt_uses_0_or_null_in_undefined_way): Likewise.
18858 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
18859
18860 2019-01-17 Tamar Christina <tamar.christina@arm.com>
18861
18862 PR target/88851
18863 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
18864 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
18865 it and document registers.
18866
18867 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18868
18869 * config/aarch64/aarch64.c (ares_tunings): Define.
18870 * config/aarch64/aarch64-cores.def (ares): Use the above.
18871
18872 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18873
18874 PR target/88794
18875 Revert:
18876 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
18877
18878 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
18879 (_mm512_fixupimm_round_pd): Update parameters and builtin.
18880 (_mm512_maskz_fixupimm_round_pd): Ditto.
18881 (_mm512_fixupimm_round_ps): Ditto.
18882 (_mm512_maskz_fixupimm_round_ps): Ditto.
18883 (_mm_fixupimm_round_sd): Ditto.
18884 (_mm_maskz_fixupimm_round_sd): Ditto.
18885 (_mm_fixupimm_round_ss): Ditto.
18886 (_mm_maskz_fixupimm_round_ss): Ditto.
18887 (_mm512_fixupimm_pd): Ditto.
18888 (_mm512_maskz_fixupimm_pd): Ditto.
18889 (_mm512_fixupimm_ps): Ditto.
18890 (_mm512_maskz_fixupimm_ps): Ditto.
18891 (_mm_fixupimm_sd): Ditto.
18892 (_mm_maskz_fixupimm_sd): Ditto.
18893 (_mm_fixupimm_ss): Ditto.
18894 (_mm_maskz_fixupimm_ss): Ditto.
18895 (_mm512_mask_fixupimm_round_pd): Update builtin.
18896 (_mm512_mask_fixupimm_round_ps): Ditto.
18897 (_mm_mask_fixupimm_round_sd): Ditto.
18898 (_mm_mask_fixupimm_round_ss): Ditto.
18899 (_mm512_mask_fixupimm_pd): Ditto.
18900 (_mm512_mask_fixupimm_ps): Ditto.
18901 (_mm_mask_fixupimm_sd): Ditto.
18902 (_mm_mask_fixupimm_ss): Ditto.
18903 * config/i386/avx512vlintrin.h:
18904 (_mm256_fixupimm_pd): Update parameters and builtin.
18905 (_mm256_maskz_fixupimm_pd): Ditto.
18906 (_mm256_fixupimm_ps): Ditto.
18907 (_mm256_maskz_fixupimm_ps): Ditto.
18908 (_mm_fixupimm_pd): Ditto.
18909 (_mm_maskz_fixupimm_pd): Ditto.
18910 (_mm_fixupimm_ps): Ditto.
18911 (_mm_maskz_fixupimm_ps): Ditto.
18912 (_mm256_mask_fixupimm_pd): Update builtin.
18913 (_mm256_mask_fixupimm_ps): Ditto.
18914 (_mm_mask_fixupimm_pd): Ditto.
18915 (_mm_mask_fixupimm_ps): Ditto.
18916 * config/i386/i386-builtin-types.def: Add new types and remove
18917 useless ones.
18918 * config/i386/i386-builtin.def: Update builtin definitions.
18919 * config/i386/i386.c: Handle new builtin types and remove useless ones.
18920 * config/i386/sse.md: Update VFIXUPIMM* patterns.
18921 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18922 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18923 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
18924 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18925 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18926 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
18927 * config/i386/subst.md:
18928 (round_saeonly_sd_mask_operand4): Add new subst_attr.
18929 (round_saeonly_sd_mask_op4): Ditto.
18930 (round_saeonly_expand_operand5): Ditto.
18931 (round_saeonly_expand): Update.
18932
18933 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18934
18935 PR target/88794
18936 Revert:
18937 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
18938
18939 * config/i386/sse.md: Combine VFIXUPIMM* patterns
18940 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18941 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18942 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
18943 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18944 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18945 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
18946
18947 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18948
18949 PR target/88794
18950 Revert:
18951 2018-12-15 Jakub Jelinek <jakub@redhat.com>
18952
18953 PR target/88489
18954 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
18955 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
18956 instead of UNSPEC_FIXUPIMM.
18957
18958 2019-01-17 Richard Biener <rguenther@suse.de>
18959
18960 PR lto/86736
18961 * dwarf2out.c (want_pubnames): Never generate pubnames sections
18962 and friends for the LTO part of debug info.
18963
18964 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18965
18966 PR tree-optimization/86214
18967 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
18968 if x == y.
18969
18970 PR rtl-optimization/88870
18971 * dce.c (deletable_insn_p): Never delete const/pure calls that can
18972 throw if we can't alter the cfg or delete dead exceptions.
18973 (mark_insn): Don't call find_call_stack_args for such calls.
18974
18975 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
18976
18977 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
18978 prototypes for vec_st.
18979 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
18980 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
18981 mainly on signed/unsigned long long and double.
18982
18983 2019-01-16 David Malcolm <dmalcolm@redhat.com>
18984
18985 PR target/88861
18986 * combine.c (delete_noop_moves): Convert to "bool" return,
18987 returning true if any edges are eliminated.
18988 (combine_instructions): Also return true if delete_noop_moves
18989 returns true.
18990
18991 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18992
18993 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
18994 correct max nunits for endian swap.
18995 (aarch64_expand_fcmla_builtin): Correct subreg code.
18996 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18997 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
18998 lane endianness.
18999
19000 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
19001
19002 * config/alpha/alpha.c (alpha_gimplify_va_arg):
19003 Handle split indirect COMPLEX_TYPE arguments.
19004
19005 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
19006
19007 PR target/86891
19008 * config/aarch64/aarch64-modes.def: Add comment about how the carry
19009 bit is set by add and compare.
19010 (CC_ADC): New CC_MODE.
19011 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
19012 to cache the code and mode of X. Adjust the shape of a CC_Cmode
19013 comparison. Add detection for CC_ADCmode.
19014 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
19015 CC_ADCmode.
19016 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
19017 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
19018 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
19019 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
19020 to eliminate the need for zero-extending the operands.
19021 (add<mode>3_compareC_imm): Delete. Merge into ...
19022 (add<mode>3_compareC): ... this. Restructure the comparison to
19023 eliminate the need for zero-extending the operands.
19024 (add<mode>3_carryin): Use LTU for the overflow detection.
19025 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
19026 Reexpress comparison for overflow.
19027 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
19028 (add<mode>3_carryinC): Likewise.
19029 (add<mode>3_carryinV): Use LTU for carry between partials.
19030 * config/aarch64/predicates.md (aarch64_carry_operation): Update
19031 handling of CC_Cmode and add CC_ADCmode.
19032 (aarch64_borrow_operation): Likewise.
19033
19034 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19035
19036 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
19037 Remove patternmode.
19038 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
19039 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19040 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
19041 Remove endianness conversion.
19042
19043 2019-01-16 Martin Liska <mliska@suse.cz>
19044
19045 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
19046 for GCC driver.
19047 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
19048 a new argument.
19049 * gcc.c (add_sysrooted_hdrs_prefix): New function.
19050 (path_prefix_reset): Move up in the source file.
19051 (find_fortran_preinclude_file): Make complex search for the
19052 fortran header files.
19053
19054 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
19055
19056 * godump.c (go_output_typedef): When outputting a typedef, refer
19057 to the underlying type by its name and not its structure.
19058
19059 2019-01-15 David Malcolm <dmalcolm@redhat.com>
19060
19061 PR c++/88795
19062 * tree.c (build_function_type): Assert that arg_types is not
19063 error_mark_node.
19064
19065 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
19066
19067 PR inline-asm/52813
19068 * doc/extend.texi: Document that listing the stack pointer in the
19069 clobber list of an asm is a deprecated feature.
19070 * common.opt (Wdeprecated): Moved from c-family/c.opt.
19071 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
19072 warning instead of an error for clobbers of the stack pointer.
19073 Add a note explaining why.
19074
19075 2019-01-15 Richard Biener <rguenther@suse.de>
19076
19077 PR debug/88046
19078 * dwarf2out.c (gen_member_die): Do not generate inheritance
19079 DIEs late.
19080
19081 2019-01-15 Richard Biener <rguenther@suse.de>
19082
19083 PR tree-optimization/88855
19084 * tree-if-conv.c (combine_blocks): Collect
19085 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
19086
19087 2019-01-15 Tom de Vries <tdevries@suse.de>
19088
19089 PR target/80547
19090 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
19091 lhs == NULL_TREE for gang-level reduction.
19092
19093 2019-01-15 Richard Biener <rguenther@suse.de>
19094 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19095
19096 PR ipa/88788
19097 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
19098 return true if SSA_NAME is already marked in visited bitmap.
19099 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
19100
19101 2019-01-15 Jakub Jelinek <jakub@redhat.com>
19102
19103 PR tree-optimization/88775
19104 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
19105 equal == 0 equality pointer comparisons some more if compared in
19106 integral types and either one points to an automatic var and the
19107 other to a global, or we can prove at least one points to the middle
19108 or both point to start or both point to end.
19109
19110 2019-01-14 Andi Kleen <ak@linux.intel.com>
19111
19112 * Makefile.in: Lower autofdo sampling rate by 10x.
19113 * Makefile.tpl: Dito.
19114
19115 2019-01-14 Tom Honermann <tom@honermann.net>
19116
19117 * defaults.h: Define CHAR8_TYPE.
19118
19119 2019-01-14 Martin Sebor <msebor@redhat.com>
19120
19121 PR target/88638
19122 * doc/extend.texi (Darwin Format Checks): Clarify.
19123
19124 2019-01-14 Richard Biener <rguenther@suse.de>
19125
19126 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19127 whether we are in (simplify ...) or (match ...) context.
19128
19129 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19130
19131 PR rtl-optimization/88796
19132 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19133 * cfgexpand.c (stack_protect_prologue): Initialize
19134 crtl->stack_protect_guard_decl.
19135 * function.c (stack_protect_epilogue): Use it instead of calling
19136 targetm.stack_protect_guard again.
19137 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19138 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19139 crtl->stack_protect_guard_decl.
19140 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19141 on the returned MEM_EXPR.
19142
19143 2019-01-12 Tom de Vries <tdevries@suse.de>
19144
19145 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19146 vector length using -fopenacc-dim.
19147
19148 2019-01-12 Tom de Vries <tdevries@suse.de>
19149
19150 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19151 lengths into account.
19152
19153 2019-01-12 Svante Signell <svante.signell@gmail.com>
19154
19155 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19156 (TARGET_CAN_SPLIT_STACK): Define.
19157 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19158
19159 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19160
19161 * params.def (inline-unit-growth): Set to 40.
19162
19163 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19164
19165 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19166
19167 2019-01-12 Tom de Vries <tdevries@suse.de>
19168
19169 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19170 region calling vector-partitionable routine, set default_vector_length
19171 to WARP_SIZE.
19172
19173 2019-01-12 Tom de Vries <tdevries@suse.de>
19174
19175 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19176 variable default_vector_length.
19177
19178 2019-01-12 Tom de Vries <tdevries@suse.de>
19179
19180 PR middle-end/88703
19181 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19182 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19183 dimensions limits.
19184
19185 2019-01-12 Tom de Vries <tdevries@suse.de>
19186
19187 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19188 (nvptx_goacc_validate_dims): Add used parameter.
19189 * doc/tm.texi: Regenerate.
19190 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19191 argument to call to targetm.goacc.validate_dims.
19192 (default_goacc_validate_dims): Add used
19193 parameter.
19194 * target.def (validate_dims): Add used parameter in DEFHOOK.
19195 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19196
19197 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19198
19199 PR middle-end/85956
19200 PR lto/88733
19201 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19202 field.
19203 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19204 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19205 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19206 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19207
19208 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19209
19210 PR rtl-optimization/87305
19211 * lra-assigns.c
19212 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19213 for little endian pseudos used as paradoxical subreg.
19214
19215 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19216
19217 PR tree-optimization/88693
19218 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19219 for STRING_CSTs that don't contain any NUL characters in the first
19220 TREE_STRING_LENGTH bytes.
19221
19222 2019-01-11 Alan Modra <amodra@gmail.com>
19223
19224 PR 88777
19225 PR 88614
19226 * genattrtab.c (min_fn): Don't translate values.
19227 (min_attr_value): Return INT_MAX when the value can't be calculated.
19228 Return minimum among any values that can be calculated.
19229 (max_attr_value): Adjust.
19230
19231 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19232
19233 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19234
19235 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19236
19237 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19238 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19239 (aarch64_return_call_with_max_clobbers): New function.
19240 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19241 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19242 argument.
19243 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19244 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19245 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19246 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19247 * cselib.c (cselib_process_insn): Add argument to
19248 targetm.hard_regno_call_part_clobbered call.
19249 * ira-conflicts.c (ira_build_conflicts): Ditto.
19250 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19251 * lra-constraints.c (inherit_reload_reg): Ditto.
19252 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19253 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19254 argument. Call targetm.return_call_with_max_clobbers.
19255 Add argument to targetm.hard_regno_call_part_clobbered call.
19256 (calls_have_same_clobbers_p): New function.
19257 (process_bb_lives): Add call_insn and last_call_insn variables.
19258 Pass call_insn to check_pseudos_live_through_calls.
19259 Modify if stmt to check targetm.return_call_with_max_clobbers.
19260 Update setting of flush variable.
19261 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19262 to false.
19263 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19264 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19265 targetm.hard_regno_call_part_clobbered call.
19266 * reginfo.c (choose_hard_reg_mode): Ditto.
19267 * regrename.c (check_new_reg_p): Ditto.
19268 * reload.c (find_equiv_reg): Ditto.
19269 * reload1.c (emit_reload_insns): Ditto.
19270 * sched-deps.c (deps_analyze_insn): Ditto.
19271 * sel-sched.c (init_regs_for_mode): Ditto.
19272 (mark_unavailable_hard_regs): Ditto.
19273 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19274 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19275 (return_call_with_max_clobbers): New target function.
19276 * doc/tm.texi: Regenerate.
19277 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19278 * hooks.c (hook_bool_uint_mode_false): Change to
19279 hook_bool_insn_uint_mode_false.
19280 * hooks.h (hook_bool_uint_mode_false): Ditto.
19281
19282 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19283
19284 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19285 (aarch64_remove_extra_call_preserved_regs): New function.
19286 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19287 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19288 * doc/tm.texi: Regenerate.
19289 * final.c (get_call_reg_set_usage): Call new hook.
19290 * target.def (remove_extra_call_preserved_regs): New hook.
19291 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19292 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19293
19294 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19295
19296 PR bootstrap/88714
19297 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19298 inside of pass_combine_1 dump rather than pass_profile_1.
19299
19300 2019-01-11 Tom de Vries <tdevries@suse.de>
19301
19302 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19303 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19304 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19305 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19306 num_workers 16.
19307
19308 2019-01-11 Tom de Vries <tdevries@suse.de>
19309
19310 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19311
19312 2019-01-11 Jan Beulich <jbeulich@suse.com>
19313
19314 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19315 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19316 sse2_cvtsi2sd): Add {l}.
19317 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19318 syntax.
19319
19320 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19321
19322 PR target/88785
19323 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19324 define_expand.
19325 (*float<floatunssuffix>v2div2sf2): New define_insn.
19326 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19327 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19328 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19329 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19330 match_operands with "const0_operand" "C".
19331
19332 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19333
19334 * config/aarch64/aarch64-builtins.c
19335 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19336 (aarch64_init_simd_builtins): ...Here
19337
19338 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19339
19340 PR rtl-optimization/87305
19341 * lra-assigns.c
19342 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19343 allocation for big endian pseudos used as paradoxical subregs and
19344 spill them if it is wrong.
19345 * lra-constraints.c (lra_constraints): Add a comment.
19346
19347 2019-01-10 Richard Biener <rguenther@suse.de>
19348
19349 PR tree-optimization/88792
19350 * tree-ssa-pre.c (get_representative_for): Do not return a
19351 value-number here.
19352
19353 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19354
19355 PR middle-end/84877
19356 PR bootstrap/88450
19357 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19358 (assign_parm_setup_block): Do the argument slot realignment here
19359 instead.
19360
19361 2019-01-10 Stefan Agner <stefan@agner.ch>
19362
19363 PR target/88648
19364 * config/arm/arm.c (arm_option_override_internal): Force
19365 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19366
19367 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19368
19369 PR c/88568
19370 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19371 DECL_EXTERNAL.
19372
19373 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19374
19375 * config/arm/arm-builtins.c
19376 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19377 (MAC_LANE_PAIR_QUALIFIERS): New.
19378 (arm_expand_builtin_args): Use it.
19379 (arm_expand_builtin_1): Likewise.
19380 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19381 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19382 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19383 * config/arm/arm_neon.h:
19384 (vcadd_rot90_f16): New.
19385 (vcaddq_rot90_f16): New.
19386 (vcadd_rot270_f16): New.
19387 (vcaddq_rot270_f16): New.
19388 (vcmla_f16): New.
19389 (vcmlaq_f16): New.
19390 (vcmla_lane_f16): New.
19391 (vcmla_laneq_f16): New.
19392 (vcmlaq_lane_f16): New.
19393 (vcmlaq_laneq_f16): New.
19394 (vcmla_rot90_f16): New.
19395 (vcmlaq_rot90_f16): New.
19396 (vcmla_rot90_lane_f16): New.
19397 (vcmla_rot90_laneq_f16): New.
19398 (vcmlaq_rot90_lane_f16): New.
19399 (vcmlaq_rot90_laneq_f16): New.
19400 (vcmla_rot180_f16): New.
19401 (vcmlaq_rot180_f16): New.
19402 (vcmla_rot180_lane_f16): New.
19403 (vcmla_rot180_laneq_f16): New.
19404 (vcmlaq_rot180_lane_f16): New.
19405 (vcmlaq_rot180_laneq_f16): New.
19406 (vcmla_rot270_f16): New.
19407 (vcmlaq_rot270_f16): New.
19408 (vcmla_rot270_lane_f16): New.
19409 (vcmla_rot270_laneq_f16): New.
19410 (vcmlaq_rot270_lane_f16): New.
19411 (vcmlaq_rot270_laneq_f16): New.
19412 (vcadd_rot90_f32): New.
19413 (vcaddq_rot90_f32): New.
19414 (vcadd_rot270_f32): New.
19415 (vcaddq_rot270_f32): New.
19416 (vcmla_f32): New.
19417 (vcmlaq_f32): New.
19418 (vcmla_lane_f32): New.
19419 (vcmla_laneq_f32): New.
19420 (vcmlaq_lane_f32): New.
19421 (vcmlaq_laneq_f32): New.
19422 (vcmla_rot90_f32): New.
19423 (vcmlaq_rot90_f32): New.
19424 (vcmla_rot90_lane_f32): New.
19425 (vcmla_rot90_laneq_f32): New.
19426 (vcmlaq_rot90_lane_f32): New.
19427 (vcmlaq_rot90_laneq_f32): New.
19428 (vcmla_rot180_f32): New.
19429 (vcmlaq_rot180_f32): New.
19430 (vcmla_rot180_lane_f32): New.
19431 (vcmla_rot180_laneq_f32): New.
19432 (vcmlaq_rot180_lane_f32): New.
19433 (vcmlaq_rot180_laneq_f32): New.
19434 (vcmla_rot270_f32): New.
19435 (vcmlaq_rot270_f32): New.
19436 (vcmla_rot270_lane_f32): New.
19437 (vcmla_rot270_laneq_f32): New.
19438 (vcmlaq_rot270_lane_f32): New.
19439 (vcmlaq_rot270_laneq_f32): New.
19440 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19441 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19442 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19443 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19444 vcmlaq_lane270): New.
19445 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19446 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
19447 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
19448 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
19449 (arm_option_reconfigure_globals): Use them.
19450 * config/arm/iterators.md (VDF, VQ_HSF): New.
19451 (VCADD, VCMLA): New.
19452 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
19453 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
19454 New.
19455 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
19456 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
19457
19458 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19459
19460 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19461 Add qualifier_lane_pair_index.
19462 (emit-rtl.h): Include.
19463 (TYPES_QUADOP_LANE_PAIR): New.
19464 (aarch64_simd_expand_args): Use it.
19465 (aarch64_simd_expand_builtin): Likewise.
19466 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
19467 New.
19468 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
19469 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
19470 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
19471 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
19472 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
19473 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
19474 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
19475 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
19476 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
19477 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
19478 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
19479 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
19480 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
19481 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19482 Add __ARM_FEATURE_COMPLEX.
19483 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
19484 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
19485 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
19486 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19487 fcmlaq_lane270): New.
19488 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19489 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
19490 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
19491 * config/aarch64/arm_neon.h:
19492 (vcadd_rot90_f16): New.
19493 (vcaddq_rot90_f16): New.
19494 (vcadd_rot270_f16): New.
19495 (vcaddq_rot270_f16): New.
19496 (vcmla_f16): New.
19497 (vcmlaq_f16): New.
19498 (vcmla_lane_f16): New.
19499 (vcmla_laneq_f16): New.
19500 (vcmlaq_lane_f16): New.
19501 (vcmlaq_rot90_lane_f16): New.
19502 (vcmla_rot90_laneq_f16): New.
19503 (vcmla_rot90_lane_f16): New.
19504 (vcmlaq_rot90_f16): New.
19505 (vcmla_rot90_f16): New.
19506 (vcmlaq_laneq_f16): New.
19507 (vcmla_rot180_laneq_f16): New.
19508 (vcmla_rot180_lane_f16): New.
19509 (vcmlaq_rot180_f16): New.
19510 (vcmla_rot180_f16): New.
19511 (vcmlaq_rot90_laneq_f16): New.
19512 (vcmlaq_rot270_laneq_f16): New.
19513 (vcmlaq_rot270_lane_f16): New.
19514 (vcmla_rot270_laneq_f16): New.
19515 (vcmlaq_rot270_f16): New.
19516 (vcmla_rot270_f16): New.
19517 (vcmlaq_rot180_laneq_f16): New.
19518 (vcmlaq_rot180_lane_f16): New.
19519 (vcmla_rot270_lane_f16): New.
19520 (vcadd_rot90_f32): New.
19521 (vcaddq_rot90_f32): New.
19522 (vcaddq_rot90_f64): New.
19523 (vcadd_rot270_f32): New.
19524 (vcaddq_rot270_f32): New.
19525 (vcaddq_rot270_f64): New.
19526 (vcmla_f32): New.
19527 (vcmlaq_f32): New.
19528 (vcmlaq_f64): New.
19529 (vcmla_lane_f32): New.
19530 (vcmla_laneq_f32): New.
19531 (vcmlaq_lane_f32): New.
19532 (vcmlaq_laneq_f32): New.
19533 (vcmla_rot90_f32): New.
19534 (vcmlaq_rot90_f32): New.
19535 (vcmlaq_rot90_f64): New.
19536 (vcmla_rot90_lane_f32): New.
19537 (vcmla_rot90_laneq_f32): New.
19538 (vcmlaq_rot90_lane_f32): New.
19539 (vcmlaq_rot90_laneq_f32): New.
19540 (vcmla_rot180_f32): New.
19541 (vcmlaq_rot180_f32): New.
19542 (vcmlaq_rot180_f64): New.
19543 (vcmla_rot180_lane_f32): New.
19544 (vcmla_rot180_laneq_f32): New.
19545 (vcmlaq_rot180_lane_f32): New.
19546 (vcmlaq_rot180_laneq_f32): New.
19547 (vcmla_rot270_f32): New.
19548 (vcmlaq_rot270_f32): New.
19549 (vcmlaq_rot270_f64): New.
19550 (vcmla_rot270_lane_f32): New.
19551 (vcmla_rot270_laneq_f32): New.
19552 (vcmlaq_rot270_lane_f32): New.
19553 (vcmlaq_rot270_laneq_f32): New.
19554 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
19555 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
19556 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
19557 (FCADD, FCMLA): New.
19558 (rot): New.
19559 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
19560
19561 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19562
19563 PR other/16615
19564
19565 * config/pa/pa.c: Change "can not" to "cannot".
19566 * gimple-ssa-evrp-analyze.c: Likewise.
19567 * ipa-icf.c: Likewise.
19568 * ipa-polymorphic-call.c: Likewise.
19569 * ipa-pure-const.c: Likewise.
19570 * lra-constraints.c: Likewise.
19571 * lra-remat.c: Likewise.
19572 * reload1.c: Likewise.
19573 * reorg.c: Likewise.
19574 * tree-ssa-uninit.c: Likewise.
19575
19576 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19577
19578 PR other/16615
19579
19580 * Makefile.in: Mechanically replace "can not" with "cannot".
19581 * alias.c: Likewise.
19582 * builtins.c: Likewise.
19583 * calls.c: Likewise.
19584 * cgraph.c: Likewise.
19585 * cgraph.h: Likewise.
19586 * cgraphclones.c: Likewise.
19587 * cgraphunit.c: Likewise.
19588 * combine-stack-adj.c: Likewise.
19589 * combine.c: Likewise.
19590 * common/config/i386/i386-common.c: Likewise.
19591 * config/aarch64/aarch64.c: Likewise.
19592 * config/alpha/sync.md: Likewise.
19593 * config/arc/arc.c: Likewise.
19594 * config/arc/predicates.md: Likewise.
19595 * config/arm/arm-c.c: Likewise.
19596 * config/arm/arm.c: Likewise.
19597 * config/arm/arm.h: Likewise.
19598 * config/arm/arm.md: Likewise.
19599 * config/arm/cortex-r4f.md: Likewise.
19600 * config/csky/csky.c: Likewise.
19601 * config/csky/csky.h: Likewise.
19602 * config/darwin-f.c: Likewise.
19603 * config/epiphany/epiphany.md: Likewise.
19604 * config/i386/i386.c: Likewise.
19605 * config/i386/sol2.h: Likewise.
19606 * config/m68k/m68k.c: Likewise.
19607 * config/mcore/mcore.h: Likewise.
19608 * config/microblaze/microblaze.md: Likewise.
19609 * config/mips/20kc.md: Likewise.
19610 * config/mips/sb1.md: Likewise.
19611 * config/nds32/nds32.c: Likewise.
19612 * config/nds32/predicates.md: Likewise.
19613 * config/pa/pa.c: Likewise.
19614 * config/rs6000/e300c2c3.md: Likewise.
19615 * config/rs6000/rs6000.c: Likewise.
19616 * config/s390/s390.h: Likewise.
19617 * config/sh/sh.c: Likewise.
19618 * config/sh/sh.md: Likewise.
19619 * config/spu/vmx2spu.h: Likewise.
19620 * cprop.c: Likewise.
19621 * dbxout.c: Likewise.
19622 * df-scan.c: Likewise.
19623 * doc/cfg.texi: Likewise.
19624 * doc/extend.texi: Likewise.
19625 * doc/fragments.texi: Likewise.
19626 * doc/gty.texi: Likewise.
19627 * doc/invoke.texi: Likewise.
19628 * doc/lto.texi: Likewise.
19629 * doc/md.texi: Likewise.
19630 * doc/objc.texi: Likewise.
19631 * doc/rtl.texi: Likewise.
19632 * doc/tm.texi: Likewise.
19633 * dse.c: Likewise.
19634 * emit-rtl.c: Likewise.
19635 * emit-rtl.h: Likewise.
19636 * except.c: Likewise.
19637 * expmed.c: Likewise.
19638 * expr.c: Likewise.
19639 * fold-const.c: Likewise.
19640 * genautomata.c: Likewise.
19641 * gimple-fold.c: Likewise.
19642 * hard-reg-set.h: Likewise.
19643 * ifcvt.c: Likewise.
19644 * ipa-comdats.c: Likewise.
19645 * ipa-cp.c: Likewise.
19646 * ipa-devirt.c: Likewise.
19647 * ipa-fnsummary.c: Likewise.
19648 * ipa-icf.c: Likewise.
19649 * ipa-inline-transform.c: Likewise.
19650 * ipa-inline.c: Likewise.
19651 * ipa-polymorphic-call.c: Likewise.
19652 * ipa-profile.c: Likewise.
19653 * ipa-prop.c: Likewise.
19654 * ipa-pure-const.c: Likewise.
19655 * ipa-reference.c: Likewise.
19656 * ipa-split.c: Likewise.
19657 * ipa-visibility.c: Likewise.
19658 * ipa.c: Likewise.
19659 * ira-build.c: Likewise.
19660 * ira-color.c: Likewise.
19661 * ira-conflicts.c: Likewise.
19662 * ira-costs.c: Likewise.
19663 * ira-int.h: Likewise.
19664 * ira-lives.c: Likewise.
19665 * ira.c: Likewise.
19666 * ira.h: Likewise.
19667 * loop-invariant.c: Likewise.
19668 * loop-unroll.c: Likewise.
19669 * lower-subreg.c: Likewise.
19670 * lra-assigns.c: Likewise.
19671 * lra-constraints.c: Likewise.
19672 * lra-eliminations.c: Likewise.
19673 * lra-lives.c: Likewise.
19674 * lra-remat.c: Likewise.
19675 * lra-spills.c: Likewise.
19676 * lra.c: Likewise.
19677 * lto-cgraph.c: Likewise.
19678 * lto-streamer-out.c: Likewise.
19679 * postreload-gcse.c: Likewise.
19680 * predict.c: Likewise.
19681 * profile-count.h: Likewise.
19682 * profile.c: Likewise.
19683 * recog.c: Likewise.
19684 * ree.c: Likewise.
19685 * reload.c: Likewise.
19686 * reload1.c: Likewise.
19687 * reorg.c: Likewise.
19688 * resource.c: Likewise.
19689 * rtl.def: Likewise.
19690 * rtl.h: Likewise.
19691 * rtlanal.c: Likewise.
19692 * sched-deps.c: Likewise.
19693 * sched-ebb.c: Likewise.
19694 * sched-rgn.c: Likewise.
19695 * sel-sched-ir.c: Likewise.
19696 * sel-sched.c: Likewise.
19697 * shrink-wrap.c: Likewise.
19698 * simplify-rtx.c: Likewise.
19699 * symtab.c: Likewise.
19700 * target.def: Likewise.
19701 * toplev.c: Likewise.
19702 * tree-call-cdce.c: Likewise.
19703 * tree-cfg.c: Likewise.
19704 * tree-complex.c: Likewise.
19705 * tree-core.h: Likewise.
19706 * tree-eh.c: Likewise.
19707 * tree-inline.c: Likewise.
19708 * tree-loop-distribution.c: Likewise.
19709 * tree-nrv.c: Likewise.
19710 * tree-profile.c: Likewise.
19711 * tree-sra.c: Likewise.
19712 * tree-ssa-alias.c: Likewise.
19713 * tree-ssa-dce.c: Likewise.
19714 * tree-ssa-dom.c: Likewise.
19715 * tree-ssa-forwprop.c: Likewise.
19716 * tree-ssa-loop-im.c: Likewise.
19717 * tree-ssa-loop-ivcanon.c: Likewise.
19718 * tree-ssa-loop-ivopts.c: Likewise.
19719 * tree-ssa-loop-niter.c: Likewise.
19720 * tree-ssa-phionlycprop.c: Likewise.
19721 * tree-ssa-phiopt.c: Likewise.
19722 * tree-ssa-propagate.c: Likewise.
19723 * tree-ssa-threadedge.c: Likewise.
19724 * tree-ssa-threadupdate.c: Likewise.
19725 * tree-ssa-uninit.c: Likewise.
19726 * tree-ssanames.c: Likewise.
19727 * tree-streamer-out.c: Likewise.
19728 * tree.c: Likewise.
19729 * tree.h: Likewise.
19730 * vr-values.c: Likewise.
19731
19732 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
19733
19734 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
19735 (ix86_split_xorsign): Ditto.
19736 * config/i386/i386.c (ix86_expand_xorsign): New function.
19737 (ix86_split_xorsign): Ditto.
19738 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
19739 (xorsign<mode>3): New expander.
19740 (xorsign<mode>3_1): New insn_and_split pattern.
19741 * config/i386/sse.md (xorsign<mode>3): New expander.
19742
19743 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19744
19745 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
19746 (*tablejump_sp64): Likewise.
19747 (*tablejump<P:mode>): ...this.
19748 (*call_address_sp32): Merge into...
19749 (*call_address_sp64): Likewise.
19750 (*call_address<P:mode>): ...this.
19751 (*call_symbolic_sp32): Merge into...
19752 (*call_symbolic_sp64): Likewise.
19753 (*call_symbolic<P:mode>): ...this.
19754 (call_value): Remove constraint and add predicate.
19755 (*call_value_address_sp32): Merge into...
19756 (*call_value_address_sp64): Likewise.
19757 (*call_value_address<P:mode>): ...this.
19758 (*call_value_symbolic_sp32): Merge into...
19759 (*call_value_symbolic_sp64): Likewise.
19760 (*call_value_symbolic<P:mode>): ...this.
19761 (*sibcall_symbolic_sp32): Merge into...
19762 (*sibcall_symbolic_sp64): Likewise.
19763 (*sibcall_symbolic<P:mode>): ...this.
19764 (sibcall_value): Remove constraint and add predicate.
19765 (*sibcall_value_symbolic_sp32): Merge into...
19766 (*sibcall_value_symbolic_sp64): Likewise.
19767 (*sibcall_value_symbolic<P:mode>): ...this.
19768 (window_save): Minor tweak.
19769 (*branch_sp32): Merge into...
19770 (*branch_sp64): Likewise.
19771 (*branch<P:mode>): ...this.
19772
19773 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19774 James Clarke <jrtc27@jrtc27.com>
19775
19776 PR target/84010
19777 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
19778 consistently in TLS address generation and adjust code to the renaming
19779 of patterns. Mark calls to __tls_get_addr as const.
19780 * config/sparc/sparc.md (tgd_hi22): Turn into...
19781 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
19782 (tgd_lo10): Turn into...
19783 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
19784 (tgd_add32): Merge into...
19785 (tgd_add64): Likewise.
19786 (tgd_add<P:mode>): ...this and use Pmode throughout.
19787 (tldm_hi22): Turn into...
19788 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
19789 (tldm_lo10): Turn into...
19790 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
19791 (tldm_add32): Merge into...
19792 (tldm_add64): Likewise.
19793 (tldm_add<P:mode>): ...this and use Pmode throughout.
19794 (tldm_call32): Merge into...
19795 (tldm_call64): Likewise.
19796 (tldm_call<P:mode>): ...this and use Pmode throughout.
19797 (tldo_hix22): Turn into...
19798 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
19799 (tldo_lox10): Turn into...
19800 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
19801 (tldo_add32): Merge into...
19802 (tldo_add64): Likewise.
19803 (tldo_add<P:mode>): ...this and use Pmode throughout.
19804 (tie_hi22): Turn into...
19805 (tie_hi22<P:mode>): ...this and use Pmode throughout.
19806 (tie_lo10): Turn into...
19807 (tie_lo10<P:mode>): ...this and use Pmode throughout.
19808 (tie_ld64): Use DImode throughout.
19809 (tie_add32): Merge into...
19810 (tie_add64): Likewise.
19811 (tie_add<P:mode>): ...this and use Pmode throughout.
19812 (tle_hix22_sp32): Merge into...
19813 (tle_hix22_sp64): Likewise.
19814 (tle_hix22<P:mode>): ...this and use Pmode throughout.
19815 (tle_lox22_sp32): Merge into...
19816 (tle_lox22_sp64): Likewise.
19817 (tle_lox22<P:mode>): ...this and use Pmode throughout.
19818 (*tldo_ldub_sp32): Merge into...
19819 (*tldo_ldub_sp64): Likewise.
19820 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
19821 (*tldo_ldub1_sp32): Merge into...
19822 (*tldo_ldub1_sp64): Likewise.
19823 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
19824 (*tldo_ldub2_sp32): Merge into...
19825 (*tldo_ldub2_sp64): Likewise.
19826 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
19827 (*tldo_ldsb1_sp32): Merge into...
19828 (*tldo_ldsb1_sp64): Likewise.
19829 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
19830 (*tldo_ldsb2_sp32): Merge into...
19831 (*tldo_ldsb2_sp64): Likewise.
19832 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
19833 (*tldo_ldub3_sp64): Use DImode throughout.
19834 (*tldo_ldsb3_sp64): Likewise.
19835 (*tldo_lduh_sp32): Merge into...
19836 (*tldo_lduh_sp64): Likewise.
19837 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
19838 (*tldo_lduh1_sp32): Merge into...
19839 (*tldo_lduh1_sp64): Likewise.
19840 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
19841 (*tldo_ldsh1_sp32): Merge into...
19842 (*tldo_ldsh1_sp64): Likewise.
19843 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
19844 (*tldo_lduh2_sp64): Use DImode throughout.
19845 (*tldo_ldsh2_sp64): Likewise.
19846 (*tldo_lduw_sp32): Merge into...
19847 (*tldo_lduw_sp64): Likewise.
19848 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
19849 (*tldo_lduw1_sp64): Use DImode throughout.
19850 (*tldo_ldsw1_sp64): Likewise.
19851 (*tldo_ldx_sp64): Likewise.
19852 (*tldo_stb_sp32): Merge into...
19853 (*tldo_stb_sp64): Likewise.
19854 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
19855 (*tldo_sth_sp32): Merge into...
19856 (*tldo_sth_sp64): Likewise.
19857 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
19858 (*tldo_stw_sp32): Merge into...
19859 (*tldo_stw_sp64): Likewise.
19860 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
19861 (*tldo_stx_sp64): Use DImode throughout.
19862
19863 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19864
19865 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
19866 check configure option to set BTI and Return Address Signing.
19867 * configure.ac: Add --enable-standard-branch-protection and
19868 --disable-standard-branch-protection.
19869 * configure: Regenerated.
19870 * doc/install.texi: Document the same.
19871
19872 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19873 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19874
19875 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
19876 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
19877 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
19878 if bti is enabled.
19879 * config/aarch64/aarch64-bti-insert.c: New file.
19880 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
19881 pass.
19882 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
19883 new bti pass.
19884 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
19885 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
19886 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
19887 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
19888
19889 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19890
19891 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
19892 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
19893 Disable bti for -mbranch-protection=none.
19894 (aarch64_handle_standard_branch_protection): Enable bti for
19895 -mbranch-protection=standard.
19896 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
19897 -mbranch-protection.
19898 (aarch64_bti_enabled): Check if bti is enabled.
19899 * config/aarch64/aarch64.opt: Declare target variable.
19900 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
19901
19902 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19903
19904 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
19905 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
19906 (aarch64_expand_epilogue): Likewise.
19907 (aarch64_output_mi_thunk): Likewise.
19908 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
19909 TAILCALL_ADDR_REGS to x16 and x17.
19910 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
19911
19912 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19913
19914 * config/aarch64/aarch64-option-extensions.def: Define
19915 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
19916 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
19917 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
19918 (AARCH64_FL_PREDRES): New.
19919 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
19920 AARCH64_FL_PREDRES by default.
19921 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
19922
19923 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19924
19925 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
19926 ARMv8.5-A.
19927 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
19928 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
19929 * doc/invoke.texi: Document ARMv8.5-A.
19930
19931 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19932
19933 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
19934 (xorsign<mode>3): Likewise.
19935
19936 2019-01-09 Jelinek <jakub@redhat.com>
19937
19938 PR middle-end/88758
19939 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
19940 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
19941
19942 PR rtl-optimization/88331
19943 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
19944 not currently_expanding_to_rtl.
19945
19946 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19947
19948 * doc/invoke.texi (-Os): Remove trailing spaces.
19949 (-finline-functions): Remove reference to -O2.
19950
19951 2019-01-08 Jakub Jelinek <jakub@redhat.com>
19952
19953 PR rtl-optimization/79593
19954 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
19955
19956 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
19957 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
19958
19959 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
19960
19961 PR bootstrap/88721
19962 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
19963 to -1 on entry.
19964
19965 PR debug/88723
19966 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
19967 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
19968
19969 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
19970
19971 PR target/88717
19972 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
19973 ix86_avx_u128_mode_entry.
19974
19975 2019-01-08 Martin Liska <mliska@suse.cz>
19976
19977 PR tree-optimization/88753
19978 * tree-switch-conversion.c (switch_conversion::build_one_array):
19979 Come up with local variable constructor. Convert first to
19980 type of constructor values.
19981
19982 2019-01-08 Richard Biener <rguenther@suse.de>
19983
19984 PR tree-optimization/86554
19985 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
19986 rpo_avail): Move earlier.
19987 (visit_nary_op): When value-numbering to expressions
19988 with different overflow behavior make sure there's an
19989 available expression on the path.
19990
19991 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
19992
19993 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
19994 aarch64_parse_branch_protection,
19995 struct aarch64_branch_protect_type,
19996 aarch64_handle_no_branch_protection,
19997 aarch64_handle_standard_branch_protection,
19998 aarch64_validate_mbranch_protection,
19999 aarch64_handle_pac_ret_protection,
20000 aarch64_handle_attr_branch_protection,
20001 accepted_branch_protection_string,
20002 aarch64_pac_ret_subtypes,
20003 aarch64_branch_protect_types,
20004 aarch64_handle_pac_ret_leaf): Define.
20005 (aarch64_override_options_after_change_1, aarch64_override_options):
20006 Add check for accepted_branch_protection_string.
20007 (aarch64_option_save): Save accepted_branch_protection_string.
20008 (aarch64_option_restore): Save accepted_branch_protection_string.
20009 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
20010 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
20011 msign-return-address.
20012 * doc/invoke.texi: Add mbranch-protection.
20013
20014 2019-01-08 Alan Modra <amodra@gmail.com>
20015
20016 PR target/88614
20017 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
20018 Delete "unknownp" parameter. Adjust callers. Handle
20019 CONST_INT, PLUS, MINUS, and MULT.
20020 (attr_value_aligned): Renamed from or_attr_value.
20021 (min_attr_value): Return INT_MIN for unhandled rtl case..
20022 (min_fn): ..and translate to INT_MAX here.
20023 (write_length_unit_log): Modify to cope without "unknown".
20024 (write_attr_value): Handle IF_THEN_ELSE.
20025
20026 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20027
20028 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
20029 optimization for masked stores.
20030
20031 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20032
20033 PR middle-end/88567
20034 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
20035 output vector directly to duplicate_and_interleave instead of
20036 going through a temporary. Postpone insertion of ctor_seq to
20037 the end of the loop.
20038
20039 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
20040
20041 PR target/86891
20042 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
20043 unsigned_p. Handle signed and unsigned overflow correction as
20044 required.
20045 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
20046 prototype.
20047 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
20048 for operand 2.
20049 (add<mode>3_compareV_imm): Make this callable for expanding.
20050 (subv<GPI:mode>4): Use register_operand for operand 1. Use
20051 aarch64_plus_operand for operand 2.
20052 (subv<GPI:mode>_insn): New insn pattern.
20053 (subv<GPI:mode>_imm): Likewise.
20054 (negv<GPI:mode>3): New expand pattern.
20055 (negv<GPI:mode>_insn): New insn pattern.
20056 (negv<GPI:mode>_cmp_only): Likewise.
20057 (cmpv<GPI:mode>_insn): Likewise.
20058 (subvti4): Use register_operand for operand 1. Update call to
20059 aarch64_expand_subvti.
20060 (usubvti4): Likewise.
20061 (negvti3): New expand pattern.
20062 (negdi_carryout): New insn pattern.
20063 (negvdi_carryinV): New insn pattern.
20064 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
20065 version the named version.
20066 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
20067 operands.
20068 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
20069 patterns.
20070 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
20071 patterns.
20072 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
20073 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
20074 (sub<mode>3_carryinCV): Delete.
20075 (sub<GPI:mode>3_carryinV): New expand pattern.
20076 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
20077
20078 2019-01-07 Richard Biener <rguenther@suse.de>
20079
20080 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
20081 of tree_operand_hash.
20082
20083 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20084
20085 PR tree-optimization/88598
20086 * tree.h (single_nonzero_element): Declare.
20087 * tree.c (single_nonzero_element): New function.
20088 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
20089 if I is the only nonzero element of CST.
20090
20091 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20092
20093 PR tree-optimization/88598
20094 * tree.h (initializer_each_zero_or_onep): Declare.
20095 * tree.c (initializer_each_zero_or_onep): New function.
20096 (signed_or_unsigned_type_for): Handle float types too.
20097 (unsigned_type_for, signed_type_for): Update comments accordingly.
20098 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
20099 x & { 0 or -1, 0 or -1, ... }.
20100
20101 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
20102
20103 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
20104 with x86_64-pc-linux-gnu.
20105
20106 2019-01-07 Tom de Vries <tdevries@suse.de>
20107
20108 PR target/85486
20109 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
20110 function.
20111 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
20112 routines.
20113
20114 2019-01-07 Jakub Jelinek <jakub@redhat.com>
20115
20116 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
20117 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
20118 TARGET_AVX512F as condition.
20119
20120 PR debug/88723
20121 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
20122 const_not_ok_for_debug_p target hook.
20123 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20124 on UNSPEC and subexpressions thereof if all subexpressions of the
20125 UNSPEC are CONSTANT_P.
20126
20127 PR tree-optimization/88676
20128 * tree-ssa-phiopt.c (two_value_replacement): New function.
20129 (tree_ssa_phiopt_worker): Call it.
20130
20131 PR sanitizer/88619
20132 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20133 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20134
20135 PR c++/85052
20136 * tree-vect-generic.c: Include insn-config.h and recog.h.
20137 (expand_vector_piecewise): Add defaulted ret_type argument,
20138 if non-NULL, use that in preference to type for the result type.
20139 (expand_vector_parallel): Formatting fix.
20140 (do_vec_conversion, do_vec_narrowing_conversion,
20141 expand_vector_conversion): New functions.
20142 (expand_vector_operations_1): Call expand_vector_conversion
20143 for VEC_CONVERT ifn calls.
20144 * internal-fn.def (VEC_CONVERT): New internal function.
20145 * internal-fn.c (expand_VEC_CONVERT): New function.
20146 * fold-const-call.c (fold_const_vec_convert): New function.
20147 (fold_const_call): Use it for CFN_VEC_CONVERT.
20148 * doc/extend.texi (__builtin_convertvector): Document.
20149
20150 2019-01-07 Tom de Vries <tdevries@suse.de>
20151
20152 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20153 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20154 vector_red_partition, vector_red_sym): New global variables.
20155 (nvptx_option_override): Initialize vector_red_sym.
20156 (nvptx_declare_function_name): Restore red_partition register.
20157 (nvptx_file_end): Emit code to declare the vector reduction variables.
20158 (nvptx_output_red_partition): New function.
20159 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20160 large vector reductions.
20161 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20162 (nvptx_init_builtins): Add VECTOR_ADDR.
20163 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20164 Handle nvptx_expand_shared_addr.
20165 (nvptx_get_shared_red_addr): Add vector argument and handle large
20166 vectors.
20167 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20168 large vectors.
20169 (nvptx_goacc_reduction_init): Likewise.
20170 (nvptx_goacc_reduction_fini): Likewise.
20171 (nvptx_goacc_reduction_teardown): Likewise.
20172 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20173 init,fini,teardown}.
20174 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20175 (nvptx_set_current_function): Init vector_red_partition.
20176 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20177 (nvptx_red_partition): New insn.
20178 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20179
20180 2019-01-07 Tom de Vries <tdevries@suse.de>
20181
20182 PR target/85381
20183 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20184 empty loops.
20185
20186 2019-01-07 Tom de Vries <tdevries@suse.de>
20187
20188 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20189 (nvptx_option_override): Init oacc_bcast_partition.
20190 (nvptx_init_oacc_workers): New function.
20191 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20192 (nvptx_needs_shared_bcast): New function.
20193 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20194 to propagate state.
20195 (nvptx_shared_propagate): Initialize vector bcast partition and
20196 synchronization state.
20197 (nvptx_single): Generalize to enable vectors to use shared-memory
20198 to propagate state.
20199 (nvptx_process_pars): Likewise.
20200 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20201 * config/nvptx/nvptx.h (struct machine_function): Add
20202 bcast_partition and sync_bar members.
20203
20204 2019-01-07 Tom de Vries <tdevries@suse.de>
20205
20206 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20207 (nvptx_apply_dim_limits): New function.
20208 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20209 PTX_WARP_SIZE.
20210
20211 2019-01-07 Tom de Vries <tdevries@suse.de>
20212
20213 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20214 as late as possible.
20215
20216 2019-01-07 Tom de Vries <tdevries@suse.de>
20217
20218 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20219 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20220 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20221 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20222 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20223
20224 2019-01-07 Tom de Vries <tdevries@suse.de>
20225
20226 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20227
20228 2019-01-07 Tom de Vries <tdevries@suse.de>
20229
20230 * omp-offload.c (oacc_get_min_dim): New function.
20231 * omp-offload.h (oacc_get_min_dim): Declare.
20232
20233 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20234
20235 PR target/88521
20236 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20237 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20238
20239 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20240
20241 PR tree-opt/86020
20242 Revert:
20243 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20244
20245 * ipa-inline.c (edge_badness): Use inlined_time instead of
20246 inline_summaries->get.
20247
20248 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20249
20250 * opts.c (enable_fdo_optimizations): Enable
20251 version-loops-for-strides, loop-interchange, unrol-and-jam
20252 and tree-loop-distribution.
20253 * invoke.texi: Document newly enabled options.
20254
20255 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20256
20257 * doc/invoke.texi (max-inline-insns-small): New parameters.
20258 * ipa-inline.c (want_early_inline_function_p): simplify.
20259 (want_inline_small_function_p): Fix pasto from previous patch;
20260 use max-inline-insns-small bound.
20261 * params.def (max-inline-insns-small): New param.
20262 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20263 variables correctly.
20264
20265 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20266
20267 * doc/invoke.texi: Document max-inline-insns-size,
20268 uninlined-function-insns, uninlined-function-time,
20269 uninlined-thunk-insns and uninlined-thunk-time.
20270 * params.def: Add max-inline-insns-size,
20271 uninlined-function-insns, uninlined-function-time,
20272 uninlined-thunk-insns and uninlined-thunk-time.
20273 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20274 new parameters.
20275 * ipa-inline.c (can_inline_edge_by_limits_p,
20276 want_inline_small_function_p): Use new parameters.
20277
20278 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20279
20280 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20281
20282 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20283
20284 PR middle-end/82564
20285 PR target/88620
20286 * expr.c (expand_assignment): For calls returning VLA structures
20287 if to_rtx is not a MEM, force it into a stack temporary.
20288
20289 PR debug/88635
20290 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20291 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20292 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20293 subexpressions of both operands.
20294 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20295 subrtxes are CONSTANT_P.
20296 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20297 2018-11-09 changes.
20298
20299 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20300
20301 * params.def (hot-bb-count-ws-permille): Set to 990.
20302
20303 2019-01-04 Martin Sebor <msebor@redhat.com>
20304
20305 PR c/88546
20306 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20307 leaf.
20308
20309 2019-01-04 Martin Sebor <msebor@redhat.com>
20310
20311 PR c/88363
20312 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20313
20314 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20315
20316 * gdbinit.in: Turn off pagination for the skip commands, restore
20317 it to previous state afterwards.
20318
20319 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20320
20321 PR target/88594
20322 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20323 of GET_MODE (opN) as modes of the libcall arguments.
20324
20325 2019-01-04 Jan Beulich <jbeulich@suse.com>
20326
20327 * config/i386/sse.md
20328 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20329 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20330 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20331 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20332 avx512f_vmcmp<mode>3<round_saeonly_name>,
20333 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20334 avx512f_maskcmp<mode>3,
20335 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20336 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20337 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20338 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20339 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20340 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20341 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20342 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20343 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20344 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20345 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20346 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20347 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20348 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20349 avx512cd_maskb_vec_dup<mode>,
20350 avx512cd_maskw_vec_dup<mode>,
20351 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20352 avx512dq_vmfpclass<mode>,
20353 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20354 instead of =Yk.
20355
20356 2019-01-03 Martin Sebor <msebor@redhat.com>
20357
20358 PR tree-optimization/88659
20359 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20360
20361 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20362
20363 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20364 unaligned vsx and avoid lxvd2x/stxvd2x.
20365 (gen_lvx_v4si_move): New function.
20366
20367 2019-01-03 Tom de Vries <tdevries@suse.de>
20368
20369 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20370 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20371 function.
20372 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20373
20374 2019-01-03 Tom de Vries <tdevries@suse.de>
20375
20376 * config/nvptx/nvptx.c (struct offload_attrs): New.
20377 (populate_offload_attrs): New function. Factor mask extraction out of
20378 nvptx_reorg. Add extraction of dimensions.
20379 (nvptx_reorg): Use populate_offload_attrs.
20380
20381 2019-01-03 Tom de Vries <tdevries@suse.de>
20382
20383 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20384 cases for oacc_min_dims_p and routine_p. Add asserts for
20385 oacc_default_dims_p and offload_region_p.
20386
20387 2019-01-03 Tom de Vries <tdevries@suse.de>
20388
20389 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20390 factored out of ...
20391 (nvptx_goacc_validate_dims): ... here.
20392
20393 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20394
20395 PR tree-optimization/85574
20396 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20397 structure.
20398 (struct ssa_equip_hash_traits): Declare.
20399 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20400
20401 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20402
20403 PR debug/88644
20404 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20405 change it to qualified_type.
20406
20407 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20408
20409 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20410 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20411
20412 2019-01-02 Martin Sebor <msebor@redhat.com>
20413 Jeff Law <law@redhat.com>
20414
20415 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20416 (get_range_strlen_tree): Update appropriately.
20417 (get_range_strlen)
20418 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20419
20420 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20421 rather than set_range_info.
20422 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20423 maybe_set_strlen_range. Handle potentially boundary crossing
20424 cases more conservatively.
20425 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20426 Call set_strlen_range.
20427 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20428
20429 PR middle-end/88663
20430 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20431 need the flexp argument.
20432 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20433 from calls to get_range_strlen. Update comments. Just update
20434 VAL for an unterminated const char array and let the reset of the
20435 code handle it normally. No longer try to set *flexp. Adjust
20436 return value.
20437 (get_range_strlen): Update for the new get_range_strlen API.
20438 (get_maxval_strlen): Similarly.
20439 (gimple_fold_builtin_strlen): Handle update meaning of return value
20440 from get_range_strlen.
20441 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20442 get_range_strlen API.
20443
20444 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20445
20446 PR lto/88130
20447 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
20448 false at WPA time when body was removed.
20449
20450 2019-01-02 Martin Liska <mliska@suse.cz>
20451
20452 PR tree-optimization/88650
20453 * predict.c (set_even_probabilities): Calculate probability
20454 remainer only when really used.
20455
20456 2019-01-02 Richard Biener <rguenther@suse.de>
20457
20458 PR middle-end/88651
20459 * tree-data-ref.c (analyze_subscript_affine_affine): Use
20460 widest_ints when mangling max_stmt_execution results.
20461
20462 2019-01-02 Richard Biener <rguenther@suse.de>
20463
20464 PR tree-optimization/88621
20465 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
20466 bitfields when canoncalizing.
20467
20468 2019-01-02 Richard Biener <rguenther@suse.de>
20469
20470 PR target/87545
20471 * config/i386/x86-tune-costs.h (intel_cost): Adjust
20472 cost of cheap SSE instruction.
20473
20474 2019-01-02 Richard Biener <rguenther@suse.de>
20475
20476 PR ipa/85574
20477 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
20478 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
20479 function.
20480 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
20481 set after UIDs before splitting them.
20482
20483 2019-01-01 Martin Sebor <msebor@redhat.com>
20484 Jeff Law <law@redhat.com>
20485
20486 * gimple-fold.c (get_range_strlen_tree): Record if the computed
20487 length is optimistic. If it is, then arrange to compute the
20488 conservative length as well.
20489
20490 * gimple-fold.h (get_range_strlen): Update prototype.
20491 * builtins.c (check_access): Update call to get_range_strlen to use
20492 c_strlen_data pointer. Change various variable accesses to instead
20493 pull data from the c_strlen_data structure.
20494 (check_strncat_sizes, expand_builtin_strncat): Likewise.
20495 * calls.c (maybe_warn_nonstring_arg): Likewise.
20496 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
20497 minimum length if maximum lengh is unknown.
20498 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
20499 that used c_strlen, it's no longer needed. Restructure slightly.
20500 (format_string): Set unlikely range appropriately.
20501 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
20502 formatting issues.
20503 (get_range_strlen): Accept c_strlen_data pointer for external
20504 call sites as well. Pass through to call to internal get_range_strlen.
20505 Adjust minlen, maxlen and maxbound as needed.
20506 (get_maxval_strlen): Update comments.
20507 (gimple_fold_builtin_strlen): Update call to get_range_strlen
20508 to use c_strlen_data pointer. Change variable accesses to instead
20509 use c_strlen_data data members.
20510
20511 * gimple-fold.c (get_range_strlen): Update prototype.
20512 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
20513 local variables. Use pdata to return information to caller.
20514 Update calls to get_range_strlen. Update pdata->maxbound.
20515 (get_range_strlen -- static version): Similarly.
20516 (get_range_strlen -- extern version): Update for internal
20517 get_range_strlen API change. Convert to external data format.
20518 (get_maxval_strlen): Similarly.
20519
20520 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
20521
20522 * coverage.c (get_coverage_counts): Use current_function_decl.
20523 * profile.c (read_thunk_profile): New function.
20524 (branch_prob): Add THUNK parameter.
20525 * tree-profile.c (tree_profiling): Handle thunks.
20526 * value-prof.c (init_node_map): Handle thunks.
20527 * value-prof.h (branch_prob): Upate prototype.
20528 (read_thunk_profile): Declare.
20529
20530 2019-01-01 Jakub Jelinek <jakub@redhat.com>
20531
20532 Update copyright years.
20533
20534 * gcc.c (process_command): Update copyright notice dates.
20535 * gcov-dump.c (print_version): Ditto.
20536 * gcov.c (print_version): Ditto.
20537 * gcov-tool.c (print_version): Ditto.
20538 * gengtype.c (create_file): Ditto.
20539 * doc/cpp.texi: Bump @copying's copyright year.
20540 * doc/cppinternals.texi: Ditto.
20541 * doc/gcc.texi: Ditto.
20542 * doc/gccint.texi: Ditto.
20543 * doc/gcov.texi: Ditto.
20544 * doc/install.texi: Ditto.
20545 * doc/invoke.texi: Ditto.
20546 \f
20547 Copyright (C) 2019 Free Software Foundation, Inc.
20548
20549 Copying and distribution of this file, with or without modification,
20550 are permitted in any medium without royalty provided the copyright
20551 notice and this notice are preserved.