]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
2019-08-21 Richard Biener <rguenther@suse.de>
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-08-21 Richard Biener <rguenther@suse.de>
2
3 PR tree-optimization/91482
4 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
5 BUILT_IN_ASSUME_ALIGNED calls.
6
7 2019-08-21 Richard Biener <rguenther@suse.de>
8
9 PR target/91498
10 PR target/91503
11 * config/i386/i386-features.c
12 (general_scalar_chain::make_vector_copies): Copy stack temporary
13 rtx when using it multiple times.
14 (general_scalar_chain::convert_reg): Likewise.
15
16 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
17
18 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
19
20 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
21
22 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
23 catch more redundant zero initialization cases.
24 (dse_dom_walker::dse_optimize_stmt): Likewise.
25
26 2019-08-20 Richard Biener <rguenther@suse.de>
27
28 PR lto/91307
29 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
30 by collect2 when targetm.have_ctors_dtors which avoids dragging
31 in temporary filenames from LTO input objects.
32
33 2019-08-20 Richard Biener <rguenther@suse.de>
34
35 PR tree-optimization/37242
36 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
37 to (T)a + (T)b if we know that a + b does not overflow.
38
39 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
40
41 PR rtl-optimization/91347
42 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
43 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
44
45 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
46
47 * calls.h (function_arg_info): Add a pass_by_reference field,
48 defaulting to false.
49 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
50 when applying pass-by-reference semantics.
51 (initialize_argument_information): Likewise.
52 (emit_library_call_value_1): Likewise.
53 * function.c (assign_parm_data_one): Remove passed_pointer field.
54 (assign_parm_find_data_types): Don't set it.
55 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
56 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
57 arg.pass_by_reference instead of passed_pointer.
58
59 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
60
61 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
62 into a single function_arg_info, updating its fields when we
63 apply pass-by-reference and promotion semantics. Use the
64 function_arg_info to track the mode rather than keeping it in
65 a separate local variable.
66 (initialize_argument_information): Likewise. Base the final
67 arg_to_skip on this new function_arg_info rather than creating
68 a new one from scratch.
69
70 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
71
72 * function.c (assign_parm_data_one): Replace passed_type,
73 promoted_mode and named_arg with a function_arg_info field.
74 (assign_parm_find_data_types): Remove local variables and
75 assign directly to "data". Make data->passed_mode shadow
76 data->arg.mode until promotion, then assign the promoted
77 mode to data->arg.mode.
78 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
79 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
80 (assign_parm_remove_parallels, assign_parm_setup_block_p)
81 (assign_parm_setup_block, assign_parm_setup_reg)
82 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
83 arg.mode instead of promoted_mode, arg.type instead of passed_type
84 and arg.named instead of named_arg. Use data->arg for
85 function_arg_info structures that had the field values passed_type,
86 promoted_mode and named_arg. Base other function_arg_infos on
87 data->arg, changing the necessary properties.
88
89 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
90
91 * calls.h (apply_pass_by_reference_rules): Declare.
92 * calls.c (apply_pass_by_reference_rules): New function.
93 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
94 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
95 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
96 * function.c (assign_parm_find_data_types): Likewise.
97 * var-tracking.c (prepare_call_arguments): Likewise.
98
99 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
100
101 * target.def (must_pass_in_stack): Take a function_arg_info instead
102 of a mode and a type.
103 * doc/tm.texi: Regenerate.
104 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
105 instead of a mode and a type.
106 (must_pass_in_stack_var_size_or_pad): Likewise.
107 * calls.c (must_pass_in_stack_var_size): Likewise.
108 (must_pass_in_stack_var_size_or_pad): Likewise.
109 (initialize_argument_information): Update call to
110 targetm.calls.must_pass_in_stack.
111 (must_pass_va_arg_on_stack): Likewise.
112 * function.c (assign_parm_find_entry_rtl): Likewise.
113 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
114 * config/alpha/alpha.c (alpha_function_arg): Likewise.
115 (alpha_function_arg_advance): Likewise.
116 * config/cr16/cr16.c (cr16_function_arg): Likewise.
117 (cr16_function_arg_advance): Likewise.
118 * config/cris/cris.c (cris_pass_by_reference): Likewise.
119 (cris_arg_partial_bytes): Likewise.
120 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
121 * config/lm32/lm32.c (lm32_function_arg): Likewise.
122 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
123 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
124 * config/mips/mips.c (mips_pass_by_reference): Likewise.
125 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
126 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
127 * config/sh/sh.c (sh_pass_by_reference): Likewise.
128 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
129 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
130 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
131 instead of a mode and a type.
132 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
133 (fr30_num_arg_regs): Likewise.
134 (fr30_setup_incoming_varargs): Update calls accordingly.
135 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
136 (fr30_function_arg_advance): Likewise.
137 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
138 instead of a mode and a type.
139 * config/gcn/gcn.c (num_arg_regs): Likewise.
140 (gcn_function_arg, gcn_function_arg_advance): Update calls to
141 num_arg_regs and targetm.calls.must_pass_in_stack.
142 (gcn_arg_partial_bytes): Likewise.
143 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
144 function_arg_info instead of a mode and a type.
145 (classify_argument): Update call accordingly.
146 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
147 function_arg_info instead of a mode and a type.
148 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
149 Likewise.
150 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
151 (rs6000_parm_needs_stack): Update call accordingly.
152 (setup_incoming_varargs): Likewise.
153
154 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
155
156 * target.def (callee_copies): Take a function_arg_info instead
157 of a mode, type and named flag.
158 * doc/tm.texi: Regenerate.
159 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
160 instead of a mode, type and named flag.
161 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
162 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
163 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
164 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
165 instead of a mode, type and named flag.
166 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
167 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
168 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
169 * calls.h (reference_callee_copied): Take a function_arg_info
170 instead of a mode, type and named flag.
171 * calls.c (reference_callee_copied): Likewise.
172 (initialize_argument_information): Update call accordingly.
173 (emit_library_call_value_1): Likewise.
174 * function.c (gimplify_parameters): Likewise.
175 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
176 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
177 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
178 * config/c6x/c6x.c (c6x_callee_copies): Delete.
179 (TARGET_CALLEE_COPIES): Define to
180 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
181 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
182 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
183 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
184 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
185 instead of a mode, type and named flag.
186 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
187 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
188 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
189 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
190 * config/msp430/msp430.c (msp430_callee_copies): Delete.
191 (TARGET_CALLEE_COPIES): Define to
192 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
193 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
194 instead of a mode, type and named flag.
195 * config/sh/sh.c (sh_callee_copies): Likewise.
196 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
197 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
198 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
199
200 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
201
202 * target.def (function_arg_advance): Take a function_arg_info instead
203 of a mode, type and named flag.
204 * doc/tm.texi: Regenerate.
205 * targhooks.h (default_function_arg_advance): Take a function_arg_info
206 instead of a mode, type and named flag.
207 * targhooks.c (default_function_arg_advance): Likewise.
208 * calls.c (initialize_argument_information): Update call to
209 targetm.calls.function_arg_advance.
210 (emit_library_call_value_1): Likewise.
211 * dse.c (get_call_args): Likewise.
212 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
213 * function.c (assign_parms, gimplify_parameters): Likewise.
214 * var-tracking.c (prepare_call_arguments): Likewise.
215 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
216 function_arg_info instead of a mode, type and named flag.
217 (aarch64_setup_incoming_varargs): Update call accordingly.
218 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
219 function_arg_info instead of a mode, type and named flag.
220 (alpha_setup_incoming_varargs): Update call accordingly.
221 * config/arc/arc.c (arc_function_arg_advance): Take a
222 function_arg_info instead of a mode, type and named flag.
223 (arc_setup_incoming_varargs): Update call accordingly.
224 * config/arm/arm.c (arm_function_arg_advance): Take a
225 function_arg_info instead of a mode, type and named flag.
226 (cmse_func_args_or_return_in_stack): Update call accordingly.
227 (arm_function_ok_for_sibcall): Likewise.
228 (cmse_nonsecure_call_clear_caller_saved): Likewise.
229 * config/avr/avr.c (avr_function_arg_advance): Take a
230 function_arg_info instead of a mode, type and named flag.
231 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
232 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
233 (c6x_call_saved_register_used): Update call accordingly.
234 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
235 function_arg_info instead of a mode, type and named flag.
236 * config/cris/cris.c (cris_function_arg_advance): Likewise.
237 * config/csky/csky.c (csky_function_arg_advance): Likewise.
238 (csky_setup_incoming_varargs): Update call accordingly.
239 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
240 function_arg_info instead of a mode, type and named flag.
241 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
242 * config/frv/frv.c (frv_function_arg_advance): Likewise.
243 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
244 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
245 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
246 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
247 (ix86_setup_incoming_varargs): Update call accordingly.
248 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
249 function_arg_info instead of a mode, type and named flag.
250 (ia64_setup_incoming_varargs): Update call accordingly.
251 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
252 function_arg_info instead of a mode, type and named flag.
253 (iq2000_expand_prologue): Update call accordingly.
254 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
255 function_arg_info instead of a mode, type and named flag.
256 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
257 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
258 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
259 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
260 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
261 Likewise.
262 (microblaze_expand_prologue): Update call accordingly.
263 * config/mips/mips.c (mips_function_arg_advance): Take a
264 function_arg_info instead of a mode, type and named flag.
265 (mips_setup_incoming_varargs): Update call accordingly.
266 (mips_output_args_xfer): Likewise.
267 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
268 function_arg_info instead of a mode, type and named flag.
269 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
270 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
271 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
272 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
273 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
274 (nios2_setup_incoming_varargs): Update call accordingly.
275 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
276 function_arg_info instead of a mode, type and named flag.
277 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
278 * config/pa/pa.c (pa_function_arg_advance): Likewise.
279 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
280 * config/pru/pru.c (pru_function_arg_advance): Likewise.
281 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
282 (riscv_setup_incoming_varargs): Update call accordingly.
283 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
284 function_arg_info instead of a mode, type and named flag.
285 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
286 Likewise.
287 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
288 (rs6000_parm_needs_stack): Update call accordingly.
289 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
290 instead of a mode, type and named flag.
291 * config/s390/s390.c (s390_function_arg_advance): Likewise.
292 (s390_call_saved_register_used): Update call accordingly.
293 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
294 instead of a mode, type and named flag.
295 (sh_output_mi_thunk): Update call accordingly.
296 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
297 function_arg_info instead of a mode, type and named flag.
298 * config/spu/spu.c (spu_function_arg_advance): Likewise.
299 (spu_setup_incoming_varargs): Update call accordingly.
300 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
301 function_arg_info instead of a mode, type and named flag.
302 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
303 (tilegx_setup_incoming_varargs): Update call accordingly.
304 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
305 function_arg_info instead of a mode, type and named flag.
306 (tilegx_setup_incoming_varargs): Update call accordingly.
307 * config/v850/v850.c (v850_function_arg_advance): Take a
308 function_arg_info instead of a mode, type and named flag.
309 * config/vax/vax.c (vax_function_arg_advance): Likewise.
310 * config/visium/visium.c (visium_function_arg_advance): Likewise.
311 (visium_setup_incoming_varargs): Update call accordingly.
312 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
313 function_arg_info instead of a mode, type and named flag.
314
315 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
316
317 * target.def (function_arg, function_incoming_arg): Take a
318 function_arg_info instead of a mode, tree and named flag.
319 * doc/tm.texi: Regenerate.
320 * targhooks.h (default_function_arg): Take a function_arg_info
321 instead of a mode, tree and named flag.
322 (default_function_incoming_arg): Likewise.
323 * targhooks.c (default_function_arg): Likewise.
324 (default_function_incoming_arg): Likewise.
325 * calls.h (function_arg_info::end_marker_p): New function.
326 (function_arg_info::end_marker): Likewise.
327 * calls.c (prepare_call_address, initialize_argument_information)
328 (expand_call, emit_library_call_value_1): Update calls to
329 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
330 * dse.c: Include calls.h.
331 (get_call_args): Update call to targetm.calls.function_arg.
332 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
333 * var-tracking.c (prepare_call_arguments): Likewise.
334 * function.c (assign_parm_find_entry_rtl): Update call to
335 targetm.calls.function_incoming_arg.
336 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
337 function_arg_info instead of a mode, tree and named flag.
338 * config/alpha/alpha.c (alpha_function_arg): Likewise.
339 * config/arc/arc.c (arc_function_arg): Likewise.
340 * config/arm/arm.c (arm_function_arg): Likewise.
341 (cmse_func_args_or_return_in_stack): Update call accordingly.
342 (arm_function_ok_for_sibcall): Likewise.
343 (cmse_nonsecure_call_clear_caller_saved): Likewise.
344 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
345 instead of a mode, tree and named flag.
346 * config/bfin/bfin.c (bfin_function_arg): Likewise.
347 * config/c6x/c6x.c (c6x_function_arg): Likewise.
348 (c6x_call_saved_register_used): Update call accordingly.
349 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
350 instead of a mode, tree and named flag.
351 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
352 (cris_function_arg_1): Likewise.
353 * config/csky/csky.c (csky_function_arg): Likewise.
354 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
355 * config/fr30/fr30.c (fr30_function_arg): Likewise.
356 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
357 (frv_function_arg_1): Likewise.
358 * config/ft32/ft32.c (ft32_function_arg): Likewise.
359 * config/gcn/gcn.c (gcn_function_arg): Likewise.
360 * config/h8300/h8300.c (h8300_function_arg): Likewise.
361 * config/i386/i386.c (ix86_function_arg): Likewise.
362 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
363 (ia64_function_arg_1): Likewise.
364 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
365 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
366 accordingly.
367 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
368 instead of a mode, tree and named flag.
369 * config/m32c/m32c.c (m32c_function_arg): Likewise.
370 * config/m32r/m32r.c (m32r_function_arg): Likewise.
371 * config/m68k/m68k.c (m68k_function_arg): Likewise.
372 * config/mcore/mcore.c (mcore_function_arg): Likewise.
373 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
374 (microblaze_expand_prologue): Update call accordingly.
375 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
376 instead of a mode, tree and named flag.
377 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
378 (mmix_function_arg_1): Likewise.
379 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
380 * config/moxie/moxie.c (moxie_function_arg): Likewise.
381 * config/msp430/msp430.c (msp430_function_arg): Likewise.
382 * config/nds32/nds32.c (nds32_function_arg): Likewise.
383 * config/nios2/nios2.c (nios2_function_arg): Likewise.
384 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
385 (nvptx_function_incoming_arg): Likewise.
386 * config/or1k/or1k.c (or1k_function_arg): Likewise.
387 * config/pa/pa.c (pa_function_arg): Likewise.
388 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
389 * config/pru/pru.c (pru_function_arg): Likewise.
390 * config/riscv/riscv.c (riscv_function_arg): Likewise.
391 * config/rl78/rl78.c (rl78_function_arg): Likewise.
392 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
393 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
394 (rs6000_parm_needs_stack): Update call accordingly.
395 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
396 instead of a mode, tree and named flag.
397 * config/s390/s390.c (s390_function_arg): Likewise.
398 (s390_call_saved_register_used): Update call accordingly.
399 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
400 instead of a mode, tree and named flag.
401 (sh_output_mi_thunk): Update call accordingly.
402 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
403 (sparc_function_incoming_arg): Take a function_arg_info instead of
404 a mode, tree and named flag.
405 * config/spu/spu.c (spu_function_arg): Likewise.
406 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
407 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
408 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
409 * config/v850/v850.c (v850_function_arg): Likewise.
410 * config/vax/vax.c (vax_function_arg): Likewise.
411 * config/visium/visium.c (visium_function_arg): Likewise.
412 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
413 (xtensa_function_incoming_arg): Likewise.
414
415 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
416
417 * target.def (setup_incoming_varargs): Take a function_arg_info
418 instead of a mode and tree.
419 * doc/tm.texi: Regenerate.
420 * targhooks.h (default_setup_incoming_varargs): Take a
421 function_arg_info instead of a mode and tree.
422 * targhooks.c (default_setup_incoming_varargs): Likewise.
423 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
424 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
425 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
426 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
427 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
428 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
429 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
430 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
431 Likewise.
432 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
433 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
434 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
435 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
436 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
437 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
438 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
439 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
440 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
441 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
442 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
443 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
444 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
445 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
446 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
447 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
448 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
449 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
450 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
451 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
452 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
453 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
454 * function.c (assign_parms_setup_varargs): Update call to
455 targetm.calls.setup_incoming_varargs.
456
457 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
458
459 * target.def (pass_by_reference): Take a function_arg_info instead
460 of a mode, type and named flag.
461 * doc/tm.texi: Regenerate.
462 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
463 accordingly.
464 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
465 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
466 function_arg_info instead of a mode, type and named flag.
467 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
468 * calls.h (pass_by_reference): Take a function_arg_info instead of a
469 mode, type and named flag.
470 * calls.c (pass_by_reference): Likewise.
471 (pass_va_arg_by_reference): Update call accordingly.
472 (initialize_argument_information): Likewise.
473 (emit_library_call_value_1): Likewise.
474 * function.c (assign_parm_find_data_types): Likewise.
475 * var-tracking.c (prepare_call_arguments): Likewise.
476 * stor-layout.c: Include calls.h.
477 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
478 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
479 function_arg_info instead of a mode, type and named flag.
480 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
481 * config/arc/arc.c (arc_pass_by_reference): Likewise.
482 * config/arm/arm.c (arm_pass_by_reference): Likewise.
483 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
484 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
485 (c6x_call_saved_register_used): Update call to pass_by_reference.
486 * config/cris/cris.c (cris_pass_by_reference): Take a
487 function_arg_info instead of a mode, type and named flag.
488 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
489 function_arg_info instead of a mode, type and named flag.
490 (epiphany_arg_partial_bytes): Update call accordingly.
491 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
492 function_arg_info instead of a mode, type and named flag.
493 (ft32_arg_partial_bytes): Update call accordingly.
494 * config/i386/i386.c (ix86_pass_by_reference): Take a
495 function_arg_info instead of a mode, type and named flag.
496 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
497 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
498 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
499 (m32r_return_in_memory): Update call accordingly.
500 * config/mips/mips.c (mips_pass_by_reference): Take a
501 function_arg_info instead of a mode, type and named flag.
502 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
503 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
504 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
505 (moxie_arg_partial_bytes): Update call accordingly.
506 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
507 function_arg_info instead of a mode, type and named flag.
508 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
509 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
510 * config/pa/pa.c (pa_pass_by_reference): Likewise.
511 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
512 (riscv_return_in_memory): Update call accordingly.
513 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
514 function_arg_info instead of a mode, type and named flag.
515 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
516 (rs6000_parm_needs_stack): Update call to pass_by_reference.
517 * config/s390/s390.c (s390_pass_by_reference): Take a
518 function_arg_info instead of a mode, type and named flag.
519 (s390_call_saved_register_used): Update call accordingly.
520 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
521 instead of a mode, type and named flag.
522 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
523 * config/spu/spu.c (spu_pass_by_reference): Likewise.
524 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
525 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
526 * config/v850/v850.c (v850_pass_by_reference): Likewise.
527 * config/visium/visium.c (visium_pass_by_reference): Likewise.
528
529 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
530
531 * target.def (arg_partial_bytes): Take a function_arg_info instead
532 of a mode, type and named flag.
533 * doc/tm.texi: Regenerate.
534 * target.h (function_arg_info): Declare.
535 * calls.h (function_arg_info): New class.
536 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
537 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
538 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
539 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
540 * calls.c (initialize_argument_information): Update call to
541 targetm.calls.partial_bytes.
542 (emit_library_call_value_1): Likewise.
543 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
544 * function.c (assign_parm_find_entry_rtl): Likewise.
545 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
546 function_arg_info instead of a mode, type and named flag.
547 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
548 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
549 (cmse_func_args_or_return_in_stack): Update accordingly.
550 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
551 function_arg_info instead of a mode, type and named flag.
552 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
553 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
554 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
555 * config/fr30/fr30.c: Include calls.h.
556 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
557 type and named flag.
558 * config/frv/frv.c: Include calls.h.
559 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
560 type and named flag.
561 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
562 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
563 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
564 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
565 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
566 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
567 * config/microblaze/microblaze.c (function_arg_partial_bytes):
568 Likewise.
569 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
570 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
571 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
572 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
573 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
574 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
575 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
576 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
577 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
578 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
579 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
580 (rs6000_parm_needs_stack): Update call accordingly.
581 * config/sh/sh.c (sh_arg_partial_bytes): Take a
582 function_arg_info instead of a mode, type and named flag.
583 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
584 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
585
586 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
587
588 * calls.h (must_pass_va_arg_in_stack): Declare.
589 * calls.c (must_pass_va_arg_in_stack): New function.
590 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
591 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
592 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
593 Likewise.
594 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
595
596 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
597
598 * calls.h (pass_va_arg_by_reference): Declare.
599 * calls.c (pass_va_arg_by_reference): New function.
600 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
601 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
602 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
603 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
604 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
605 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
606 (mips_gimplify_va_arg_expr): Likewise.
607 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
608 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
609 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
610 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
611 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
612 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
613 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
614 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
615 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
616 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
617 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
618
619 2019-08-20 Richard Biener <rguenther@suse.de>
620
621 PR target/91498
622 * config/i386/i386-features.c (general_scalar_chain::convert_op):
623 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
624 (convert_scalars_to_vector): Add timode_p parameter and use it
625 to guard TImode-only operation.
626 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
627 (pass_stv::execute): Pass down timode_p.
628
629 2019-08-20 Lili Cui <lili.cui@intel.com>
630
631 * common/config/i386/i386-common.c
632 (processor_names): Add tigerlake and cooperlake.
633 (processor_alias_table): Add tigerlake and cooperlake.
634 * config.gcc: Add -march=tigerlake and cooperlake.
635 * config/i386/driver-i386.c
636 (host_detect_local_cpu): Detect tigerlake and cooperlake.
637 Add "has_avx" to classify processor.
638 * config/i386/i386-builtins.c (processor_model) :
639 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
640 (arch_names_table): Add tigerlake and cooperlake.
641 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
642 and PROCESSOR_COOPERLAKE.
643 * config/i386/i386-c.c
644 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
645 * config/i386/i386-options.c
646 (m_TIGERLAKE) : Define.
647 (m_COOPERLAKE) : Ditto.
648 (m_CORE_AVX512): Ditto.
649 (processor_cost_table): Add cascadelake.
650 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
651 * config/i386/i386.h
652 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
653 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
654 (PTA_MOVDIRI): Ditto.
655 (PTA_MOVDIR64B): Ditto.
656 (PTA_COOPERLAKE) : Ditto.
657 (PTA_TIGERLAKE) : Ditto.
658 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
659 * doc/extend.texi: Add tigerlake and cooperlake.
660 * doc/invoke.texi: Add tigerlake and cooperlake.
661
662 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
663
664 * doc/install.texi (Specific, alpha): Remove note to use
665 binutils 2.11.2 or later.
666
667 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
668
669 PR middle-end/89544
670 * function.c (assign_parm_find_stack_rtl): Use larger alignment
671 when possible.
672
673 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
674
675 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
676 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
677 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
678 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
679 * config/aarch64/constraints.md (Dt): New constraint
680 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
681
682 2019-08-19 Richard Biener <rguenther@suse.de>
683
684 PR tree-optimization/91403
685 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
686 cases we can handle with tail-recursion...
687 (follow_ssa_edge_expr): ... here. Do so.
688
689 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
690
691 PR target/91441
692 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
693 implemented for -fsanitize=kernel-address, and merge check logic
694 with -fsanitize=address.
695
696 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
697
698 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
699 for cpu and machine. Factor 64/32b builtins.
700
701 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
702
703 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
704 gone, point to sourceforge.net.
705
706 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
707
708 * doc/ux.texi (User Experience Guidelines): Update reference.
709
710 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
711
712 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
713 not LGPL".
714
715 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
716
717 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
718 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
719
720 2019-08-16 Martin Sebor <msebor@redhat.com>
721
722 * tree.def (TYPE_SIZE): Clarify.
723 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
724
725 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
726
727 PR tree-optimization/91109
728 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
729 * lra.c (lra): Use lra_need_for_scratch_reg_p.
730 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
731
732 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
733
734 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
735 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
736 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
737 (uavg<mode>3_ceil): New expander.
738 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
739 mode iterator when creating CONST1_RTX.
740 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
741 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
742 mode iterator for const1_operand predicate.
743
744 2019-08-16 Richard Biener <rguenther@suse.de>
745
746 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
747 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
748 follow_ssa_edge.
749 (follow_ssa_edge_in_condition_phi_branch): Likewise.
750 (analyze_evolution_in_loop): Likewise.
751 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
752 (follow_ssa_edge_expr): ... here. Refactor code.
753
754 2019-08-16 Richard Biener <rguenther@suse.de>
755
756 PR target/91469
757 * config/i386/i386-features.c
758 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
759
760 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
761
762 PR other/91255
763 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
764 only if subst_name matches curr_attr string.
765
766 2019-08-16 Richard Biener <rguenther@suse.de>
767
768 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
769 stmt at gsi_p, instead replace it with a NOP removed later.
770 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
771 that became dead because of that.
772
773 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
774
775 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
776 for which we can't represent a range.
777 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
778 set_varying.
779 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
780 Set VR_UNDEFINED if type is not supported.
781 * tree-ssanames.c (get_range_info): Pass type to set_varying.
782 * tree-vrp.c (value_range_base::check): Assert that a varying has
783 min/max set.
784 (value_range_base::equal_p): Early bail for undefines.
785 (value_range_base::set_varying): Accept a type.
786 (value_range::set_varying): Same.
787 (value_range_base::type): VARYING can have a type, while UNDEFINE
788 is typeless.
789 (value_range_base::dump): Print type for VARYING nodes.
790 (value_range_base::set): Add type to VARYING.
791 (extract_range_from_multiplicative_op): Pass type to set_varying.
792 (extract_range_from_binary_expr): Same.
793 (value_range_base::intersect_helper): Same.
794 (value_range_base::union_helper): Same.
795 (value_range_base::normalize_symbolics): Same.
796 (determine_value_range_1): Same.
797 * tree-vrp.h (class value_range_base): Add type to set_varying.
798 Add prototype for dump(void).
799 Add prototype for supports_type_p.
800 (class value_range): Add type to set_varying.
801 Add prototype for dump(void).
802 * vr-values.c (set_value_range_to_truthvalue): Pass type to
803 set_varying.
804 (vr_values::get_lattice_entry): Set varying even if propagation
805 finished.
806 Pass type to set_varying.
807 (vr_values::get_value_range): Remove vr_const_varying.
808 Reallocate the lattice if needed.
809 (vr_values::update_value_range): Pass type to set_varying.
810 (vr_values::extract_range_for_var_from_comparison_expr): Same.
811 (vr_values::extract_range_from_binary_expr): Same.
812 (vr_values::extract_range_from_unary_expr): Same.
813 (vr_values::extract_range_from_cond_expr): Same.
814 (vr_values::check_for_binary_op_overflow): Same.
815 (vr_values::extract_range_basic): Same.
816 (vr_values::extract_range_from_assignment): Same.
817 (vr_values::vr_values): Increase size of num_vr_values.
818 (vr_values::extract_range_from_phi_node): Pass type to
819 set_varying.
820
821 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
822
823 PR target/90878
824 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
825 for costs of hard register moves.
826 (ix86_register_move_cost): Likewise.
827 * config/i386/i386.h (processor_costs): Move costs of hard
828 register moves to hard_register. Add int_load, int_store,
829 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
830 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
831 for costs of RTL expressions.
832 * config/i386/x86-tune-costs.h: Move costs of hard register
833 moves to hard_register. Duplicate int_load, int_store,
834 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
835 sse_load, sse_store for costs of RTL expressions.
836
837 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
838
839 * target.def (setup_incoming_vararg_bounds): Remove.
840 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
841 * doc/tm.texi: Regenerate.
842 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
843 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
844 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
845 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
846
847 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
848
849 MSP430: Fix lines over 80 characters long in
850 config/msp430/*.{c,h} files
851
852 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
853 specifier in string.
854 (msp430_select_hwmult_lib): Split line more than 80 characters long.
855 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
856 redundant old comment.
857 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
858 Split line more than 80 characters long.
859 * config/msp430/msp430.c (msp430_option_override): Likewise.
860 (msp430_return_in_memory): Likewise.
861 (msp430_gimplify_va_arg_expr): Likewise.
862 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
863 (msp430_legitimate_constant): Likewise.
864 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
865 (msp430_attr): Likewise.
866 (msp430_data_attr): Likewise.
867 (msp430_start_function): Likewise.
868 (gen_prefix): Likewise.
869 (msp430_init_sections): Likewise.
870 (msp430_select_section): Likewise.
871 (msp430_function_section): Likewise.
872 (msp430_unique_section): Likewise.
873 (msp430_output_aligned_decl_common): Likewise.
874 (msp430_do_not_relax_short_jumps): Likewise.
875 (msp430_init_builtins): Likewise.
876 (msp430_expand_delay_cycles): Likewise.
877 (msp430_expand_prologue): Likewise.
878 (msp430_expand_epilogue): Likewise.
879 (msp430_expand_helper): Likewise.
880 (msp430_split_movsi): Likewise.
881 (msp430_print_operand): Likewise.
882 (msp430_return_addr_rtx): Likewise.
883 (msp430x_extendhisi): Likewise.
884 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
885 (ASM_SPEC): Likewise.
886 Remove very obvious comments.
887 (LIB_SPEC): Split line more than 80 characters long.
888 (EH_RETURN_HANDLER_RTX): Likewise.
889 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
890
891 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
892
893 MSP430: Fix whitespace errors and incorrect indentation in
894 config/msp430/*.{c,h} files
895
896 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
897 (msp430_select_hwmult_lib): Likewise.
898 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
899 (msp430_extract_mcu_data): Likewise.
900 (struct t_msp430_mcu_data): Likewise.
901 * config/msp430/msp430.c (struct machine_function): Remove whitespace
902 before left square bracket.
903 (msp430_option_override): Fix indentation.
904 (msp430_hard_regno_nregs_with_padding): Likewise.
905 (msp430_initial_elimination_offset): Likewise.
906 (msp430_special_register_convention_p): Remove whitespace before left
907 square bracket and after exclamation mark.
908 (msp430_evaluate_arg): Likewise.
909 (msp430_callee_copies): Fix indentation.
910 (msp430_gimplify_va_arg_expr): Likewise.
911 (msp430_function_arg_advance): Remove whitespace before left square
912 bracket.
913 (reg_ok_for_addr): Likewise.
914 (msp430_preserve_reg_p): Likewise.
915 (msp430_compute_frame_info): Likewise.
916 (msp430_asm_output_addr_const_extra): Add space between function name
917 and open parenthesis.
918 (has_section_name): Fix indentation.
919 (msp430_attr): Remove trailing whitespace.
920 (msp430_section_attr): Likewise.
921 (msp430_data_attr): Likewise.
922 (struct msp430_attribute_table): Fix comment and whitespace.
923 (msp430_start_function): Remove whitespace before left square bracket.
924 Add space between function name and open parenthesis.
925 (msp430_select_section): Remove trailing whitespace.
926 (msp430_section_type_flags): Remove trailing whitespace.
927 (msp430_unique_section): Remove space before closing parenthesis.
928 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
929 (msp430_builtins): Remove whitespace before left square bracket.
930 (msp430_init_builtins): Fix indentation.
931 (msp430_expand_prologue): Remove whitespace before left square bracket.
932 Remove space before closing parenthesis.
933 (msp430_expand_epilogue): Remove whitespace before left square bracket.
934 (msp430_split_movsi): Remove space before closing parenthesis.
935 (helper_function_name_mappings): Fix indentation.
936 (msp430_use_f5_series_hwmult): Fix whitespace.
937 (use_32bit_hwmult): Likewise.
938 (msp430_no_hwmult): Likewise.
939 (msp430_output_labelref): Remove whitespace before left square bracket.
940 (msp430_print_operand_raw): Likewise.
941 (msp430_print_operand_addr): Likewise.
942 (msp430_print_operand): Add two spaces after '.' in comment.
943 Fix trailing whitespace.
944 (msp430x_extendhisi): Fix indentation.
945 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
946 tab.
947 (PC_REGNUM): Likewise.
948 (STACK_POINTER_REGNUM): Likewise.
949 (CC_REGNUM): Likewise.
950
951 2019-08-15 Richard Biener <rguenther@suse.de>
952
953 PR target/91454
954 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
955 helper.
956 (general_scalar_chain::make_vector_copies): Use it.
957
958 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
959
960 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
961
962 2019-08-15 Martin Liska <mliska@suse.cz>
963
964 * tree-ssa-dce.c (propagate_necessity): We can't reach now
965 operators with no arguments.
966 (eliminate_unnecessary_stmts): Likewise here.
967
968 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
969
970 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
971 <case COMPARE>: Revert 2019-08-14 change.
972 (convertible_comparison_p): Revert 2019-08-14 change. Return false
973 for (TARGET_64BIT || mode != DImode).
974
975 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
976
977 * tree-vrp.c (value_range_base::set): Merge in code from
978 value_range_base::set_and_canonicalize.
979 Enforce canonicalization at set time.
980 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
981 (value_range_base::set_undefined): Inline call to set().
982 (value_range_base::set_varying): Same.
983 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
984 (vrp_val_max): New argument handle_pointers.
985 (vrp_val_min): Same.
986 (ranges_from_anti_range): Same.
987 (extract_range_into_wide_ints): Use tree argument instead of sign
988 and precision.
989 (extract_range_from_multiplicative_op): Take in tree type instead
990 of precision and sign. Adapt function for canonicalized ranges.
991 (extract_range_from_binary_expr): Pass type to
992 extract_range_from_multiplicative_op.
993 Adapt for canonicalized ranges.
994 (extract_range_from_unary_expr): Same.
995 (value_range_base::intersect_helper): Adjust for canonicalized
996 ranges.
997 (value_range_base::union_helper): Same.
998 (value_range_base::normalize_symbolics): New.
999 * tree-vrp.h (class value_range_base): Remove
1000 set_and_canonicalize.
1001 New prototype for normalize_symbolics.
1002 (class value_range): Remove set_and_canonicalize.
1003 (vrp_val_min): Adjust prototype.
1004 (vrp_val_max): Same.
1005 * vr-values.c
1006 (vr_values::extract_range_for_var_from_comparison_expr): Call set
1007 instead of set_and_canonicalize.
1008
1009 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1010
1011 PR middle-end/91444
1012 * tree-vect-stmts.c (vectorizable_call): Check that the function
1013 is a BUILT_IN_MD function before passing it to
1014 targetm.vectorize.builtin_md_vectorized_function.
1015
1016 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1017
1018 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
1019 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
1020 (aarch64_select_early_remat_modes): Use it.
1021
1022 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1023
1024 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
1025 16 for SVE predicates even if they are fixed-length.
1026
1027 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1028
1029 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
1030 operand order match the MOV /Z alias.
1031
1032 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1033
1034 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
1035 the vector pattern as an aarch64_svpattern argument. Update the
1036 overloaded caller accordingly.
1037 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1038 (aarch64_output_sve_vector_inc_dec): Likewise.
1039
1040 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1041
1042 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1043 multiplication case, try to compute VG * (lowest set bit) directly
1044 rather than always basing the multiplication on VG. Use
1045 expand_mult for the multiplication if we can.
1046
1047 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1048
1049 * config/aarch64/aarch64-protos.h
1050 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1051 (aarch64_sve_inc_dec_immediate_p): Rename to...
1052 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1053 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1054 (aarch64_output_sve_scalar_inc_dec): Declare.
1055 (aarch64_output_sve_inc_dec_immediate): Rename to...
1056 (aarch64_output_sve_vector_inc_dec): ...this.
1057 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1058 (aarch64_output_sve_scalar_inc_dec): New functions.
1059 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1060 arguments. Only handle true ADDVL and ADDPL instructions;
1061 don't emit an INC or DEC.
1062 (aarch64_sve_inc_dec_immediate_p): Rename to...
1063 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1064 (aarch64_output_sve_inc_dec_immediate): Rename to...
1065 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1066 aarch64_sve_vector_inc_dec_immediate_p.
1067 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1068 (aarch64_sve_plus_immediate): New predicates.
1069 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1070 rather than aarch64_sve_addvl_addpl_immediate.
1071 (aarch64_sve_inc_dec_immediate): Rename to...
1072 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1073 aarch64_sve_vector_inc_dec_immediate_p.
1074 (aarch64_sve_add_operand): Update accordingly.
1075 * config/aarch64/constraints.md (Uai): New constraint.
1076 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1077 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1078 operand into a register if it satisfies aarch64_sve_plus_immediate.
1079 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1080 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1081 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1082 aarch64_output_sve_vector_inc_dec instead of
1083 aarch64_output_sve_inc_dec_immediate.
1084
1085 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1086
1087 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1088 (UNSPEC_REVW): New constants.
1089 (elem_bits): New mode attribute.
1090 (SVE_INT_UNARY): New int iterator.
1091 (optab): Handle UNSPEC_REV[BHW].
1092 (sve_int_op): New int attribute.
1093 (min_elem_bits): Handle VNx16QI and the predicate modes.
1094 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1095 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1096 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1097 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1098 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1099 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1100 unspecs based on the total width of the reversed data.
1101 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1102 reinterpret followed by a subreg on big-endian targets.
1103
1104 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1105 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1106
1107 * config/aarch64/aarch64-sve.md
1108 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1109 alternatives in which one of the inputs is in the same register
1110 as the output.
1111
1112 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1113
1114 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1115 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1116
1117 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1118
1119 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1120 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1121
1122 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1123 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1124
1125 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1126 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1127 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1128
1129 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1130 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1131
1132 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1133 Add an alternative that uses reversed shifts.
1134
1135 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1136
1137 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1138 struct.
1139
1140 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1141
1142 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1143 a commutativity marker.
1144
1145 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1146 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1147
1148 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1149 (aarch64_prepare_sve_cond_int_fma): Declare.
1150 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1151 (aarch64_prepare_sve_int_fma): New functions.
1152 (aarch64_prepare_sve_cond_int_fma): Likewise.
1153 * config/aarch64/aarch64-sve.md
1154 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1155 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1156 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1157 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1158 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1159 (*madd<mode>): Rename to...
1160 (*fma<mode>4): ...this.
1161 (*msub<mode>): Rename to...
1162 (*fnma<mode>4): ...this.
1163
1164 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1165 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1166
1167 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1168 Print 2.0 naturally.
1169 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1170 * config/aarch64/predicates.md
1171 (aarch64_sve_float_negated_arith_immediate): New predicate,
1172 renamed from aarch64_sve_float_arith_with_sub_immediate.
1173 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1174 positive and negative constants.
1175 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1176 or an aarch64_sve_float_arith_with_sub_immediate.
1177 * config/aarch64/constraints.md (vsN): Use
1178 aarch64_sve_float_negated_arith_immediate.
1179 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1180 iterator.
1181 (sve_pred_fp_rhs2_immediate): New int attribute.
1182 * config/aarch64/aarch64-sve.md
1183 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1184 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1185 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1186 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1187 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1188 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1189
1190 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1191 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1192
1193 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1194 (*aarch64_cond_abd<SVE_F:mode>_3)
1195 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1196
1197 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1198 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1199
1200 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1201 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1202
1203 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1204 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1205
1206 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1207 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1208 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1209 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1210 optabs.
1211 * optabs.h (create_convert_operand_from): Expand comment.
1212 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1213 when mapping scalar rtxes to vector operands.
1214 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1215 ashiftrt and lshiftrt.
1216 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1217 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1218 (*cond_<optab><mode>_any_const): New patterns.
1219
1220 2019-08-15 Martin Liska <mliska@suse.cz>
1221
1222 PR ipa/91438
1223 * cgraph.c (cgraph_node::remove): When setting
1224 n->origin = NULL for all nested functions, reset
1225 also next_nested.
1226
1227 2019-08-15 Martin Liska <mliska@suse.cz>
1228
1229 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1230 and next_nested.
1231
1232 2019-08-15 Martin Liska <mliska@suse.cz>
1233
1234 PR ipa/91404
1235 * passes.c (order): Remove.
1236 (uid_hash_t): Likewise).
1237 (remove_cgraph_node_from_order): Remove from set
1238 of pointers (cgraph_node *).
1239 (insert_cgraph_node_to_order): New.
1240 (duplicate_cgraph_node_to_order): New.
1241 (do_per_function_toporder): Register all 3 cgraph hooks.
1242 Skip removed_nodes now as we know about all of them.
1243
1244 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1245
1246 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1247 <case E_V8QImode>: Use vector_set path for
1248 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1249 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1250 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1251
1252 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1253
1254 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1255
1256 2019-08-14 Martin Sebor <msebor@redhat.com>
1257
1258 PR tree-optimization/91294
1259 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1260 source length as exact.
1261
1262 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1263
1264 * doc/extend.texi: Add "noinit" attribute documentation.
1265 * doc/sourcebuild.texi: Add noinit effective target documentation.
1266 * varasm.c (default_section_type_flags): Add support for "noinit"
1267 section.
1268 (default_elf_select_section): Add support for "noinit" attribute.
1269 * config/msp430/msp430.c (msp430_attribute_table): Remove
1270 "noinit" entry.
1271
1272 2019-08-14 Richard Biener <rguenther@suse.de>
1273 Uroš Bizjak <ubizjak@gmail.com>
1274
1275 PR target/91154
1276 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1277 mode arguments.
1278 (scalar_chain::smode): New member.
1279 (scalar_chain::vmode): Likewise.
1280 (dimode_scalar_chain): Rename to...
1281 (general_scalar_chain): ... this.
1282 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1283 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1284 base with TImode and V1TImode.
1285 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1286 (general_scalar_chain::vector_const_cost): Adjust for SImode
1287 chains.
1288 (general_scalar_chain::compute_convert_gain): Likewise. Add
1289 {S,U}{MIN,MAX} support.
1290 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1291 (general_scalar_chain::make_vector_copies): Likewise. Handle
1292 non-DImode chains appropriately.
1293 (general_scalar_chain::convert_reg): Likewise.
1294 (general_scalar_chain::convert_op): Likewise.
1295 (general_scalar_chain::convert_insn): Likewise. Add
1296 fatal_insn_not_found if the result is not recognized.
1297 (convertible_comparison_p): Pass in the scalar mode and use that.
1298 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1299 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1300 (scalar_to_vector_candidate_p): Remove by inlining into single
1301 caller.
1302 (general_remove_non_convertible_regs): Rename from
1303 dimode_remove_non_convertible_regs.
1304 (remove_non_convertible_regs): Remove by inlining into single caller.
1305 (convert_scalars_to_vector): Handle SImode and DImode chains
1306 in addition to TImode chains.
1307 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1308 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1309 (*<maxmin>di3_doubleword): Likewise.
1310
1311 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1312 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1313
1314 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1315 (*cond_bic<mode>_any): New patterns.
1316
1317 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1318
1319 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1320 take the equivalent mask, as well as a bit count.
1321 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1322 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1323 (aarch64_sve_pred_and_operand): New predicates.
1324 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1325 code attribute.
1326 * config/aarch64/aarch64-sve.md
1327 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1328 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1329
1330 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1331
1332 * config/aarch64/aarch64-sve.md
1333 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1334 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1335 New patterns.
1336
1337 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1338 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1339
1340 * config/aarch64/aarch64-sve.md
1341 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1342 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1343
1344 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1345 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1346
1347 * config/aarch64/aarch64-sve.md
1348 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1349 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1350
1351 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1352
1353 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1354 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1355 New pattern.
1356
1357 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1358 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1359
1360 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1361
1362 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1363 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1364
1365 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
1366 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
1367 (aarch64_print_operand): Add support for %I.
1368 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
1369 Bitcast floating-point constants to the corresponding integer constant.
1370 (aarch64_float_const_representable_p): Handle vectors as well
1371 as scalars.
1372 (aarch64_expand_sve_vcond): Make sure that the operands are valid
1373 for the new vcond_mask_<mode><vpred> expander.
1374 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
1375 test aarch64_float_const_representable_p.
1376 (aarch64_sve_reg_or_dup_imm): New predicate.
1377 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
1378 gen_vcond_mask_<mode><vpred> instead of
1379 gen_aarch64_sve_dup<mode>_const.
1380 (vcond_mask_<mode><vpred>): Turn into a define_expand that
1381 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
1382 for operands 1 and 2 respectively. Force operand 2 into a
1383 register if operand 1 is a register. Fold old define_insn...
1384 (aarch64_sve_dup<mode>_const): ...and this define_insn...
1385 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
1386 floating-point constants that can be moved as integers. Add
1387 alternatives for MOV /M and FMOV /M.
1388 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
1389 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
1390 1 and 2 respectively.
1391 * config/aarch64/constraints.md (Ufc): Handle vectors as well
1392 as scalars.
1393 (vss): New constraint.
1394
1395 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1396
1397 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
1398 (aarch64_sve_float_maxmin_operand): New predicates.
1399 * config/aarch64/constraints.md (vsB): New constraint.
1400 (vsM): Fix typo.
1401 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
1402 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
1403 UNSPEC_COND_FMINNM.
1404 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
1405 Use aarch64_sve_float_maxmin_operand for operand 2.
1406 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
1407 Add alternatives for the constant forms.
1408
1409 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1410
1411 * config/aarch64/constraints.md (vsb): New constraint.
1412 (vsm): Generalize description.
1413 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
1414 iterator.
1415 (sve_imm_con): Handle smax, smin, umax and umin.
1416 (sve_imm_prefix): New code attribute.
1417 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
1418 (aarch64_sve_vsb_operand): New predicates.
1419 (aarch64_sve_mul_immediate): Rename to...
1420 (aarch64_sve_vsm_immediate): ...this.
1421 (aarch64_sve_mul_operand): Rename to...
1422 (aarch64_sve_vsm_operand): ...this.
1423 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
1424 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
1425 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
1426 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
1427 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
1428 add movprfx support for the immediate alternatives.
1429 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
1430 of the above.
1431 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
1432 for operand 3.
1433
1434 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1435
1436 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
1437 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
1438 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
1439
1440 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1441
1442 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
1443 (optab, sve_int_op): Handle them.
1444 * config/aarch64/aarch64-sve.md: Expand comment.
1445
1446 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1447
1448 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
1449 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
1450 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
1451
1452 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1453
1454 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
1455 (aarch64_expand_sve_const_pred_trn): New functions.
1456 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
1457 use the above functions when the parameter is true.
1458 (aarch64_expand_sve_const_pred): Update call accordingly.
1459 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
1460 Rename to...
1461 (@aarch64_sve_<perm_insn><mode>): ...this.
1462
1463 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1464
1465 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
1466 Declare.
1467 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
1468 (aarch64_sve_emit_int_cmp): New functions.
1469 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
1470 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
1471 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
1472 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
1473 (UNSPEC_PRED_Z): New unspec.
1474 (set_clobber_cc_nzc): Delete.
1475 * config/aarch64/aarch64-sve.md: Add a block comment about
1476 UNSPEC_PRED_Z.
1477 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
1478 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
1479 the old pattern with that name. Use UNSPEC_PRED_Z instead of
1480 UNSPEC_MERGE_PTRUE.
1481 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
1482 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
1483 check for compatible predicates.
1484 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
1485 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
1486 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
1487 comparisons above.
1488
1489 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1490
1491 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
1492 * config/aarch64/aarch64-sve.md: Add a section describing it.
1493 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
1494 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
1495 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
1496 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
1497 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
1498 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
1499 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
1500 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
1501 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
1502 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
1503 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
1504 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
1505 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
1506 (aarch64_evpc_rev_local): Update accordingly.
1507
1508 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1509
1510 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
1511 iterators.
1512 (SVE_BHSI, SVE_SDI): Tweak comment.
1513 (SVE_HSDI): Likewise. Fix definition.
1514 (SVE_SDF): New mode iterator.
1515 (elem_bits): New mode attribute.
1516 (SVE_COND_FCVT): New int iterator.
1517 * config/aarch64/aarch64-sve.md
1518 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
1519 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
1520 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
1521 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1522 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
1523 ...these new patterns.
1524 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
1525 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
1526 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
1527 Merge into...
1528 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
1529 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
1530 ...these new patterns.
1531 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
1532 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
1533 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
1534 ...this new pattern.
1535 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
1536 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
1537 ...this new pattern.
1538 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
1539
1540 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1541
1542 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
1543 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
1544 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
1545 unspecs.
1546 (optab, su): Handle them.
1547 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
1548 * config/aarch64/aarch64-sve.md
1549 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
1550 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
1551 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
1552 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
1553 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
1554 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
1555 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
1556 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
1557 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
1558 FIXUORS.
1559 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
1560 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
1561 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
1562 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
1563 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
1564 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
1565 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
1566 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
1567 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
1568 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
1569 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
1570 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
1571 of UNSPEC_FLOAT_CONVERT.
1572 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
1573 aarch64_sve_extend<mode><Vwide>2.
1574
1575 2019-08-14 Richard Biener <rguenther@suse.de>
1576
1577 PR target/91154
1578 * config/i386/i386-features.c
1579 (dimode_scalar_chain::compute_convert_gain): Compute and dump
1580 individual instruction gain. Fix reg-reg copy GRP cost. Use
1581 ix86_cost->sse_op for vector instruction costs.
1582
1583 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1584
1585 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
1586 (cmp_op): Handle it.
1587 (SVE_COND_FP_CMP): Rename to...
1588 (SVE_COND_FP_CMP_I0): ...this.
1589 (SVE_FP_CMP): Remove.
1590 * config/aarch64/aarch64-sve.md
1591 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
1592 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
1593 using unspecs to represent the comparison.
1594 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
1595 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
1596 accordingly.
1597 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
1598 (aarch64_unspec_cond_code): Move after integer code. Handle
1599 UNORDERED.
1600 (aarch64_emit_sve_predicated_cond): Replace with...
1601 (aarch64_emit_sve_fp_cond): ...this new function.
1602 (aarch64_emit_sve_or_conds): Replace with...
1603 (aarch64_emit_sve_or_fp_conds): ...this new function.
1604 (aarch64_emit_sve_inverted_cond): Replace with...
1605 (aarch64_emit_sve_invert_fp_cond): ...this new function.
1606 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
1607
1608 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1609
1610 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
1611 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
1612 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
1613 SVE_HSD instead of SVE_SD.
1614
1615 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1616 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1617
1618 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
1619 iterator.
1620 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
1621 attributes.
1622 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
1623 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
1624 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
1625 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
1626 (*div<SVE_F:mode>3): Generalize to...
1627 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
1628
1629 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1630 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1631
1632 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
1633 constants.
1634 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
1635 predicate.
1636 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
1637 Declare.
1638 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
1639 function.
1640 * config/aarch64/aarch64-sve.md: Add a block comment about the
1641 handling of predicated FP operations.
1642 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
1643 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
1644 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1645 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
1646 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
1647 operand.
1648 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
1649 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
1650 operand.
1651 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
1652 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
1653 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
1654 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
1655 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
1656 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1657 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1658 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
1659 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
1660 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
1661 strictness operands. Use aarch64_sve_pred_dominates_p to check
1662 whether the predicate on the conditional operation is suitable
1663 for merging. Split patterns into the canonical equal-predicate form.
1664 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
1665 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
1666
1667 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1668 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1669
1670 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
1671 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
1672 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
1673 rtx codes.
1674 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
1675 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
1676 unspecs.
1677
1678 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1679 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1680
1681 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
1682 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
1683 actually has, rather than relying on REG_EQUAL notes.
1684 Make the insn operand order match the SVE operand order.
1685 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
1686 the SVE operand order.
1687
1688 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1689
1690 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
1691 (aarch64_emit_set_immediate): Likewise.
1692 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
1693 (aarch64_pfalse_reg): Likewise.
1694 (aarch64_convert_sve_data_to_pred): New function.
1695 (aarch64_sve_move_pred_via_while): Take an optional target register
1696 and the required register mode.
1697 (aarch64_expand_sve_const_pred_1): New function.
1698 (aarch64_expand_sve_const_pred): Likewise.
1699 (aarch64_expand_mov_immediate): Build an all-true predicate
1700 if the significant bits of the immediate are all true. Use
1701 aarch64_expand_sve_const_pred for all compile-time predicate constants.
1702 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
1703 before register allocation.
1704 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
1705 a VNx16BI PTRUE when splitting the memory alternative.
1706 (vec_duplicate<mode>): Update accordingly.
1707 (*pred_cmp<cmp_op><mode>): Rename to...
1708 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
1709
1710 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1711
1712 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
1713 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
1714 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
1715 (UNSPEC_PTEST): New unspec.
1716 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
1717 * config/aarch64/iterators.md (data_bytes): New mode attribute.
1718 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
1719 * config/aarch64/aarch64-sve.md: Add a new section describing the
1720 handling of UNSPEC_PTEST.
1721 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
1722 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
1723 (ptest_ptrue<mode>): Replace with...
1724 (aarch64_ptest<mode>): ...this new pattern.
1725 (cbranch<mode>4): Update after above changes.
1726 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
1727 UNSPEC_PTEST_PTRUE.
1728 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
1729 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
1730 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
1731
1732 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
1733
1734 PR lto/91287
1735 * builtins.c (builtin_with_linkage_p): New function.
1736 * builtins.h (builtin_with_linkage_p): New function.
1737 * symtab.c (write_symbol): Remove redundant assert.
1738 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
1739 Remove FIXME and use builtin_with_linkage_p.
1740
1741 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1742
1743 PR middle-end/91421
1744 * tree-core.h (function_decl::function_code): Change type to
1745 unsigned int.
1746 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
1747 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
1748 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
1749 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
1750 is BUILT_IN_NORMAL.
1751 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
1752 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
1753 (fndecl_built_in_p): Change the type of the "name" argument to
1754 unsigned int.
1755 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
1756 after check for DECL_BUILT_IN_CLASS.
1757 * cgraphclones.c (build_function_decl_skip_args): Use
1758 set_decl_built_in_function.
1759 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
1760 * ipa-split.c (split_function): Likewise.
1761 * langhooks.c (add_builtin_function_common): Likewise.
1762 * omp-simd-clone.c (simd_clone_create): Likewise.
1763 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
1764 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
1765 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
1766 DECL_FUNCTION_CODE.
1767 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
1768 instead of DECL_FUNCTION_CODE.
1769 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
1770 instead of DECL_FUNCTION_CODE.
1771 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
1772 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
1773 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
1774 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
1775 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
1776 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
1777 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1778 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
1779 (alpha_gimple_fold_builtin): Likewise.
1780 * config/arc/arc.c (arc_expand_builtin): Likewise.
1781 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
1782 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
1783 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
1784 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
1785 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
1786 * config/frv/frv.c (frv_expand_builtin): Likewise.
1787 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
1788 (gcn_expand_builtin): Likewise.
1789 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
1790 (fold_builtin_cpu): Likewise.
1791 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
1792 * config/i386/i386.c (ix86_fold_builtin): Likewise.
1793 (ix86_gimple_fold_builtin): Likewise.
1794 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
1795 (ia64_expand_builtin): Likewise.
1796 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
1797 * config/mips/mips.c (mips_expand_builtin): Likewise.
1798 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
1799 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1800 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
1801 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
1802 * config/pa/pa.c (pa_expand_builtin): Likewise.
1803 * config/pru/pru.c (pru_expand_builtin): Likewise.
1804 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
1805 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1806 Likewise.
1807 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
1808 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
1809 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
1810 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
1811 (rs6000_builtin_reciprocal): Likewise.
1812 * config/rx/rx.c (rx_expand_builtin): Likewise.
1813 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1814 * config/s390/s390.c (s390_expand_builtin): Likewise.
1815 * config/sh/sh.c (sh_expand_builtin): Likewise.
1816 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
1817 (sparc_fold_builtin): Likewise.
1818 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
1819 * config/spu/spu.c (spu_expand_builtin): Likewise.
1820 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
1821 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
1822 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
1823 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
1824 (xtensa_expand_builtin): Likewise.
1825
1826 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1827
1828 PR middle-end/91421
1829 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
1830 before the DECL_FUNCTION_CODE.
1831 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
1832 to check for a BUILT_IN_ALLOCA call.
1833 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
1834 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
1835 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
1836 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1837 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
1838 for BUILT_IN_NORMAL functions.
1839 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
1840 test for BUILT_IN_TM_ABORT.
1841 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
1842 to check for a BUILT_IN_STACK_RESTORE call.
1843 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
1844 * tree-ssa-threadedge.c
1845 (record_temporary_equivalences_from_stmts_at_dest): Check for a
1846 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
1847 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
1848 test for a BUILT_IN_NORMAL call instead of a negative test for
1849 an internal function call.
1850
1851 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1852
1853 * tree.h (build_vector_a_then_b): Declare.
1854 * tree.c (build_vector_a_then_b): New function.
1855 * fold-const-call.c (fold_while_ult): Likewise.
1856 (fold_const_call): Use it to handle IFN_WHILE_ULT.
1857 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
1858 (aarch64_svpattern): New enum.
1859 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
1860 constants through aarch64_expand_mov_immediate.
1861 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
1862 than general_operand as the predicate for operand 1.
1863 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
1864 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
1865 insn_type.
1866 (simd_immediate_info::simd_immediate_info): New overload that
1867 takes a scalar_int_mode and an svpattern.
1868 (simd_immediate_info::u): Add a "pattern" field.
1869 (svpattern_token): New function.
1870 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
1871 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
1872 (aarch64_sve_move_pred_via_while): New functions.
1873 (aarch64_expand_mov_immediate): Try using
1874 aarch64_sve_move_pred_via_while for predicates that contain N ones
1875 followed by M zeros but that do not correspond to a VLnnn pattern.
1876 (aarch64_sve_pred_valid_immediate): New function.
1877 (aarch64_simd_valid_immediate): Use it instead of dealing directly
1878 with PTRUE and PFALSE.
1879 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
1880 forms.
1881
1882 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
1883
1884 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
1885 flag.
1886 (darwin_override_options): Likewise.
1887 * config/darwin.h: Likewise.
1888 * config/darwin.opt: Likewise.
1889 * config/i386/i386.c (output_pic_addr_const): Likewise.
1890 * config/rs6000/darwin.h: Likewise.
1891 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
1892 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
1893 ... this TARGET_MACHO_SYMBOL_STUBS.
1894 (FUNCTION_PROFILER):Likewise.
1895 * config/i386/i386.h: Likewise.
1896
1897 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
1898
1899 * config/i386/i386-expand.c (ix86_expand_vector_extract)
1900 <case E_V2SImode>: Use vec_extr path for
1901 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1902 <case E_V8QImode>: Ditto.
1903 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
1904 Use SWI48 mode iterator. Use %k to output operand 0.
1905 (*mmx_pextrw): New insn pattern.
1906 (*mmx_pextrb): Ditto.
1907 (*mmx_pextrb_zext): Ditto.
1908
1909 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
1910
1911 * target.def (libc_has_function, libc_has_fast_function): Improve
1912 documentation strings.
1913 * doc/tm.texi: Regenerate.
1914
1915 2019-08-13 Caroline Tice <cmtice@google.com>
1916
1917 PR other/91396
1918 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
1919 vtv_end.o or vtv_end_preinit.o files if !static.
1920
1921 2019-08-13 Olivier Hainque <hainque@adacore.com>
1922
1923 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
1924
1925 2019-08-13 Olivier Hainque <hainque@adacore.com>
1926
1927 * rtlanal.c (tablejump_casesi_pattern): New function, to
1928 determine if a tablejump insn is a casesi dispatcher. Extracted
1929 from patch_jump_insn.
1930 * rtl.h (tablejump_casesi_pattern): Declare.
1931 * cfgrtl.c (patch_jump_insn): Use it.
1932 * dwarf2cfi.c (create_trace_edges): Use it.
1933
1934 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1935
1936 PR target/81800
1937 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
1938 operand is larger than a long int.
1939
1940 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1941
1942 * machmode.h (opt_mode::else_mode): New function.
1943 (opt_mode::else_blk): Use it.
1944 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
1945 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
1946 (aarch64_gen_stepped_int_parallel): Likewise.
1947 (aarch64_stepped_int_parallel_p): Likewise.
1948 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1949 argument.
1950 * config/aarch64/aarch64.c
1951 (aarch64_expand_sve_widened_duplicate): Delete.
1952 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
1953 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
1954 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1955 argument. Use early returns in the !CONST_INT_P handling.
1956 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
1957 than handling some inline.
1958 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
1959 from...
1960 (aarch64_simd_container_mode): ...here.
1961 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
1962 (aarch64_sve_ld1rq_operand_p): New functions.
1963 * config/aarch64/predicates.md (descending_int_parallel)
1964 (aarch64_sve_ld1rq_operand): New predicates.
1965 * config/aarch64/constraints.md (UtQ): New constraint.
1966 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
1967 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
1968 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
1969 (@aarch64_sve_reinterpret<mode>): New expander.
1970 (*aarch64_sve_reinterpret<mode>): New pattern.
1971 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
1972 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
1973 (*sve_ld1rq<Vesize>): Replace with...
1974 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
1975
1976 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1977
1978 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
1979 16:12.
1980
1981 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1982
1983 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
1984 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
1985 (msp430_check_path_for_devices): New.
1986 (parse_devices_csv_1): New.
1987 (parse_devices_csv): New.
1988 (msp430_extract_mcu_data): Try to find devices.csv and search for the
1989 MCU data in devices.csv before using the hard-coded data.
1990 Warn if devices.csv isn't found and the MCU wasn't found in the
1991 hard-coded data either.
1992 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
1993 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
1994 Search for devices.csv on -I and -L paths.
1995 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
1996 msp430_set_driver_var.
1997 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
1998 -mdevices-csv-loc=.
1999 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
2000 searched for devices.csv.
2001 (mwarn-devices-csv): Document option.
2002
2003 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2004
2005 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
2006 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
2007 Use a single Dn alternative instead of separate Dz and Dm
2008 alternatives. Use aarch64_output_sve_move_immediate.
2009 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
2010 function.
2011 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
2012 for predicates too.
2013 (aarch64_output_sve_mov_immediate): Handle predicate modes.
2014 (aarch64_output_ptrue): Delete.
2015
2016 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2017
2018 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
2019 INDEX.
2020 (simd_immediate_info::value, simd_immediate_info::step)
2021 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
2022 with...
2023 (simd_immediate_info::u): ...this new union.
2024 (simd_immediate_info::simd_immediate_info): Update accordingly.
2025 (aarch64_output_simd_mov_immediate): Likewise.
2026 (aarch64_output_sve_mov_immediate): Likewise.
2027
2028 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2029
2030 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
2031 extra_gcc_objs.
2032 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
2033 (msp430_select_cpu): New spec function.
2034 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
2035 MCU data.
2036 * config/msp430/msp430-devices.c: New file.
2037 * config/msp430/msp430-devices.h: New file.
2038 * config/msp430/msp430.c: Remove msp430_mcu_data.
2039 (msp430_option_override): Use msp430_extract_mcu_data to extract
2040 MCU data.
2041 (msp430_use_f5_series_hwmult): Likewise.
2042 (use_32bit_hwmult): Likewise.
2043 (msp430_no_hwmult): Likewise.
2044 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2045 assembler.
2046 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2047 and -mcpu option.
2048 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2049 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2050 Remove hard-coded MCU multilib data.
2051
2052 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2053
2054 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2055 based on the mode instead of testing properties of it.
2056
2057 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2058
2059 * doc/md.texi: Document the x and y constraints for AArch64.
2060 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2061 (FP_LO8_REGS): New reg_class.
2062 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2063 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2064 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2065 * config/aarch64/predicates.md (aarch64_simd_register): Use
2066 FP_REGNUM_P instead of checking the classes manually.
2067 * config/aarch64/constraints.md (y): New constraint.
2068
2069 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2070
2071 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2072 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2073 * config/aarch64/aarch64-simd.md
2074 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2075 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2076 from the asm template.
2077 * config/aarch64/aarch64-sve.md
2078 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2079 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2080 from the asm template.
2081 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2082 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2083 from the asm template.
2084 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2085
2086 2019-08-13 Martin Liska <mliska@suse.cz>
2087
2088 * value-prof.c (gimple_ic_transform): Add new line.
2089 Print details with MSG_NOTE.
2090
2091 2019-08-13 Martin Liska <mliska@suse.cz>
2092
2093 * doc/invoke.texi: Document automatic detection of jobserver.
2094 * lto-wrapper.c (run_gcc): Detect jobserver always.
2095
2096 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2097
2098 * config/i386/i386-expand.c (ix86_expand_vector_set)
2099 <case E_V2SImode>: Use vec_merge path for
2100 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2101 <case E_V8QImode>: Ditto.
2102 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2103 (*mmx_pinsrb): Ditto.
2104
2105 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2106
2107 PR target/83250
2108 PR target/91340
2109 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2110 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2111 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2112 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2113 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2114
2115 2019-08-12 Richard Biener <rguenther@suse.de>
2116
2117 PR lto/91375
2118 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2119 flag_devirtualize.
2120
2121 2019-08-12 Richard Biener <rguenther@suse.de>
2122
2123 PR driver/91130
2124 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2125 lang_mask option, always use CL_DRIVER.
2126 (get_options_from_collect_gcc_options): Adjust.
2127 (find_and_merge_options): Likewise.
2128 (run_gcc): Likewise.
2129
2130 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2131
2132 * ipa-predicate.c (add_condition): Restore inverted test.
2133
2134 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2135
2136 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2137 (enum omp_clause_device_type_kind): New enum.
2138 (struct tree_omp_clause): Add subcode.device_type_kind.
2139 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2140 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2141 for device_type clause.
2142 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2143 * tree-pretty-print.c (dump_omp_clause): Likewise.
2144
2145 PR target/91408
2146 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2147 vector_operand.
2148
2149 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2150
2151 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2152 handling spilled pseudos.
2153
2154 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2155
2156 PR target/91386
2157 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2158 to preserve the contents of the original insns.
2159
2160 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2161
2162 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2163 (addsi3_compare_op2): Likewise.
2164
2165 2019-08-09 Martin Liska <mliska@suse.cz>
2166
2167 * alias.c (alias_ptr_types_compatible_p): Strengten
2168 type comparison in LTO mode.
2169
2170 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2171
2172 PR middle-end/90313
2173 * tree-tailcall.c (find_tail_calls): Reject calls that might
2174 read from an escaped RESULT_DECL.
2175
2176 2019-08-09 Martin Liska <mliska@suse.cz>
2177
2178 * doc/invoke.texi: Document the option value.
2179 * lto-wrapper.c (run_gcc): Set auto_parallel
2180 only with -flto=auto.
2181
2182 2019-08-09 Martin Liska <mliska@suse.cz>
2183
2184 * opts.c (common_handle_option): Error for an invalid argument
2185 to -flto=.
2186
2187 2019-08-09 Martin Liska <mliska@suse.cz>
2188
2189 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2190 use dump_printf to report optimization.
2191 (sem_variable::merge): Likwise.
2192 (sem_item_optimizer::merge_classes): Use dump_printf to report
2193 ICF hits.
2194
2195 2019-08-09 Martin Liska <mliska@suse.cz>
2196
2197 * value-prof.c (gimple_divmod_fixed_value_transform):
2198 Use dump_printf_loc.
2199 (gimple_mod_pow2_value_transform): Likewise.
2200 (gimple_mod_subtract_transform): Likewise.
2201 (init_node_map): Likewise.
2202 (gimple_ic_transform): Likewise.
2203 (gimple_stringops_transform): Likewise.
2204
2205 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2206
2207 * doc/extend.texi: Add const qualifier to ld intrinsics.
2208
2209 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2210
2211 * config/rs6000/dfp.md (D64_D128): Rename to ...
2212 (DDTD): ... this, throughout.
2213 (dfp_suffix): Rename to ...
2214 (q): ... this, throughout.
2215
2216 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2217
2218 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2219 (dfp_suffix): Ditto.
2220 (adddd3, addtd3): Merge to ...
2221 (add<mode>3 for D64_D128): ... this.
2222 (subdd3, subtd3): Merge to ...
2223 (sub<mode>3 for D64_D128): ... this.
2224 (muldd3, multd3): Merge to ...
2225 (mul<mode>3 for D64_D128): ... this.
2226 (divdd3, divtd3): Merge to ...
2227 (div<mode>3 for D64_D128): ... this.
2228 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2229 (*cmp<mode>_internal1 for D64_D128): ... this.
2230 (ftruncdd2, ftrunctd2): Merge to ...
2231 (ftrunc<mode>2 for D64_D128): ... this.
2232 (fixdddi2, fixtddi2): Merge to ...
2233 (fix<mode>di2 for D64_D128): ... this.
2234
2235 2019-08-08 Jim Wilson <jimw@sifive.com>
2236
2237 PR target/91229
2238 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2239 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2240 Pass into recursive call.
2241 (riscv_flatten_aggregate_argument): New arg. Pass to
2242 riscv_flatten_aggregate_field.
2243 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2244 riscv_flatten_aggregate_argument twice, with false and true as last
2245 arg. Process result twice. Compare results and warn if different.
2246 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2247
2248 2019-08-08 Martin Liska <mliska@suse.cz>
2249
2250 PR bootstrap/91352
2251 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2252 * lto-wrapper.c (jobserver_active_p): Likewise.
2253
2254 2019-08-08 Martin Liska <mliska@suse.cz>
2255
2256 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2257 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2258 (create_version_clone_with_body): Likewise.
2259
2260 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2261
2262 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2263 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2264 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2265 GOVD_EXPLICIT flags.
2266 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2267 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2268 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2269 call install_var_field with mask 11 instead of 3.
2270 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2271 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2272
2273 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2274
2275 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2276 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2277
2278 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2279
2280 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2281 MOVPRFX alternatives. Make the GPR alternatives more expensive
2282 than the FPR ones.
2283
2284 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2285
2286 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2287 Disparage the GPR alternative relative to the FPR one.
2288 Fix handling of 8-bit and 16-bit FPR values.
2289
2290 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2291
2292 * config/aarch64/iterators.md (BITWISEV): Delete.
2293 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2294 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2295 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2296 UNSPEC_FMINNMV, UNSPEC_FMINV.
2297 (bit_reduc_op): Delete.
2298 (sve_int_op): New int attribute.
2299 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2300 UNSPEC_FMINNMV, UNSPEC_FMINV.
2301 * config/aarch64/aarch64-sve.md
2302 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2303 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2304 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2305 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2306 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2307 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2308 new patterns.
2309 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2310 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2311 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2312 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2313 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2314 new patterns.
2315
2316 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2317
2318 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2319 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2320 (fms<mode>4, *fms<mode>4): Replace with...
2321 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2322 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2323 Use unspecs instead of rtx codes.
2324 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2325 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2326
2327 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2328
2329 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2330 int iterator.
2331 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2332 * config/aarch64/aarch64-sve.md
2333 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2334 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2335 use a single unspec for the rhs.
2336 (*<su><maxmin><mode>3): Delete.
2337 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2338
2339 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2340
2341 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2342 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2343 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2344 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2345 (optab, sve_fp_op): Handle them.
2346 (SVE_FP_UNARY): Delete.
2347 (optab): Remove sqrt entry.
2348 (sve_fp_op): Remove neg, abs and sqrt entries.
2349 (SVE_COND_FP_UNARY): New int iterator.
2350 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2351 (*<frint_pattern><mode>2): Delete.
2352 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2353 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2354 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2355 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2356
2357 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2358
2359 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2360
2361 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2362
2363 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
2364 (UNSPEC_COND_FADD): ...this.
2365 (UNSPEC_COND_SUB): Rename to...
2366 (UNSPEC_COND_FSUB): ...this.
2367 (UNSPEC_COND_MUL): Rename to...
2368 (UNSPEC_COND_FMUL): ...this.
2369 (UNSPEC_COND_DIV): Rename to...
2370 (UNSPEC_COND_FDIV): ...this.
2371 (UNSPEC_COND_MAX): Rename to...
2372 (UNSPEC_COND_FMAXNM): ...this.
2373 (UNSPEC_COND_MIN): Rename to...
2374 (UNSPEC_COND_FMINNM): ...this.
2375 (UNSPEC_COND_LT): Rename to...
2376 (UNSPEC_COND_FCMLT): ...this.
2377 (UNSPEC_COND_LE): Rename to...
2378 (UNSPEC_COND_FCMLE): ...this.
2379 (UNSPEC_COND_EQ): Rename to...
2380 (UNSPEC_COND_FCMEQ): ...this.
2381 (UNSPEC_COND_NE): Rename to...
2382 (UNSPEC_COND_FCMNE): ...this.
2383 (UNSPEC_COND_GE): Rename to...
2384 (UNSPEC_COND_FCMGE): ...this.
2385 (UNSPEC_COND_GT): Rename to...
2386 (UNSPEC_COND_FCMGT): ...this.
2387 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
2388 (sve_fp_op_rev): Update accordingly.
2389 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
2390
2391 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2392
2393 * config/aarch64/aarch64-sve.md: Reorganize contents and add
2394 banner comments.
2395 * config/aarch64/check-sve-md.awk: New file.
2396 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
2397 (insn-conditions.md): Depend on it.
2398
2399 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
2400
2401 PR target/91385
2402 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
2403 (*negsi2_cmpz_zext): Ditto.
2404
2405 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2406
2407 * config/aarch64/iterators.md (commutative): Remove.
2408
2409 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
2410
2411 PR driver/91130
2412 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
2413 processing COLLECT_GCC_OPTIONS.
2414 (run_gcc): Likewise.
2415
2416 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2417
2418 PR tree-optimization/91109
2419 * lra-remat.c (update_scratch_ops): Remove assignment of the
2420 hard register.
2421
2422 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2423
2424 * data-streamer.h (streamer_write_poly_uint64): Declare.
2425 (streamer_read_poly_uint64): Likewise.
2426 * data-streamer-in.c (streamer_read_poly_uint64): New function.
2427 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
2428 * ipa-predicate.h (condition::size): Turn into a poly_int64.
2429 (add_condition): Take a poly_int64 size.
2430 * ipa-predicate.c (add_condition): Likewise.
2431 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
2432 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
2433 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
2434 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
2435 condition::size as a poly_int64.
2436 (unmodified_parm_1): Take a poly_int64 size pointer.
2437 (unmodified_parm): Likewise.
2438 (unmodified_parm_or_parm_agg_item): Likewise.
2439 (set_cond_stmt_execution_predicate): Update accordingly.
2440 (set_switch_stmt_execution_predicate): Likewise.
2441 (will_be_nonconstant_expr_predicate): Likewise.
2442 (will_be_nonconstant_predicate): Likewise.
2443 (inline_read_section): Stream condition::size as a poly_int.
2444 (ipa_fn_summary_write): Likewise.
2445
2446 2019-08-07 Martin Liska <mliska@suse.cz>
2447
2448 * fold-const.c (twoval_comparison_p): Replace int
2449 with bool as a return type.
2450 (simple_operand_p): Likewise.
2451 (operand_equal_p): Replace int with bool as a return type.
2452 * fold-const.h (operand_equal_p): Likewise.
2453
2454 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2455
2456 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
2457 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
2458 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2459 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
2460 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
2461 * tree-pretty-print.c (dump_omp_clause): Likewise.
2462 * tree-nested.c (convert_nonlocal_omp_clauses,
2463 convert_local_omp_clauses): Likewise.
2464 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
2465 Likewise.
2466 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
2467 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
2468 clause with array or reference to array types, no matter what type
2469 except for reference it has.
2470
2471 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
2472
2473 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
2474
2475 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
2476
2477 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
2478 (arch_canonicalize): Support rv32g and rv64g and fix error
2479 handling.
2480
2481 2019-08-06 Martin Liska <mliska@suse.cz>
2482
2483 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
2484 and DECL_IS_OPERATOR_DELETE_P.
2485
2486 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2487
2488 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
2489 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
2490 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
2491 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
2492 (gimplify_omp_for): Don't do C++ random access iterator clause
2493 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
2494 don't predetermine the artificial iterator in case of C++ random
2495 access iterators as lastprivate, but private. For OMP_LOOP, force
2496 bind expr around simd body and force for_pre_body before the
2497 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
2498 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
2499 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
2500 diff var of C++ random access iterators. Handle
2501 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
2502 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
2503 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
2504 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
2505 * omp-low.c (lower_rec_input_clauses): For
2506 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
2507 variables instead of default constructing them.
2508 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
2509 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
2510 is_taskloop_ctx check from the assert to the guarding condition.
2511
2512 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
2513
2514 * config/riscv/multilib-generator: (canonical_order): New.
2515 (arch_canonicalize): Dito.
2516 Apply arch_canonicalize for alts.
2517
2518 2019-08-05 Martin Sebor <msebor@redhat.com>
2519
2520 * doc/extend.texi (Common Variable Attributes): Document alias
2521 attribute.
2522
2523 2019-08-05 Marek Polacek <polacek@redhat.com>
2524
2525 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2526 * doc/invoke.texi: Document -Wcomma-subscript.
2527
2528 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2529
2530 * tree-core.h (tree_function_decl): Make function_code an
2531 independent field. Group the remaining bitfields into bytes
2532 and move decl_type so that it contines to be at a byte boundary.
2533 Leave 12 bits for future expansion.
2534
2535 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2536
2537 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
2538 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
2539 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
2540 IFN_MASK_STORE.
2541
2542 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2543
2544 * gimple.h (gimple_move_vops): Declare.
2545 * gimple.c (gimple_move_vops): New function
2546 * gimple-fold.c (replace_call_with_call_and_fold)
2547 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
2548 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
2549 (gimple_fold_call): Use it.
2550 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
2551 * tree-call-cdce.c (use_internal_fn): Likewise.
2552 * tree-if-conv.c (predicate_load_or_store): Likewise.
2553 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2554 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2555 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
2556 (update_call_from_tree): Likewise.
2557 * tree-vect-stmts.c (vectorizable_load): Likewise.
2558 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
2559
2560 2019-08-05 Martin Liska <mliska@suse.cz>
2561
2562 PR c++/91334
2563 * tree-ssa-dce.c (propagate_necessity): Handle new operators
2564 with not arguments.
2565 (eliminate_unnecessary_stmts): Likewise.
2566
2567 2019-08-05 Richard Biener <rguenther@suse.de>
2568
2569 PR middle-end/91169
2570 * fold-const.c (get_array_ctor_element_at_index): Create
2571 offset_ints according to the sign of the index type and treat
2572 that as signed if it is obviously so.
2573
2574 2019-08-05 Jakub Jelinek <jakub@redhat.com>
2575
2576 PR target/91341
2577 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
2578 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
2579 _mm256_storeu2_m128i): New function.
2580
2581 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
2582
2583 * config/riscv/riscv.c (riscv_promote_function_mode): New.
2584 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
2585
2586 2019-08-05 Alan Modra <amodra@gmail.com>
2587
2588 PR target/91349
2589 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
2590 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
2591
2592 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
2593
2594 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
2595 bug that was fixed in Tcl 8.6.1.
2596
2597 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
2598
2599 * config/rs6000/future.md: New file.
2600 * config/rs6000/rs6000.md: Include future.md.
2601 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
2602
2603 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2604
2605 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
2606 check to use targetm.slow_unaligned_access instead.
2607
2608 * function.c (assign_param_data_one): Remove unused data members.
2609
2610 2019-08-02 Steve Ellcey <sellcey@marvell.com>
2611
2612 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
2613 build_distinct_type_copy.
2614 (simd_clone_adjust_argument_types): Ditto.
2615 (simd_clone_adjust): Call build_distinct_type_copy here.
2616 (expand_simd_clones): Ditto.
2617
2618 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2619
2620 PR target/91201
2621 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
2622
2623 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
2624
2625 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
2626 from 'const void *'.
2627 (sort_locs_in_loop_postorder_cmp): Likewise.
2628
2629 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
2630
2631 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
2632 (hot-bb-count-ws-permille): Likewise.
2633 (hot-bb-frequency-fraction): Likewise.
2634 (unlikely-bb-count-fraction): Likewise.
2635 * params.def (hot-bb-count-fraction): Rework description.
2636 (hot-bb-count-ws-permille): Likewise.
2637 (hot-bb-frequency-fraction): Likewise.
2638 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
2639 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
2640
2641 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2642
2643 PR target/91323
2644 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
2645 Return false.
2646
2647 2019-08-02 Richard Biener <rguenther@suse.de>
2648
2649 * vec.h (vec::sort): Add gcc_qsort_r support.
2650 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
2651 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
2652 to gcc_qsort_r style callback.
2653 (sort_locs_in_loop_postorder_cmp): Likewise.
2654 (analyze_memory_references): Use gcc_sort_r interfaces.
2655 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
2656
2657 2019-08-02 Martin Liska <mliska@suse.cz>
2658
2659 PR lto/91313
2660 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
2661 to detect working job server.
2662 (driver::detect_jobserver): Test whether jobserver
2663 is active from GCC driver. That will prevent situation where
2664 GCC is invoked from a LD plugin and the linker already uses
2665 file descriptors suggested by make. That leads to a wrong
2666 detection.
2667 * gcc.h (driver): Add detect_jobserver.
2668 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
2669 not scanning for --jobserver-auth prefix.
2670
2671 2019-08-02 Jakub Jelinek <jakub@redhat.com>
2672
2673 PR tree-optimization/91201
2674 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
2675 V16QImode extraction without sse4.1 try to use V4SImode lowpart
2676 extraction.
2677
2678 2019-08-01 Martin Sebor <msebor@redhat.com>
2679
2680 PR c++/90947
2681 * tree.c (type_initializer_zero_p): Define.
2682 * tree.h (type_initializer_zero_p): New function.
2683
2684 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2685
2686 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
2687
2688 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2689
2690 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
2691 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
2692 * predict.c (maybe_hot_count_p): Likewise.
2693 (maybe_hot_bb_p): Tweak comment.
2694 (maybe_hot_edge_p): Likewise.
2695 (probably_never_executed): Likewise. Minor tweak.
2696 (probably_never_executed_bb_p): Likewise.
2697 (unlikely_executed_edge_p): Likewise.
2698 (probably_never_executed_edge_p): Likewise.
2699 (optimize_function_for_size_p): Likewise.
2700 (optimize_function_for_speed_p): Likewise.
2701 (function_optimization_type): Likewise.
2702 (optimize_bb_for_size_p): Likewise.
2703 (optimize_bb_for_speed_p): Likewise.
2704 (bb_optimization_type): Likewise.
2705 (optimize_edge_for_size_p): Likewise.
2706 (optimize_edge_for_speed_p): Likewise.
2707 (optimize_insn_for_size_p): Likewise.
2708 (optimize_insn_for_speed_p): Likewise.
2709 (optimize_loop_for_size_p): Likewise.
2710 (optimize_loop_for_speed_p): Likewise.
2711 (optimize_loop_nest_for_speed_p): Likewise.
2712 (optimize_loop_nest_for_size_p): Likewise.
2713 (predictable_edge_p): Likewise.
2714 (handle_missing_profiles): Minor tweak.
2715
2716 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
2717
2718 * config/rs6000/predicates.md (pcrel_external_address): Update
2719 comment.
2720
2721 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2722
2723 PR target/85693
2724 * config/i386/mmx.md (usadv8qi): New expander.
2725
2726 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
2727
2728 PR c++/90590
2729 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
2730 with reserved names that are in a system header.
2731
2732 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2733
2734 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
2735 (*vec_extractv2si_0_zext_sse4): New insn pattern.
2736 (*vec_extractv2si_0_zext): Ditto.
2737 (*vec_extractv2si_1): Add (rm,x) alternative.
2738 (*vec_extractv2si_1_zext): New insn pattern.
2739 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
2740 insn constraint.
2741
2742 2019-08-01 Richard Biener <rguenther@suse.de>
2743
2744 * domwalk.c (bb_postorder): Remove static variable.
2745 (cmp_bb_postorder): Adjust.
2746 (sort_bbs_postorder): Adjust and use gcc_sort_r.
2747 (dom_walker::walk): Adjust.
2748
2749 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
2750
2751 * sort.cc (sort_r_ctx): New struct.
2752 (reorder23): Make templated on context type.
2753 (reorder45): Ditto.
2754 (cmp1): Ditto. Adjust signature.
2755 (netsort): Ditto.
2756 (mergesort): Ditto.
2757 [CHECKING_P] (cmp2to3): New static function. Use it...
2758 (gcc_qsort) [CHECKING_P]: ...here.
2759 (gcc_sort_r): New function.
2760 * system.h (sort_r_cmp_fn): New function typedef.
2761 (qsort_chk): Adjust signature.
2762 (gcc_sort_r): Declare.
2763 * vec.c (qsort_chk_error): Adjust.
2764 (qsort_chk): Adjust.
2765
2766 2019-08-01 Richard Biener <rguenther@suse.de>
2767
2768 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
2769 (compute_antic): Localize it here.
2770
2771 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
2772
2773 * common/config/riscv/riscv-common.c: Check -march string ends
2774 with null.
2775
2776 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
2777
2778 * ipa-devirt.c (type_warning_cmp): Make static.
2779 (decl_warning_cmp): Ditto.
2780
2781 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
2782
2783 PR target/91050
2784 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
2785 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
2786 use of deleted rs6000_dejagnu_cpu_index variable.
2787 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
2788 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2789 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
2790 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
2791 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
2792 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2793
2794 2019-07-31 Richard Biener <rguenther@suse.de>
2795
2796 PR tree-optimization/91280
2797 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2798 Decompose MEM_REF manually for offset handling.
2799
2800 2019-07-31 Richard Biener <rguenther@suse.de>
2801
2802 PR tree-optimization/91293
2803 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
2804 of reduction stmts.
2805
2806 2019-07-31 Matt Thomas <matt@3am-software.com>
2807 Nick Hudson <nick@nthcliff.demon.co.uk>
2808 Matthew Green <mrg@eterna.com.au>
2809 Maya Rashish <coypu@sdf.org>
2810
2811 * config.gcc (hppa*-*-netbsd*): New target.
2812 * config/pa/pa-netbsd.h: New file.
2813 * config/pa/pa32-netbsd.h: New file.
2814
2815 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2816
2817 PR tree-optimization/91201
2818 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
2819
2820 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
2821
2822 * config/gcn/gcn-valu.md
2823 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
2824 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
2825 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
2826 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
2827 struct ilist. Add nops for delayeduse insns.
2828 * config/gcn/gcn.md (delayeduse): New attribute.
2829 (*movbi): Remove s_waitcnt from stores.
2830 (*mov<mode>_insn): Likewise.
2831 (*movti_insn): Likewise. Add delayeduse attribute.
2832 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
2833 (atomic_store<mode>): Remove or adjust s_waitcnt.
2834
2835 2019-07-31 Richard Biener <rguenther@suse.de>
2836
2837 * vr-values.h (vr_values::swap_vr_value): New.
2838 (vr_values::free_value_range): likewise.
2839 * vr-values.c (vr_values::swap_vr_value): Implement.
2840 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
2841 Do not return a range or take a var.
2842 (evrp_range_analyzer::stack): Change back to recording a non-const
2843 value_range *.
2844 * gimple-ssa-evrp-analyze.c
2845 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
2846 value-range.
2847 (evrp_range_analyzer::pop_to_marker): Adjust.
2848 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
2849 (evrp_range_analyzer::pop_value_range): Likewise. Free the
2850 no longer needed value-range.
2851
2852 2019-07-31 Martin Liska <mliska@suse.cz>
2853
2854 * tree-ssa-dce.c (propagate_necessity): Delete operator can
2855 have size and (or) alignment as 2nd and later arguments.
2856 Mark all of them as necessary.
2857
2858 2019-07-31 Richard Biener <rguenther@suse.de>
2859
2860 PR tree-optimization/91178
2861 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2862 Use tail-recursion.
2863
2864 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2865
2866 PR tree-optimization/91201
2867 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
2868 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
2869 TARGET_AVX512F.
2870 (reduc_plus_scal_<mode>): Improve formatting by introducing
2871 a temporary.
2872
2873 2019-07-31 Sudakshina Das <sudi.das@arm.com>
2874
2875 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2876 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
2877 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
2878 (aarch64_init_tme_builtins): New.
2879 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
2880 (aarch64_expand_builtin_tme): New.
2881 (aarch64_expand_builtin): Handle TME builtins.
2882 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2883 __ARM_FEATURE_TME when enabled.
2884 * config/aarch64/aarch64-option-extensions.def: Add "tme".
2885 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
2886 (TARGET_TME): New.
2887 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
2888 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
2889 UNSPECV_TCANCEL.
2890 (tstart, ttest, tcommit, tcancel): New instructions.
2891 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
2892 (__tcancel, __ttest): New.
2893 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
2894 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
2895 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
2896 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
2897 * config/arm/types.md: Add new tme type attr.
2898 * doc/invoke.texi: Document "tme".
2899
2900 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
2901
2902 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
2903 warn_unused_result attribute.
2904 (cmse_check_address_range): Add warn_unused_result attribute.
2905
2906 2019-07-31 Richard Biener <rguenther@suse.de>
2907
2908 PR tree-optimization/91257
2909 * tree-vrp.c (union_ranges): Unify equality and less tests
2910 by using compare_values. Re-order cheap tests first.
2911
2912 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2913
2914 PR middle-end/91301
2915 * gimplify.c (gimplify_omp_for): If for class iterator on
2916 distribute parallel for there is no data sharing clause
2917 on inner_for_stmt, look for private clause on combined
2918 parallel too and if found, move it to inner_for_stmt.
2919
2920 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
2921
2922 * lra-int.h (lra_operand_data): Remove early_clobber field.
2923 (lra_insn_reg): Likewise.
2924 * lra.c (debug_operand_data): Update accordingly.
2925 (setup_operand_alternative): Likewise.
2926 (new_insn_reg): Likewise. Remove early_clobber parameter.
2927 (collect_non_operand_hard_regs): Update call accordingly.
2928 Don't assign to lra_insn_reg::early_clobber.
2929 (add_regs_to_insn_regno_info): Remove early_clobber parameter
2930 and update calls to new_insn_reg.
2931 (lra_update_insn_regno_info): Update calls accordingly.
2932 * lra-constraints.c (update_and_check_small_class_inputs): Take the
2933 alternative number as a parameter and test whether the operand
2934 is earlyclobbered in that particular alternative.
2935 (process_alt_operands): Update call accordingly. Use per-alternative
2936 checks for earyclobber here too.
2937 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
2938 against zero for IRA_UNKNOWN_ALT.
2939
2940 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
2941
2942 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
2943
2944 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
2945
2946 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
2947 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2948
2949 2019-07-30 Martin Liska <mliska@suse.cz>
2950
2951 PR ipa/89330
2952 * cgraph.c (cgraph_edge::make_direct): Use
2953 edge->indirect_unknown_callee as edge->resolve_speculation can
2954 deallocate edge which is this pointer.
2955
2956 2019-07-30 Richard Biener <rguenther@suse.de>
2957
2958 PR tree-optimization/91257
2959 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
2960
2961 2019-07-30 Martin Liska <mliska@suse.cz>
2962
2963 * doc/invoke.texi: Document new behavior.
2964 * lto-wrapper.c (cpuset_popcount): New function
2965 is a copy of libgomp/config/linux/proc.c.
2966 (init_num_threads): Likewise.
2967 (run_gcc): Automatically detect core count for -flto.
2968 (jobserver_active_p): New function.
2969
2970 2019-07-30 Richard Biener <rguenther@suse.de>
2971
2972 PR tree-optimization/91257
2973 * bitmap.h (bitmap_ior_into_and_free): Declare.
2974 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
2975 whether to add the unliked element to the freelist.
2976 (bitmap_list_insert_element_after): Add defaulted param for
2977 an already allocated element.
2978 (bitmap_ior_into_and_free): New function.
2979 * tree-ssa-structalias.c (condense_visit): Reduce the
2980 ponts-to and edge bitmaps of the SCC members in a
2981 logarithmic fashion rather than all to one.
2982
2983 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
2984
2985 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
2986 parameter. When nonnull, make sure that the addition or subtraction
2987 has the same condition.
2988 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
2989 for CFN_COND_MUL too.
2990
2991 2019-07-30 Richard Biener <rguenther@suse.de>
2992
2993 PR tree-optimization/91291
2994 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
2995 constant values.
2996
2997 2019-07-30 Jakub Jelinek <jakub@redhat.com>
2998
2999 PR middle-end/91216
3000 * omp-low.c (global_nonaddressable_vars): New variable.
3001 (use_pointer_for_field): For global decls, if they are non-addressable,
3002 remember it in the global_nonaddressable_vars bitmap, if they are
3003 addressable and in the global_nonaddressable_vars bitmap, ignore their
3004 TREE_ADDRESSABLE bit.
3005 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
3006 vars in global_nonaddressable_vars bitmap.
3007 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
3008
3009 PR target/91150
3010 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
3011 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
3012 comparison to unsigned HOST_WIDE_INT before shifting it left.
3013
3014 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3015
3016 * config/i386/i386.md (movstrict<mode>): Use register_operand
3017 predicate for operand 0. Add expander condition. Assert that
3018 operand 0 is a SUBREG RTX.
3019 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
3020 Update operand constraints and insn condition.
3021 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
3022 (zero_extendqihi2_and): Do not call gen_movstrictqi.
3023 (*setcc_qi_slp): Use register_operand predicate for operand 0.
3024 Update operand 0 constraints.
3025 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
3026
3027 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3028
3029 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
3030 when -m{code,data}-region are used without -mlarge.
3031 * config/msp430/msp430.c (msp430_option_override): Error when a
3032 non-default code or data region is used without -mlarge.
3033 (msp430_section_attr): Emit a warning and do not add upper/lower/either
3034 attributes when they are used without -mlarge.
3035
3036 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3037
3038 PR target/70320
3039 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3040
3041 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3042
3043 PR middle-end/91242
3044 * wide-int.h (generic_wide_int::sext_elt): New function.
3045 * inchash.h (hash::add_wide_int): Use it instead of elt.
3046
3047 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3048
3049 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3050 CODE_FOR_arm_##.
3051 * config/arm/arm.md (<crc_variant>): Rename to...
3052 (arm_<crc_variant>): ... This.
3053 (<cdp>): Rename to...
3054 (arm_<cdp>): ... This.
3055 (<ldc>): Rename to...
3056 (arm_<ldc>): ... This.
3057 (<stc>): Rename to...
3058 (arm_<stc>): ... This.
3059 (<mcr>): Rename to...
3060 (arm_<mcr>): ... This.
3061 (<mrc>): Rename to...
3062 (arm_<mrc>): ... This.
3063 (<mcrr>): Rename to...
3064 (arm_<mcrr>): ... This.
3065 (<mrrc>): Rename to...
3066 (arm_<mrrc>): ... This.
3067
3068 2019-07-29 Richard Biener <rguenther@suse.de>
3069
3070 PR tree-optimization/91257
3071 * tree-ssa-sccvn.h (struct vn_avail): New.
3072 (struct vn_ssa_aux): Add avail member.
3073 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3074 member, add m_avail_freelist one.
3075 (rpo_elim::~rpo_elim): Remove.
3076 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3077 data structure.
3078 (rpo_elim::eliminate_push_avail): Likewise.
3079 (do_unwind): Likewise.
3080 (do_rpo_vn): Likewise.
3081
3082 2019-07-29 Richard Biener <rguenther@suse.de>
3083
3084 PR tree-optimization/91257
3085 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3086 most cases, instead call compare_values which handles the
3087 symbolic ranges we handle specially.
3088 (compare_values_warnv): Do not call operand_less_p but open-code
3089 the effective fold calls. Avoid converting so much.
3090
3091 2019-07-29 Martin Liska <mliska@suse.cz>
3092
3093 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3094 remove LHS of operator new call. It's handled latter.
3095
3096 2019-07-29 Richard Biener <rguenther@suse.de>
3097
3098 PR tree-optimization/91267
3099 * vr-values.c (vr_values::update_value_range): Add early return
3100 for effectively VARYING lattice entry.
3101
3102 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3103
3104 PR debug/86638
3105 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3106 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3107 necessary if keep_all_vdefs_p is true.
3108 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3109 that keep_all_vdefs_p is false.
3110 (mark_all_reaching_defs_necessary): Likewise.
3111 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3112
3113 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3114
3115 * common.opt (Og): Change the initial value of flag_dse to 0.
3116 * opts.c (default_options_table): Move OPT_ftree_dse from
3117 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3118 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3119 entry before the OPT_ftree_sra entry.
3120 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3121 of flags disabled by Og.
3122
3123 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3124
3125 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3126 variables for -Og.
3127
3128 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3129
3130 * doc/sourcebuild.texi (check-function-bodies): Document.
3131
3132 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3133
3134 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3135 VEC_DUPLICATE of a fixed-length vector even if the result
3136 is variable-length. Likewise fold a duplicate of a
3137 variable-length vector if the variable-length vector is
3138 itself a duplicate of a fixed-length sequence.
3139 (test_vector_ops_duplicate): Test more cases.
3140
3141 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3142
3143 * vector-builder.h (vector_builder): Add a shape template parameter.
3144 (vector_builder::new_unary_operation): New function, generalizing
3145 the old tree_vector_builder function.
3146 (vector_builder::new_binary_operation): Likewise.
3147 (vector_builder::binary_encoded_nelts): Likewise.
3148 * int-vector-builder.h (int_vector_builder): Update template
3149 parameters to vector_builder.
3150 (int_vector_builder::shape_nelts): New function.
3151 * rtx-vector-builder.h (rtx_vector_builder): Update template
3152 parameters to vector_builder.
3153 (rtx_vector_builder::shape_nelts): New function.
3154 (rtx_vector_builder::nelts_of): Likewise.
3155 (rtx_vector_builder::npatterns_of): Likewise.
3156 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3157 * tree-vector-builder.h (tree_vector_builder): Update template
3158 parameters to vector_builder.
3159 (tree_vector_builder::shape_nelts): New function.
3160 (tree_vector_builder::nelts_of): Likewise.
3161 (tree_vector_builder::npatterns_of): Likewise.
3162 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3163 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3164 (tree_vector_builder::new_binary_operation): Delete.
3165 (tree_vector_builder::binary_encoded_nelts): Likewise.
3166 * simplify-rtx.c: Include rtx-vector-builder.h.
3167 (distributes_over_addition_p): New function.
3168 (simplify_const_unary_operation)
3169 (simplify_const_binary_operation): Generalize handling of vector
3170 constants to include variable-length vectors.
3171 (test_vector_ops_series): Add more tests.
3172
3173 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3174
3175 PR lto/91222
3176 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3177 than INDENTIFIER_POINTER.
3178
3179 2019-07-28 Martin Liska <mliska@suse.cz>
3180
3181 PR ipa/89330
3182 * cgraph.c (symbol_table::create_edge): Always allocate
3183 a cgraph_edge.
3184 (symbol_table::free_edge): Store summary_id to
3185 edge_released_summary_ids if != -1;
3186 * cgraph.h (NEXT_FREE_NODE): Remove.
3187 (SET_NEXT_FREE_NODE): Likewise.
3188 (NEXT_FREE_EDGE): Likewise.
3189 (symbol_table::release_symbol): Store summary_id to
3190 cgraph_released_summary_ids if != -1;
3191 (symbol_table::allocate_cgraph_symbol): Always allocate
3192 a cgraph_node.
3193
3194 2019-07-28 Alan Modra <amodra@gmail.com>
3195
3196 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3197 gen_sibcall.
3198
3199 2019-07-28 Alan Modra <amodra@gmail.com>
3200
3201 PR target/91135
3202 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3203 define.
3204 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3205 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3206 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3207
3208 2019-07-28 Alan Modra <amodra@gmail.com>
3209
3210 PR target/91050
3211 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3212 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3213 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3214 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3215 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3216 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3217 in asm_default spec.
3218 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3219 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3220
3221 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3222
3223 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3224
3225 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3226
3227 PR target/89517
3228 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3229 * config/aarch64/aarch64-option-extensions.def: Add new comments
3230 and restore easier to read options.
3231
3232 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3233
3234 * convert.c (convert_to_real_1): Move part of conversion code...
3235 * match.pd: ...To here.
3236
3237 2019-07-26 Martin Jambor <mjambor@suse.cz>
3238
3239 PR ipa/89330
3240 * ipa-inline-transform.c (check_speculations_1): New function.
3241 (push_all_edges_in_set_to_vec): Likewise.
3242 (check_speculations): Use check_speculations_1, new parameter
3243 new_edges.
3244 (inline_call): Pass new_edges to check_speculations.
3245 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3246 NULL.
3247 (speculation_useful_p): Early return true if edge is inlined, remove
3248 later checks for inline_failed.
3249
3250 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3251
3252 PR rtl-optimization/91223
3253 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3254 matching with INOUT operand.
3255
3256 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3257
3258 * stmt.c (expand_case): Try to narrow the index type if it's larger
3259 than a word. Tidy up.
3260
3261 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3262
3263 * cif-code.def (NEVER_CALL): New code.
3264 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3265 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3266
3267 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3268
3269 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3270 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3271
3272 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3273
3274 * ipa-devirt.c (add_type_duplicate): Fix return value.
3275
3276 2019-07-25 Richard Biener <rguenther@suse.de>
3277
3278 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3279 type parameter and use it instead of guessing expression
3280 type from the first operand.
3281 (extract_range_from_binary_expr): Pass expr_type down.
3282
3283 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3284
3285 * config/arm/arm.md (SATrev): Change to code attribute.
3286 (*satsi_<SAT:code>): Adjust for the above.
3287 (*satsi_<SAT:code>_shift): Likewise.
3288
3289 2019-07-25 Richard Biener <rguenther@suse.de>
3290
3291 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3292 Make value_range * temporary const.
3293 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3294 Likewise.
3295 (evrp_range_analyzer::record_ranges_from_): Likewise.
3296 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3297 deal with having recorded a const one.
3298 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3299 Return a const value_range *.
3300 (evrp_range_analyzer::pop_value_range): Likewise.
3301 (evrp_range_analyzer::stack): Record const value_range *s.
3302 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3303 Adjust.
3304 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3305 (format_integer): Likewise.
3306 (sprintf_dom_walker::handle_gimple_call): Likewise.
3307 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3308 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3309 (vrp_prop::get_value_range): Adjust.
3310 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3311 modifying the lattice in-place.
3312 (vrp_prop::visit_stmt): Likewise.
3313 * vr-values.c (vr_values::get_lattice_entry): New private method.
3314 (vr_values::get_value_range): Wrap it and return a const
3315 value_range *.
3316 (vr_values::set_def_to_varying): New.
3317 (vr_values::set_defs_to_varying): Use it.
3318 (vr_values::update_value_range): Likewise.
3319 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3320 (values::op_with_constant_singleton_va): Likewise.
3321 (vr_values::extract_range_for_var_from_co): Likewise.
3322 (vr_values::extract_range_from_ssa_name): Likewise.
3323 (vr_values::extract_range_from_cond_expr): Likewise.
3324 (vr_values::extract_range_basic): Likewise.
3325 (compare_ranges): Take const value_range *, adjust.
3326 (compare_range_with_value): Likewise.
3327 (vrp_valueize): Adjust.
3328 (vrp_valueize_1): Likewise.
3329 (vr_values::get_vr_for_comparison): Return a const value_range *.
3330 (vr_values::compare_name_with_value): Adjust.
3331 (vr_values::compare_names): Likewise.
3332 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3333 Likewise.
3334 (vr_values::vrp_evaluate_conditional): Likewise.
3335 (find_case_label_ranges): Take a const value_range *.
3336 (vr_values::vrp_visit_switch_stmt): Adjust.
3337 (vr_values::extract_range_from_phi_node): Likewise.
3338 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3339 (vr_values::simplify_abs_using_ranges): Likewise.
3340 (test_for_singularity): Take a const value_range *.
3341 (range_fits_type_p): Likewise.
3342 (vr_values::simplify_cond_using_ranges_1): Adjust.
3343 (vr_values::simplify_cond_using_ranges_2): Likewise.
3344 (vr_values::simplify_switch_using_ranges): Likewise.
3345 (vr_values::simplify_float_conversion_usi): Likewise.
3346 (vr_values::two_valued_val_range_p): Likewise.
3347 * vr-values.h (vr_values::get_value_range): Return a const
3348 value_range *.
3349 (vr_values::set_def_to_varying): New.
3350 (vr_values::get_lattice_entry): New private method.
3351 (vr_values::get_vr_for_comparison): Return a const value_range *.
3352
3353 2019-07-25 Martin Liska <mliska@suse.cz>
3354 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3355
3356 PR c++/23383
3357 * common.opt: Add -fallocation-dce
3358 * gimple.c (gimple_call_operator_delete_p): New.
3359 * gimple.h (gimple_call_operator_delete_p): Likewise.
3360 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3361 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
3362 DECL_IS_OPERATOR_DELETE_P.
3363 (mark_all_reaching_defs_necessary_1): Likewise.
3364 (propagate_necessity): Likewise.
3365 (eliminate_unnecessary_stmts): Handle
3366 gimple_call_operator_delete_p.
3367 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
3368 Add packing of OPERATOR_DELETE.
3369 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
3370 Similarly here.
3371 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
3372 (DECL_SET_IS_OPERATOR_DELETE): New.
3373 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
3374
3375 2019-07-25 Martin Liska <mliska@suse.cz>
3376
3377 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
3378 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
3379 * coverage.c (coverage_begin_function): Likewise.
3380 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
3381 * gimple.c (gimple_call_nonnull_result_p): Likewise.
3382 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
3383 (sem_item::hash_referenced_symbol_properties): Likewise.
3384 * lto-streamer-out.c (hash_tree): Likewise.
3385 * predict.c (expr_expected_value_1): Likewise.
3386 * tree-inline.c (expand_call_inline): Likewise.
3387 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3388 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3389 * tree-core.h (enum function_decl_type): New enum.
3390 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
3391 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
3392 (set_function_decl_type): Likewise.
3393 (DECL_IS_OPERATOR_NEW_P): New.
3394 (DECL_SET_IS_OPERATOR_NEW): Likewise.
3395 (DECL_LAMBDA_FUNCTION): Likewise.
3396 (DECL_LAMBDA_FUNCTION_P): Likewise.
3397 (DECL_IS_OPERATOR_NEW): Remove.
3398 (DECL_SET_LAMBDA_FUNCTION): Likewise.
3399
3400 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
3401
3402 * ipa-profile.c (get_most_common_single_value): Use
3403 get_nth_most_common_value.
3404 * profile.c (sort_hist_value): New function.
3405 (compute_value_histograms): Call sort_hist_value to sort the
3406 values after loading from disk.
3407 * value-prof.c (get_most_common_single_value): Rename to ...
3408 get_nth_most_common_value. Add input params n, return
3409 the n_th value and count.
3410 (gimple_divmod_fixed_value_transform): Use
3411 get_nth_most_common_value.
3412 (gimple_ic_transform): Likewise.
3413 (gimple_stringops_transform): Likewise.
3414 * value-prof.h (get_most_common_single_value): Add input params
3415 n, default to 0.
3416
3417 2019-07-25 Richard Biener <rguenther@suse.de>
3418
3419 PR tree-optimization/91236
3420 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3421 size of CONSTRUCTOR write. Fix buffer size we pass to
3422 native_encode_expr.
3423
3424 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3425
3426 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
3427 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
3428 r273773.
3429
3430 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3431
3432 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
3433 explicitly disabled with --disable-initfini-array.
3434
3435 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3436
3437 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
3438 if-exists.
3439
3440 2019-07-24 Martin Sebor <msebor@redhat.com>
3441
3442 PR tree-optimization/91183
3443 PR tree-optimization/86688
3444 * builtins.c (compute_objsize): Handle MEM_REF.
3445 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
3446 (get_min_string_length): Remove.
3447 (count_nonzero_bytes): New function.
3448 (handle_char_store): Rename...
3449 (handle_store): to this. Handle multibyte stores via integer types.
3450 (strlen_check_and_optimize_stmt): Adjust conditional and the called
3451 function name.
3452
3453 2019-07-24 Martin Sebor <msebor@redhat.com>
3454
3455 PR driver/80545
3456 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
3457 (diagnostic_report_diagnostic): Same.
3458 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
3459 (diagnostic_context::lang_mask): New data member.
3460 * ipa-pure-const.c (suggest_attribute): Use
3461 lang_hooks.option_lang_mask ().
3462 * opts-common.c (option_enabled): Handle new argument.
3463 (get_option_state): Pass an additional argument.
3464 * opts.c (print_filtered_help): Print supported languages for
3465 unsupported options. Adjust printing of current state.
3466 * opts.h (option_enabled): Add argument.
3467 * toplev.c (print_switch_values): Use lang_mask.
3468 (general_init): Set global_dc->lang_mask.
3469
3470 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3471
3472 PR bootstrap/87030
3473 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
3474
3475 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
3476
3477 * cgraphunit.c (symbol_table::compile): Start and stop
3478 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
3479 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
3480
3481 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
3482
3483 * gimplify.c (flag_instrument_functions_exclude_p): Include
3484 namespace/class information in the printable name.
3485 * opts.c (add_comma_separated_to_vector): Add NUL terminator
3486 to tokens entered into the vector.
3487
3488 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
3489
3490 * tree-nested.c (build_simple_mem_ref_notrap): New function.
3491 (get_static_chain): Call it instead of build_simple_mem_ref.
3492 (get_frame_field): Likewise.
3493 (get_nonlocal_debug_decl): Likewise.
3494 (convert_nonlocal_reference_op): Likewise.
3495
3496 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
3497
3498 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
3499 declaration.
3500 (arc_compute_frame_size): Millicode is disabled when compiling
3501 ISR.
3502 (arc_return_address_register): Likewise.
3503 (arc_compute_function_type): Likewise.
3504 (arc_compute_frame_size): Likewise.
3505 (secondary_reload_info): Likewise.
3506 (arc_get_unalign): Likewise.
3507 (arc_can_use_return_insn): Declare.
3508 * config/arc/arc.c (AUX_LP_START): Define
3509 (AUX_LP_END): Likewise.
3510 (arc_frame_info): Update gmask member to 64-bit datum.
3511 (GMASK_LEN): Update.
3512 (arc_compute_function_type): Make it static, move it forward.
3513 (arc_must_save_register): Update, consider the extra regs.
3514 (arc_compute_millicode_save_restore_regs): Update to use the 64
3515 bit gmask.
3516 (arc_compute_frame_size): Likewise.
3517 (arc_enter_leave_p): Likewise.
3518 (arc_save_callee_saves): Likewise.
3519 (arc_restore_callee_saves): Likewise.
3520 (arc_save_callee_enter): Likewise.
3521 (arc_restore_callee_leave): Likewise.
3522 (arc_save_callee_milli): Likewise.
3523 (arc_restore_callee_milli): Likewise.
3524 (arc_expand_prologue): Add new interrupt handling.
3525 (arc_return_address_register): Make it static, move it forward.
3526 (arc_expand_epilogue): Add new interrupt handling.
3527 (arc_get_unalign): Delete.
3528 (arc_epilogue_uses): Make sure we do not remove the extra
3529 saved/restored registers when interrupt.
3530 (arc_can_use_return_insn): New function.
3531 (push_reg): Likewise.
3532 (pop_reg): Likewise.
3533 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
3534 procedures.
3535 (arc_restore_callee_saves): Likewise, but restoring.
3536 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
3537 (R33_REG): Likewise.
3538 (R34_REG): Likewise.
3539 (R35_REG): Likewise.
3540 (R36_REG): Likewise.
3541 (R37_REG): Likewise.
3542 (R38_REG): Likewise.
3543 (R39_REG): Likewise.
3544 (R45_REG): Likewise.
3545 (R46_REG): Likewise.
3546 (R47_REG): Likewise.
3547 (R48_REG): Likewise.
3548 (R49_REG): Likewise.
3549 (R50_REG): Likewise.
3550 (R51_REG): Likewise.
3551 (R52_REG): Likewise.
3552 (R53_REG): Likewise.
3553 (R54_REG): Likewise.
3554 (R55_REG): Likewise.
3555 (R56_REG): Likewise.
3556 (R58_REG): Likewise.
3557 (type): Add rtie attribute.
3558 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
3559 (movsi_insn): Accept moves to lp_count.
3560 (rtie): Update pattern.
3561 (simple_return): Simplify it, don't use this pattern as a return
3562 from an interrupt.
3563 (arc600_rtie): New pattern.
3564 (p_return_i): Clean up.
3565 (return): Likewise.
3566 * config/arc/builtins.def (rtie): Only available for non ARC6xx
3567 family CPUs.
3568 * config/arc/predicates.md (move_src_operand): Consider lp_count
3569 as a register.
3570
3571 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
3572
3573 * config/s390/predicates.md (addv_const_operand): New predicate.
3574 * config/s390/s390-modes.def (CCO): New condition code mode.
3575 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
3576 (s390_branch_condition_mask): Likewise.
3577 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
3578 ("mulv<mode>4"): New expanders.
3579 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
3580 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
3581 pattern definitions.
3582
3583 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3584
3585 PR middle-end/91166
3586 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
3587 (define_predicates): Add entry for uniform_vector_p.
3588 (vec_same_elem_p): New match pattern.
3589
3590 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3591
3592 PR bootstrap/87030
3593 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
3594 * config/i386/darwin32-biarch.h .. to here.
3595 * config/i386/darwin64-biarch.h: Adjust comments.
3596 * config/rs6000/darwin32-biarch.h: Likewise.
3597 * config/rs6000/darwin64-biarch.h: Likewise.
3598 * config.gcc: Missed commit from r273746
3599 (*-*-darwin*): Don't include CPU t-darwin here.
3600 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3601 an error message if i686-darwin configuration is attempted for
3602 Darwin >= 18.
3603
3604 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
3605
3606 PR bootstrap/87030
3607 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
3608 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3609 an error message if i686-darwin configuration is attempted for
3610 Darwin >= 18.
3611 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
3612 (powerpc-*-darwin*): Use biarch files where needed.
3613 (powerpc64-*-darwin*): Likewise.
3614 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
3615 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3616 arch case.
3617 * config/i386/darwin32-biarch.h: New.
3618 * config/i386/darwin64.h: Rename.
3619 * config/i386/darwin64-biarch.h: To this.
3620 * config/i386/t-darwin: Rename.
3621 * config/i386/t-darwin32-biarch: To this.
3622 * config/i386/t-darwin64: Rename.
3623 * config/i386/t-darwin64-biarch: To this.
3624 * config/rs6000/darwin32-biarch.h: New.
3625 * config/rs6000/darwin64.h: Rename.
3626 * config/rs6000/darwin64-biarch.h: To this.
3627 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3628 arch case.
3629 * config/rs6000/t-darwin8: Rename.
3630 * config/rs6000/t-darwin32-biarch: To this.
3631 * config/rs6000/t-darwin64 Rename.
3632 * config/rs6000/t-darwin64-biarch: To this.
3633
3634 2019-07-23 Martin Sebor <msebor@redhat.com>
3635
3636 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
3637
3638 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3639
3640 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
3641 (rh): New alias for it.
3642
3643 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3644
3645 * gdbhooks.py: Pass replace=True to
3646 gdb.printing.register_pretty_printer.
3647
3648 2019-07-23 Richard Biener <rguenther@suse.de>
3649
3650 PR debug/91231
3651 * lto-streamer-in.c (input_function): Drop inline-entry markers
3652 that ended up with an unknown location block.
3653
3654 2019-07-23 Richard Biener <rguenther@suse.de>
3655
3656 PR tree-optimization/83518
3657 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
3658 init from a constant even when partial defs are already recorded.
3659
3660 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3661
3662 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
3663 * config/i386/znver1.md: Enable patterns for znver2 and add store
3664 variants which use extra AGU unit.
3665
3666 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3667
3668 * config/i386/i386-options.c (ix86_option_override_internal): Default
3669 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
3670 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
3671 for ZNVER2.
3672
3673 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3674
3675 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
3676 (znver2_costs): Update 256 bit SSE costs and multiplication.
3677
3678 2019-07-23 Jan Beulich <jbeulich@suse.com>
3679
3680 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
3681 Require only AVX512F.
3682 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
3683 alternative expanding to vpternlog.
3684
3685 2019-07-23 Martin Liska <mliska@suse.cz>
3686
3687 * dwarf2out.c (gen_producer_string): Canonize -flto=N
3688 to -flto in dwarf producer string.
3689
3690 2019-07-23 Richard Biener <rguenther@suse.de>
3691
3692 * tree-cfg.c (label_for_bb): Remove global var.
3693 (main_block_label): Take label_for_bb as argument.
3694 (cleanup_dead_labels_eh): Likewise, adjust.
3695 (cleanup_dead_labels): Adjust.
3696
3697 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3698
3699 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
3700 Configurations): Add documentation for __builtin_mtfsf.
3701
3702 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
3703
3704 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
3705 * config/riscv/riscv.c (riscv_constant_alignment): Use
3706 riscv_align_data_type.
3707 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
3708 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3709 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3710 * config/riscv/riscv.opt (malign-data): New.
3711 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
3712
3713 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
3714
3715 * cgraph.c (dump_graphviz): New function.
3716 * cgraph.h (dump_graphviz): New function.
3717 * symtab.c (dump_graphviz): New function.
3718
3719 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
3720
3721 * config/aarch64/aarch64-simd.md
3722 (*aarch64_simd_sra<mode>): New.
3723 * config/aarch64/iterators.md
3724 (SHIFTRT): New iterator.
3725 (sra_op): New attribute.
3726
3727 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3728
3729 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
3730 callee-saved regs R4->R10 in an interrupt function that calls another
3731 function.
3732
3733 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3734
3735 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
3736 (_mm_blendv_epi8): New.
3737
3738 2019-07-22 Richard Biener <rguenther@suse.de>
3739
3740 PR tree-optimization/91221
3741 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
3742 restrict partial-def handling of empty constructors and
3743 memset to refs with known offset.
3744
3745 2019-07-22 Jan Beulich <jbeulich@suse.com>
3746
3747 * config/i386/sse.md (ternlogsuffix): New.
3748 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
3749 AVX512F is in use.
3750 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
3751
3752 2019-07-22 Martin Liska <mliska@suse.cz>
3753
3754 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
3755 comment.
3756 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
3757
3758 2019-07-22 Martin Liska <mliska@suse.cz>
3759
3760 * lto-section-in.c (lto_get_section_data):
3761 Use new function get_compression.
3762 * lto-streamer-out.c (produce_lto_section): Use
3763 set_compression to encode compression algorithm.
3764 * lto-streamer.h (struct lto_section): Do not
3765 use bitfields in the format.
3766
3767 2019-07-22 Martin Liska <mliska@suse.cz>
3768
3769 PR driver/91172
3770 * opts-common.c (decode_cmdline_option): Decode
3771 argument of -Werror and check it for a wrong language.
3772 * opts-global.c (complain_wrong_lang): Remove such case.
3773
3774 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
3775
3776 * config/arc/arc.c (prepare_move_operands): Always use an
3777 intermediate register when storing a TLS symbols.
3778
3779 2019-07-22 Stafford Horne <shorne@gmail.com>
3780
3781 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
3782 force_reg.
3783
3784 2019-07-22 Stafford Horne <shorne@gmail.com>
3785
3786 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
3787 and munordered-float validations.
3788 * config/or1k/constraints.md (d): New register constraint.
3789 * config/or1k/predicates.md (fp_comparison_operator): New.
3790 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
3791 operands.
3792 (or1k_expand_compare): Normalize unordered comparisons.
3793 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
3794 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
3795 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
3796 * config/or1k/or1k.md (type): Add fpu.
3797 (fpu): New instruction reservation.
3798 (F, f, fr, fi, FI, FOP, fop): New.
3799 (<fop><F:mode>3): New ALU instruction definition.
3800 (float<fi><F:mode>2): New conversion instruction definition.
3801 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
3802 (fpcmpcc): New code iterator.
3803 (*sf_fp_insn): New instruction definition.
3804 (cstore<F:mode>4): New expand definition.
3805 (cbranch<F:mode>4): New expand definition.
3806 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
3807 munordered-float): New options.
3808 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
3809 munordered-float.
3810
3811 2019-07-22 Stafford Horne <shorne@gmail.com>
3812
3813 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
3814 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
3815 documenation to be more clear.
3816 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
3817 more clear.
3818 * config/or1k/or1k.opt (mrori): New option.
3819 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
3820 msfimm, mshftimm): Rewrite documentation to be more clear.
3821 * config/or1k/or1k.md (insn_support): Add ror and rori.
3822 (enabled): Add conditions for ror and rori.
3823 (rotrsi3): Replace condition for shftimm with ror and rori.
3824
3825 2019-07-22 Stafford Horne <shorne@gmail.com>
3826
3827 PR target/90363
3828 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
3829 (extend<mode>si2): Update predicate.
3830 * config/or1k/predicates.md (volatile_mem_operand): New.
3831 (reg_or_mem_operand): New.
3832
3833 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
3834
3835 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
3836 * config/rs6000/rs6000-call.c: ... to here.
3837
3838 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3839
3840 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
3841 memory.
3842
3843 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3844
3845 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
3846
3847 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3848
3849 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
3850
3851 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3852
3853 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
3854 (any_memory_operand): New predicate.
3855 (reg_or_mem_operand): Use it.
3856
3857 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3858
3859 PR target/91204
3860 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
3861
3862 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
3863
3864 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
3865 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
3866
3867 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3868
3869 * tree.def (OMP_LOOP): New tree code.
3870 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
3871 (enum omp_clause_bind_kind): New enum.
3872 (struct tree_omp_clause): Add subcode.bind_kind.
3873 * tree.h (OMP_LOOP_CHECK): Rename to ...
3874 (OMP_LOOPING_CHECK): ... this.
3875 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
3876 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
3877 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
3878 (OMP_CLAUSE_BIND_KIND): Define.
3879 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3880 bind clause entries.
3881 (walk_tree_1): Handle OMP_CLAUSE_BIND.
3882 * tree-pretty-print.c (dump_omp_clause): Likewise.
3883 (dump_generic_node): Handle OMP_LOOP.
3884 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
3885 (in_omp_construct): New variable.
3886 (is_gimple_stmt): Handle OMP_LOOP.
3887 (gimplify_scan_omp_clauses): For lastprivate don't set
3888 check_non_private if code == OMP_LOOP. For reduction clause
3889 on OMP_LOOP combined with parallel or teams propagate as shared
3890 on the combined construct. Handle OMP_CLAUSE_BIND.
3891 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
3892 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
3893 for constructs from a loop construct to gimplify_scan_omp_clauses.
3894 Don't predetermine iterator linear on OMP_SIMD from loop construct.
3895 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
3896 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
3897 to match the implicit ORT_TARGET construct around whole body.
3898 Temporarily clear in_omp_construct when processing body.
3899 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
3900 etc. temporarily set in_omp_construct when processing body.
3901 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
3902 * omp-low.c (struct omp_context): Add loop_p.
3903 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
3904 in that the original var might be private.
3905 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
3906 (check_omp_nesting_restrictions): Adjust nesting restrictions for
3907 addition of loop construct.
3908 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
3909
3910 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
3911 lastprivate non-addressable iterator of a collapse(1) simd.
3912
3913 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
3914
3915 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
3916 as in rs6000.c.
3917
3918 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
3919
3920 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
3921 refer to default conditions. Warn for the 'y' spec which is ignored
3922 by current linkers.
3923
3924 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
3925
3926 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
3927 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3928 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3929 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3930 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3931 init_cumulative_args, rs6000_promote_function_mode,
3932 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3933 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3934 rs6000_function_arg_boundary, rs6000_parm_offset,
3935 rs6000_parm_start, rs6000_arg_size,
3936 rs6000_darwin64_record_arg_advance_flush,
3937 rs6000_darwin64_record_arg_advance_recurse,
3938 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3939 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3940 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3941 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3942 rs6000_finish_function_arg, rs6000_function_arg,
3943 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3944 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3945 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3946 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3947 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3948 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3949 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3950 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3951 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3952 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3953 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3954 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3955 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
3956 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
3957 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
3958 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
3959 get_element_number, altivec_expand_vec_set_builtin,
3960 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
3961 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
3962 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
3963 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
3964 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
3965 rs6000_expand_builtin, rs6000_vector_type,
3966 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
3967 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
3968 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
3969 to rs6000-call.c.
3970 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
3971 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3972 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3973 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3974 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3975 init_cumulative_args, rs6000_promote_function_mode,
3976 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3977 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3978 rs6000_function_arg_boundary, rs6000_parm_offset,
3979 rs6000_parm_start, rs6000_arg_size,
3980 rs6000_darwin64_record_arg_advance_flush,
3981 rs6000_darwin64_record_arg_advance_recurse,
3982 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3983 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3984 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3985 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3986 rs6000_finish_function_arg, rs6000_function_arg,
3987 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3988 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3989 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3990 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3991 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3992 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3993 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3994 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3995 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3996 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3997 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3998 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3999 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4000 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4001 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4002 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4003 get_element_number, altivec_expand_vec_set_builtin,
4004 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4005 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4006 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4007 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4008 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4009 rs6000_expand_builtin, rs6000_vector_type,
4010 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4011 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4012 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
4013 to here from rs6000.c.
4014 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
4015 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
4016 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
4017 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
4018 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
4019 rs6000_return_in_memory, rs6000_return_in_msb,
4020 rs6000_pass_by_reference, setup_incoming_varargs,
4021 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
4022 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
4023 rs6000_function_arg_padding, rs6000_function_arg,
4024 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
4025 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
4026 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
4027 rs6000_passes_long_double, rs6000_passes_vector,
4028 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
4029 altivec_builtin_mask_for_load) Add declarations.
4030 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
4031 * config/config.gcc: Add new source file rs6000-call.c to garbage
4032 collector and extra_objs.
4033
4034 2019-07-19 Jeff Law <law@redhat.com>
4035
4036 PR tree-optimization/86061
4037 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4038 strncpy. Drop some trivial dead code.
4039 (maybe_trim_memstar_call): Handle strncpy.
4040
4041 2019-07-19 Richard Biener <rguenther@suse.de>
4042
4043 PR tree-optimization/91211
4044 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4045 memset encoding size.
4046
4047 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4048
4049 PR target/91204
4050 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4051
4052 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4053
4054 PR ipa/91194
4055 * ipa-inline.c (recursive_inlining): Fix limits check.
4056
4057 2019-07-19 Richard Biener <rguenther@suse.de>
4058
4059 PR tree-optimization/91200
4060 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4061 no PHI nodes in middle-bb.
4062
4063 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4064
4065 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4066 to +sve-bitperm.
4067 * config/aarch64/aarch64-option-extensions.def: Likewise.
4068
4069 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4070
4071 PR middle-end/91190
4072 * function.c (insert_temp_slot_address): Store into the hash table
4073 a copy of address to avoid RTL sharing issues.
4074
4075 2019-07-19 Richard Biener <rguenther@suse.de>
4076
4077 PR tree-optimization/91207
4078 Revert
4079 2019-07-17 Richard Biener <rguenther@suse.de>
4080
4081 PR tree-optimization/91178
4082 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4083 loads with a gap larger than the vector size always use
4084 VMAT_STRIDED_SLP.
4085 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4086 avoid loading vectors that are only contained in the gap
4087 and thus are not needed.
4088
4089 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4090
4091 * config/i386/i386.md (*addqi_2_slp): Remove.
4092 (*<code>qi_2_slp): Ditto.
4093
4094 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4095
4096 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4097 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4098 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4099 Rename function from rs6000_prefixed_address.
4100 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4101 TARGET_HAS_TOC.
4102 (TARGET_TOC): Likewise.
4103 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4104 rs6000.h.
4105 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4106 TARGET_HAS_TOC.
4107 (TARGET_TOC): Likewise.
4108 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4109 rs6000.h.
4110 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4111 TARGET_HAS_TOC.
4112 (TARGET_TOC): Likewise.
4113 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4114 check to require -mcmodel=medium for pc-relative addressing.
4115 (create_TOC_reference): Add assertion for TARGET_TOC.
4116 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4117 TARGET_NO_TOC.
4118 (rs6000_emit_move): Likewise.
4119 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4120 to 'TOC_alias_set'.
4121 (get_TOC_alias_set): Likewise.
4122 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4123 TARGET_NO_TOC.
4124 (rs6000_can_eliminate): Likewise.
4125 (rs6000_prefixed_address_mode_p): Rename function from
4126 rs6000_prefixed_address.
4127 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4128 TARGET_HAS_TOC and not pc-relative.
4129 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4130 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4131 TARGET_HAS_TOC.
4132 (TARGET_TOC): Likewise.
4133 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4134 rs6000.h.
4135
4136 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4137
4138 PR target/91188
4139 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4140 for operand 0. Do not use (match_dup) to match operand 1 with
4141 operand 0. Add check in insn constraint that either input operand
4142 matches operand 0. Use SWI12 mode iterator to also handle
4143 HImode operands.
4144 (*and<mode>_1_slp): Ditto.
4145 (*<code>qi_1_slp): Ditto.
4146 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4147 Do not use (match_dup) to match operand 1 with operand 0. Add
4148 check in insn constraint that operand 1 matches operand 0.
4149 Use SWI12 mode iterator to also handle HImode operands.
4150 (*ashl<mode>3_1_slp): Ditto.
4151 (*<shift_insn><mode>3_1_slp): Ditto.
4152 (*<rotate_insn><mode>3_1_slp): Ditto.
4153
4154 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4155
4156 * config/arm/arm-builtins.c
4157 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4158 (arm_expand_unop_builtin): Likewise.
4159 * config/arm/crypto.md
4160 (crypto_sha1h): Convert from define_insn to define_expand.
4161 (crypto_<crypto_pattern>): Likewise.
4162 (crypto_sha1h_lb): New define_insn.
4163 (crypto_<crypto_pattern>_lb): Likewise.
4164
4165 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4166
4167 PR target/90317
4168 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4169 (vsha1cq_u32): Likewise.
4170 (vsha1pq_u32): Likewise.
4171 (vsha1mq_u32): Likewise.
4172 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4173 vec select.
4174 (crypto_sha1c): Correct vec select.
4175 (crypto_sha1m): Likewise.
4176 (crypto_sha1p): Likewise.
4177
4178 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4179
4180 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4181 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4182 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4183 (subdi_zesidi_zesidi): Likewise.
4184 (negdi2_compare, negdi2_insn): Likewise.
4185 (negdi_extensidi): Likewise.
4186 (negdi_zero_extendsidi): Likewise.
4187 (arm_cmpdi_insn): Likewise.
4188 (subsi3_carryin): Use arm_borrow_operation.
4189 (subsi3_carryin_const): Likewise.
4190 (subsi3_carryin_const0): Likewise.
4191 (subsi3_carryin_compare): Likewise.
4192 (subsi3_carryin_compare_const): Likewise.
4193 (subsi3_carryin_compare_const0): Likewise.
4194 (subsi3_carryin_shift): Likewise.
4195 (rsbsi3_carryin_shift): Likewise.
4196 (negsi2_carryin_compare): Likewise.
4197
4198 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4199
4200 PR tree-optimization/91137
4201 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4202 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4203 Init, use and fini the above new field.
4204 (determine_base_object_1): New function.
4205 (determine_base_object): Reimplement using walk_tree.
4206
4207 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4208
4209 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4210 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4211 CLEANUP_FORCE_FAST_DCE is set.
4212 * ifcvt.c (rest_of_handle_if_conversion): Pass
4213 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4214 if-conversion succeeded.
4215
4216 2019-07-18 Richard Biener <rguenther@suse.de>
4217
4218 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4219 branches to make code less indented.
4220
4221 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4222
4223 PR middle-end/81824
4224 * attribs.c (decls_mismatched_attributes): Simplify the logic
4225 that avoids duplicates and false positives.
4226
4227 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4228
4229 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4230 data into data section when generating PIC code.
4231 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4232 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4233 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4234 return 2 for SOM and 0 for other targets.
4235
4236 2019-07-17 Jeff Law <law@redhat.com>
4237
4238 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4239 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4240 avoid unexpected switch statement fallthru.
4241
4242 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4243
4244 * config/i386/i386.md (*add<dwi>3_doubleword):
4245 Remove redundant constraints.
4246 (*add<mode>_1): Ditto.
4247 (*addhi_1): Ditto.
4248 (*addqi_1): Ditto.
4249 (*addqi_1_slp): Ditto.
4250 (*add<mode>_2): Ditto.
4251 (*addv<mode>4): Ditto.
4252 (*sub<dwi>3_doubleword): Ditto.
4253 (*sub<mode>_1): Ditto.
4254 (*subqi_1_slp): Ditto.
4255 (*sub<mode>_2): Ditto.
4256 (*subv<mode>4): Ditto.
4257 (*sub<mode>_3): Ditto.
4258 (@add<mode>3_carry): Ditto.
4259 (@sub<mode>3_carry): Ditto.
4260 (*add<mode>3_cc_overflow_1): Ditto.
4261 (*add<mode>3_zext_cc_overflow_2): Ditto.
4262 (*anddi_1): Ditto.
4263 (*and<mode>_1): Ditto.
4264 (*andqi_1): Ditto.
4265 (*andqi_1_slp): Ditto.
4266 (*anddi_2): Ditto.
4267 (*andqi_2_maybe_si): Ditto.
4268 (*and<mode>_2): Ditto.
4269 (*andqi_2_slp): Ditto.
4270 (*<code><mode>_1): Ditto.
4271 (*<code>qi_1): Ditto.
4272 (*<code>qi_1_slp): Ditto.
4273 (*<code><mode>_2): Ditto.
4274 (*<code>qi_2_slp): Ditto.
4275
4276 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4277
4278 * alias.c (record_component_aliases): Do not simplify pointed-to
4279 types of ODR types.
4280
4281 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4282
4283 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4284 partial reg stall on alternative 2.
4285
4286 2019-07-17 Richard Biener <rguenther@suse.de>
4287
4288 PR tree-optimization/91178
4289 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4290 lower SSA names to avoid quadratic behavior in the common case.
4291 * tree-data-ref.c (split_constant_offset): Add limit argument
4292 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4293 (split_constant_offset_1): Add limit argument and use it to
4294 limit SSA def walking. Optimize the common plus/minus case.
4295
4296 2019-07-17 Richard Biener <rguenther@suse.de>
4297
4298 PR tree-optimization/91178
4299 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4300 loads with a gap larger than the vector size always use
4301 VMAT_STRIDED_SLP.
4302 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4303 avoid loading vectors that are only contained in the gap
4304 and thus are not needed.
4305
4306 2019-07-17 Richard Biener <rguenther@suse.de>
4307
4308 PR tree-optimization/91180
4309 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4310 computation for memset partial defs.
4311
4312 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4313
4314 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4315 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4316 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4317 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4318 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4319 * omp-grid.c (grid_process_grid_body,
4320 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4321 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4322 == GF_OMP_FOR_KIND_SIMD.
4323 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4324 check_omp_nesting_restrictions, scan_omp_1_stmt,
4325 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4326 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4327 omp_find_scan): Likewise.
4328 * omp-expand.c (expand_omp_for): Likewise.
4329 * omp-general.c (omp_extract_for_data): Likewise.
4330
4331 PR tree-optimization/91157
4332 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4333 a vector boolean with scalar mode.
4334 (expand_vector_condition): Handle first operand being a vector boolean
4335 with scalar mode.
4336 (expand_vector_operations_1): For comparisons, don't bail out early
4337 if the return type is vector boolean with scalar mode, but comparison
4338 operand type is not.
4339
4340 2019-07-17 Richard Biener <rguenther@suse.de>
4341
4342 PR tree-optimization/91181
4343 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4344 IFN_LOADs as calls.
4345
4346 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4347
4348 * config/i386/i386.md (*testdi_1): Match CCZmode for
4349 constants that might have the SImode sign bit set.
4350 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4351 Use correct constraints for pentium pairing.
4352 (*test<mode>_1): Ditto.
4353
4354 2019-07-16 Jeff Law <law@redhat.com>
4355
4356 PR rtl-optimization/91173
4357 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4358 SSA_NAME with a constant value, fold its value into the offset
4359 and clear the base before calling gen_addr_rtx.
4360
4361 2019-07-16 Jakub Jelinek <jakub@redhat.com>
4362
4363 PR rtl-optimization/91164
4364 * dse.c (rest_of_handle_dse): If dead edges have been purged,
4365 invalidate dominance info.
4366
4367 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4368
4369 * read-md.h (md_reader::record_potential_iterator_use): Add a
4370 file_location parameter.
4371 * read-rtl.c (attribute_use::loc): New field.
4372 (map_attr_string): Take a file_location parameter. Report cases
4373 in which attributes map to multiple distinct values.
4374 (apply_attribute_uses): Update call accordingly.
4375 (md_reader::handle_overloaded_name): Likewise.
4376 (md_reader::apply_iterator_to_string): Likewise. Skip empty
4377 nonnull strings.
4378 (record_attribute_use): Take a file_location parameter.
4379 Initialize attribute_use::loc.
4380 (md_reader::record_potential_iterator_use): Take a file_location
4381 parameter. Update call to record_attribute_use.
4382 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
4383 (rtx_reader::read_rtx_code): Likewise.
4384 (rtx_reader::read_rtx_operand): Likewise. Record a location
4385 for implicitly-expanded empty strings.
4386
4387 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4388
4389 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
4390 Use file_location instead of separate fields.
4391 (md_reader::set_md_ptr_loc): Take a file_location instead of a
4392 separate filename and line number.
4393 * read-md.c (ptr_loc): As above.
4394 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
4395 (md_reader::fprint_md_ptr_loc): Likewise.
4396 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
4397 instead of a separate filename and line number.
4398 (md_reader::read_string): Update call accordingly.
4399
4400 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4401
4402 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4403 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
4404 leaving the choice between SFDF and P implicit.
4405 (*mov<mode>_update2): Likewise.
4406 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
4407 rather than leaving the choice betweem IBM128 and GPR implicit.
4408 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
4409 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
4410 QHSI implicit.
4411 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
4412 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
4413 * config/rs6000/vsx.md
4414 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
4415 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
4416 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
4417 and VSX_EXTRACT_I implicit.
4418
4419 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4420
4421 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
4422 Explicitly use <MOVEP1:MODE> for the mode attribute.
4423
4424 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
4425
4426 PR bootstrap/91176
4427 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
4428
4429 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
4430
4431 PR target/91050
4432 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
4433 .machine directive.
4434
4435 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
4436
4437 * config/i386/i386.md (@test<mode>_ccno_1):
4438 Rename from test<mode>_ccno_1.
4439 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
4440 (*testqi_1_maybe_si): Remove modrm attribute.
4441 (*test<mode>_1): Ditto.
4442 * config/i386/i386-expand.c (ix86_split_idivmod): Use
4443 gen_test_ccno_1 and gen_extend_insn.
4444
4445 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
4446
4447 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
4448 to 0.
4449
4450 2019-07-15 Richard Biener <rguenther@suse.de>
4451
4452 PR middle-end/91162
4453 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
4454 node make sure to replace all uses with something valid.
4455
4456 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
4457
4458 PR tree-optimization/88497
4459 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
4460 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
4461 function undistribute_bitref_for_vector.
4462 (undistribute_bitref_for_vector): New function.
4463 (cleanup_vinfo_map): Likewise.
4464 (sort_by_mach_mode): Likewise.
4465
4466 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
4467
4468 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
4469 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
4470 and testdi_ccno_1 using SWI48 mode attribute.
4471 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
4472 x86_64_szext_general_operand.
4473 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
4474 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
4475 instead of genera_operand mode attribute.
4476
4477 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
4478
4479 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
4480 fopen and fclose to their respective types.
4481 (DotFn.invoke): Ditto.
4482
4483 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
4484
4485 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
4486 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
4487 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
4488 (array_index_predicate): Remove.
4489 (analyze_function_body): Account cost for variable ofsetted array
4490 indexing.
4491 (estimate_node_size_and_time): Do not compute array index hint.
4492 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
4493 (inline_read_section): Do not read array index hint.
4494 (ipa_fn_summary_write): Do not write array index hint.
4495 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
4496 * ipa-cp.c (hint_time_bonus): Remove.
4497 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
4498 (ipa_fnsummary): Remove array_index.
4499 * ipa-inline.c (want_inline_small_function_p): Do not use
4500 array_index.
4501 (edge_badness): Likewise.
4502 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
4503
4504 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
4505
4506 PR target/91148
4507 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
4508 superfluous "builtin function" phrasing.
4509
4510 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
4511
4512 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
4513 Break out from ...
4514 (aliasing_component_refs_walk): Break out from ...
4515 (aliasing_component_refs_p): ... here.
4516
4517 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
4518
4519 PR target/91148
4520 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
4521 "builtin function" phrasing.
4522
4523 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4524
4525 PR target/90723
4526 * recog.h (temporary_volatile_ok): New class.
4527 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
4528 volatile_ok temporarily to true using temporary_volatile_ok.
4529 * expr.c (emit_block_move_via_cpymem): Likewise.
4530 * optabs.c (maybe_legitimize_operand): Likewise.
4531
4532 2019-07-13 Jakub Jelinek <jakub@redhat.com>
4533
4534 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
4535 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
4536 uses inside of order(concurrent) constructs.
4537 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
4538 OMP_CLAUSE_ORDER is seen.
4539 * omp-low.c (struct omp_context): Add order_concurrent member.
4540 (scan_sharing_clauses): Set ctx->order_concurrent if
4541 OMP_CLAUSE_ORDER is seen.
4542 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
4543 of simd order(concurrent). Diagnose constructs not allowed inside of
4544 for order(concurrent).
4545 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
4546 complaining about static double setjmp (double); or class static
4547 methods or non-global namespace setjmps.
4548 (omp_runtime_api_call): New function.
4549 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
4550 order(concurrent) loops.
4551
4552 2019-07-12 Martin Sebor <msebor@redhat.com>
4553
4554 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
4555 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
4556 * tree-vrp.c (vrp_prop::check_mem_ref): Use
4557 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4558
4559 2019-07-12 Jan Hubicka <jh@suse.cz>
4560
4561 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
4562 (indirect_refs_may_alias_p): ... here.
4563 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
4564 mem refs in the access paths.
4565
4566 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
4567
4568 PR tree-optimization/89430
4569 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
4570 store elimination for local variable without address escape.
4571
4572 2019-07-12 Jeff Law <law@redhat.com>
4573
4574 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
4575 for the ".far" section.
4576
4577 2019-07-12 Richard Biener <rguenther@suse.de>
4578
4579 PR tree-optimization/91145
4580 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
4581 chain check.
4582
4583 2019-07-12 Alexandre Oliva <oliva@adacore.com>
4584
4585 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
4586 rather than this_state as the lowering context for the ELSE
4587 seq in a GIMPLE_EH_ELSE.
4588
4589 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4590
4591 * vector-builder.h (vector_builder::elt): Allow already-supplied
4592 elements to be read back before building is complete.
4593
4594 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4595
4596 PR rtl-optimization/91136
4597 * df-core.c (ACCESSING REFS): Fix typos in comment.
4598 * resource.c (mark_target_live_reg): Add artificial defs that occur at
4599 the beginning of the block to the initial set of live registers.
4600
4601 2019-07-12 Richard Biener <rguenther@suse.de>
4602
4603 * fold-const.h (get_array_ctor_element_at_index): Adjust.
4604 * fold-const.c (get_array_ctor_element_at_index): Add
4605 ctor_idx output parameter informing the caller where in
4606 the constructor the element was (not) found. Add early exit
4607 for when the ctor is sorted.
4608 * gimple-fold.c (fold_array_ctor_reference): Support constant
4609 folding across multiple array elements.
4610
4611 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4612
4613 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
4614 doesn't have location, set the current location to the function's end.
4615
4616 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4617
4618 * config/aarch64/aarch64.md (*compare_condjump<mode>)
4619 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
4620 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
4621 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
4622 * config/aarch64/aarch64-simd.md
4623 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
4624 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
4625 * config/aarch64/aarch64-sve.md
4626 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
4627 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
4628
4629 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4630
4631 * doc/md.texi: Document that @ patterns can have different
4632 numbers of operands.
4633 * genemit.c (handle_overloaded_gen): Handle this case.
4634 * genopinit.c (handle_overloaded_gen): Likewise.
4635 * gensupport.c (replace_operands_with_dups): Iterate over
4636 the new rtx's format rather than the old one's.
4637
4638 2019-07-12 Jakub Jelinek <jakub@redhat.com>
4639
4640 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
4641 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4642 order clause entries.
4643 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
4644 * tree-pretty-print.c (dump_omp_clause): Likewise.
4645 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4646 Likewise.
4647 * omp-low.c (scan_sharing_clauses): Likewise.
4648 * tree-nested.c (convert_nonlocal_omp_clauses,
4649 convert_local_omp_clauses): Likewise.
4650
4651 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
4652
4653 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
4654 fallthrough target of current basic block isn't the placed
4655 right next.
4656
4657 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
4658
4659 PR target/90980
4660 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
4661 (_mm512_storeu_epi64): Likewise.
4662 (_mm512_loadu_epi32): Likewise.
4663 (_mm512_storeu_epi32): Likewise.
4664 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
4665 (_mm_storeu_epi64): Likewise.
4666 (_mm256_storeu_epi32): Likewise.
4667 (_mm_storeu_epi32): Likewise.
4668
4669 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4670
4671 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
4672
4673 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4674
4675 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
4676 Handle Modula-2.
4677
4678 2019-07-11 Jakub Jelinek <jakub@redhat.com>
4679
4680 PR target/91124
4681 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
4682 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4683 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
4684 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
4685 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
4686 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
4687 define_insns.
4688 (ufix_truncv2dfv2si2<mask_name>): Change into ...
4689 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
4690 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
4691 define_insns.
4692 (sse2_cvttpd2dq<mask_name>): Change into ...
4693 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
4694 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
4695 (*sse2_cvtpd2dq<mask_name>): Change into ...
4696 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4697 Add "C" constraint to const0_operand.
4698 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
4699 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
4700 changes.
4701
4702 PR target/91124
4703 * config/i386/i386-builtin-types.def
4704 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
4705 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
4706 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
4707 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
4708 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
4709 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
4710 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
4711 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
4712 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
4713 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
4714 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
4715 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
4716 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
4717 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
4718 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
4719 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
4720 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
4721 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
4722 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
4723 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
4724 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
4725 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
4726 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
4727 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
4728 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
4729 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
4730 __builtin_ia32_vpdpbusd_v4si_maskz,
4731 __builtin_ia32_vpdpbusds_v16si_mask,
4732 __builtin_ia32_vpdpbusds_v16si_maskz,
4733 __builtin_ia32_vpdpbusds_v8si_mask,
4734 __builtin_ia32_vpdpbusds_v8si_maskz,
4735 __builtin_ia32_vpdpbusds_v4si_mask,
4736 __builtin_ia32_vpdpbusds_v4si_maskz,
4737 __builtin_ia32_vpdpwssd_v16si_mask,
4738 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
4739 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
4740 __builtin_ia32_vpdpwssd_v4si_maskz,
4741 __builtin_ia32_vpdpwssds_v16si_mask,
4742 __builtin_ia32_vpdpwssds_v16si_maskz,
4743 __builtin_ia32_vpdpwssds_v8si_mask,
4744 __builtin_ia32_vpdpwssds_v8si_maskz,
4745 __builtin_ia32_vpdpwssds_v4si_mask,
4746 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
4747 suffixed types rather than *_INT.
4748 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
4749 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
4750 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
4751 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
4752 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
4753 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
4754
4755 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
4756
4757 * tree-vrp.c (intersect_ranges): If we know the intersection is
4758 empty, there is no need to conservatively add anything else to
4759 the set.
4760
4761 2019-07-11 Richard Biener <rguenther@suse.de>
4762
4763 PR middle-end/91131
4764 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
4765 when the object is volatile and we have not cleared it even though
4766 there are no nonzero elements.
4767
4768 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
4769
4770 * config/rs6000/predicates.md (cint34_operand): Update
4771 SIGNED_34BIT_OFFSET_P call.
4772 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
4773 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
4774 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
4775 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
4776 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
4777 argument.
4778 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
4779 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
4780 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
4781 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
4782 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
4783
4784 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
4785
4786 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
4787 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
4788 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
4789 (DEF_MIN_OSX_VERSION): New.
4790
4791 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4792
4793 * fold-const.c (fold_relational_const): Fix folding of
4794 vector-to-scalar NE_EXPRs.
4795 (test_vector_folding): Add more tests.
4796
4797 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4798
4799 PR target/91060
4800 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
4801 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
4802 (vec_setv2di_internal): Reexpress as...
4803 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
4804 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
4805 rather than gen_neon_vset_lane<mode>.
4806
4807 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
4808
4809 PR target/91102
4810 * lra-constraints.c (process_alt_operands): Don't match user
4811 defined regs only if they are early clobbers.
4812
4813 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
4814
4815 * wide-int.h (wi::lshift): Reject negative values for the fast path.
4816
4817 2019-07-10 Richard Biener <rguenther@suse.de>
4818
4819 PR tree-optimization/91126
4820 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
4821 native encoding offset for BYTES_BIG_ENDIAN.
4822 (vn_reference_lookup_3): Likewise.
4823
4824 2019-07-10 Richard Biener <rguenther@suse.de>
4825
4826 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
4827 LHS whenever possible.
4828
4829 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
4830
4831 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
4832 from ...; work also on duplicated types.
4833 (nonoverlapping_component_refs_since_match): ... here
4834 (ncr_type_uid): Break out from ...
4835 (ncr_compar): ... here; look for TYPE_UID of canonical type if
4836 available.
4837 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
4838 the types and nonoverlapping_component_refs_p_1 to disambiguate.
4839
4840 2019-07-09 Martin Sebor <msebor@redhat.com>
4841
4842 PR tree-optimization/90989
4843 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
4844 optimization to just single character stores.
4845
4846 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
4847
4848 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
4849 Swap operands only once.
4850
4851 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4852
4853 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
4854 for both call instructions.
4855
4856 2019-07-09 John Darrington <john@darrington.wattle.id.au>
4857
4858 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
4859 rather than GET_MODE_BITSIZE to better handle partial integer modes.
4860
4861 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
4862
4863 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
4864 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
4865 function from rs6000-logue.c back to rs6000.c.
4866 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
4867
4868 2019-07-09 Martin Sebor <msebor@redhat.com>
4869
4870 PR c++/61339
4871 * auto-profile.c: Change class-key of PODs to struct and others
4872 to class.
4873 * basic-block.h: Same.
4874 * bitmap.c (bitmap_alloc): Same.
4875 * bitmap.h: Same.
4876 * builtins.c (expand_builtin_prefetch): Same.
4877 (expand_builtin_interclass_mathfn): Same.
4878 (expand_builtin_strlen): Same.
4879 (expand_builtin_mempcpy_args): Same.
4880 (expand_cmpstr): Same.
4881 (expand_builtin___clear_cache): Same.
4882 (expand_ifn_atomic_bit_test_and): Same.
4883 (expand_builtin_thread_pointer): Same.
4884 (expand_builtin_set_thread_pointer): Same.
4885 * caller-save.c (setup_save_areas): Same.
4886 (replace_reg_with_saved_mem): Same.
4887 (insert_restore): Same.
4888 (insert_save): Same.
4889 (add_used_regs): Same.
4890 * cfg.c (get_bb_copy): Same.
4891 (set_loop_copy): Same.
4892 * cfg.h: Same.
4893 * cfganal.h: Same.
4894 * cfgexpand.c (alloc_stack_frame_space): Same.
4895 (add_stack_var): Same.
4896 (add_stack_var_conflict): Same.
4897 (add_scope_conflicts_1): Same.
4898 (update_alias_info_with_stack_vars): Same.
4899 (expand_used_vars): Same.
4900 * cfghooks.c (redirect_edge_and_branch_force): Same.
4901 (delete_basic_block): Same.
4902 (split_edge): Same.
4903 (make_forwarder_block): Same.
4904 (force_nonfallthru): Same.
4905 (duplicate_block): Same.
4906 (lv_flush_pending_stmts): Same.
4907 * cfghooks.h: Same.
4908 * cfgloop.c (flow_loops_cfg_dump): Same.
4909 (flow_loop_nested_p): Same.
4910 (superloop_at_depth): Same.
4911 (get_loop_latch_edges): Same.
4912 (flow_loop_dump): Same.
4913 (flow_loops_dump): Same.
4914 (flow_loops_free): Same.
4915 (flow_loop_nodes_find): Same.
4916 (establish_preds): Same.
4917 (flow_loop_tree_node_add): Same.
4918 (flow_loop_tree_node_remove): Same.
4919 (flow_loops_find): Same.
4920 (find_subloop_latch_edge_by_profile): Same.
4921 (find_subloop_latch_edge_by_ivs): Same.
4922 (mfb_redirect_edges_in_set): Same.
4923 (form_subloop): Same.
4924 (merge_latch_edges): Same.
4925 (disambiguate_multiple_latches): Same.
4926 (disambiguate_loops_with_multiple_latches): Same.
4927 (flow_bb_inside_loop_p): Same.
4928 (glb_enum_p): Same.
4929 (get_loop_body_with_size): Same.
4930 (get_loop_body): Same.
4931 (fill_sons_in_loop): Same.
4932 (get_loop_body_in_dom_order): Same.
4933 (get_loop_body_in_custom_order): Same.
4934 (release_recorded_exits): Same.
4935 (get_loop_exit_edges): Same.
4936 (num_loop_branches): Same.
4937 (remove_bb_from_loops): Same.
4938 (find_common_loop): Same.
4939 (delete_loop): Same.
4940 (cancel_loop): Same.
4941 (verify_loop_structure): Same.
4942 (loop_preheader_edge): Same.
4943 (loop_exit_edge_p): Same.
4944 (single_exit): Same.
4945 (loop_exits_to_bb_p): Same.
4946 (loop_exits_from_bb_p): Same.
4947 (get_loop_location): Same.
4948 (record_niter_bound): Same.
4949 (get_estimated_loop_iterations_int): Same.
4950 (max_stmt_executions_int): Same.
4951 (likely_max_stmt_executions_int): Same.
4952 (get_estimated_loop_iterations): Same.
4953 (get_max_loop_iterations): Same.
4954 (get_max_loop_iterations_int): Same.
4955 (get_likely_max_loop_iterations): Same.
4956 * cfgloop.h (simple_loop_desc): Same.
4957 (get_loop): Same.
4958 (loop_depth): Same.
4959 (loop_outer): Same.
4960 (loop_iterator::next): Same.
4961 (loop_outermost): Same.
4962 * cfgloopanal.c (mark_irreducible_loops): Same.
4963 (num_loop_insns): Same.
4964 (average_num_loop_insns): Same.
4965 (expected_loop_iterations_unbounded): Same.
4966 (expected_loop_iterations): Same.
4967 (mark_loop_exit_edges): Same.
4968 (single_likely_exit): Same.
4969 * cfgloopmanip.c (fix_bb_placement): Same.
4970 (fix_bb_placements): Same.
4971 (remove_path): Same.
4972 (place_new_loop): Same.
4973 (add_loop): Same.
4974 (scale_loop_frequencies): Same.
4975 (scale_loop_profile): Same.
4976 (create_empty_if_region_on_edge): Same.
4977 (create_empty_loop_on_edge): Same.
4978 (loopify): Same.
4979 (unloop): Same.
4980 (fix_loop_placements): Same.
4981 (copy_loop_info): Same.
4982 (duplicate_loop): Same.
4983 (duplicate_subloops): Same.
4984 (loop_redirect_edge): Same.
4985 (can_duplicate_loop_p): Same.
4986 (duplicate_loop_to_header_edge): Same.
4987 (mfb_keep_just): Same.
4988 (has_preds_from_loop): Same.
4989 (create_preheader): Same.
4990 (create_preheaders): Same.
4991 (lv_adjust_loop_entry_edge): Same.
4992 (loop_version): Same.
4993 * cfgloopmanip.h: Same.
4994 * cgraph.h: Same.
4995 * cgraphbuild.c: Same.
4996 * combine.c (make_extraction): Same.
4997 * config/i386/i386-features.c: Same.
4998 * config/i386/i386-features.h: Same.
4999 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
5000 (ix86_emit_outlined_ms2sysv_restore): Same.
5001 (ix86_noce_conversion_profitable_p): Same.
5002 (ix86_init_cost): Same.
5003 (ix86_simd_clone_usable): Same.
5004 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
5005 Wstruct-not-pod.
5006 * coretypes.h: Same.
5007 * data-streamer-in.c (string_for_index): Change class-key of PODs
5008 to struct and others to class.
5009 (streamer_read_indexed_string): Same.
5010 (streamer_read_string): Same.
5011 (bp_unpack_indexed_string): Same.
5012 (bp_unpack_string): Same.
5013 (streamer_read_uhwi): Same.
5014 (streamer_read_hwi): Same.
5015 (streamer_read_gcov_count): Same.
5016 (streamer_read_wide_int): Same.
5017 * data-streamer.h (streamer_write_bitpack): Same.
5018 (bp_unpack_value): Same.
5019 (streamer_write_char_stream): Same.
5020 (streamer_write_hwi_in_range): Same.
5021 (streamer_write_record_start): Same.
5022 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
5023 (add_cross_iteration_register_deps): Same.
5024 (build_intra_loop_deps): Same.
5025 * df-core.c (df_analyze): Same.
5026 (loop_post_order_compute): Same.
5027 (loop_inverted_post_order_compute): Same.
5028 * df-problems.c (df_rd_alloc): Same.
5029 (df_rd_simulate_one_insn): Same.
5030 (df_rd_local_compute): Same.
5031 (df_rd_init_solution): Same.
5032 (df_rd_confluence_n): Same.
5033 (df_rd_transfer_function): Same.
5034 (df_rd_free): Same.
5035 (df_rd_dump_defs_set): Same.
5036 (df_rd_top_dump): Same.
5037 (df_lr_alloc): Same.
5038 (df_lr_reset): Same.
5039 (df_lr_local_compute): Same.
5040 (df_lr_init): Same.
5041 (df_lr_confluence_n): Same.
5042 (df_lr_free): Same.
5043 (df_lr_top_dump): Same.
5044 (df_lr_verify_transfer_functions): Same.
5045 (df_live_alloc): Same.
5046 (df_live_reset): Same.
5047 (df_live_init): Same.
5048 (df_live_confluence_n): Same.
5049 (df_live_finalize): Same.
5050 (df_live_free): Same.
5051 (df_live_top_dump): Same.
5052 (df_live_verify_transfer_functions): Same.
5053 (df_mir_alloc): Same.
5054 (df_mir_reset): Same.
5055 (df_mir_init): Same.
5056 (df_mir_confluence_n): Same.
5057 (df_mir_free): Same.
5058 (df_mir_top_dump): Same.
5059 (df_word_lr_alloc): Same.
5060 (df_word_lr_reset): Same.
5061 (df_word_lr_init): Same.
5062 (df_word_lr_confluence_n): Same.
5063 (df_word_lr_free): Same.
5064 (df_word_lr_top_dump): Same.
5065 (df_md_alloc): Same.
5066 (df_md_simulate_one_insn): Same.
5067 (df_md_reset): Same.
5068 (df_md_init): Same.
5069 (df_md_free): Same.
5070 (df_md_top_dump): Same.
5071 * df-scan.c (df_insn_delete): Same.
5072 (df_insn_rescan): Same.
5073 (df_notes_rescan): Same.
5074 (df_sort_and_compress_mws): Same.
5075 (df_install_mws): Same.
5076 (df_refs_add_to_chains): Same.
5077 (df_ref_create_structure): Same.
5078 (df_ref_record): Same.
5079 (df_def_record_1): Same.
5080 (df_find_hard_reg_defs): Same.
5081 (df_uses_record): Same.
5082 (df_get_conditional_uses): Same.
5083 (df_get_call_refs): Same.
5084 (df_recompute_luids): Same.
5085 (df_get_entry_block_def_set): Same.
5086 (df_entry_block_defs_collect): Same.
5087 (df_get_exit_block_use_set): Same.
5088 (df_exit_block_uses_collect): Same.
5089 (df_mws_verify): Same.
5090 (df_bb_verify): Same.
5091 * df.h (df_scan_get_bb_info): Same.
5092 * doc/tm.texi: Same.
5093 * dse.c (record_store): Same.
5094 * dumpfile.h: Same.
5095 * emit-rtl.c (const_fixed_hasher::equal): Same.
5096 (set_mem_attributes_minus_bitpos): Same.
5097 (change_address): Same.
5098 (adjust_address_1): Same.
5099 (offset_address): Same.
5100 * emit-rtl.h: Same.
5101 * except.c (dw2_build_landing_pads): Same.
5102 (sjlj_emit_dispatch_table): Same.
5103 * explow.c (allocate_dynamic_stack_space): Same.
5104 (emit_stack_probe): Same.
5105 (probe_stack_range): Same.
5106 * expmed.c (store_bit_field_using_insv): Same.
5107 (store_bit_field_1): Same.
5108 (store_integral_bit_field): Same.
5109 (extract_bit_field_using_extv): Same.
5110 (extract_bit_field_1): Same.
5111 (emit_cstore): Same.
5112 * expr.c (emit_block_move_via_cpymem): Same.
5113 (expand_cmpstrn_or_cmpmem): Same.
5114 (set_storage_via_setmem): Same.
5115 (emit_single_push_insn_1): Same.
5116 (expand_assignment): Same.
5117 (store_constructor): Same.
5118 (expand_expr_real_2): Same.
5119 (expand_expr_real_1): Same.
5120 (try_casesi): Same.
5121 * flags.h: Same.
5122 * function.c (try_fit_stack_local): Same.
5123 (assign_stack_local_1): Same.
5124 (assign_stack_local): Same.
5125 (cut_slot_from_list): Same.
5126 (insert_slot_to_list): Same.
5127 (max_slot_level): Same.
5128 (move_slot_to_level): Same.
5129 (temp_address_hasher::equal): Same.
5130 (remove_unused_temp_slot_addresses): Same.
5131 (assign_temp): Same.
5132 (combine_temp_slots): Same.
5133 (update_temp_slot_address): Same.
5134 (preserve_temp_slots): Same.
5135 * function.h: Same.
5136 * fwprop.c: Same.
5137 * gcc-rich-location.h: Same.
5138 * gcov.c: Same.
5139 * genattrtab.c (check_attr_test): Same.
5140 (check_attr_value): Same.
5141 (convert_set_attr_alternative): Same.
5142 (convert_set_attr): Same.
5143 (check_defs): Same.
5144 (copy_boolean): Same.
5145 (get_attr_value): Same.
5146 (expand_delays): Same.
5147 (make_length_attrs): Same.
5148 (min_fn): Same.
5149 (make_alternative_compare): Same.
5150 (simplify_test_exp): Same.
5151 (tests_attr_p): Same.
5152 (get_attr_order): Same.
5153 (clear_struct_flag): Same.
5154 (gen_attr): Same.
5155 (compares_alternatives_p): Same.
5156 (gen_insn): Same.
5157 (gen_delay): Same.
5158 (find_attrs_to_cache): Same.
5159 (write_test_expr): Same.
5160 (walk_attr_value): Same.
5161 (write_attr_get): Same.
5162 (eliminate_known_true): Same.
5163 (write_insn_cases): Same.
5164 (write_attr_case): Same.
5165 (write_attr_valueq): Same.
5166 (write_attr_value): Same.
5167 (write_dummy_eligible_delay): Same.
5168 (next_comma_elt): Same.
5169 (find_attr): Same.
5170 (make_internal_attr): Same.
5171 (copy_rtx_unchanging): Same.
5172 (gen_insn_reserv): Same.
5173 (check_tune_attr): Same.
5174 (make_automaton_attrs): Same.
5175 (handle_arg): Same.
5176 * genextract.c (gen_insn): Same.
5177 (VEC_char_to_string): Same.
5178 * genmatch.c (print_operand): Same.
5179 (lower): Same.
5180 (parser::parse_operation): Same.
5181 (parser::parse_capture): Same.
5182 (parser::parse_c_expr): Same.
5183 (parser::parse_simplify): Same.
5184 (main): Same.
5185 * genoutput.c (output_operand_data): Same.
5186 (output_get_insn_name): Same.
5187 (compare_operands): Same.
5188 (place_operands): Same.
5189 (process_template): Same.
5190 (validate_insn_alternatives): Same.
5191 (validate_insn_operands): Same.
5192 (gen_expand): Same.
5193 (note_constraint): Same.
5194 * genpreds.c (write_one_predicate_function): Same.
5195 (add_constraint): Same.
5196 (process_define_register_constraint): Same.
5197 (write_lookup_constraint_1): Same.
5198 (write_lookup_constraint_array): Same.
5199 (write_insn_constraint_len): Same.
5200 (write_reg_class_for_constraint_1): Same.
5201 (write_constraint_satisfied_p_array): Same.
5202 * genrecog.c (optimize_subroutine_group): Same.
5203 * gensupport.c (process_define_predicate): Same.
5204 (queue_pattern): Same.
5205 (remove_from_queue): Same.
5206 (process_rtx): Same.
5207 (is_predicable): Same.
5208 (change_subst_attribute): Same.
5209 (subst_pattern_match): Same.
5210 (alter_constraints): Same.
5211 (alter_attrs_for_insn): Same.
5212 (shift_output_template): Same.
5213 (alter_output_for_subst_insn): Same.
5214 (process_one_cond_exec): Same.
5215 (subst_dup): Same.
5216 (process_define_cond_exec): Same.
5217 (mnemonic_htab_callback): Same.
5218 (gen_mnemonic_attr): Same.
5219 (read_md_rtx): Same.
5220 * ggc-page.c: Same.
5221 * gimple-loop-interchange.cc (dump_reduction): Same.
5222 (dump_induction): Same.
5223 (loop_cand::~loop_cand): Same.
5224 (free_data_refs_with_aux): Same.
5225 (tree_loop_interchange::interchange_loops): Same.
5226 (tree_loop_interchange::map_inductions_to_loop): Same.
5227 (tree_loop_interchange::move_code_to_inner_loop): Same.
5228 (compute_access_stride): Same.
5229 (compute_access_strides): Same.
5230 (proper_loop_form_for_interchange): Same.
5231 (tree_loop_interchange_compute_ddrs): Same.
5232 (prune_datarefs_not_in_loop): Same.
5233 (prepare_data_references): Same.
5234 (pass_linterchange::execute): Same.
5235 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5236 (unroll_jam_possible_p): Same.
5237 (fuse_loops): Same.
5238 (adjust_unroll_factor): Same.
5239 (tree_loop_unroll_and_jam): Same.
5240 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5241 (loop_versioning::expensive_stmt_p): Same.
5242 (loop_versioning::version_for_unity): Same.
5243 (loop_versioning::dump_inner_likelihood): Same.
5244 (loop_versioning::find_per_loop_multiplication): Same.
5245 (loop_versioning::analyze_term_using_scevs): Same.
5246 (loop_versioning::record_address_fragment): Same.
5247 (loop_versioning::analyze_expr): Same.
5248 (loop_versioning::analyze_blocks): Same.
5249 (loop_versioning::prune_conditions): Same.
5250 (loop_versioning::merge_loop_info): Same.
5251 (loop_versioning::add_loop_to_queue): Same.
5252 (loop_versioning::decide_whether_loop_is_versionable): Same.
5253 (loop_versioning::make_versioning_decisions): Same.
5254 (loop_versioning::implement_versioning_decisions): Same.
5255 * gimple-ssa-evrp-analyze.c
5256 (evrp_range_analyzer::record_ranges_from_phis): Same.
5257 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5258 (count_multiple_uses): Same.
5259 (split_group): Same.
5260 (imm_store_chain_info::output_merged_store): Same.
5261 (pass_store_merging::process_store): Same.
5262 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5263 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5264 (is_max): Same.
5265 (alloca_call_type): Same.
5266 (pass_walloca::execute): Same.
5267 * gimple-streamer-in.c (input_phi): Same.
5268 (input_gimple_stmt): Same.
5269 * gimple-streamer.h: Same.
5270 * godump.c (go_force_record_alignment): Same.
5271 (go_format_type): Same.
5272 (go_output_type): Same.
5273 (go_output_fndecl): Same.
5274 (go_output_typedef): Same.
5275 (keyword_hash_init): Same.
5276 (find_dummy_types): Same.
5277 * graph.c (draw_cfg_nodes_no_loops): Same.
5278 (draw_cfg_nodes_for_loop): Same.
5279 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5280 * hsa-brig.c: Same.
5281 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5282 * hsa-dump.c (dump_hsa_cfun): Same.
5283 * hsa-gen.c (gen_function_def_parameters): Same.
5284 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5285 * input.c (dump_line_table_statistics): Same.
5286 (test_lexer): Same.
5287 * input.h: Same.
5288 * internal-fn.c (get_multi_vector_move): Same.
5289 (expand_load_lanes_optab_fn): Same.
5290 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5291 (expand_GOMP_SIMT_EXIT): Same.
5292 (expand_GOMP_SIMT_LAST_LANE): Same.
5293 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5294 (expand_GOMP_SIMT_VOTE_ANY): Same.
5295 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5296 (expand_GOMP_SIMT_XCHG_IDX): Same.
5297 (expand_addsub_overflow): Same.
5298 (expand_neg_overflow): Same.
5299 (expand_mul_overflow): Same.
5300 (expand_call_mem_ref): Same.
5301 (expand_mask_load_optab_fn): Same.
5302 (expand_scatter_store_optab_fn): Same.
5303 (expand_gather_load_optab_fn): Same.
5304 * ipa-cp.c (ipa_get_parm_lattices): Same.
5305 (print_all_lattices): Same.
5306 (ignore_edge_p): Same.
5307 (build_toporder_info): Same.
5308 (free_toporder_info): Same.
5309 (push_node_to_stack): Same.
5310 (ipcp_lattice<valtype>::set_contains_variable): Same.
5311 (set_agg_lats_to_bottom): Same.
5312 (ipcp_bits_lattice::meet_with): Same.
5313 (set_single_call_flag): Same.
5314 (initialize_node_lattices): Same.
5315 (ipa_get_jf_ancestor_result): Same.
5316 (ipcp_verify_propagated_values): Same.
5317 (propagate_scalar_across_jump_function): Same.
5318 (propagate_context_across_jump_function): Same.
5319 (propagate_bits_across_jump_function): Same.
5320 (ipa_vr_operation_and_type_effects): Same.
5321 (propagate_vr_across_jump_function): Same.
5322 (set_check_aggs_by_ref): Same.
5323 (set_chain_of_aglats_contains_variable): Same.
5324 (merge_aggregate_lattices): Same.
5325 (agg_pass_through_permissible_p): Same.
5326 (propagate_aggs_across_jump_function): Same.
5327 (call_passes_through_thunk_p): Same.
5328 (propagate_constants_across_call): Same.
5329 (devirtualization_time_bonus): Same.
5330 (good_cloning_opportunity_p): Same.
5331 (context_independent_aggregate_values): Same.
5332 (gather_context_independent_values): Same.
5333 (perform_estimation_of_a_value): Same.
5334 (estimate_local_effects): Same.
5335 (value_topo_info<valtype>::add_val): Same.
5336 (add_all_node_vals_to_toposort): Same.
5337 (value_topo_info<valtype>::propagate_effects): Same.
5338 (ipcp_propagate_stage): Same.
5339 (ipcp_discover_new_direct_edges): Same.
5340 (same_node_or_its_all_contexts_clone_p): Same.
5341 (cgraph_edge_brings_value_p): Same.
5342 (gather_edges_for_value): Same.
5343 (create_specialized_node): Same.
5344 (find_more_scalar_values_for_callers_subset): Same.
5345 (find_more_contexts_for_caller_subset): Same.
5346 (copy_plats_to_inter): Same.
5347 (intersect_aggregates_with_edge): Same.
5348 (find_aggregate_values_for_callers_subset): Same.
5349 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5350 (decide_about_value): Same.
5351 (decide_whether_version_node): Same.
5352 (spread_undeadness): Same.
5353 (identify_dead_nodes): Same.
5354 (ipcp_store_vr_results): Same.
5355 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5356 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5357 (redirect_to_unreachable): Same.
5358 (edge_set_predicate): Same.
5359 (evaluate_conditions_for_known_args): Same.
5360 (evaluate_properties_for_edge): Same.
5361 (ipa_fn_summary_t::duplicate): Same.
5362 (ipa_call_summary_t::duplicate): Same.
5363 (dump_ipa_call_summary): Same.
5364 (ipa_dump_fn_summary): Same.
5365 (eliminated_by_inlining_prob): Same.
5366 (set_cond_stmt_execution_predicate): Same.
5367 (set_switch_stmt_execution_predicate): Same.
5368 (compute_bb_predicates): Same.
5369 (will_be_nonconstant_expr_predicate): Same.
5370 (phi_result_unknown_predicate): Same.
5371 (analyze_function_body): Same.
5372 (compute_fn_summary): Same.
5373 (estimate_edge_devirt_benefit): Same.
5374 (estimate_edge_size_and_time): Same.
5375 (estimate_calls_size_and_time): Same.
5376 (estimate_node_size_and_time): Same.
5377 (remap_edge_change_prob): Same.
5378 (remap_edge_summaries): Same.
5379 (ipa_merge_fn_summary_after_inlining): Same.
5380 (ipa_fn_summary_generate): Same.
5381 (inline_read_section): Same.
5382 (ipa_fn_summary_read): Same.
5383 (ipa_fn_summary_write): Same.
5384 * ipa-fnsummary.h: Same.
5385 * ipa-hsa.c (ipa_hsa_read_section): Same.
5386 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
5387 * ipa-icf.c (sem_function::param_used_p): Same.
5388 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
5389 * ipa-inline.c (edge_badness): Same.
5390 (inline_small_functions): Same.
5391 * ipa-polymorphic-call.c
5392 (ipa_polymorphic_call_context::stream_out): Same.
5393 * ipa-predicate.c (predicate::remap_after_duplication): Same.
5394 (predicate::remap_after_inlining): Same.
5395 (predicate::stream_out): Same.
5396 * ipa-predicate.h: Same.
5397 * ipa-profile.c (ipa_profile_read_summary): Same.
5398 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
5399 (count_formal_params): Same.
5400 (ipa_dump_param): Same.
5401 (ipa_alloc_node_params): Same.
5402 (ipa_print_node_jump_functions_for_edge): Same.
5403 (ipa_print_node_jump_functions): Same.
5404 (ipa_load_from_parm_agg): Same.
5405 (get_ancestor_addr_info): Same.
5406 (ipa_compute_jump_functions_for_edge): Same.
5407 (ipa_analyze_virtual_call_uses): Same.
5408 (ipa_analyze_stmt_uses): Same.
5409 (ipa_analyze_params_uses_in_bb): Same.
5410 (update_jump_functions_after_inlining): Same.
5411 (try_decrement_rdesc_refcount): Same.
5412 (ipa_impossible_devirt_target): Same.
5413 (update_indirect_edges_after_inlining): Same.
5414 (combine_controlled_uses_counters): Same.
5415 (ipa_edge_args_sum_t::duplicate): Same.
5416 (ipa_write_jump_function): Same.
5417 (ipa_write_indirect_edge_info): Same.
5418 (ipa_write_node_info): Same.
5419 (ipa_read_edge_info): Same.
5420 (ipa_prop_read_section): Same.
5421 (read_replacements_section): Same.
5422 * ipa-prop.h (ipa_get_param_count): Same.
5423 (ipa_get_param): Same.
5424 (ipa_get_type): Same.
5425 (ipa_get_param_move_cost): Same.
5426 (ipa_set_param_used): Same.
5427 (ipa_get_controlled_uses): Same.
5428 (ipa_set_controlled_uses): Same.
5429 (ipa_get_cs_argument_count): Same.
5430 * ipa-pure-const.c (analyze_function): Same.
5431 (pure_const_read_summary): Same.
5432 * ipa-ref.h: Same.
5433 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
5434 * ipa-split.c (test_nonssa_use): Same.
5435 (dump_split_point): Same.
5436 (dominated_by_forbidden): Same.
5437 (split_part_set_ssa_name_p): Same.
5438 (find_split_points): Same.
5439 * ira-build.c (finish_loop_tree_nodes): Same.
5440 (low_pressure_loop_node_p): Same.
5441 * ira-color.c (ira_reuse_stack_slot): Same.
5442 * ira-int.h: Same.
5443 * ira.c (setup_reg_equiv): Same.
5444 (print_insn_chain): Same.
5445 (ira): Same.
5446 * loop-doloop.c (doloop_condition_get): Same.
5447 (add_test): Same.
5448 (record_reg_sets): Same.
5449 (doloop_optimize): Same.
5450 * loop-init.c (loop_optimizer_init): Same.
5451 (fix_loop_structure): Same.
5452 * loop-invariant.c (merge_identical_invariants): Same.
5453 (compute_always_reached): Same.
5454 (find_exits): Same.
5455 (may_assign_reg_p): Same.
5456 (find_invariants_bb): Same.
5457 (find_invariants_body): Same.
5458 (replace_uses): Same.
5459 (can_move_invariant_reg): Same.
5460 (free_inv_motion_data): Same.
5461 (move_single_loop_invariants): Same.
5462 (change_pressure): Same.
5463 (mark_ref_regs): Same.
5464 (calculate_loop_reg_pressure): Same.
5465 * loop-iv.c (biv_entry_hasher::equal): Same.
5466 (iv_extend_to_rtx_code): Same.
5467 (check_iv_ref_table_size): Same.
5468 (clear_iv_info): Same.
5469 (latch_dominating_def): Same.
5470 (iv_get_reaching_def): Same.
5471 (iv_constant): Same.
5472 (iv_subreg): Same.
5473 (iv_extend): Same.
5474 (iv_neg): Same.
5475 (iv_add): Same.
5476 (iv_mult): Same.
5477 (get_biv_step): Same.
5478 (record_iv): Same.
5479 (analyzed_for_bivness_p): Same.
5480 (record_biv): Same.
5481 (iv_analyze_biv): Same.
5482 (iv_analyze_expr): Same.
5483 (iv_analyze_def): Same.
5484 (iv_analyze_op): Same.
5485 (iv_analyze): Same.
5486 (iv_analyze_result): Same.
5487 (biv_p): Same.
5488 (eliminate_implied_conditions): Same.
5489 (simplify_using_initial_values): Same.
5490 (shorten_into_mode): Same.
5491 (canonicalize_iv_subregs): Same.
5492 (determine_max_iter): Same.
5493 (check_simple_exit): Same.
5494 (find_simple_exit): Same.
5495 (get_simple_loop_desc): Same.
5496 * loop-unroll.c (report_unroll): Same.
5497 (decide_unrolling): Same.
5498 (unroll_loops): Same.
5499 (loop_exit_at_end_p): Same.
5500 (decide_unroll_constant_iterations): Same.
5501 (unroll_loop_constant_iterations): Same.
5502 (compare_and_jump_seq): Same.
5503 (unroll_loop_runtime_iterations): Same.
5504 (decide_unroll_stupid): Same.
5505 (unroll_loop_stupid): Same.
5506 (referenced_in_one_insn_in_loop_p): Same.
5507 (reset_debug_uses_in_loop): Same.
5508 (analyze_iv_to_split_insn): Same.
5509 * lra-eliminations.c (lra_debug_elim_table): Same.
5510 (setup_can_eliminate): Same.
5511 (form_sum): Same.
5512 (lra_get_elimination_hard_regno): Same.
5513 (lra_eliminate_regs_1): Same.
5514 (eliminate_regs_in_insn): Same.
5515 (update_reg_eliminate): Same.
5516 (init_elimination): Same.
5517 (lra_eliminate): Same.
5518 * lra-int.h: Same.
5519 * lra-lives.c (initiate_live_solver): Same.
5520 * lra-remat.c (create_remat_bb_data): Same.
5521 * lra-spills.c (lra_spill): Same.
5522 * lra.c (lra_set_insn_recog_data): Same.
5523 (lra_set_used_insn_alternative_by_uid): Same.
5524 (init_reg_info): Same.
5525 (expand_reg_info): Same.
5526 * lto-cgraph.c (output_symtab): Same.
5527 (read_identifier): Same.
5528 (get_alias_symbol): Same.
5529 (input_node): Same.
5530 (input_varpool_node): Same.
5531 (input_ref): Same.
5532 (input_edge): Same.
5533 (input_cgraph_1): Same.
5534 (input_refs): Same.
5535 (input_symtab): Same.
5536 (input_offload_tables): Same.
5537 (output_cgraph_opt_summary): Same.
5538 (input_edge_opt_summary): Same.
5539 (input_cgraph_opt_section): Same.
5540 * lto-section-in.c (lto_free_raw_section_data): Same.
5541 (lto_create_simple_input_block): Same.
5542 (lto_free_function_in_decl_state_for_node): Same.
5543 * lto-streamer-in.c (lto_tag_check_set): Same.
5544 (lto_location_cache::revert_location_cache): Same.
5545 (lto_location_cache::input_location): Same.
5546 (lto_input_location): Same.
5547 (stream_input_location_now): Same.
5548 (lto_input_tree_ref): Same.
5549 (lto_input_eh_catch_list): Same.
5550 (input_eh_region): Same.
5551 (lto_init_eh): Same.
5552 (make_new_block): Same.
5553 (input_cfg): Same.
5554 (fixup_call_stmt_edges): Same.
5555 (input_struct_function_base): Same.
5556 (input_function): Same.
5557 (lto_read_body_or_constructor): Same.
5558 (lto_read_tree_1): Same.
5559 (lto_read_tree): Same.
5560 (lto_input_scc): Same.
5561 (lto_input_tree_1): Same.
5562 (lto_input_toplevel_asms): Same.
5563 (lto_input_mode_table): Same.
5564 (lto_reader_init): Same.
5565 (lto_data_in_create): Same.
5566 * lto-streamer-out.c (output_cfg): Same.
5567 * lto-streamer.h: Same.
5568 * modulo-sched.c (duplicate_insns_of_cycles): Same.
5569 (generate_prolog_epilog): Same.
5570 (mark_loop_unsched): Same.
5571 (dump_insn_location): Same.
5572 (loop_canon_p): Same.
5573 (sms_schedule): Same.
5574 * omp-expand.c (expand_omp_for_ordered_loops): Same.
5575 (expand_omp_for_generic): Same.
5576 (expand_omp_for_static_nochunk): Same.
5577 (expand_omp_for_static_chunk): Same.
5578 (expand_omp_simd): Same.
5579 (expand_omp_taskloop_for_inner): Same.
5580 (expand_oacc_for): Same.
5581 (expand_omp_atomic_pipeline): Same.
5582 (mark_loops_in_oacc_kernels_region): Same.
5583 * omp-offload.c (oacc_xform_loop): Same.
5584 * omp-simd-clone.c (simd_clone_adjust): Same.
5585 * optabs-query.c (get_traditional_extraction_insn): Same.
5586 * optabs.c (expand_vector_broadcast): Same.
5587 (expand_binop_directly): Same.
5588 (expand_twoval_unop): Same.
5589 (expand_twoval_binop): Same.
5590 (expand_unop_direct): Same.
5591 (emit_indirect_jump): Same.
5592 (emit_conditional_move): Same.
5593 (emit_conditional_neg_or_complement): Same.
5594 (emit_conditional_add): Same.
5595 (vector_compare_rtx): Same.
5596 (expand_vec_perm_1): Same.
5597 (expand_vec_perm_const): Same.
5598 (expand_vec_cond_expr): Same.
5599 (expand_vec_series_expr): Same.
5600 (maybe_emit_atomic_exchange): Same.
5601 (maybe_emit_sync_lock_test_and_set): Same.
5602 (expand_atomic_compare_and_swap): Same.
5603 (expand_atomic_load): Same.
5604 (expand_atomic_store): Same.
5605 (maybe_emit_op): Same.
5606 (valid_multiword_target_p): Same.
5607 (create_integer_operand): Same.
5608 (maybe_legitimize_operand_same_code): Same.
5609 (maybe_legitimize_operand): Same.
5610 (create_convert_operand_from_type): Same.
5611 (can_reuse_operands_p): Same.
5612 (maybe_legitimize_operands): Same.
5613 (maybe_gen_insn): Same.
5614 (maybe_expand_insn): Same.
5615 (maybe_expand_jump_insn): Same.
5616 (expand_insn): Same.
5617 * optabs.h (create_expand_operand): Same.
5618 (create_fixed_operand): Same.
5619 (create_output_operand): Same.
5620 (create_input_operand): Same.
5621 (create_convert_operand_to): Same.
5622 (create_convert_operand_from): Same.
5623 * optinfo.h: Same.
5624 * poly-int.h: Same.
5625 * predict.c (optimize_insn_for_speed_p): Same.
5626 (optimize_loop_for_size_p): Same.
5627 (optimize_loop_for_speed_p): Same.
5628 (optimize_loop_nest_for_speed_p): Same.
5629 (get_base_value): Same.
5630 (predicted_by_loop_heuristics_p): Same.
5631 (predict_extra_loop_exits): Same.
5632 (predict_loops): Same.
5633 (predict_paths_for_bb): Same.
5634 (predict_paths_leading_to): Same.
5635 (propagate_freq): Same.
5636 (pass_profile::execute): Same.
5637 * predict.h: Same.
5638 * profile-count.c (profile_count::differs_from_p): Same.
5639 (profile_probability::differs_lot_from_p): Same.
5640 * profile-count.h: Same.
5641 * profile.c (branch_prob): Same.
5642 * regrename.c (free_chain_data): Same.
5643 (mark_conflict): Same.
5644 (create_new_chain): Same.
5645 (merge_overlapping_regs): Same.
5646 (init_rename_info): Same.
5647 (merge_chains): Same.
5648 (regrename_analyze): Same.
5649 (regrename_do_replace): Same.
5650 (scan_rtx_reg): Same.
5651 (record_out_operands): Same.
5652 (build_def_use): Same.
5653 * regrename.h: Same.
5654 * reload.h: Same.
5655 * reload1.c (init_reload): Same.
5656 (maybe_fix_stack_asms): Same.
5657 (copy_reloads): Same.
5658 (count_pseudo): Same.
5659 (count_spilled_pseudo): Same.
5660 (find_reg): Same.
5661 (find_reload_regs): Same.
5662 (select_reload_regs): Same.
5663 (spill_hard_reg): Same.
5664 (fixup_eh_region_note): Same.
5665 (set_reload_reg): Same.
5666 (allocate_reload_reg): Same.
5667 (compute_reload_subreg_offset): Same.
5668 (reload_adjust_reg_for_icode): Same.
5669 (emit_input_reload_insns): Same.
5670 (emit_output_reload_insns): Same.
5671 (do_input_reload): Same.
5672 (inherit_piecemeal_p): Same.
5673 * rtl.h: Same.
5674 * sanopt.c (maybe_get_dominating_check): Same.
5675 (maybe_optimize_ubsan_ptr_ifn): Same.
5676 (can_remove_asan_check): Same.
5677 (maybe_optimize_asan_check_ifn): Same.
5678 (sanopt_optimize_walker): Same.
5679 * sched-deps.c (add_dependence_list): Same.
5680 (chain_to_prev_insn): Same.
5681 (add_insn_mem_dependence): Same.
5682 (create_insn_reg_set): Same.
5683 (maybe_extend_reg_info_p): Same.
5684 (sched_analyze_reg): Same.
5685 (sched_analyze_1): Same.
5686 (get_implicit_reg_pending_clobbers): Same.
5687 (chain_to_prev_insn_p): Same.
5688 (deps_analyze_insn): Same.
5689 (deps_start_bb): Same.
5690 (sched_free_deps): Same.
5691 (init_deps): Same.
5692 (init_deps_reg_last): Same.
5693 (free_deps): Same.
5694 * sched-ebb.c: Same.
5695 * sched-int.h: Same.
5696 * sched-rgn.c (add_branch_dependences): Same.
5697 (concat_insn_mem_list): Same.
5698 (deps_join): Same.
5699 (sched_rgn_compute_dependencies): Same.
5700 * sel-sched-ir.c (reset_target_context): Same.
5701 (copy_deps_context): Same.
5702 (init_id_from_df): Same.
5703 (has_dependence_p): Same.
5704 (change_loops_latches): Same.
5705 (bb_top_order_comparator): Same.
5706 (make_region_from_loop_preheader): Same.
5707 (sel_init_pipelining): Same.
5708 (get_loop_nest_for_rgn): Same.
5709 (make_regions_from_the_rest): Same.
5710 (sel_is_loop_preheader_p): Same.
5711 * sel-sched-ir.h (inner_loop_header_p): Same.
5712 (get_all_loop_exits): Same.
5713 * selftest.h: Same.
5714 * sese.c (sese_build_liveouts): Same.
5715 (sese_insert_phis_for_liveouts): Same.
5716 * sese.h (defined_in_sese_p): Same.
5717 * sreal.c (sreal::stream_out): Same.
5718 * sreal.h: Same.
5719 * streamer-hooks.h: Same.
5720 * target-globals.c (save_target_globals): Same.
5721 * target-globals.h: Same.
5722 * target.def: Same.
5723 * target.h: Same.
5724 * targhooks.c (default_has_ifunc_p): Same.
5725 (default_empty_mask_is_expensive): Same.
5726 (default_init_cost): Same.
5727 * targhooks.h: Same.
5728 * toplev.c: Same.
5729 * tree-affine.c (aff_combination_mult): Same.
5730 (aff_combination_expand): Same.
5731 (aff_combination_constant_multiple_p): Same.
5732 * tree-affine.h: Same.
5733 * tree-cfg.c (build_gimple_cfg): Same.
5734 (replace_loop_annotate_in_block): Same.
5735 (replace_uses_by): Same.
5736 (remove_bb): Same.
5737 (dump_cfg_stats): Same.
5738 (gimple_duplicate_sese_region): Same.
5739 (gimple_duplicate_sese_tail): Same.
5740 (move_block_to_fn): Same.
5741 (replace_block_vars_by_duplicates): Same.
5742 (move_sese_region_to_fn): Same.
5743 (print_loops_bb): Same.
5744 (print_loop): Same.
5745 (print_loops): Same.
5746 (debug): Same.
5747 (debug_loops): Same.
5748 * tree-cfg.h: Same.
5749 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
5750 (chrec_fold_multiply_poly_poly): Same.
5751 (chrec_evaluate): Same.
5752 (chrec_component_in_loop_num): Same.
5753 (reset_evolution_in_loop): Same.
5754 (is_multivariate_chrec): Same.
5755 (chrec_contains_symbols): Same.
5756 (nb_vars_in_chrec): Same.
5757 (chrec_convert_1): Same.
5758 (chrec_convert_aggressive): Same.
5759 * tree-chrec.h: Same.
5760 * tree-core.h: Same.
5761 * tree-data-ref.c (dump_data_dependence_relation): Same.
5762 (canonicalize_base_object_address): Same.
5763 (data_ref_compare_tree): Same.
5764 (prune_runtime_alias_test_list): Same.
5765 (get_segment_min_max): Same.
5766 (create_intersect_range_checks): Same.
5767 (conflict_fn_no_dependence): Same.
5768 (object_address_invariant_in_loop_p): Same.
5769 (analyze_ziv_subscript): Same.
5770 (analyze_siv_subscript_cst_affine): Same.
5771 (analyze_miv_subscript): Same.
5772 (analyze_overlapping_iterations): Same.
5773 (build_classic_dist_vector_1): Same.
5774 (add_other_self_distances): Same.
5775 (same_access_functions): Same.
5776 (build_classic_dir_vector): Same.
5777 (subscript_dependence_tester_1): Same.
5778 (subscript_dependence_tester): Same.
5779 (access_functions_are_affine_or_constant_p): Same.
5780 (get_references_in_stmt): Same.
5781 (loop_nest_has_data_refs): Same.
5782 (graphite_find_data_references_in_stmt): Same.
5783 (find_data_references_in_bb): Same.
5784 (get_base_for_alignment): Same.
5785 (find_loop_nest_1): Same.
5786 (find_loop_nest): Same.
5787 * tree-data-ref.h (dr_alignment): Same.
5788 (ddr_dependence_level): Same.
5789 * tree-if-conv.c (fold_build_cond_expr): Same.
5790 (add_to_predicate_list): Same.
5791 (add_to_dst_predicate_list): Same.
5792 (phi_convertible_by_degenerating_args): Same.
5793 (idx_within_array_bound): Same.
5794 (all_preds_critical_p): Same.
5795 (pred_blocks_visited_p): Same.
5796 (predicate_bbs): Same.
5797 (build_region): Same.
5798 (if_convertible_loop_p_1): Same.
5799 (is_cond_scalar_reduction): Same.
5800 (predicate_scalar_phi): Same.
5801 (remove_conditions_and_labels): Same.
5802 (combine_blocks): Same.
5803 (version_loop_for_if_conversion): Same.
5804 (versionable_outer_loop_p): Same.
5805 (ifcvt_local_dce): Same.
5806 (tree_if_conversion): Same.
5807 (pass_if_conversion::gate): Same.
5808 * tree-if-conv.h: Same.
5809 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
5810 * tree-loop-distribution.c (bb_top_order_cmp): Same.
5811 (free_rdg): Same.
5812 (stmt_has_scalar_dependences_outside_loop): Same.
5813 (copy_loop_before): Same.
5814 (create_bb_after_loop): Same.
5815 (const_with_all_bytes_same): Same.
5816 (generate_memset_builtin): Same.
5817 (generate_memcpy_builtin): Same.
5818 (destroy_loop): Same.
5819 (build_rdg_partition_for_vertex): Same.
5820 (compute_access_range): Same.
5821 (data_ref_segment_size): Same.
5822 (latch_dominated_by_data_ref): Same.
5823 (compute_alias_check_pairs): Same.
5824 (fuse_memset_builtins): Same.
5825 (finalize_partitions): Same.
5826 (find_seed_stmts_for_distribution): Same.
5827 (prepare_perfect_loop_nest): Same.
5828 * tree-parloops.c (lambda_transform_legal_p): Same.
5829 (loop_parallel_p): Same.
5830 (reduc_stmt_res): Same.
5831 (add_field_for_name): Same.
5832 (create_call_for_reduction_1): Same.
5833 (replace_uses_in_bb_by): Same.
5834 (transform_to_exit_first_loop_alt): Same.
5835 (try_transform_to_exit_first_loop_alt): Same.
5836 (transform_to_exit_first_loop): Same.
5837 (num_phis): Same.
5838 (gen_parallel_loop): Same.
5839 (gather_scalar_reductions): Same.
5840 (get_omp_data_i_param): Same.
5841 (try_create_reduction_list): Same.
5842 (oacc_entry_exit_single_gang): Same.
5843 (parallelize_loops): Same.
5844 * tree-pass.h: Same.
5845 * tree-predcom.c (determine_offset): Same.
5846 (last_always_executed_block): Same.
5847 (split_data_refs_to_components): Same.
5848 (suitable_component_p): Same.
5849 (valid_initializer_p): Same.
5850 (find_looparound_phi): Same.
5851 (insert_looparound_copy): Same.
5852 (add_looparound_copies): Same.
5853 (determine_roots_comp): Same.
5854 (predcom_tmp_var): Same.
5855 (initialize_root_vars): Same.
5856 (initialize_root_vars_store_elim_1): Same.
5857 (initialize_root_vars_store_elim_2): Same.
5858 (finalize_eliminated_stores): Same.
5859 (initialize_root_vars_lm): Same.
5860 (remove_stmt): Same.
5861 (determine_unroll_factor): Same.
5862 (execute_pred_commoning_cbck): Same.
5863 (base_names_in_chain_on): Same.
5864 (combine_chains): Same.
5865 (pcom_stmt_dominates_stmt_p): Same.
5866 (try_combine_chains): Same.
5867 (prepare_initializers_chain_store_elim): Same.
5868 (prepare_initializers_chain): Same.
5869 (prepare_initializers): Same.
5870 (prepare_finalizers_chain): Same.
5871 (prepare_finalizers): Same.
5872 (insert_init_seqs): Same.
5873 * tree-scalar-evolution.c (loop_phi_node_p): Same.
5874 (compute_overall_effect_of_inner_loop): Same.
5875 (add_to_evolution_1): Same.
5876 (add_to_evolution): Same.
5877 (follow_ssa_edge_binary): Same.
5878 (follow_ssa_edge_expr): Same.
5879 (backedge_phi_arg_p): Same.
5880 (follow_ssa_edge_in_condition_phi_branch): Same.
5881 (follow_ssa_edge_in_condition_phi): Same.
5882 (follow_ssa_edge_inner_loop_phi): Same.
5883 (follow_ssa_edge): Same.
5884 (analyze_evolution_in_loop): Same.
5885 (analyze_initial_condition): Same.
5886 (interpret_loop_phi): Same.
5887 (interpret_condition_phi): Same.
5888 (interpret_rhs_expr): Same.
5889 (interpret_expr): Same.
5890 (interpret_gimple_assign): Same.
5891 (analyze_scalar_evolution_1): Same.
5892 (analyze_scalar_evolution): Same.
5893 (analyze_scalar_evolution_for_address_of): Same.
5894 (get_instantiated_value_entry): Same.
5895 (loop_closed_phi_def): Same.
5896 (instantiate_scev_name): Same.
5897 (instantiate_scev_poly): Same.
5898 (instantiate_scev_binary): Same.
5899 (instantiate_scev_convert): Same.
5900 (instantiate_scev_not): Same.
5901 (instantiate_scev_r): Same.
5902 (instantiate_scev): Same.
5903 (resolve_mixers): Same.
5904 (initialize_scalar_evolutions_analyzer): Same.
5905 (scev_reset_htab): Same.
5906 (scev_reset): Same.
5907 (derive_simple_iv_with_niters): Same.
5908 (simple_iv_with_niters): Same.
5909 (expression_expensive_p): Same.
5910 (final_value_replacement_loop): Same.
5911 * tree-scalar-evolution.h (block_before_loop): Same.
5912 * tree-ssa-address.h: Same.
5913 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
5914 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
5915 (record_edge_info): Same.
5916 * tree-ssa-live.c (var_map_base_fini): Same.
5917 (remove_unused_locals): Same.
5918 * tree-ssa-live.h: Same.
5919 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
5920 (pass_ch_vect::execute): Same.
5921 (pass_ch::process_loop_p): Same.
5922 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
5923 (movement_possibility): Same.
5924 (outermost_invariant_loop): Same.
5925 (stmt_cost): Same.
5926 (determine_max_movement): Same.
5927 (invariantness_dom_walker::before_dom_children): Same.
5928 (move_computations): Same.
5929 (may_move_till): Same.
5930 (force_move_till_op): Same.
5931 (force_move_till): Same.
5932 (memref_free): Same.
5933 (record_mem_ref_loc): Same.
5934 (set_ref_stored_in_loop): Same.
5935 (mark_ref_stored): Same.
5936 (sort_bbs_in_loop_postorder_cmp): Same.
5937 (sort_locs_in_loop_postorder_cmp): Same.
5938 (analyze_memory_references): Same.
5939 (mem_refs_may_alias_p): Same.
5940 (find_ref_loc_in_loop_cmp): Same.
5941 (rewrite_mem_ref_loc::operator): Same.
5942 (first_mem_ref_loc_1::operator): Same.
5943 (sm_set_flag_if_changed::operator): Same.
5944 (execute_sm_if_changed_flag_set): Same.
5945 (execute_sm): Same.
5946 (hoist_memory_references): Same.
5947 (ref_always_accessed::operator): Same.
5948 (refs_independent_p): Same.
5949 (record_dep_loop): Same.
5950 (ref_indep_loop_p_1): Same.
5951 (ref_indep_loop_p): Same.
5952 (can_sm_ref_p): Same.
5953 (find_refs_for_sm): Same.
5954 (loop_suitable_for_sm): Same.
5955 (store_motion_loop): Same.
5956 (store_motion): Same.
5957 (fill_always_executed_in): Same.
5958 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
5959 (estimated_unrolled_size): Same.
5960 (loop_edge_to_cancel): Same.
5961 (remove_exits_and_undefined_stmts): Same.
5962 (remove_redundant_iv_tests): Same.
5963 (unloop_loops): Same.
5964 (estimated_peeled_sequence_size): Same.
5965 (try_peel_loop): Same.
5966 (canonicalize_loop_induction_variables): Same.
5967 (canonicalize_induction_variables): Same.
5968 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
5969 (name_info): Same.
5970 (stmt_after_inc_pos): Same.
5971 (contains_abnormal_ssa_name_p): Same.
5972 (niter_for_exit): Same.
5973 (find_bivs): Same.
5974 (mark_bivs): Same.
5975 (find_givs_in_bb): Same.
5976 (find_induction_variables): Same.
5977 (find_interesting_uses_cond): Same.
5978 (outermost_invariant_loop_for_expr): Same.
5979 (idx_find_step): Same.
5980 (add_candidate_1): Same.
5981 (add_iv_candidate_derived_from_uses): Same.
5982 (alloc_use_cost_map): Same.
5983 (prepare_decl_rtl): Same.
5984 (generic_predict_doloop_p): Same.
5985 (computation_cost): Same.
5986 (determine_common_wider_type): Same.
5987 (get_computation_aff_1): Same.
5988 (get_use_type): Same.
5989 (determine_group_iv_cost_address): Same.
5990 (iv_period): Same.
5991 (difference_cannot_overflow_p): Same.
5992 (may_eliminate_iv): Same.
5993 (determine_set_costs): Same.
5994 (cheaper_cost_pair): Same.
5995 (compare_cost_pair): Same.
5996 (iv_ca_cand_for_group): Same.
5997 (iv_ca_recount_cost): Same.
5998 (iv_ca_set_remove_invs): Same.
5999 (iv_ca_set_no_cp): Same.
6000 (iv_ca_set_add_invs): Same.
6001 (iv_ca_set_cp): Same.
6002 (iv_ca_add_group): Same.
6003 (iv_ca_cost): Same.
6004 (iv_ca_compare_deps): Same.
6005 (iv_ca_delta_reverse): Same.
6006 (iv_ca_delta_commit): Same.
6007 (iv_ca_cand_used_p): Same.
6008 (iv_ca_delta_free): Same.
6009 (iv_ca_new): Same.
6010 (iv_ca_free): Same.
6011 (iv_ca_dump): Same.
6012 (iv_ca_extend): Same.
6013 (iv_ca_narrow): Same.
6014 (iv_ca_prune): Same.
6015 (cheaper_cost_with_cand): Same.
6016 (iv_ca_replace): Same.
6017 (try_add_cand_for): Same.
6018 (get_initial_solution): Same.
6019 (try_improve_iv_set): Same.
6020 (find_optimal_iv_set_1): Same.
6021 (create_new_iv): Same.
6022 (rewrite_use_compare): Same.
6023 (remove_unused_ivs): Same.
6024 (determine_scaling_factor): Same.
6025 * tree-ssa-loop-ivopts.h: Same.
6026 * tree-ssa-loop-manip.c (create_iv): Same.
6027 (compute_live_loop_exits): Same.
6028 (add_exit_phi): Same.
6029 (add_exit_phis): Same.
6030 (find_uses_to_rename_use): Same.
6031 (find_uses_to_rename_def): Same.
6032 (find_uses_to_rename_in_loop): Same.
6033 (rewrite_into_loop_closed_ssa): Same.
6034 (check_loop_closed_ssa_bb): Same.
6035 (split_loop_exit_edge): Same.
6036 (ip_end_pos): Same.
6037 (ip_normal_pos): Same.
6038 (copy_phi_node_args): Same.
6039 (gimple_duplicate_loop_to_header_edge): Same.
6040 (can_unroll_loop_p): Same.
6041 (determine_exit_conditions): Same.
6042 (scale_dominated_blocks_in_loop): Same.
6043 (niter_for_unrolled_loop): Same.
6044 (tree_transform_and_unroll_loop): Same.
6045 (rewrite_all_phi_nodes_with_iv): Same.
6046 * tree-ssa-loop-manip.h: Same.
6047 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6048 (number_of_iterations_ne): Same.
6049 (assert_no_overflow_lt): Same.
6050 (assert_loop_rolls_lt): Same.
6051 (number_of_iterations_lt): Same.
6052 (adjust_cond_for_loop_until_wrap): Same.
6053 (tree_simplify_using_condition): Same.
6054 (simplify_using_initial_conditions): Same.
6055 (simplify_using_outer_evolutions): Same.
6056 (loop_only_exit_p): Same.
6057 (ssa_defined_by_minus_one_stmt_p): Same.
6058 (number_of_iterations_popcount): Same.
6059 (number_of_iterations_exit): Same.
6060 (find_loop_niter): Same.
6061 (finite_loop_p): Same.
6062 (chain_of_csts_start): Same.
6063 (get_val_for): Same.
6064 (loop_niter_by_eval): Same.
6065 (derive_constant_upper_bound_ops): Same.
6066 (do_warn_aggressive_loop_optimizations): Same.
6067 (record_estimate): Same.
6068 (get_cst_init_from_scev): Same.
6069 (record_nonwrapping_iv): Same.
6070 (idx_infer_loop_bounds): Same.
6071 (infer_loop_bounds_from_ref): Same.
6072 (infer_loop_bounds_from_array): Same.
6073 (infer_loop_bounds_from_pointer_arith): Same.
6074 (infer_loop_bounds_from_signedness): Same.
6075 (bound_index): Same.
6076 (discover_iteration_bound_by_body_walk): Same.
6077 (maybe_lower_iteration_bound): Same.
6078 (estimate_numbers_of_iterations): Same.
6079 (estimated_loop_iterations): Same.
6080 (estimated_loop_iterations_int): Same.
6081 (max_loop_iterations): Same.
6082 (max_loop_iterations_int): Same.
6083 (likely_max_loop_iterations): Same.
6084 (likely_max_loop_iterations_int): Same.
6085 (estimated_stmt_executions_int): Same.
6086 (max_stmt_executions): Same.
6087 (likely_max_stmt_executions): Same.
6088 (estimated_stmt_executions): Same.
6089 (stmt_dominates_stmt_p): Same.
6090 (nowrap_type_p): Same.
6091 (loop_exits_before_overflow): Same.
6092 (scev_var_range_cant_overflow): Same.
6093 (scev_probably_wraps_p): Same.
6094 (free_numbers_of_iterations_estimates): Same.
6095 * tree-ssa-loop-niter.h: Same.
6096 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6097 (idx_analyze_ref): Same.
6098 (analyze_ref): Same.
6099 (gather_memory_references_ref): Same.
6100 (mark_nontemporal_store): Same.
6101 (emit_mfence_after_loop): Same.
6102 (may_use_storent_in_loop_p): Same.
6103 (mark_nontemporal_stores): Same.
6104 (should_unroll_loop_p): Same.
6105 (volume_of_dist_vector): Same.
6106 (add_subscript_strides): Same.
6107 (self_reuse_distance): Same.
6108 (insn_to_prefetch_ratio_too_small_p): Same.
6109 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6110 (patch_loop_exit): Same.
6111 (find_or_create_guard_phi): Same.
6112 (easy_exit_values): Same.
6113 (connect_loop_phis): Same.
6114 (connect_loops): Same.
6115 (compute_new_first_bound): Same.
6116 (split_loop): Same.
6117 (tree_ssa_split_loops): Same.
6118 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6119 (is_maybe_undefined): Same.
6120 (tree_may_unswitch_on): Same.
6121 (simplify_using_entry_checks): Same.
6122 (tree_unswitch_single_loop): Same.
6123 (tree_unswitch_loop): Same.
6124 (tree_unswitch_outer_loop): Same.
6125 (empty_bb_without_guard_p): Same.
6126 (used_outside_loop_p): Same.
6127 (get_vop_from_header): Same.
6128 (hoist_guard): Same.
6129 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6130 (get_lsm_tmp_name): Same.
6131 * tree-ssa-loop.h: Same.
6132 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6133 (build_and_add_sum): Same.
6134 (no_side_effect_bb): Same.
6135 (get_ops): Same.
6136 (linearize_expr): Same.
6137 (should_break_up_subtract): Same.
6138 (linearize_expr_tree): Same.
6139 * tree-ssa-scopedtables.c: Same.
6140 * tree-ssa-scopedtables.h: Same.
6141 * tree-ssa-structalias.c (condense_visit): Same.
6142 (label_visit): Same.
6143 (dump_pred_graph): Same.
6144 (perform_var_substitution): Same.
6145 (move_complex_constraints): Same.
6146 (remove_preds_and_fake_succs): Same.
6147 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6148 (determine_bb_domination_status): Same.
6149 (duplicate_thread_path): Same.
6150 (thread_through_all_blocks): Same.
6151 * tree-ssa-threadupdate.h: Same.
6152 * tree-streamer-in.c (streamer_read_string_cst): Same.
6153 (input_identifier): Same.
6154 (unpack_ts_type_common_value_fields): Same.
6155 (unpack_ts_block_value_fields): Same.
6156 (unpack_ts_translation_unit_decl_value_fields): Same.
6157 (unpack_ts_omp_clause_value_fields): Same.
6158 (streamer_read_tree_bitfields): Same.
6159 (streamer_alloc_tree): Same.
6160 (lto_input_ts_common_tree_pointers): Same.
6161 (lto_input_ts_vector_tree_pointers): Same.
6162 (lto_input_ts_poly_tree_pointers): Same.
6163 (lto_input_ts_complex_tree_pointers): Same.
6164 (lto_input_ts_decl_minimal_tree_pointers): Same.
6165 (lto_input_ts_decl_common_tree_pointers): Same.
6166 (lto_input_ts_decl_non_common_tree_pointers): Same.
6167 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6168 (lto_input_ts_field_decl_tree_pointers): Same.
6169 (lto_input_ts_function_decl_tree_pointers): Same.
6170 (lto_input_ts_type_common_tree_pointers): Same.
6171 (lto_input_ts_type_non_common_tree_pointers): Same.
6172 (lto_input_ts_list_tree_pointers): Same.
6173 (lto_input_ts_vec_tree_pointers): Same.
6174 (lto_input_ts_exp_tree_pointers): Same.
6175 (lto_input_ts_block_tree_pointers): Same.
6176 (lto_input_ts_binfo_tree_pointers): Same.
6177 (lto_input_ts_constructor_tree_pointers): Same.
6178 (lto_input_ts_omp_clause_tree_pointers): Same.
6179 (streamer_read_tree_body): Same.
6180 * tree-streamer.h: Same.
6181 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6182 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6183 (vect_analyze_possibly_independent_ddr): Same.
6184 (vect_analyze_data_ref_dependence): Same.
6185 (vect_compute_data_ref_alignment): Same.
6186 (vect_enhance_data_refs_alignment): Same.
6187 (vect_analyze_data_ref_access): Same.
6188 (vect_check_gather_scatter): Same.
6189 (vect_find_stmt_data_reference): Same.
6190 (vect_create_addr_base_for_vector_ref): Same.
6191 (vect_setup_realignment): Same.
6192 (vect_supportable_dr_alignment): Same.
6193 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6194 (adjust_phi_and_debug_stmts): Same.
6195 (vect_set_loop_mask): Same.
6196 (add_preheader_seq): Same.
6197 (vect_maybe_permute_loop_masks): Same.
6198 (vect_set_loop_masks_directly): Same.
6199 (vect_set_loop_condition_masked): Same.
6200 (vect_set_loop_condition_unmasked): Same.
6201 (slpeel_duplicate_current_defs_from_edges): Same.
6202 (slpeel_add_loop_guard): Same.
6203 (slpeel_can_duplicate_loop_p): Same.
6204 (create_lcssa_for_virtual_phi): Same.
6205 (iv_phi_p): Same.
6206 (vect_update_ivs_after_vectorizer): Same.
6207 (vect_gen_vector_loop_niters_mult_vf): Same.
6208 (slpeel_update_phi_nodes_for_loops): Same.
6209 (slpeel_update_phi_nodes_for_guard1): Same.
6210 (find_guard_arg): Same.
6211 (slpeel_update_phi_nodes_for_guard2): Same.
6212 (slpeel_update_phi_nodes_for_lcssa): Same.
6213 (vect_do_peeling): Same.
6214 (vect_create_cond_for_alias_checks): Same.
6215 (vect_loop_versioning): Same.
6216 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6217 (vect_inner_phi_in_double_reduction_p): Same.
6218 (vect_analyze_scalar_cycles_1): Same.
6219 (vect_fixup_scalar_cycles_with_patterns): Same.
6220 (vect_get_loop_niters): Same.
6221 (bb_in_loop_p): Same.
6222 (vect_get_max_nscalars_per_iter): Same.
6223 (vect_verify_full_masking): Same.
6224 (vect_compute_single_scalar_iteration_cost): Same.
6225 (vect_analyze_loop_form_1): Same.
6226 (vect_analyze_loop_form): Same.
6227 (vect_active_double_reduction_p): Same.
6228 (vect_analyze_loop_operations): Same.
6229 (neutral_op_for_slp_reduction): Same.
6230 (vect_is_simple_reduction): Same.
6231 (vect_model_reduction_cost): Same.
6232 (get_initial_def_for_reduction): Same.
6233 (get_initial_defs_for_reduction): Same.
6234 (vect_create_epilog_for_reduction): Same.
6235 (vectorize_fold_left_reduction): Same.
6236 (vectorizable_reduction): Same.
6237 (vectorizable_induction): Same.
6238 (vectorizable_live_operation): Same.
6239 (loop_niters_no_overflow): Same.
6240 (vect_get_loop_mask): Same.
6241 (vect_transform_loop_stmt): Same.
6242 (vect_transform_loop): Same.
6243 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6244 (vect_determine_precisions): Same.
6245 (vect_pattern_recog_1): Same.
6246 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6247 * tree-vect-stmts.c (stmt_vectype): Same.
6248 (process_use): Same.
6249 (vect_init_vector_1): Same.
6250 (vect_truncate_gather_scatter_offset): Same.
6251 (get_group_load_store_type): Same.
6252 (vect_build_gather_load_calls): Same.
6253 (vect_get_strided_load_store_ops): Same.
6254 (vectorizable_simd_clone_call): Same.
6255 (vectorizable_store): Same.
6256 (permute_vec_elements): Same.
6257 (vectorizable_load): Same.
6258 (vect_transform_stmt): Same.
6259 (supportable_widening_operation): Same.
6260 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6261 (vec_info::free_stmt_vec_info): Same.
6262 (vect_free_loop_info_assumptions): Same.
6263 (vect_loop_vectorized_call): Same.
6264 (set_uid_loop_bbs): Same.
6265 (vectorize_loops): Same.
6266 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6267 * tree.c (add_tree_to_fld_list): Same.
6268 (fld_type_variant_equal_p): Same.
6269 (fld_decl_context): Same.
6270 (fld_incomplete_type_of): Same.
6271 (free_lang_data_in_binfo): Same.
6272 (need_assembler_name_p): Same.
6273 (find_decls_types_r): Same.
6274 (get_eh_types_for_runtime): Same.
6275 (find_decls_types_in_eh_region): Same.
6276 (find_decls_types_in_node): Same.
6277 (assign_assembler_name_if_needed): Same.
6278 * value-prof.c (stream_out_histogram_value): Same.
6279 * value-prof.h: Same.
6280 * var-tracking.c (use_narrower_mode): Same.
6281 (prepare_call_arguments): Same.
6282 (vt_expand_loc_callback): Same.
6283 (resolve_expansions_pending_recursion): Same.
6284 (vt_expand_loc): Same.
6285 * varasm.c (const_hash_1): Same.
6286 (compare_constant): Same.
6287 (tree_output_constant_def): Same.
6288 (simplify_subtraction): Same.
6289 (get_pool_constant): Same.
6290 (output_constant_pool_2): Same.
6291 (output_constant_pool_1): Same.
6292 (mark_constants_in_pattern): Same.
6293 (mark_constant_pool): Same.
6294 (get_section_anchor): Same.
6295 * vr-values.c (compare_range_with_value): Same.
6296 (vr_values::extract_range_from_phi_node): Same.
6297 * vr-values.h: Same.
6298 * web.c (unionfind_union): Same.
6299 * wide-int.h: Same.
6300
6301 2019-07-09 Martin Sebor <msebor@redhat.com>
6302
6303 PR c++/61339
6304 * align.h: Change class-key from class to struct and vice versa
6305 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6306 * alloc-pool.h: Same.
6307 * asan.c (shadow_mem_size): Same.
6308 * auto-profile.c: Same.
6309 * basic-block.h: Same.
6310 * bitmap.h: Same.
6311 * cfgexpand.c (set_rtl): Same.
6312 (expand_one_stack_var_at): Same.
6313 * cfghooks.h: Same.
6314 * cfgloop.h: Same.
6315 * cgraph.h: Same.
6316 * config/i386/i386.h: Same.
6317 * df-problems.c (df_print_bb_index): Same.
6318 * df-scan.c: Same.
6319 * df.h (df_single_use): Same.
6320 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6321 (layout::annotation_line_showed_range_p): Same.
6322 (get_printed_columns): Same.
6323 (correction::ensure_terminated): Same.
6324 (line_corrections::~line_corrections): Same.
6325 * dojump.h: Same.
6326 * dse.c: Same.
6327 * dump-context.h: Same.
6328 * dumpfile.h: Same.
6329 * dwarf2out.c: Same.
6330 * edit-context.c: Same.
6331 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6332 * flags.h: Same.
6333 * function.c (assign_stack_local): Same.
6334 * function.h: Same.
6335 * gcc.c: Same.
6336 * gcov.c (block_info::block_info): Same.
6337 * genattrtab.c: Same.
6338 * genextract.c: Same.
6339 * genmatch.c (comparison_code_p): Same.
6340 (id_base::id_base): Same.
6341 (decision_tree::print): Same.
6342 * genoutput.c: Same.
6343 * genpreds.c (write_one_predicate_function): Same.
6344 * genrecog.c (validate_pattern): Same.
6345 (find_operand_positions): Same.
6346 (optimize_subroutine_group): Same.
6347 (merge_pattern_transition::merge_pattern_transition): Same.
6348 (merge_pattern_info::merge_pattern_info): Same.
6349 (merge_state_result::merge_state_result): Same.
6350 (merge_into_state): Same.
6351 * gensupport.c: Same.
6352 * gensupport.h: Same.
6353 * ggc-common.c (init_ggc_heuristics): Same.
6354 * ggc-tests.c (test_union): Same.
6355 * gimple-loop-interchange.cc (dump_induction): Same.
6356 * gimple-loop-versioning.cc: Same.
6357 * gimple-match.h (gimple_match_cond::any_else): Same.
6358 * gimple-ssa-backprop.c: Same.
6359 * gimple-ssa-sprintf.c: Same.
6360 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6361 Same.
6362 (store_immediate_info::store_immediate_info): Same.
6363 (merged_store_group::apply_stores): Same.
6364 (get_location_for_stmts): Same.
6365 * gimple-ssa-strength-reduction.c: Same.
6366 * gimple-ssa-warn-alloca.c: Same.
6367 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
6368 * godump.c (go_type_decl): Same.
6369 * hash-map-tests.c (test_map_of_strings_to_int): Same.
6370 * hash-map.h: Same.
6371 * hash-set-tests.c (test_set_of_strings): Same.
6372 * hsa-brig.c: Same.
6373 * hsa-common.h: Same.
6374 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
6375 * input.c (assert_loceq): Same.
6376 * input.h: Same.
6377 * ipa-cp.c: Same.
6378 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
6379 * ipa-fnsummary.h: Same.
6380 * ipa-inline.h: Same.
6381 * ipa-prop.h: Same.
6382 * ipa-split.c (visit_bb): Same.
6383 * ira-int.h (minmax_set_iter_next): Same.
6384 * loop-invariant.c: Same.
6385 * loop-iv.c: Same.
6386 * lra-eliminations.c: Same.
6387 * lra-int.h: Same.
6388 * lra-lives.c (mark_regno_dead): Same.
6389 * lra-remat.c: Same.
6390 * lra-spills.c: Same.
6391 * lto-streamer.h: Same.
6392 * mem-stats.h: Same.
6393 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
6394 * omp-low.c (omp_clause_aligned_alignment): Same.
6395 * optabs-query.h (get_vcond_eq_icode): Same.
6396 * optabs.h: Same.
6397 * opts.c (wrap_help): Same.
6398 * poly-int.h: Same.
6399 * predict.c (predict_paths_leading_to_edge): Same.
6400 * pretty-print.h: Same.
6401 * profile-count.h: Same.
6402 * read-md.h: Same.
6403 * read-rtl-function.c: Same.
6404 * ree.c: Same.
6405 * reginfo.c: Same.
6406 * regrename.c: Same.
6407 * regrename.h: Same.
6408 * reload.h: Same.
6409 * rtl-iter.h: Same.
6410 * rtl.h (costs_add_n_insns): Same.
6411 * sanopt.c: Same.
6412 * sched-int.h: Same.
6413 * sel-sched-ir.h: Same.
6414 * selftest.h: Same.
6415 * sese.h (vec_find): Same.
6416 * stmt.c: Same.
6417 * target-globals.h: Same.
6418 * tree-affine.c (aff_combination_find_elt): Same.
6419 * tree-affine.h: Same.
6420 * tree-data-ref.h: Same.
6421 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
6422 * tree-predcom.c: Same.
6423 * tree-scalar-evolution.c (find_var_scev_info): Same.
6424 * tree-ssa-alias.h: Same.
6425 * tree-ssa-ccp.c: Same.
6426 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
6427 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
6428 (rewrite_mem_refs): Same.
6429 (execute_sm_if_changed): Same.
6430 (hoist_memory_references): Same.
6431 * tree-ssa-loop-ivopts.c (operator<=): Same.
6432 * tree-ssa-loop.h: Same.
6433 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
6434 * tree-ssa-structalias.c: Same.
6435 * tree-switch-conversion.h (cluster::cluster): Same.
6436 (simple_cluster::simple_cluster): Same.
6437 * tree-vect-patterns.c (type_conversion_p): Same.
6438 * tree-vectorizer.c (dump_stmt_cost): Same.
6439 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
6440 * tree.c (protected_set_expr_location): Same.
6441 * tree.h (desired_pro_or_demotion_p): Same.
6442 (fndecl_built_in_p): Same.
6443 * unique-ptr-tests.cc: Same.
6444 * var-tracking.c (delete_variable_part): Same.
6445 * varasm.c (assemble_real): Same.
6446 (tree_output_constant_def): Same.
6447 * vec.c: Same.
6448 * wide-int-bitmask.h: Same.
6449 * wide-int.h (decompose): Same.
6450
6451 2019-07-09 Richard Biener <rguenther@suse.de>
6452
6453 PR tree-optimization/91114
6454 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
6455 find a vector type isn't fatal.
6456
6457 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6458
6459 * config/aarch64/aarch64-simd.md
6460 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
6461 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
6462 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
6463 (*aarch64_crypto_aese_fused,
6464 *aarch64_crypto_aesd_fused): Update to new definition.
6465 * config/aarch64/aarch64.c
6466 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
6467
6468 2019-07-09 Richard Biener <rguenther@suse.de>
6469
6470 * gimple-match.h (gimple_match_op::resimplify): New.
6471 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
6472 gimple_resimplify4, gimple_resimplify5): Remove.
6473 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
6474 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
6475 Make static.
6476 (gimple_match_op::resimplify): New.
6477 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
6478 according to availability. Use gimple_match_op::resimplify.
6479
6480 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
6481
6482 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
6483
6484 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6485
6486 * config/arm/crypto.md:
6487 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
6488 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
6489 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
6490 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
6491 * config/arm/arm.c
6492 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
6493 * config/arm/aarch-common-protos.h
6494 (aarch_crypto_can_dual_issue): Remove.
6495 * config/arm/aarch-common.c
6496 (aarch_crypto_can_dual_issue): Likewise.
6497 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
6498 * config/arm/cortex-a53.md: Likewise.
6499 * config/arm/cortex-a57.md: Likewise.
6500 * config/arm/iterators.md:
6501 (CRYPTO_BINARY): Redefine.
6502 (CRYPTO_UNARY): Removed.
6503 (CRYPTO_AES, CRYPTO_AESMC): New.
6504
6505 2019-07-09 Richard Biener <rguenther@suse.de>
6506
6507 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
6508 (vn_reference_lookup_3): If the main ref has no access path recorded
6509 but orig_ref has use it to do access-path based disambiguation.
6510 (vn_reference_lookup_pieces): Adjust.
6511 (vn_reference_lookup): Pass down original ref if we valueized.
6512
6513 2019-07-09 Martin Liska <mliska@suse.cz>
6514
6515 * doc/extend.texi: Document influence on loop
6516 optimizers.
6517
6518 2019-07-09 Martin Liska <mliska@suse.cz>
6519
6520 * lto-compress.c (lto_normalized_zstd_level): Do not use
6521 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
6522 of libzstd. One can use 0 as a default compression level.
6523
6524 2019-07-09 Martin Liska <mliska@suse.cz>
6525
6526 * doc/invoke.texi: Add link from -fprofile-dir option.
6527 Use better wording for 'gcno filename'.
6528
6529 2019-07-08 Martin Sebor <msebor@redhat.com>
6530
6531 PR middle-end/71924
6532 PR middle-end/90549
6533 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
6534 comment.
6535 (args_loc_t): New type.
6536 (args_loc_t, locmap_t): same.
6537 (diag_returned_locals): New function.
6538 (is_addr_local): Same.
6539 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
6540 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
6541 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
6542
6543 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6544
6545 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
6546 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
6547 and casts in offset when different, both through gimple stmts
6548 and through trees. Rewritten using loops to minimize code duplication
6549 for each operand.
6550
6551 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
6552
6553 * emit-rtl.c (set_insn_locations): New function moved from...
6554 * function.c (set_insn_locations): ...here.
6555 * ira-emit.c (emit_moves): Propagate location of the first instruction
6556 to the inserted move instructions.
6557 * reg-stack.c (compensate_edge): Set the location if the sequence is
6558 inserted on the edge.
6559 * rtl.h (set_insn_locations): Declare.
6560
6561 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6562
6563 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
6564 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
6565 .machine string.
6566
6567 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6568
6569 PR rtl-optimization/88233
6570 * common.opt (fsplit-wide-types-early): New option.
6571 * common/config/rs6000/rs6000-common.c
6572 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
6573 OPT_LEVELS_ALL.
6574 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
6575 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
6576 flag_split_wide_types_early.
6577 (pass_data_lower_subreg3): New.
6578 (pass_lower_subreg3): New.
6579 (make_pass_lower_subreg3): New.
6580 * passes.def (pass_lower_subreg2): Move after the loop passes.
6581 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
6582 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
6583 the pass pipeline; its previous place is taken by ...
6584 (make_pass_lower_subreg3): ... this.
6585
6586 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6587
6588 * config/s390/s390.c (s390_shift_truncation_mask): Define.
6589 (TARGET_SHIFT_TRUNCATION_MASK): Define.
6590
6591 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6592
6593 * config/s390/constraints.md: Add new jsc constraint.
6594 * config/s390/predicates.md: New predicates.
6595 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
6596 * config/s390/s390.c (s390_valid_shift_count): New function.
6597 (print_shift_count_operand): Use s390_valid_shift_count.
6598 (print_operand): Likewise.
6599 * config/s390/s390.md: Use new predicate.
6600 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
6601 * config/s390/vector.md: Use new predicate.
6602
6603 2019-07-08 Andrew Waterman <andrew@sifive.com>
6604 Jim Wilson <jimw@sifive.com>
6605
6606 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
6607 bitsize instead of BITS_PER_WORD.
6608
6609 2019-07-08 Martin Liska <mliska@suse.cz>
6610
6611 * collect2.c (defined): Revert to before r254460.
6612 (scan_prog_file): Revert to before r254460.
6613
6614 2019-07-08 Richard Biener <rguenther@suse.de>
6615
6616 PR tree-optimization/83518
6617 * tree-ssa-sccvn.c: Include splay-tree.h.
6618 (struct pd_range, struct pd_data): New.
6619 (struct vn_walk_cb_data): Add data to track partial definitions.
6620 (vn_walk_cb_data::~vn_walk_cb_data): New.
6621 (vn_walk_cb_data::push_partial_def): New.
6622 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
6623 (vn_reference_lookup_2): When partial defs are registered give up.
6624 (vn_reference_lookup_3): Track partial defs for memset and
6625 constructor zeroing and for defs from constants.
6626
6627 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6628
6629 * doc/install.texi (bootstrap-Og): Document.
6630
6631 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6632
6633 * config/riscv/pic.md (*local_pic_load_s<mode>)
6634 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
6635 referenced by <mode>, giving...
6636 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
6637 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
6638 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
6639 use <X:MODE> for the mode attribute.
6640
6641 2019-07-07 Jeff Law <law@redhat.com>
6642
6643 PR tree-optimization/91090
6644 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
6645 in handling of ranges to simplify switch statements.
6646
6647 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6648
6649 * config/darwin.c (darwin_override_options): Make a final check on PIC
6650 options.
6651
6652 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6653
6654 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
6655 on for kernel code.
6656
6657 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6658
6659 PR target/91068
6660 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
6661 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
6662 instead of matching them to "l" output operands.
6663
6664 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6665
6666 * config/mips/mips.c (mips_split_move): Zero-initialize addr
6667 and check whether addr.reg is nonnull before using it.
6668
6669 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6670
6671 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
6672 ctx->for_simd_scan_phase simd copy the outer var to the privatized
6673 variable(s). For conditional lastprivate look through outer
6674 GIMPLE_OMP_SCAN context.
6675 (lower_omp_1): For conditional lastprivate look through outer
6676 GIMPLE_OMP_SCAN context.
6677
6678 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
6679 member to combined_into_simd_safelen1.
6680 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
6681 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
6682 clauses if ctx->combined_into_simd_safelen1 put statements after the
6683 predicate conditionalized block rather than into it.
6684
6685 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6686
6687 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
6688 operand 1.
6689 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
6690 Make the choice of <mode> explicit, giving...
6691 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
6692
6693 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6694
6695 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
6696 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
6697 of .md attributes.
6698 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
6699 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
6700 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
6701 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
6702 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
6703 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
6704 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
6705 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
6706 (*avx512f_scatterdi<mode>): Likewise.
6707 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
6708
6709 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6710
6711 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
6712 specify the mode iterator referenced by <mode>, giving...
6713 (*push1_h8300hs_<QHI:mode>): ...this.
6714
6715 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6716
6717 * config/gcn/gcn-valu.md
6718 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
6719 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
6720 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
6721 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
6722 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
6723 but using the _exec comparison patterns.
6724 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
6725 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
6726 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
6727 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
6728 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
6729 but using the _exec comparison patterns.
6730
6731 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6732
6733 * config/arm/sync.md
6734 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
6735 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
6736 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
6737 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
6738 <SIDI:cas_cmp_str>.
6739
6740 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6741
6742 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
6743 (maybe_lookup_ctx): Add forward declaration.
6744 (omp_find_scan): Likewise. Walk into body of simd if composited
6745 with worksharing loop.
6746 (scan_omp_simd_scan): New function.
6747 (scan_omp_1_stmt): Call it.
6748 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
6749 ctx->for_simd_scan_phase.
6750 (lower_rec_input_clauses): Do much less work for inscan reductions
6751 in ctx->for_simd_scan_phase is_simd regions.
6752 (lower_omp_scan): Set is_simd also on simd constructs composited
6753 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
6754 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
6755 emit their body after in simd constructs composited with worksharing
6756 loop.
6757 (lower_omp_for_scan): Handle worksharing loop composited with simd.
6758
6759 * omp-low.c (omp_find_scan): Make static.
6760 (lower_omp_for_scan): Fix order of merge arguments in input phase of
6761 the second loop, var2 represents the first partial sum and so needs
6762 to go before rprivb[ivar].
6763
6764 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
6765
6766 * config/rs6000/rs6000-logue.c: Remove unused code.
6767
6768 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6769
6770 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
6771
6772 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
6773
6774 PR target/90712
6775 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
6776 check with a frame laid out check.
6777
6778 2019-07-05 Richard Biener <rguenther@suse.de>
6779
6780 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
6781 when comparing against a store with possibly the same value.
6782
6783 2019-07-05 Richard Biener <rguenther@suse.de>
6784
6785 PR tree-optimization/91091
6786 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
6787 (walk_non_aliased_vuses): Likewise.
6788 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
6789 (get_continuation_for_phi): New tbaa_p parameter and pass
6790 it down.
6791 (walk_non_aliased_vuses): Likewise.
6792 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
6793 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
6794 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
6795 Likewise.
6796 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
6797 (adjust_offsets_for_equal_base_address): New function.
6798 (vn_reference_lookup_3): Use it to catch more base equivalences.
6799 Handle and pass down tbaa_p flag.
6800 (vn_reference_lookup_pieces): Adjust.
6801 (vn_reference_lookup): Remove alias-set altering, instead pass
6802 down false as tbaa_p.
6803
6804 2019-07-05 Richard Biener <rguenther@suse.de>
6805
6806 PR tree-optimization/91091
6807 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
6808 accesses can happen with -fno-strict-aliasing.
6809
6810 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
6811
6812 * tree-ssa-alias.c (alias_stats): Add
6813 nonoverlapping_component_refs_since_match_p_must_overlap.
6814 (dump_alias_stats): Print it.
6815 (nonoverlapping_component_refs_since_match_p): Add early exit.
6816 (nonoverlapping_component_refs_p): Do not account early exit.
6817
6818 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6819
6820 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
6821 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
6822 (emit_eh_dispatch): Delete.
6823 (lower_catch): Emit the eh_dispatch manually and set the location of
6824 the first catch statement onto it.
6825 (lower_eh_filter): Emit the eh_dispatch manually and set location.
6826 (lower_eh_dispatch): Propagate location.
6827 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
6828 (eliminate_build): Likewise.
6829
6830 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6831
6832 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
6833 phi nodes if possible.
6834 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
6835 location info on the newly created statement.
6836 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
6837 newly created increment if needed.
6838
6839 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6840
6841 PR middle-end/78884
6842 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
6843 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
6844 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
6845 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
6846 ctx->add_safelen1 is set.
6847
6848 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
6849 GOMP_loop_start at the start of second worksharing loop in a scan.
6850 For nowait, don't emit GOMP_loop_end_nowait at the end of first
6851 worksharing loop in a scan even if there are conditional lastprivates,
6852 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
6853
6854 2019-07-04 Jan Hubicka <jh@suse.cz>
6855
6856 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
6857 Fix check for match in the ref walk.
6858
6859 2019-07-04 Martin Liska <mliska@suse.cz>
6860
6861 * tree-ssa-loop-niter.c
6862 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
6863 (estimate_numbers_of_iterations):
6864 Support __builtin_expect_with_probability for analysis
6865 of # of loop iterations.
6866
6867 2019-07-04 Alexandre Oliva <oliva@adacore.com>
6868
6869 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
6870 * except.c: Likewise.
6871 * expr.c (expand_expr_real_1): Reject it.
6872 * gimplify.c (gimplify_expr): Gimplify it, within
6873 TRY_FINALLY_EXPR.
6874 * tree-dump.c (dequeue_and_dump): Dump it.
6875 * tree-pretty-print.c (dump_generic_node): Likewise.
6876 * tree.c (block_may_fallthru): Handle it.
6877 * tree.def (EH_ELSE_EXPR): Introduce it.
6878 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
6879 with GIMPLE_EH_ELSE as try/finally/else.
6880
6881 2019-07-04 Richard Biener <rguenther@suse.de>
6882
6883 PR ipa/91062
6884 * tree-pass.h (execute_all_ipa_transforms): Add a flag
6885 parameter whether to disable GC collection.
6886 * passes.c (execute_one_ipa_transform_pass): Likewise, and
6887 honor it.
6888 (execute_all_ipa_transforms): Likewise and pass it down.
6889 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
6890 collection from applying IPA transforms.
6891 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
6892 from applying IPA transforms.
6893
6894 2019-07-04 Richard Biener <rguenther@suse.de>
6895
6896 PR tree-optimization/90911
6897 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
6898 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
6899 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
6900 scalar_loop_scaling.
6901 (vect_transform_loop): Scale scalar loop profile if needed.
6902 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
6903 the loop copy from if-conversion adjust edge probabilities
6904 and scale the vectorized loop body profile, queue the scalar
6905 profile for updating after peeling.
6906
6907 2019-07-04 Jan Hubicka <jh@suse.cz>
6908
6909 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
6910 parameters; return early for must-alias.
6911 (indirect_ref_may_alias_decl_p): Likewise; when establishing
6912 outer types match, try nonoverlapping_component_refs
6913 if must-alias is not obvious.
6914 (indirect_refs_may_alias_p): Likewise.
6915 (refs_may_alias_p_2): Likewise.
6916
6917 2019-07-04 Richard Biener <rguenther@suse.de>
6918
6919 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
6920 argument.
6921 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
6922 globals into...
6923 (struct vn_walk_cb_data): New callback data struct.
6924 (vn_reference_lookup_2): Adjust.
6925 (vn_reference_lookup_3): Likewise.
6926 (vn_reference_lookup_pieces): Likewise.
6927 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
6928 (visit_reference_op_load): Adjust.
6929
6930 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6931
6932 PR tree-optimization/91063
6933 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
6934 stmt from stmts sequence before calling vect_init_vector_1.
6935 Formatting fix.
6936
6937 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6938
6939 PR target/88833
6940 * fwprop.c (reg_single_def_p): New function.
6941 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
6942 (forward_propagate_into): New parameter reg_prop_only
6943 with default value false.
6944 Propagate def's src into loop only if SET_SRC and SET_DEST
6945 of def_set have single definitions.
6946 Likewise if reg_prop_only is set to true.
6947 (fwprop): New param fwprop_addr_p.
6948 Integrate fwprop_addr into fwprop.
6949 (fwprop_addr): Remove.
6950 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
6951 to true.
6952 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
6953 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
6954 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
6955
6956 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6957
6958 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
6959 in worksharing loop scans.
6960
6961 PR tree-optimization/91074
6962 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
6963 temporary.
6964
6965 PR rtl-optimization/90756
6966 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
6967 for VECTOR_TYPE_P.
6968
6969 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
6970
6971 * config/aarch64/aarch64.md: Remove redundant constraints from
6972 define_expand but keep some patterns untouched if they are
6973 specially selected by TARGET_SECONDARY_RELOAD hook.
6974 * config/aarch64/aarch64-sve.md: Likewise.
6975 * config/aarch64/atomics.md: Remove redundant constraints from
6976 define_expand.
6977 * config/aarch64/aarch64-simd.md: Likewise.
6978
6979 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6980
6981 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
6982 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
6983 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
6984 clauses.
6985 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
6986 DARWIN_NOPIE_SPEC.
6987
6988 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6989
6990 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
6991 (STARTFILE_SPEC): Split crt3 into a separate spec.
6992 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
6993 (DARWIN_CRT2_SPEC): New.
6994 (DARWIN_CRT3_SPEC): New.
6995 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
6996 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
6997 (DARWIN_CRT3_SPEC): New.
6998
6999 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
7000
7001 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
7002 Change the RTL attribute "length" from "4" to "*" to allow the
7003 length attribute to be adjusted automatically for prefixed load,
7004 store, and add immediate instructions.
7005 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
7006 Likewise.
7007 (extendsi<mode>2, EXTSI iterator): Likewise.
7008 (movsi_internal1): Likewise.
7009 (movsi_from_sf): Likewise.
7010 (movdi_from_sf_zero_ext): Likewise.
7011 (mov<mode>_internal): Likewise.
7012 (movcc_internal1, QHI iterator): Likewise.
7013 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
7014 (movsf_from_si): Likewise.
7015 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
7016 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
7017 (mov<mode>, FMOVE128 iterator): Likewise.
7018 (movdi_internal64): Likewise.
7019 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
7020 Likewise.
7021 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
7022 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
7023 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
7024 (vsx_splat_v4sf): Likewise.
7025
7026 2019-07-03 Mark Wielaard <mark@klomp.org>
7027
7028 PR debug/90981
7029 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
7030 DW_AT_addr_base if there is actually a .debug_addr section with
7031 addresses.
7032 (output_addr_table): Add DWARF5 table header generation here after
7033 checking there are actually any addresses from...
7034 (dwarf2out_finish): ...here.
7035
7036 2019-07-03 Richard Biener <rguenther@suse.de>
7037
7038 PR middle-end/91069
7039 * match.pd (vec_perm -> bit_insert): Fix element read from
7040 first vector.
7041
7042 2019-07-03 Martin Liska <mliska@suse.cz>
7043
7044 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7045 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7046 condition.
7047 * generic-match-head.c: Include dbgcnt.h.
7048 * gimple-match-head.c: Likewise.
7049
7050 2019-07-03 Martin Liska <mliska@suse.cz>
7051
7052 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7053 (GCOV_COUNTER_V_TOPN): New.
7054 (GCOV_COUNTER_V_INDIR): Use _topn.
7055 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7056 (GCOV_TOPN_VALUES): New.
7057 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7058 (GCOV_TOPN_VALUES_COUNTERS): New.
7059 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7060 * tree-profile.c:
7061 (gimple_init_gcov_profiler): Rename variables from one_value
7062 to topn_values.
7063 (gimple_gen_one_value_profiler): Remove.
7064 (gimple_gen_topn_values_profiler): New function.
7065 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7066 names instead of SINGLE_VALUE.
7067 (stream_out_histogram_value): Likewise.
7068 (stream_in_histogram_value): Likewise.
7069 (get_most_common_single_value): Likewise.
7070 (gimple_divmod_fixed_value_transform): Likewise.
7071 (gimple_stringops_transform): Likewise.
7072 (gimple_divmod_values_to_profile): Likewise.
7073 (gimple_stringops_values_to_profile): Likewise.
7074 (gimple_find_values_to_profile): Likewise.
7075 * value-prof.h (enum hist_type): Rename to TOPN.
7076 (gimple_gen_one_value_profiler): Remove.
7077 (gimple_gen_topn_values_profiler): New.
7078
7079 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7080
7081 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7082 if it has the DW_AT_data_member_location attribute.
7083
7084 2019-07-03 Richard Biener <rguenther@suse.de>
7085
7086 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7087 dumping.
7088
7089 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7090
7091 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7092 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7093 (tlsdesc_small_sve_<mode>): Likewise.
7094
7095 2019-07-03 Martin Liska <mliska@suse.cz>
7096
7097 * Makefile.in: Define ZSTD_LIB.
7098 * common.opt: Adjust compression level
7099 to support also zstd levels.
7100 * config.in: Regenerate.
7101 * configure: Likewise.
7102 * configure.ac: Add --with-zstd and --with-zstd-include options
7103 and detect ZSTD.
7104 * doc/install.texi: Mention zstd dependency.
7105 * gcc.c: Print supported LTO compression algorithms.
7106 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7107 (lto_compression_zstd): Likewise.
7108 (lto_uncompression_zstd): Likewise.
7109 (lto_end_compression): Dispatch in between zlib and zstd.
7110 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7111 (lto_uncompression_zlib): Make it static.
7112 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7113 * lto-section-in.c (lto_get_section_data): Pass info
7114 about used compression.
7115 * lto-streamer-out.c: By default use zstd when possible.
7116 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7117 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7118
7119 2019-07-03 Martin Liska <mliska@suse.cz>
7120
7121 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7122 * lto-section-out.c (lto_destroy_simple_output_block): Never
7123 compress LTO_section_lto section.
7124 * lto-streamer-out.c (produce_asm): Do not set major_version
7125 and minor_version.
7126 (lto_output_toplevel_asms): Likewise.
7127 (produce_lto_section): New function.
7128 (lto_output): Call produce_lto_section.
7129 (lto_write_mode_table): Do not set major_version and
7130 minor_version.
7131 (produce_asm_for_decls): Likewise.
7132 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7133 type.
7134 (struct lto_header): Remove.
7135 (struct lto_section): New struct.
7136 (struct lto_simple_header): Do not inherit from lto_header.
7137 (struct lto_file_decl_data): Add lto_section_header field.
7138
7139 2019-07-03 Martin Liska <mliska@suse.cz>
7140
7141 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7142 dead assignemts.
7143 * reg-stack.c (check_asm_stack_operands): Likewise.
7144 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7145 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7146 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7147 force_expand_binop.
7148
7149 2019-07-03 Martin Liska <mliska@suse.cz>
7150
7151 PR tree-optimization/90892
7152 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7153 in string constants.
7154
7155 2019-07-03 Martin Liska <mliska@suse.cz>
7156
7157 PR middle-end/90899
7158 * multiple_target.c (create_dispatcher_calls): Add to comdat
7159 group only if set for ifunc.
7160
7161 2019-07-03 Martin Liska <mliska@suse.cz>
7162
7163 PR target/88056
7164 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7165 Define local_object_name in outer scope in order to handle
7166 use-after-scope issue.
7167
7168 2019-07-03 Martin Liska <mliska@suse.cz>
7169
7170 * common.opt: Add fprofile-note.
7171 * coverage.c (coverage_init): Append the option
7172 to bbg_file_name.
7173 * doc/invoke.texi: Document -fprofile-note.
7174
7175 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7176
7177 PR tree-optimization/91033
7178 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7179 vect_analyze_data_refs): Add bool * arguments.
7180 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7181 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7182 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7183 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7184 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7185 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7186 vect_analyze_data_refs caller.
7187
7188 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7189 clause.
7190 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7191 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7192 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7193 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7194 OMP_CLAUSE__SCANTEMP_ entry.
7195 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7196 * tree-pretty-print.c (dump_omp_clause): Likewise.
7197 * tree-nested.c (convert_nonlocal_omp_clauses,
7198 convert_local_omp_clauses): Likewise.
7199 * omp-general.h (struct omp_for_data): Add have_scantemp and
7200 have_nonctrl_scantemp members.
7201 * omp-general.c (omp_extract_for_data): Initialize them.
7202 * omp-low.c (struct omp_context): Add scan_exclusive member.
7203 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7204 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7205 ctx->scan_exclusive.
7206 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7207 of !ctx->scan_inclusive.
7208 (lower_rec_input_clauses): Simplify gimplification of dtors using
7209 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7210 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7211 loops. Don't add barrier for reduction_omp_orig_ref if
7212 ctx->scan_??xclusive.
7213 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7214 (lower_omp_scan): Use ctx->scan_exclusive instead
7215 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7216 reductions. Use new_vard != new_var instead of repeated
7217 omp_is_reference calls.
7218 (omp_find_scan, lower_omp_for_scan): New functions.
7219 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7220 inscan reductions.
7221 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7222 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7223 and fd->have_scantemp.
7224
7225 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7226 on worksharing loop propagate it as shared clause to containing
7227 combined parallel.
7228
7229 * omp-expand.c (expand_omp_for_static_nochunk,
7230 expand_omp_for_static_chunk): For nowait worksharing loop with
7231 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7232 at the end.
7233
7234 2019-07-02 qing zhao <qing.zhao@oracle.com>
7235
7236 PR preprocessor/90581
7237 * doc/cppopts.texi: Add document for -fmax-include-depth.
7238 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7239
7240 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7241
7242 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7243 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7244 (mmx_packssdw): Ditto.
7245 (mmx_punpckhbw): Ditto.
7246 (mmx_punpcklbw): Ditto.
7247 (mmx_punpckhwd): Ditto.
7248 (mmx_punpcklwd): Ditto.
7249 (mmx_punpckhdq): Ditto.
7250 (mmx_punpckldq): Ditto.
7251 (*vec_dupv4hi): Ditto.
7252 (*vec_dupv2si): Ditto.
7253 (mmx_pmovmskb): Ditto.
7254 * config/i386/sse.md (sse_cvtpi2ps): Use
7255 TARGET_SSE2 && SSE_REG_P in split condition.
7256 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7257 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7258 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7259 (ssse3_pshufbv8qi3): Ditto.
7260 (ssse3_palignrdi): Ditto.
7261
7262 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7263
7264 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7265 with inlined save and restore.
7266
7267 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7268
7269 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7270 to be inserted on single successor edge of the entry block. Then call
7271 commit_edge_insertions instead of inserting the instructions manually.
7272 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7273 RTL expansion and rebuild jump labels chain.
7274
7275 2019-07-02 Richard Biener <rguenther@suse.de>
7276
7277 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7278 TI_CHREC_KNOWN.
7279 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7280 Define here.
7281 * tree.c (build_common_tree_nodes): Initialize them.
7282 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7283 Make declarations comments.
7284 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7285 chrec_known): Remove definitions.
7286 (initialize_scalar_evolutions_analyzer): Remove.
7287 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7288 * tree-streamer.c (preload_common_nodes): Do not preload
7289 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7290
7291 2019-07-02 Jan Hubicka <jh@suse.cz>
7292
7293 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7294 sanity check.
7295
7296 2019-07-02 Jan Hubicka <jh@suse.cz>
7297
7298 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7299 to ..
7300 (nonoverlapping_component_refs_since_match_p): ... this one;
7301 handle also non-decl bases; return -1 if search gave up.
7302 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7303 nonoverlapping_component_refs_of_decl_p_no_alias to
7304 nonoverlapping_component_refs_since_match_p_may_alias,
7305 nonoverlapping_component_refs_since_match_p_no_alias.
7306 (dump_alias_stats): Update dumping.
7307 (aliasing_matching_component_refs_p): Break out from ...;
7308 dispatch to nonoverlapping_component_refs_for_decl_p
7309 and nonoverlapping_component_refs_since_match_p.
7310 (aliasing_component_refs_p): ... here; call
7311 nonoverlapping_component_refs_p in scenarios where we can not
7312 precisely determine base match.
7313 (decl_refs_may_alias_p): Use
7314 nonoverlapping_component_refs_since_match_p.
7315 (indirect_ref_may_alias_decl_p): Do not call
7316 nonoverlapping_component_refs_p.
7317 (indirect_refs_may_alias_p): Likewise.
7318
7319 2019-07-02 Jan Hubicka <jh@suse.cz>
7320
7321 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7322 to clobber of return value.
7323
7324 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7325
7326 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7327 for is_neon_type instructions that have not already been categorized.
7328
7329 2019-07-02 Richard Biener <rguenther@suse.de>
7330
7331 PR tree-optimization/58483
7332 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7333 for MEM_REF base hashing.
7334 (equal_mem_array_ref_p): Likewise for base comparison.
7335
7336 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7337
7338 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7339 parameterized name.
7340 (signbit<mode>2): Use that name. Simplify.
7341
7342 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7343
7344 PR middle-end/66726
7345 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7346 Tune heuristic from PR71016 to allow MIN / MAX.
7347
7348 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7349
7350 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7351 parameterized name.
7352 (abs<mode>2): Use that name. Simplify.
7353
7354 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7355
7356 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7357 parameterized name.
7358 (neg<mode>2): Use that name. Simplify.
7359
7360 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7361
7362 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
7363 name.
7364 (abs<mode>2): Use that name. Simplify.
7365
7366 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7367
7368 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
7369 name.
7370 (neg<mode>2): Use that name. Simplify.
7371
7372 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
7373
7374 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
7375 ("enabled" attribute): Handle sse_noavx isa attribute.
7376 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
7377 Use TARGET_SSE && SSE_REGNO_P in split condition.
7378 (*vec_dupv2sf): Ditto.
7379
7380 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7381
7382 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
7383 name.
7384 (floatsi<mode>2): Use that name. Simplify.
7385
7386 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7387
7388 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
7389 parameterized name.
7390 (extenddf<mode>2_vsx): Make this a parameterized name.
7391 (extenddf<mode>2): Use those names. Simplify.
7392
7393 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7394
7395 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
7396 name.
7397 (eh_return): Use that name. Simplify.
7398
7399 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7400
7401 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
7402 (doloop_end): Use that name. Simplify.
7403
7404 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7405
7406 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
7407 parameterized name.
7408 (indirect_jump): Use that name. Simplify.
7409
7410 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7411
7412 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
7413 parameterized name.
7414 (abs<mode>2): Use that name. Simplify.
7415
7416 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7417
7418 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
7419 parameterized name.
7420 (fix_trunc<mode>si2): Use that name. Simplify.
7421
7422 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7423
7424 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
7425 (allocate_stack): Use that name. Simplify.
7426
7427 2019-07-01 Martin Sebor <msebor@redhat.com>
7428
7429 PR middle-end/90923
7430 * hash-map.h (hash_map::put): On insertion invoke element ctor.
7431 (hash_map::get_or_insert): Same. Reformat comment.
7432 * hash-set.h (hash_set::add): On insertion invoke element ctor.
7433 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7434 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7435 * hash-table.h (hash_table::operator=): Prevent copy assignment.
7436 (hash_table::hash_table (const hash_table&)): Use copy ctor
7437 instead of assignment to copy elements.
7438
7439 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
7440 John David Anglin <danglin@gcc.gnu.org>
7441
7442 PR target/90963
7443 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
7444 using saved frame pointer.
7445
7446 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
7447
7448 PR middle-end/64242
7449 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
7450 Add frame clobber and schedule blockage.
7451
7452 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
7453
7454 * doc/invoke.texi (Link Options): Further editorial changes to
7455 -flinker-output docs.
7456
7457 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7458
7459 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
7460 Load both operands of a PLUS into registers separately.
7461
7462 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
7463
7464 * config/s390/vector.md: Fix shift count operand printing.
7465
7466 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7467
7468 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
7469
7470 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7471
7472 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
7473 Use recog_data to test for an output operand.
7474
7475 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7476
7477 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
7478 exclude any others that are disparaged or that are bound to need
7479 a reload or spill.
7480 (ira_get_dup_out_num): Expand comment.
7481
7482 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7483
7484 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
7485 constraint string for each operand/alternative combo. Only handle
7486 '%' at the start of constraint strings, and look for it outside
7487 the main loop.
7488
7489 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7490
7491 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
7492 alternative_mask instead of HARD_REG_SET to represent a
7493 bitmask of alternatives.
7494 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7495 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
7496
7497 2019-07-01 Martin Liska <mliska@suse.cz>
7498
7499 * edit-context.c (test_applying_fixits_unreadable_file): Do not
7500 use () for a constructor call.
7501 (test_applying_fixits_line_out_of_range): Likewise.
7502 * ggc-page.c (alloc_page): Use (void *) for %p printf format
7503 argument.
7504 (free_page): Likewise.
7505
7506 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
7507
7508 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
7509 parameter names to match usage (no functional change).
7510 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
7511
7512 2019-07-01 Richard Biener <rguenther@suse.de>
7513
7514 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
7515 pass parameter.
7516 (pass_fre::execute): Honor it.
7517 * passes.def: Adjust pass_fre invocations to allow iterating,
7518 add non-iterating pass_fre before late threading/dom.
7519
7520 2019-07-01 Richard Biener <rguenther@suse.de>
7521
7522 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
7523 TARGET_MEM_REF handling to also handle address-taken ones.
7524
7525 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
7526
7527 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7528 hardware attributes): Document avx512vp2intersect.
7529
7530 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7531
7532 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
7533 (abs<mode>2): New expander.
7534 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
7535 Use CODE_FOR_ssse3_absv8qi2.
7536 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
7537 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
7538
7539 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7540
7541 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
7542 to sse, sse_noavx and avx. Update all uses.
7543
7544 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7545
7546 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
7547 (*mmx_<plusminus_insn><mode>3): Ditto.
7548 (*mmx_mulv4hi3"): Ditto.
7549 (*mmx_smulv4hi3_highpart): Ditto.
7550 (*mmx_umulv4hi3_highpart): Ditto.
7551 (*mmx_pmaddwd): Ditto.
7552 (*sse2_umulv1siv1di3): Ditto.
7553 (*mmx_<code>v4hi3): Ditto.
7554 (*mmx_<code>v8qi3): Ditto.
7555 (mmx_ashr<mode>3): Ditto.
7556 ("mmx_<shift_insn><mode>3): Ditto.
7557 (*mmx_eq<mode>3): Ditto.
7558 (mmx_gt<mode>3): Ditto.
7559 (mmx_andnot<mode>3): Ditto.
7560 (*mmx_<code><mode>3): Ditto.
7561 (*mmx_pinsrw): Ditto.
7562 (*mmx_pextrw): Ditto.
7563 (mmx_pshufw_1): Ditto.
7564 (*mmx_uavgv8qi3): Ditto.
7565 (*mmx_uavgv4hi3): Ditto.
7566 ("mmx_psadbw): Ditto.
7567 * config/i386/sse.md (sse_cvtps2pi): Ditto.
7568 (sse_cvttps2pi): Ditto.
7569 (ssse3_pmaddubsw): Ditto.
7570 (*ssse3_pmulhrswv4hi3): Ditto.
7571 (ssse3_psign<mode>3): Ditto.
7572
7573 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
7574
7575 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
7576 adjustment for bit-fields to all aggregate types.
7577
7578 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
7579
7580 * config/rs6000/predicates.md (pcrel_address): Use
7581 SYMBOL_REF_LOCAL_P to determine if a label is local.
7582 (pcrel_external_address): New predicate.
7583 (non_prefixed_mem_operand): Delete, predicate not used.
7584 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
7585 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
7586 addressing.
7587 (SYMBOL_REF_PCREL_P): Likewise.
7588
7589 PR target/91009
7590 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
7591 alternative.
7592 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
7593 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
7594 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
7595
7596 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7597
7598 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
7599 override on extra_headers.
7600
7601 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7602
7603 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
7604 * config/darwin-driver.c (darwin_default_min_version): Remove newline
7605 from warning.
7606 (darwin_driver_init): Likewise.
7607
7608 2019-06-28 Jan Beulich <jbeulich@suse.com>
7609
7610 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7611 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
7612 Eliminate redundant alternative.
7613
7614 2019-06-28 Jan Beulich <jbeulich@suse.com>
7615
7616 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7617 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
7618 Use vector_operand.
7619
7620 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
7621
7622 * config/arc/arc.c (arc_rtx_costs): All short instructions are
7623 having a lower cost regardless of the speed option.
7624
7625 2019-06-28 Jan Beulich <jbeulich@suse.com>
7626
7627 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
7628 vector_operand plus, on both alternatives, "Bm" constraint.
7629
7630 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
7631
7632 * config/arm/arm.md: Remove redundant constraints from
7633 define_expand but leave reload_inm and reload_outm patterns
7634 untouched since they need special constraints to work.
7635 * config/arm/arm-fixed.md: Remove redundant constraints from
7636 define_expand.
7637 * config/arm/iwmmxt.md: Likewise.
7638 * config/arm/neon.md: Likewise.
7639 * config/arm/sync.md: Likewise.
7640 * config/arm/thumb1.md: Likewise.
7641 * config/arm/vec-common.md: Likewise.
7642
7643 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
7644
7645 * doc/install.texi: Document --disable-tm-clone-registry.
7646
7647 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7648
7649 PR c++/91024
7650 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
7651 statements.
7652
7653 PR tree-optimization/91010
7654 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
7655 return true. Otherwise, don't call operand_equal_p if offset1 or
7656 offset2 is NULL and just return false.
7657
7658 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7659
7660 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
7661 user-specified float mode choice for kernel mode code.
7662
7663 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7664
7665 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
7666 spec.
7667
7668 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7669
7670 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
7671 use longcall for 64b code.
7672
7673 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
7674
7675 * builtins.c (get_memory_rtx): Fix comment.
7676 * optabs.def (movmem_optab): Change to cpymem_optab.
7677 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
7678 (emit_block_move_hints): Change movmem to cpymem.
7679 * defaults.h: Change movmem to cpymem.
7680 * targhooks.c (get_move_ratio): Change movmem to cpymem.
7681 (default_use_by_pieces_infrastructure_p): Ditto.
7682 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
7683 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
7684 to cpymem.
7685 * config/aarch64/aarch64.h: Change movmem to cpymem.
7686 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
7687 * config/alpha/alpha.h: Change movmem to cpymem in comment.
7688 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
7689 movmem to cpymem.
7690 * config/arc/arc-protos.h: Change movmem to cpymem.
7691 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
7692 * config/arc/arc.h: Change movmem to cpymem in comment.
7693 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
7694 * config/arm/arm-protos.h: Change movmem to cpymem in names.
7695 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
7696 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
7697 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
7698 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
7699 * config/avr/avr-protos.h: Change movmem to cpymem.
7700 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
7701 avr_out_movmem): Change movmem to cpymem.
7702 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
7703 Change movmem to cpymem.
7704 * config/bfin/bfin-protos.h: Change movmem to cpymem.
7705 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
7706 Change movmem to cpymem.
7707 * config/bfin/bfin.h: Change movmem to cpymem in comment.
7708 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
7709 * config/c6x/c6x-protos.h: Change movmem to cpymem.
7710 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
7711 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
7712 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
7713 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
7714 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
7715 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
7716 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
7717 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
7718 expand_small_cpymem_or_setmem,
7719 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
7720 expand_set_or_cpymem_constant_prologue,
7721 ix86_expand_set_or_cpymem): Change movmem to cpymem.
7722 * config/i386/i386-protos.h: Change movmem to cpymem.
7723 * config/i386/i386.h: Change movmem to cpymem in comment.
7724 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
7725 (setmem<mode>): Change expansion function name.
7726 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
7727 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
7728 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
7729 * config/m32c/m32c-protos.h: Change movmem to cpymem.
7730 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
7731 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
7732 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
7733 to cpymem.
7734 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
7735 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
7736 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
7737 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
7738 Change movmem to cpymem.
7739 * config/mips/mips.h: Change movmem to cpymem.
7740 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
7741 * config/nds32/nds32-memory-manipulation.c
7742 (nds32_expand_movmemsi_loop_unknown_size,
7743 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
7744 nds32_expand_movmemsi_unroll,
7745 nds32_expand_movmemsi): Change movmem to cpymem.
7746 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
7747 * config/nds32/nds32-protos.h: Change movmem to cpymem.
7748 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
7749 (pa_adjust_insn_length): Change call to compute_movmem_length.
7750 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
7751 movmemdi, movmemdi_prereload,
7752 movmemdi_postreload): Change movmem to cpymem.
7753 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
7754 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
7755 * config/riscv/riscv.c: Change movmem to cpymem in comment.
7756 * config/riscv/riscv.h: Change movmem to cpymem.
7757 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
7758 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
7759 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
7760 movmem to cpymem.
7761 * config/s390/s390-protos.h: Change movmem to cpymem.
7762 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
7763 s390_expand_insv): Change movmem to cpymem.
7764 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
7765 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
7766 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
7767 * config/sparc/sparc.h: Change movmem to cpymem in comment.
7768 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
7769 for nonexistent function.
7770 * config/vax/vax.h: Change movmem to cpymem in comment.
7771 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
7772 * config/visium/visium.h: Change movmem to cpymem in comment.
7773 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
7774 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
7775 * doc/md.texi: Change movmem to cpymem and update description to match.
7776 * doc/rtl.texi: Change movmem to cpymem.
7777 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
7778 * doc/tm.texi: Regenerate.
7779
7780 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
7781
7782 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
7783 -fvariable-expansion-in-unroller by default.
7784 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
7785 default for Power.
7786
7787 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
7788
7789 Revert
7790 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7791 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7792
7793 * config.gcc(rs6000-*-*): Define target_gtfiles.
7794
7795 2019-06-27 Jan Hubicka <jh@suse.cz>
7796
7797 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
7798 (add_type_duplicate): When odr hash is not allocated, to nothing.
7799 (odr_based_tbaa_p): New function.
7800 (set_type_canonical_for_odr_type): New function.
7801 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
7802 set_type_canonical_for_odr_type): New.
7803 * tree.c (gimple_canonical_types_compatible_p): ODR types with
7804 ODR based TBAA are not equivalent to non-ODR types.
7805
7806 2019-06-27 Martin Liska <mliska@suse.cz>
7807
7808 PR tree-optimization/90974
7809 PR rtl-optimization/90975
7810 PR rtl-optimization/90976
7811 PR target/91016
7812 PR tree-optimization/91017
7813 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
7814 unused tmp.
7815 * lra.c (lra_set_insn_recog_data): Remove a leftover from
7816 initial commit of IRA.
7817 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
7818 of op0 and op1.
7819 * tree-vect-loop.c (vect_create_epilog_for_reduction):
7820 Remove unused mode1.
7821 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
7822 to new_stmt_info.
7823
7824 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7825
7826 PR target/90991
7827 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
7828 instead of register_operand for operands[1], add m to its constraints
7829 if operands[2] uses "C" constraint. Ensure in condition that if
7830 operands[2] is not 0, then operands[1] is not a MEM. For last two
7831 alternatives, use unaligned loads instead of aligned if operands[1] is
7832 misaligned_operand.
7833
7834 2019-06-27 Martin Liska <mliska@suse.cz>
7835
7836 * asan.c (asan_emit_allocas_unpoison): Remove obviously
7837 dead assignments.
7838 * bt-load.c (move_btr_def): Likewise.
7839 * builtins.c (expand_builtin_apply_args_1): Likewise.
7840 (expand_builtin_apply): Likewise.
7841 * cfgexpand.c (expand_asm_stmt): Likewise.
7842 (construct_init_block): Likewise.
7843 * cfghooks.c (verify_flow_info): Likewise.
7844 * cfgloopmanip.c (remove_path): Likewise.
7845 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
7846 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
7847 * combine.c (simplify_if_then_else): Likewise.
7848 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7849 (choose_basereg): Likewise.
7850 (ix86_expand_prologue): Likewise.
7851 (ix86_preferred_output_reload_class): Likewise.
7852 * cselib.c (cselib_record_sets): Likewise.
7853 * df-scan.c (df_scan_alloc): Likewise.
7854 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
7855 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
7856 * emit-rtl.c (try_split): Likewise.
7857 * graphite-scop-detection.c (assign_parameter_index_in_region):
7858 Likewise.
7859 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
7860 * ira-color.c (setup_profitable_hard_regs): Likewise.
7861 * ira.c (rtx_moveable_p): Likewise.
7862 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7863 * read-rtl.c (read_subst_mapping): Likewise.
7864 * regrename.c (scan_rtx): Likewise.
7865 * reorg.c (fill_slots_from_thread): Likewise.
7866 * tree-inline.c (tree_function_versioning): Likewise.
7867 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
7868 * tree-ssa-sink.c (statement_sink_location): Likewise.
7869 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
7870 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
7871 (vect_create_epilog_for_reduction): Likewise.
7872 * tree.c (build_nonstandard_integer_type): Likewise.
7873
7874 2019-06-27 Richard Biener <rguenther@suse.de>
7875
7876 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
7877
7878 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
7879
7880 PR tree-optimization/89772
7881 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
7882 out-of-bound accesses checking.
7883
7884 2019-06-27 Martin Liska <mliska@suse.cz>
7885
7886 PR tree-optimization/91014
7887 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
7888 when LHS is NULL_TREE.
7889
7890 2019-06-27 Martin Liska <mliska@suse.cz>
7891
7892 * symbol-summary.h (traverse): Pass
7893 argument a to the call of callback.
7894 (gt_ggc_mx): Mark arguments as unused.
7895 (gt_pch_nx): Likewise.
7896
7897 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
7898
7899 PR target/62147
7900 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
7901 finiteness.
7902
7903 2019-06-26 Jeff Law <law@redhat.com>
7904
7905 PR tree-optimization/90883
7906 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
7907 (delete_dead_or_redundant_assignment): Likewise.
7908
7909 PR tree-optimization/90883
7910 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
7911 * tree-ssa-dse.c: Update various comments to distinguish between
7912 dead and redundant stores.
7913 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
7914 (dse_optimize_redundant_stores): New function.
7915 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
7916 Distinguish between dead and redundant calls in dump output. All
7917 callers updated.
7918 (delete_dead_or_redundant_assignment): Similarly for assignments.
7919 (dse_optimize_stmt): Handle _CHK variants. For statements which
7920 store 0 into multiple memory locations, try to prove a subsequent
7921 store is redundant.
7922
7923 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
7924
7925 PR target/89021
7926 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
7927 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
7928
7929 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7930
7931 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
7932 (branch_islands): New extern.
7933 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
7934 * config/rs6000/rs6000.c: .. here.
7935
7936 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7937
7938 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
7939 (powerpc*-*-*) ... to here.
7940
7941 2019-06-26 Jeff Law <law@redhat.com>
7942
7943 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
7944 memcpy, memmove and memset builtins.
7945 (maybe_trim_memstar_call): Likewise.
7946
7947 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7948
7949 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
7950
7951 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7952
7953 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7954
7955 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7956
7957 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
7958 declaration.
7959 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
7960 "static".
7961 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
7962 declaration.
7963
7964 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7965
7966 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
7967
7968 2019-06-26 Richard Biener <rguenther@suse.de>
7969
7970 PR ipa/90982
7971 * tree-inline.c (remap_ssa_name): Copy SSA range info.
7972
7973 2019-06-26 Richard Biener <rguenther@suse.de>
7974
7975 * lto-streamer.h (lto_bitmap_alloc): Remove.
7976 (lto_bitmap_free): Likewise.
7977 * lto-streamer.c (lto_bitmap_alloc): Remove.
7978 (lto_bitmap_free): Likewise.
7979 (lto_obstack): Likewise.
7980 (lto_obstack_initialized): Likewise.
7981 * lto-streamer-out.c (lto_output): Use own obstack for local
7982 bitmap, free it consistently.
7983
7984 2019-06-26 Jakub Jelinek <jakub@redhat.com>
7985
7986 PR target/90991
7987 * config/i386/sse.md
7988 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
7989 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
7990 insns if operands[2] is misaligned_operand.
7991
7992 2019-06-26 Li Jia He <helijia@linux.ibm.com>
7993
7994 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
7995 TARGET_POWERPC64.
7996 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
7997 to GPR.
7998
7999 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8000
8001 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
8002
8003 2019-06-26 Martin Liska <mliska@suse.cz>
8004
8005 PR tree-optimization/90973
8006 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
8007 epilogue_cost_vec instead of prologue_cost_vec for
8008 a epilogue cost.
8009
8010 2019-06-26 Martin Liska <mliska@suse.cz>
8011
8012 * bb-reorder.c (connect_better_edge_p): Add missing else
8013 statement in the middle of if-else statements.
8014
8015 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
8016 H.J. Lu <hongjiu.lu@intel.com>
8017 Olga Makhotina <olga.makhotina@intel.com>
8018
8019 * common/config/i386/i386-common.c
8020 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
8021 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
8022 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
8023 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
8024 (ix86_handle_option): Handle -mavx512vp2intersect.
8025 * config/i386/avx512vp2intersectintrin.h: New.
8026 * config/i386/avx512vp2intersectvlintrin.h: New.
8027 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
8028 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8029 AVX512VP2INTERSECT.
8030 * config/i386/i386-builtin-types.def: Add new types.
8031 * config/i386/i386-builtin.def: Add new builtins.
8032 * config/i386/i386-builtins.c: (enum processor_features): Add
8033 F_AVX512VP2INTERSECT.
8034 (static const _isa_names_table isa_names_table): Ditto.
8035 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8036 __AVX512VP2INTERSECT__.
8037 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8038 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8039 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8040 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8041 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8042 * config/i386/i386-options.c (ix86_target_string): Add
8043 -mavx512vp2intersect.
8044 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8045 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8046 P2HImode and P2QImode.
8047 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8048 number for P2QImode and P2HImode.
8049 (ix86_regmode_natural_size): New function.
8050 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8051 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8052 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8053 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8054 * config/i386/i386.opt: Add -mavx512vp2intersect.
8055 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8056 avx512vp2intersectvlintrin.h.
8057 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8058 (define_mode_iterator VI48_AVX512VP2VL): New.
8059 (avx512vp2intersect_2intersect<mode>,
8060 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8061 * config.gcc: Add avx512vp2intersectvlintrin.h and
8062 avx512vp2intersectintrin.h to extra_headers.
8063 * doc/invoke.texi: Document -mavx512vp2intersect.
8064
8065 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8066
8067 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8068
8069 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8070
8071 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8072 savres_routine_syms, savres_routine_name, morestack_ref,
8073 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8074 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8075 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8076 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8077 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8078 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8079 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8080 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8081 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8082 get_stack_clash_protection_probe_interval,
8083 get_stack_clash_protection_guard_size,
8084 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8085 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8086 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8087 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8088 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8089 gen_frame_mem_offset, rs6000_savres_routine_name,
8090 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8091 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8092 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8093 rs6000_global_entry_point_prologue_needed_p,
8094 rs6000_get_separate_components, rs6000_components_for_bb,
8095 rs6000_disqualify_components, rs6000_emit_prologue_components,
8096 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8097 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8098 rs6000_output_savres_externs, rs6000_output_function_prologue,
8099 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8100 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8101 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8102 rs6000_output_function_epilogue, gen_add3_const,
8103 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8104 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8105 to rs6000-logue.c.
8106 (machine_function): Moved to rs6000.h.
8107 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8108 rs6000-internal.h.
8109 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
8110 savres_routine_syms, savres_routine_name, morestack_ref,
8111 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8112 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8113 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8114 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8115 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8116 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8117 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8118 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8119 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8120 get_stack_clash_protection_probe_interval,
8121 get_stack_clash_protection_guard_size,
8122 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8123 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8124 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8125 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8126 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8127 gen_frame_mem_offset, rs6000_savres_routine_name,
8128 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8129 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8130 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8131 rs6000_global_entry_point_prologue_needed_p,
8132 rs6000_get_separate_components, rs6000_components_for_bb,
8133 rs6000_disqualify_components, rs6000_emit_prologue_components,
8134 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8135 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8136 rs6000_output_savres_externs, rs6000_output_function_prologue,
8137 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8138 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8139 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8140 rs6000_output_function_epilogue, gen_add3_const,
8141 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8142 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8143 to here from rs6000.c.
8144 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8145 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8146 quad_address_offset_p) Moved to here from rs6000.c.
8147 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8148 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8149 collector.
8150
8151 2019-06-25 Martin Liska <mliska@suse.cz>
8152
8153 * hash-table.c (hashtab_chk_error): Move here from ...
8154 * hash-table.h (hashtab_chk_error): ... here.
8155
8156 2019-06-25 Martin Liska <mliska@suse.cz>
8157
8158 PR tree-optimization/90978
8159 * df-scan.c (df_update_entry_block_defs): Remove dead else
8160 branch.
8161 (df_update_exit_block_uses): Likewise.
8162
8163 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8164 Andrew Stubbs <ams@codesourcery.com>
8165
8166 * config.gcc (thread_file): Set to gcn for AMD GCN.
8167 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8168 (TARGET_EMUTLS_VAR_INIT): New hook.
8169
8170 2019-06-25 Martin Jambor <mjambor@suse.cz>
8171
8172 PR ipa/90939
8173 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8174
8175 2019-06-25 Richard Biener <rguenther@suse.de>
8176
8177 PR tree-optimization/90930
8178 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8179 into parallel form in the last pass instance.
8180
8181 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8182
8183 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8184 (arc_legitimize_pic_address): Simplify and cleanup the function.
8185 (SYMBOLIC_CONST): Remove.
8186 (prepare_pic_move): Likewise.
8187 (prepare_move_operands): Handle complex mov cases here.
8188 (arc_legitimize_address_0): Remove call to
8189 arc_legitimize_pic_address.
8190 (arc_legitimize_address): Remove call to
8191 arc_legitimize_tls_address.
8192 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8193 (movhi_insn): Likewise.
8194
8195 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8196
8197 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8198 PTRDIFF_TYPE.
8199 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8200 format of "__intN" types for UINTMAX_TYPE.
8201 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8202 format of "__intN" types for SIZETYPE.
8203 * tree.c (build_common_tree_nodes): Accept "__intN__"
8204 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8205 * doc/invoke.texi: Document that __intN__ disables pedantic
8206 warnings.
8207
8208 2019-06-25 Jan Hubicka <jh@suse.cz>
8209
8210 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8211 base2_alias_set is non-zero before doing TBAA based disambiguation.
8212
8213 2019-06-25 Martin Liska <mliska@suse.cz>
8214
8215 PR tree-optimization/90973
8216 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8217 of prologue and epilogue.
8218
8219 2019-06-24 Jan Hubicka <jh@suse.cz>
8220
8221 * ipa-utils.h (type_with_linkage_p): Verify that type is
8222 CXX_ODR_P.
8223 (odr_type_p): Remove extra return.
8224 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8225 hash STRING_FLAG only for arrays and integers.
8226 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8227 Update analogously.
8228 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8229 Likewise.
8230 * print-tree.c (print_node): Print cxx-odr-p
8231 and string-flag.
8232 * tree.c (need_assembler_name_p): Also check that type
8233 is CXX_ODR_TYPE_P
8234 (verify_type_variant): Update verification of SRING_FLAG;
8235 also check CXX_ODR_P.
8236 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8237 (TYPE_STRING_FLAG): Use it.
8238 (TYPE_CXX_ODR_P): New macro.
8239 * dwarf2out.c (gen_array_type_die): First check that type
8240 is an array and then test string flag.
8241
8242 2019-06-24 Richard Biener <rguenther@suse.de>
8243
8244 PR tree-optimization/90972
8245 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8246 in common code, dealing with STRING_CST properly.
8247
8248 2019-06-24 Richard Biener <rguenther@suse.de>
8249
8250 PR tree-optimization/90930
8251 PR tree-optimization/90316
8252 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8253 decrement of limit.
8254
8255 2019-06-24 Martin Sebor <msebor@redhat.com>
8256
8257 * tree-pretty-print.h: Remove unnecessary punctuation characters
8258 from a diagnostic.
8259 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8260
8261 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8262
8263 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8264 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8265 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8266
8267 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8268
8269 * config/rs6000/darwin.h: Handle GCC target pragma.
8270
8271 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8272
8273 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8274
8275 2019-06-22 Jeff Law <law@redhat.com>
8276
8277 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8278
8279 2019-06-22 Jan Hubicka <jh@suse.cz>
8280
8281 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8282 give up on bitfields; continue searching for different refs
8283 appearing later.
8284
8285 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8286
8287 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8288 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8289 containing the offset as possible simd lane access. Look through
8290 widening conversion. Move the
8291 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8292
8293 2019-06-21 Richard Biener <rguenther@suse.de>
8294
8295 PR tree-optimization/90930
8296 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8297 flag on new stmts to avoid re-processing them.
8298
8299 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8300
8301 PR c++/90875 - added -Wswitch-outside-range option
8302 * doc/invoke.texi (Wswitch-outside-range): Document.
8303
8304 2019-06-21 Jeff Law <law@redhat.com>
8305
8306 PR tree-optimization/90949
8307 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8308 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8309
8310 2019-06-21 Richard Biener <rguenther@suse.de>
8311
8312 PR debug/90914
8313 * dwarf2out.c (prune_unused_types_walk): Always consider
8314 function-local extern declarations as used.
8315
8316 2019-06-21 Richard Biener <rguenther@suse.de>
8317
8318 PR tree-optimization/90913
8319 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8320 the scalar variant of if-conversion versioning.
8321
8322 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8323
8324 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8325 create another "omp scan inscan exclusive" array if
8326 !ctx->scan_inclusive.
8327 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8328 (lower_omp_scan): Likewise.
8329 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8330 2-bit bitfield for simd_lane_access_p member.
8331 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8332 aux == (void *)-4 as simd lane access.
8333 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8334 comment with permutations to show the canonical permutation order.
8335 (vectorizable_scan_store): Handle exclusive scan.
8336 (vectorizable_store): Call vectorizable_scan_store even for
8337 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8338
8339 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8340 "omp simd array" arrays with one byte elements.
8341
8342 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8343
8344 * config/alpha/alpha.md (@unaligned_store<mode>):
8345 Rename from unaligned_store<mode>.
8346 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8347 * config/alpha/sync.md (@load_locked_<mode>): Rename
8348 from load_locked_<mode>.
8349 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8350 (@atomic_compare_and_swap<mode>_1): Rename
8351 from atomic_compare_and_swap<mode>_1.
8352 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8353 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8354 Use gen_reload_in_aligned and gen_unaligned_store.
8355 (emit_load_locked): Remove.
8356 (emit_store_conditional): Ditto.
8357 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8358 (alpha_split_compare_and_swap): Ditto.
8359 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8360 (alpha_split_compare_and_swap_12): Use gen_load_locked
8361 and gen_store_conditional.
8362 (alpha_split_atomic_exchange): Ditto.
8363 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
8364 (alpha_split_atomic_exchange_12): Use gen_load_locked
8365 and gen_store_conditional.
8366
8367 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
8368
8369 * config/aarch64/aarch64-errata.h: New file.
8370 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
8371 (CA53_ERR_843419_SPEC): Delete.
8372 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
8373 * config/aarch64/aarch64-linux.h: Likewise.
8374 * config/aarch64/aarch64-netbsd.h: Likewise.
8375 * config/aarch64/aarch64-freebsd.h: Likewise.
8376
8377 2019-06-20 Marek Polacek <polacek@redhat.com>
8378
8379 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
8380
8381 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
8382
8383 * config/rs6000/rs6000.md (isa attribute): Add support for
8384 for a future processor.
8385
8386 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
8387
8388 PR target/54855
8389 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
8390 standard scalar operation pattern for V2DF.
8391 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
8392 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
8393 (*ieee_<ieee_maxmin><mode>3): Likewise.
8394 (vec_setv2df_0): Likewise.
8395
8396 2019-06-20 Jan Hubicka <jh@suse.cz>
8397
8398 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
8399 parameter; it has no use in gimple memory model.
8400 (indirect_ref_may_alias_decl_p): Update.
8401
8402 2019-06-20 Martin Liska <mliska@suse.cz>
8403
8404 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
8405 to 10.
8406
8407 2019-06-20 Jakub Jelinek <jakub@redhat.com>
8408
8409 * tree-vect-stmts.c (enum scan_store_kind): New type.
8410 (scan_store_can_perm_p): Change last argument from int * to
8411 vec<enum scan_store_kind> *, record precisely which permutations
8412 need whole vector left shift or that plus VEC_COND_EXPR.
8413 (vectorizable_scan_store): Adjust caller, use whole vector left shift
8414 and additional VEC_COND_EXPR only for those iterations that need it.
8415
8416 2019-06-20 Alexandre Oliva <oliva@adacore.com>
8417
8418 * config.gcc: Fix ARM --with-fpu checking and error message.
8419
8420 2019-06-19 Marek Polacek <polacek@redhat.com>
8421
8422 PR c++/60364 - noreturn after first decl not diagnosed.
8423 * attribs.c (get_attribute_namespace): No longer static.
8424 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
8425 attributes.
8426 (attr_noreturn_exclusions): Make it extern.
8427 * attribs.h (get_attribute_namespace): Declare.
8428 * tree-inline.c (function_attribute_inlinable_p): Use
8429 get_attribute_name.
8430
8431 2019-06-19 Martin Sebor <msebor@redhat.com>
8432
8433 PR tree-optimization/90626
8434 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
8435
8436 PR tree-optimization/90626
8437 * tree-ssa-strlen.c (strxcmp_unequal): New function.
8438 (handle_builtin_string_cmp): Call it.
8439
8440 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8441
8442 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
8443 and DARWIN_NOPIE_SPEC.
8444 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
8445 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
8446 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
8447 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
8448 (DARWIN_EXPORT_DYNAMIC): Delete.
8449 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
8450 and pie options processing to darwin.h.
8451 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
8452
8453 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8454
8455 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
8456 in computing the number of options to be moved.
8457
8458 2019-06-19 Maya Rashish <coypu@sdf.org>
8459
8460 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
8461 (CLEAR_INSN_CACHE) Use it.
8462
8463 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
8464
8465 * config/i386/i386.md (cmpstrnsi): Remove dead code.
8466
8467 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
8468
8469 PR middle-end/84521
8470 * builtins.c (expand_builtin_setjmp_setup): Save
8471 hard_frame_pointer_rtx.
8472 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
8473 restore fp.
8474 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
8475 non-local goto.
8476 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
8477 elimination code.
8478 (remove_reg_equal_offset_note): Remove unused function.
8479 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
8480 code.
8481 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8482 (arc_builtin_setjmp_frame_value): Remove function.
8483 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8484 (avr_builtin_setjmp_frame_value): Remove function.
8485 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8486 (ix86_builtin_setjmp_frame_value): Remove function.
8487 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
8488 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8489 (sparc_builtin_setjmp_frame_value): Remove function.
8490 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8491 (vax_builtin_setjmp_frame_value): Remove function.
8492 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
8493 pointer if has_nonlocal_label.
8494
8495 2019-06-19 Jakub Jelinek <jakub@redhat.com>
8496
8497 * doc/md.texi: Document vec_shl_<mode> pattern.
8498 * optabs.def (vec_shl_optab): New optab.
8499 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
8500 argument, if == vec_shl_optab, check for left whole vector shift
8501 pattern rather than right shift.
8502 (expand_vec_perm_const): Add vec_shl_optab support.
8503 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
8504 in the comment.
8505 * tree-vect-generic.c (lower_vec_perm): Support permutations which
8506 can be handled by vec_shl_optab.
8507 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
8508 (check_scan_store): Use it.
8509 (vectorizable_scan_store): If target can't do normal permutations,
8510 try to use whole vector left shifts and if needed a VEC_COND_EXPR
8511 after it.
8512 * config/i386/sse.md (vec_shl_<mode>): New expander.
8513
8514 * omp-low.c (lower_rec_input_clauses): Handle references properly
8515 in inscan clauses.
8516 (lower_omp_scan): Likewise.
8517
8518 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8519
8520 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
8521 mem_mode is BLKmode.
8522
8523 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
8524
8525 PR target/90922
8526 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
8527 pointer adjustment for the case of no callee-saved registers and
8528 stack frame bigger than 128 bytes.
8529
8530 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8531
8532 PR middle-end/90862
8533 * omp-low.c (check_omp_nesting_restrictions): Handle
8534 GF_OMP_TARGET_KIND_OACC_DECLARE.
8535
8536 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
8537
8538 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
8539 (@add<mode>3_carry): Rename from add<mode>3_carry.
8540 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
8541 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
8542 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
8543 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
8544 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
8545 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
8546 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
8547 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
8548 (cmpstrnsi): Use gen_cmp_1.
8549 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
8550 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
8551 (@umonitor_<mode>): Rename from umonitor_<mode>.
8552 * config/i386/i386-expand.c (ix86_expand_copysign):
8553 Use gen_copysign3_const and gen_copysign3_var.
8554 (ix86_expand_xorsign): Use gen_xorsign3_1.
8555 (ix86_expand_branch): Use gen_sub3_carry_ccc,
8556 gen_sub3_carry_ccgz and gen_cmp1.
8557 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
8558 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
8559 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
8560 (ix86_split_lshr): Ditto.
8561 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
8562
8563 2019-06-18 Jason Merrill <jason@redhat.com>
8564
8565 * tree.c (build_constructor): Add MEM_STAT_DECL.
8566
8567 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8568
8569 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
8570 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
8571 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
8572 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
8573 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
8574 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
8575 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
8576 Use CC_NZC instead of CC.
8577 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
8578 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
8579 (aarch64_print_operand): Handle E_CC_NZCmode.
8580 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
8581 of gen_set_clobber_cc.
8582
8583 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8584
8585 * config/aarch64/aarch64-sve.md: Tabify file.
8586
8587 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8588
8589 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
8590 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
8591 * config/aarch64/aarch64-sve.md: Use it.
8592
8593 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8594
8595 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
8596 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
8597 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
8598 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
8599 (aarch64_expand_sve_vec_cmp_int): Use it.
8600 (aarch64_expand_sve_vec_cmp_float): Likewise.
8601 * config/aarch64/aarch64-sve.md: Likewise throughout.
8602
8603 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8604 Kugan Vivekanandarajah <kuganv@linaro.org>
8605
8606 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
8607 (*cond_<optab><mode>_z): Fold into...
8608 (*cond_<optab><mode>_any): ...here. Also handle cases in which
8609 operand 4 can be tied to operand 0 (either inherently or via RA).
8610
8611 2019-06-18 Richard Biener <rguenther@suse.de>
8612
8613 PR debug/90900
8614 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
8615 as if optimized away.
8616
8617 2019-06-18 Tom de Vries <tdevries@suse.de>
8618
8619 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
8620 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
8621 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
8622 Rename to ...
8623 (define_insn "@set_softstack_<mode>"): ... this.
8624 (define_insn "omp_simt_enter_<mode>"): Rename to ...
8625 (define_insn "@omp_simt_enter_<mode>"): ... this.
8626 (define_insn "omp_simt_exit_<mode>"): Rename to ...
8627 (define_insn "@omp_simt_exit_<mode>"): ... this.
8628
8629 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8630
8631 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
8632 vf parameter. Restore the previous iv step of nscalars_step,
8633 but give it iv_type rather than compare_type. Tweak code order
8634 to match the comments.
8635 (vect_set_loop_condition_masked): Update accordingly.
8636 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
8637 for iv_precision. Tweak comment formatting.
8638
8639 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8640
8641 * config/darwin.c: Strip trailing whitespace.
8642
8643 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8644
8645 * config/darwin.c (darwin_emit_unwind_label): New default to false.
8646 (darwin_override_options): Set darwin_emit_unwind_label as needed.
8647
8648 2019-06-18 Martin Jambor <mjambor@suse.cz>
8649
8650 PR ipa/90889
8651 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
8652 caller does not have flag_ipa_cp set.
8653
8654 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8655
8656 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
8657 from "*fold_left_plus_<mode>", updated operands order.
8658 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
8659 * internal-fn.c (mask_fold_left_direct): New define.
8660 (expand_mask_fold_left_optab_fn): Likewise.
8661 (direct_mask_fold_left_optab_supported_p): Likewise.
8662 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
8663 * optabs.def (mask_fold_left_plus_optab): New optab.
8664 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
8665 masked internal_fn for a reduction ifn.
8666 (vectorize_fold_left_reduction): Add support for masking reductions.
8667
8668 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
8669
8670 PR middle-end/80791
8671 * target.def (predict_doloop_p): New hook.
8672 * targhooks.h (default_predict_doloop_p): New declaration.
8673 * targhooks.c (default_predict_doloop_p): New function.
8674 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
8675 * doc/tm.texi: Regenerate.
8676 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
8677 (TARGET_PREDICT_DOLOOP_P): New macro.
8678 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
8679
8680 2019-06-17 Jakub Jelinek <jakub@redhat.com>
8681
8682 * omp-low.c (struct omp_context): Add scan_inclusive field.
8683 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
8684 if inclusive scan.
8685 (struct omplow_simd_context): Add lastlane member.
8686 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
8687 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
8688 1 or 2 argument.
8689 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
8690 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
8691 (lower_omp_scan): New function.
8692 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
8693 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
8694 check 3rd argument if present rather than 2nd.
8695 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
8696 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
8697 2-bit bitfield.
8698 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8699 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
8700 than 2nd.
8701 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
8702 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
8703 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
8704 init.
8705 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
8706 IFN_GOMP_SIMD_LANE argument.
8707 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
8708 encoded ->aux value.
8709 * tree-vect-stmts.c: Include attribs.h.
8710 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
8711 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
8712 functions.
8713 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
8714 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
8715
8716 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
8717
8718 PR target/62055
8719 * config/i386/i386.md (*nabstf2_1): New insn pattern.
8720 (*nabs<mode>2_1): Ditto.
8721 (nabs sse-reg splitter): New splitter.
8722 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
8723
8724 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8725
8726 PR bootstrap/90873.
8727 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8728 TMR index check.
8729
8730 2019-06-17 Tom de Vries <tdevries@suse.de>
8731
8732 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
8733 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
8734 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
8735 ...
8736 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
8737 match_operand 0.
8738 (define_insn "omp_simt_enter_insn"): Rename to ...
8739 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
8740 match_operand 0, 1 and 2, as well as the unspec_volatile result.
8741 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
8742 gen_omp_simt_enter_si.
8743 (define_expand "omp_simt_exit"): New.
8744 (define_insn "omp_simt_exit"): Rename to ...
8745 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
8746 match_operand 0.
8747
8748 2019-06-17 Matthew Green <mrg@eterna.com.au>
8749 Maya Rashish <coypu@sdf.org>
8750
8751 * config.gcc (aarch64*-*-netbsd*): New target.
8752 * config/aarch64/aarch64-netbsd.h: New file.
8753 * config/aarch64/t-aarch64-netbsd: Likewise.
8754
8755 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8756
8757 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
8758 the access path from base to first VIEW_CONVERT_EXPR or
8759 BIT_FIELD_REF.
8760
8761 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8762
8763 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
8764 access path on BIT_FIELD_REFs.
8765
8766 2019-06-17 Martin Liska <mliska@suse.cz>
8767
8768 PR ipa/90874
8769 * ipa-utils.h (odr_type_p): Remove dead code.
8770
8771 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8772
8773 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
8774 alternative Solaris 11.4 format.
8775 * configure: Regenerate.
8776
8777 2019-06-17 Tom de Vries <tdevries@suse.de>
8778
8779 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
8780 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
8781 match_operand 0.
8782 (define_insn "call_value_insn"): Rename to ...
8783 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
8784 match_operand 0.
8785 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
8786 DI.
8787
8788 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
8789
8790 PR middle-end/64242
8791 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
8792 frame clobbers and schedule block.
8793 (builtin_longjmp): Likewise.
8794
8795 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8796
8797 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
8798 describe how to perform MSPABI compliant 64-bit shift.
8799 * config/msp430/msp430.md (ashldi3): New define_expand.
8800 (ashrdi3): New define_expand.
8801 (lshrdi3): New define_expand.
8802
8803 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8804
8805 * doc/sourcebuild.texi: Document new effective target keyword
8806 longlong64.
8807
8808 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8809
8810 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
8811 indirect_refs_may_alias_p): Revert accidental commits.
8812
8813 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
8814 at the end of structures.
8815
8816 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8817
8818 * config/darwin.c (machopic_indirect_call_target): Use renamed
8819 darwin_picsymbol_stubs to decide on output.
8820 (darwin_override_options): Handle darwin_picsymbol_stubs.
8821 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
8822 (LD64_VERSION): Revise default.
8823 * config/darwin.opt: (mpic-symbol-stubs): New option.
8824 (darwin_picsymbol_stubs): New variable.
8825 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
8826 rename to TARGET_MACHO_PICSYM_STUBS.
8827 * config/i386/i386.c (output_pic_addr_const): Likewise.
8828 * config/i386/i386.h Likewise.
8829 * config/rs6000/darwin.h: Likewise.
8830 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
8831 darwin_picsymbol_stubs.
8832
8833 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8834
8835 * config/darwin.opt (prebind, noprebind, seglinkedit,
8836 noseglinkedit): Add RejectNegative.
8837
8838 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8839
8840 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
8841 in my previous patch.
8842
8843 2019-06-16 Tom de Vries <tdevries@suse.de>
8844
8845 PR tree-optimization/89376
8846 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
8847
8848 2019-06-15 Maya Rashish <coypu@sdf.org>
8849
8850 * doc/invoke.texi (Spec Files): Update location of the
8851 Fortran spec file.
8852
8853 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
8854
8855 * doc/extend.texi (Common Function Attributes): Clarify
8856 no_sanitize. Fix grammar.
8857
8858 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
8859
8860 * tree-ssa-alias.c (alias_stats): Add
8861 nonoverlapping_component_refs_p_may_alias,
8862 nonoverlapping_component_refs_p_no_alias,
8863 nonoverlapping_component_refs_of_decl_p_may_alias,
8864 nonoverlapping_component_refs_of_decl_p_no_alias.
8865 (dump_alias_stats): Dump them.
8866 (nonoverlapping_component_refs_of_decl_p): Add stats.
8867 (nonoverlapping_component_refs_p): Add stats; do not stop on first
8868 ARRAY_REF.
8869
8870 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
8871
8872 * config/i386/i386.md (and<mode>3): Generate zero-extends for
8873 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
8874 only.
8875 (*anddi3_doubleword): Split before reload. Merge with
8876 anddi->zext pre-reload splitter.
8877 (*andndi3_doubleword): Split before reload.
8878 (*<code>di3_doubleword): Ditto.
8879 (*one_cmpldi2_doubleword): Ditto.
8880
8881 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8882
8883 PR middle-end/90779
8884 * gimplify.c: Include omp-offload.h and context.h.
8885 (gimplify_bind_expr): Add "omp declare target" attributes
8886 to static block scope variables inside of target region or target
8887 functions.
8888
8889 2019-06-15 Tom de Vries <tdevries@suse.de>
8890
8891 PR tree-optimization/90009
8892 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
8893 Return NULL if bb contains IFN_UNIQUE.
8894
8895 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
8896
8897 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
8898 (un): New define_mode_attr.
8899 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
8900 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
8901 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
8902 merge into ...
8903 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
8904
8905 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
8906
8907 * config/darwin.opt: Add RejectNegative where needed, reorder
8908 and add minimal functional descriptions.
8909
8910 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8911
8912 PR rtl-optimization/90765
8913 * calls.c (update_stack_alignment_for_call): New function.
8914 (expand_call): Call update_stack_alignment_for_call when
8915 outgoing parameter is passed in the stack.
8916 (emit_library_call_value_1): Likewise.
8917 * function.c (locate_and_pad_parm): Don't update
8918 stack_alignment_needed and preferred_stack_boundary.
8919
8920 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8921
8922 PR target/90877
8923 * config/i386/i386-features.c
8924 (dimode_scalar_chain::compute_convert_gain): Replace
8925 mmxsse_to_integer with sse_to_integer.
8926 * config/i386/i386.c (ix86_register_move_cost): Verify that
8927 moves between MMX and non-MMX units require secondary memory.
8928 Correct costs of moves between SSE and integer units.
8929 * config/i386/i386.h (processor_costs): Rename cost of moving
8930 SSE register to integer to sse_to_integer. Rename cost of
8931
8932 2019-06-14 Matt Thomas <matt@3am-software.com>
8933 Matthew Green <mrg@eterna.com.au>
8934 Nick Hudson <skrll@netbsd.org>
8935 Maya Rashish <coypu@sdf.org>
8936 Richard Earnshaw <rearnsha@arm.com>
8937
8938 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
8939 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
8940 * config/arm/netbsd-eabi.h: New file.
8941 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
8942 redefining.
8943 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
8944 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
8945 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
8946 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
8947
8948 2019-06-14 Richard Biener <rguenther@suse.de>
8949
8950 * tree-loop-distribution.c (classify_partition): Return
8951 whether a reduction appeared in all partitions and do not
8952 stop builtin detection because of this.
8953 (distribute_loop): Sort a non-builtin partition last if
8954 there's a reduction in all partitions and make sure the
8955 partition prevailing as last is not a builtin.
8956
8957 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
8958
8959 PR ipa/90401
8960 * ipa-prop.c (add_to_agg_contents_list): New function.
8961 (clobber_by_agg_contents_list_p): Likewise.
8962 (extract_mem_content): Likewise.
8963 (get_place_in_agg_contents_list): Delete.
8964 (determine_known_aggregate_parts): Renamed from
8965 determine_locally_known_aggregate_parts. New parameter
8966 aa_walk_budget_p.
8967
8968 2019-06-13 Martin Sebor <msebor@redhat.com>
8969
8970 PR tree-optimization/90662
8971 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
8972 to the same type.
8973
8974 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
8975
8976 PR bootstrap/90873
8977 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
8978 dbase is not TARGET_MEM_REF.
8979
8980 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8981
8982 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
8983 Update all uses.
8984 (and<mode>3): Use gen_extend_insn instead of indirect functions.
8985 Do not generate DImode extends for 32bit targets.
8986 (and->zext post-reload splitter): Use gen_extend_insn
8987 instead of indirect functions.
8988 (anddi->zext pre-reload splitter): New.
8989 (*zext<mode>_doubleword_and): Remove.
8990 (*zext<mode>_doubleword): Ditto.
8991 (*zextsi_doubleword): Dittto.
8992
8993 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8994
8995 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
8996 Use gen_sub3_insn instead of indirect function.
8997 (ix86_expand_ashl_const): Use gen_add2_insn instead of
8998 indirect function.
8999 (ix86_adjust_counter): Ditto.
9000
9001 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
9002 Lijia He <helijia@linux.ibm.com>
9003
9004 PR tree-optimization/77820
9005 * tree-ssa-threadedge.c
9006 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
9007 function.
9008 (thread_across_edge): Add call to
9009 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
9010
9011 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
9012
9013 * config/darwin-driver.c (validate_macosx_version_min): New.
9014 (darwin_default_min_version): Cleanup and validate supplied version.
9015 (darwin_driver_init): Likewise and push cleaned version into opts.
9016
9017 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9018
9019 PR tree-optimization/90869
9020 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
9021 converts in MEM_REF referencing decl rather than view converts
9022 from decl type to MEM_REF type.
9023
9024 2019-06-13 Richard Biener <rguenther@suse.de>
9025
9026 PR tree-optimization/90856
9027 * tree-sra.c (build_ref_for_model): Only use
9028 build_reconstructed_reference when address-spaces are the same.
9029
9030 2019-06-13 Jakub Jelinek <jakub@redhat.com>
9031
9032 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
9033 wrap ei variable name in the declaration in ()s.
9034 (nvptx_single): Actually use mode_label variable. Formatting fix.
9035
9036 2019-06-13 Richard Biener <rguenther@suse.de>
9037
9038 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9039 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9040 also return the condition stmt.
9041 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9042 loop we can version and version that, reusing the loop version
9043 created by if-conversion instead of versioning again.
9044
9045 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9046
9047 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9048 may_contain_p.
9049 * tree-vrp (value_range_base::may_contain_p): Call into
9050 value_inside_range.
9051 (value_inside_range): Make private inside value_range_base class.
9052 Take min/max from *this.
9053 (range_includes_p): Remove.
9054 * tree-vrp.h (value_range_base): Add value_inside_range.
9055 (range_includes_p): Remove.
9056 (range_includes_zero_p): Call may_contain_p.
9057 * vr-values.c (compare_range_with_value): Same.
9058
9059 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9060
9061 * doc/extend.texi (ARC Function Attributes): Update info.
9062
9063 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9064
9065 PR tree-optimization/89713
9066 * doc/invoke.texi (-ffinite-loops): Document new option.
9067 * common.opt (-ffinite-loops): New option.
9068 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9069 IFN_GOACC_LOOP calls as necessary.
9070 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9071 is finite.
9072 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9073 IFN_GOACC_LOOP call is not used.
9074 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9075
9076 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9077
9078 PR target/88838
9079 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9080 compare_type is not with Pmode size, we will create an IV with
9081 Pmode size with truncated use (i.e. converted to the correct type).
9082 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9083 (vect_iv_limit_for_full_masking): New. Factored out of
9084 vect_set_loop_condition_masked.
9085 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9086 (vect_iv_limit_for_full_masking): Declare.
9087
9088 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9089
9090 PR target/88834
9091 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9092 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9093 (get_alias_ptr_type_for_ptr_address): Likewise.
9094 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9095 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9096 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9097 allow_reg_index_p.
9098
9099 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9100
9101 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9102
9103 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9104
9105 * common/config/pru/pru-common.c: New file.
9106 * config.gcc: Add PRU target.
9107 * config/pru/alu-zext.md: New file.
9108 * config/pru/constraints.md: New file.
9109 * config/pru/predicates.md: New file.
9110 * config/pru/pru-opts.h: New file.
9111 * config/pru/pru-passes.c: New file.
9112 * config/pru/pru-pragma.c: New file.
9113 * config/pru/pru-protos.h: New file.
9114 * config/pru/pru.c: New file.
9115 * config/pru/pru.h: New file.
9116 * config/pru/pru.md: New file.
9117 * config/pru/pru.opt: New file.
9118 * config/pru/t-pru: New file.
9119 * doc/extend.texi: Document PRU pragmas.
9120 * doc/invoke.texi: Document PRU-specific options.
9121 * doc/md.texi: Document PRU asm constraints.
9122
9123 2019-06-12 Martin Sebor <msebor@redhat.com>
9124
9125 PR middle-end/90676
9126 * tree-pretty-print.c (dump_mem_ref): New function. Include
9127 MEM_REF type in output when different size than operand.
9128 (dump_generic_node): Move code to dump_mem_ref and call it.
9129
9130 2019-06-12 Martin Sebor <msebor@redhat.com>
9131
9132 PR tree-optimization/90662
9133 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9134 to arrays.
9135
9136 2019-06-12 Tom de Vries <tdevries@suse.de>
9137
9138 PR tree-optimization/90009
9139 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9140
9141 2019-06-12 Martin Liska <mliska@suse.cz>
9142
9143 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9144 the created map.
9145 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9146 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9147 Do not sanitize created maps.
9148
9149 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9150
9151 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9152 value_range::singleton_p.
9153 * tree-vrp.c (value_range_constant_singleton): Remove.
9154 * tree-vrp.h (value_range_constant_singleton): Remove.
9155 * vr-values.c (vr_values::singleton): Use
9156 value_range::singleton_p.
9157
9158 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9159
9160 PR target/90811
9161 * cfgexpand.c (align_local_variable): Add really_expand argument,
9162 don't SET_DECL_ALIGN if it is false.
9163 (add_stack_var): Add really_expand argument, pass it through to
9164 align_local_variable.
9165 (expand_one_stack_var_1): Pass true as really_expand to
9166 align_local_variable.
9167 (expand_one_ssa_partition): Pass true as really_expand to
9168 add_stack_var.
9169 (expand_one_var): Pass really_expand through to add_stack_var.
9170
9171 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9172
9173 * config/arm/iterators.md (VABAL): New int iterator.
9174 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9175 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9176 UNSPEC_VABAL_U values.
9177
9178 2019-06-12 Martin Liska <mliska@suse.cz>
9179
9180 * value-prof.c (stream_out_histogram_value): Only first value
9181 can't be negative.
9182
9183 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9184
9185 PR c/90760
9186 * symtab.c (symtab_node::set_section): Allow being called on aliases
9187 as long as they aren't analyzed yet.
9188
9189 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9190
9191 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9192 to `mips_set_text_contents_type' to indicate whether a
9193 non-debug insn follows.
9194
9195 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9196
9197 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9198 enabling -mpcrel by default.
9199 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9200 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9201 that the test against -mcpu=future is done first. Then test if
9202 -mprefixed-addr is on for -mpcrel.
9203 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9204
9205 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9206
9207 PR target/90811
9208 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9209 instead of and.u%d.
9210
9211 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9212
9213 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9214
9215 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9216
9217 PR c++/90449 - add -Winaccessible-base option.
9218 * doc/invoke.texi (Winaccessible-base): Document.
9219
9220 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9221
9222 PR tree-optimization/62041
9223 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9224
9225 2019-06-11 Jason Merrill <jason@redhat.com>
9226
9227 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9228 * tree.c (get_tree_code_name): Likewise.
9229 * print-tree.c (print_node): Only briefly print a node with an
9230 invalid code.
9231
9232 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9233
9234 PR bootstrap/90819
9235 * trans-mem.c (tm_memopt_compute_available): Add assertion
9236 that blocks is not empty. Formatting fix.
9237
9238 2019-06-11 Martin Liska <mliska@suse.cz>
9239
9240 PR c++/87847
9241 * hash-table.h: Extend create_gcc, add one parameter
9242 that is passed into hash_table::hash_table.
9243
9244 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9245
9246 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9247 New prototype.
9248 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9249 Emit clobber also for non-sse operations.
9250 (ix86_split_fp_absneg_operator): New function.
9251 * config/i386/i386.md (SSEMODEF): New mode iterator.
9252 (ssevecmodef): New mode attribute.
9253 (<code>tf2): Use absneg code iterator.
9254 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9255 Add three-operand AVX alternatives.
9256 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9257 Use absneg code iterator and X87MODEF mode iterator.
9258 (absneg fp_reg non-sse splitter): Call absneg code iterator
9259 and X87MODEF mode iterator.
9260 (absneg general_reg non-sse splitter): Use absneg code iterator
9261 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9262 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9263 code iterator. Add three-operand AVX alternative.
9264 (absneg sse_reg splitter): Use absneg code iterator
9265 and SSEMODEF mode iterator. Handle AVX operands.
9266 (absneg fp_reg splitter): Use absneg code iterator
9267 and MODEF mode iterator.
9268 (absneg general_reg splitter): Merge splitters using MODEF mode
9269 iterator. Use absneg code iterator. Call
9270 ix86_split_fp_absneg_operator.
9271 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9272 Do not enable for non-sse modes before reload.
9273 (CSGNMODE): Remove.
9274 (CSGNVMODE): Ditto.
9275 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9276 ssevecmodef mode attribute instaed of CSGNVMODE.
9277 (copysign<mode>3_const): Ditto.
9278 (copysign<mode>3_var): Ditto.
9279 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9280 Use absneg code iterator. Simplify code using std::swap.
9281 * config/i386/predicates.md (absneg_operator): Remove.
9282
9283 2019-06-10 Martin Sebor <msebor@redhat.com>
9284
9285 * gimple-fold.c (get_range_strlen): Update comment that didn't
9286 make it into r267503 or related commits.
9287
9288 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9289
9290 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9291 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9292
9293 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9294
9295 * tree.def (OMP_SCAN): New tree code.
9296 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9297 OMP_CLAUSE_EXCLUSIVE.
9298 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9299 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9300 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9301 OMP_CLAUSE_{IN,EX}CLUSIVE.
9302 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9303 * tree-nested.c (convert_nonlocal_reference_stmt,
9304 convert_local_reference_stmt, convert_gimple_call): Handle
9305 GIMPLE_OMP_SCAN.
9306 * tree-pretty-print.c (dump_omp_clause): Handle
9307 OMP_CLAUSE_{IN,EX}CLUSIVE.
9308 (dump_generic_node): Handle OMP_SCAN.
9309 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9310 * gimple.h (gomp_scan): New type.
9311 (is_a_helper <gomp_scan *>::test,
9312 is_a_helper <const gomp_scan *>::test): New templates.
9313 (gimple_build_omp_scan): Declare.
9314 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9315 gimple_omp_scan_set_clauses): New inline functions.
9316 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9317 * gimple.c (gimple_build_omp_scan): New function.
9318 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9319 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9320 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9321 GIMPLE_OMP_TASKGROUP.
9322 (dump_gimple_omp_scan): New function.
9323 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9324 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9325 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9326 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9327 (is_gimple_stmt): Handle OMP_SCAN.
9328 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9329 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9330 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9331 mentioned in nested #pragma omp scan. Handle
9332 OMP_CLAUSE_{IN,EX}CLUSIVE.
9333 (gimplify_expr): Handle OMP_SCAN.
9334 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9335 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9336 simd constructs.
9337 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9338 GIMPLE_OMP_SCAN.
9339
9340 2019-06-10 Martin Liska <mliska@suse.cz>
9341
9342 * ipa-cp.c (ignore_edge_p): New function.
9343 (build_toporder_info): Use it.
9344 * ipa-inline.c (ignore_edge_p): New function.
9345 (inline_small_functions): Use it.
9346 * ipa-pure-const.c (ignore_edge_for_nothrow):
9347 Verify opt_for_fn for caller and callee.
9348 (ignore_edge_for_pure_const): Likewise.
9349 * ipa-reference.c (ignore_edge_p): Extend to check
9350 for opt_for_fn.
9351 * ipa-utils.c (searchc): Refactor.
9352 * ipa-utils.h: Fix coding style.
9353
9354 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9355
9356 * config/arc/arc.c (arc_rtx_costs): Update costs.
9357
9358 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9359
9360 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9361 (arc_split_ior): Likewise.
9362 (arc_check_mov_const): Likewise.
9363 (arc_split_mov_const): Likewise.
9364 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
9365 (arc_rtx_costs): Replace check Crr with Cax constraint.
9366 (prepare_move_operands): Cleanup, remove unused code.
9367 (arc_split_ior): New function.
9368 (arc_check_ior_const): Likewise.
9369 (arc_split_mov_const): Likewise.
9370 (arc_check_mov_const): Likewise.
9371 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
9372 in define_insn_and_split pattern.
9373 (iorsi3): Likewise.
9374 (mulsi3_v2): Add new matching variant.
9375 (andsi3_i): Cleanup pattern.
9376 (rotrsi3_cnt1): Update pattern.
9377 (rotrsi3_cnt8): New pattern.
9378 (ashlsi2_cnt8): Likewise.
9379 (ashlsi2_cnt16): Likewise.
9380 * config/arc/constraints.md (C0p): Update constraint.
9381 (Crr): Remove it.
9382 (C0x): New pattern.
9383 (Cax): New pattern.
9384
9385 2019-06-10 Martin Liska <mliska@suse.cz>
9386
9387 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
9388 Update coding style.
9389 (sem_item_optimizer::dump_cong_classes):
9390 Print how many items are in a non-singular class. Improve
9391 coding style.
9392
9393 2019-06-10 Martin Liska <mliska@suse.cz>
9394
9395 * value-prof.c (dump_histogram_value): Change dump format.
9396 (gimple_mod_subtract_transform): Remove legacy comment.
9397
9398 2019-06-10 Martin Liska <mliska@suse.cz>
9399
9400 * value-prof.c (dump_histogram_value): Print histogram values
9401 only if present.
9402
9403 2019-06-10 Martin Liska <mliska@suse.cz>
9404
9405 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
9406 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
9407 * ipa-profile.c (ipa_profile_generate_summary):
9408 Use get_most_common_single_value.
9409 * tree-profile.c (gimple_init_gcov_profiler):
9410 Instrument with __gcov_one_value_profiler_v2
9411 and __gcov_indirect_call_profiler_v4.
9412 * value-prof.c (dump_histogram_value):
9413 Print all values for HIST_TYPE_SINGLE_VALUE.
9414 (stream_out_histogram_value): Update assert for
9415 N values.
9416 (stream_in_histogram_value): Set number of
9417 counters for HIST_TYPE_SINGLE_VALUE.
9418 (get_most_common_single_value): New.
9419 (gimple_divmod_fixed_value_transform):
9420 Use get_most_common_single_value.
9421 (gimple_ic_transform): Likewise.
9422 (gimple_stringops_transform): Likewise.
9423 (gimple_find_values_to_profile): Set number
9424 of counters for HIST_TYPE_SINGLE_VALUE.
9425 * value-prof.h (get_most_common_single_value): New.
9426
9427 2019-06-10 Martin Liska <mliska@suse.cz>
9428
9429 * hash-map.h: Pass default value to hash_table ctor.
9430 * hash-table.h: Add default value to call of a ctor.
9431
9432 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
9433
9434 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
9435 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
9436
9437 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
9438
9439 PR target/90751
9440 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
9441 Call pa_output_function_label.
9442 (TARGET_ASM_FUNCTION_PROLOGUE): define.
9443 * config/pa/pa-protos.h (pa_output_function_label): Declare.
9444 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
9445 to declaration.
9446 (pa_linux_output_function_prologue): Declare.
9447 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
9448 (pa_output_function_label): New.
9449 (pa_output_function_prologue): Revise to use pa_output_function_label.
9450 (pa_linux_output_function_prologue): New.
9451 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
9452
9453 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
9454
9455 * tree-vrp.h (value_range_base::intersect): New.
9456 (value_range::intersect_helper): Move from here...
9457 (value_range_base::intersect_helper): ...to here.
9458 * tree-vrp.c (value_range::intersect_helper): Rename to...
9459 (value_range_base::intersect_helper): ...this, and rewrite to
9460 return a value instead of modifying THIS in place.
9461 Also, move equivalence handling...
9462 (value_range::intersect): ...here, while calling intersect_helper.
9463 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
9464 calling intersect.
9465 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
9466 Same.
9467 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
9468
9469 2019-06-07 Jakub Jelinek <jakub@redhat.com>
9470
9471 * Makefile.in (genprogerr): Add condmd.
9472 (genprog): Remove it here.
9473
9474 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
9475
9476 * doc/invoke.texi (AMD GCN Options): Add gfx906.
9477
9478 2019-06-07 Richard Biener <rguenther@suse.de>
9479
9480 PR debug/90574
9481 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
9482 that appear after user labels.
9483
9484 2019-06-07 Martin Liska <mliska@suse.cz>
9485
9486 * cselib.c (cselib_init): Disable hash table
9487 sanitization.
9488 * hash-set.h: Pass new default argument to m_table.
9489 * hash-table.c: Add global variable with hash table
9490 sanitization limit.
9491 * hash-table.h (Allocator>::hash_table): Add new argument
9492 to ctor.
9493 (hashtab_chk_error): New.
9494 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
9495 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
9496 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
9497
9498 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9499
9500 * common.opt (flto-odr-type-merging): Ignore.
9501 * invoke.texi (-flto-odr-type-merging): Remove.
9502 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
9503 (can_be_vtable_hashed_p): Remove.
9504 (hash_odr_vtable): Remove.
9505 (odr_vtable_hasher::hash): Remove.
9506 (types_same_for_odr): Remove.
9507 (types_odr_comparable): Remove.
9508 (odr_vtable_hasher::equal): Remove.
9509 (odr_vtable_hash_type, odr_vtable_hash): Remove.
9510 (add_type_duplicate): Do not synchronize vtable and name hashtables.
9511 (get_odr_type): Do not use vtable hash.
9512 (dump_odr_type): Remove commented out code.
9513 (build_type_inheritance_graph): Do not allocate vtable hash.
9514 (rebuild_type_inheritance_graph): Do not delete vtable hash.
9515 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
9516 (odr_type_p): Likewise.
9517 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
9518 test.
9519
9520 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9521
9522 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
9523 immediately after same_types_for_tbaa_p returns -1 and continue
9524 looking for possible exact match; if matching types are arrays
9525 watch for partial overlaps.
9526 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
9527 (indirect_refs_may_alias_p): Do type based disambiguation first;
9528 update comment.
9529
9530 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
9531
9532 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
9533
9534 2019-06-07 Martin Liska <mliska@suse.cz>
9535
9536 * doc/invoke.texi: Remove param.
9537 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
9538 Remove.
9539 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
9540 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
9541 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
9542 * profile.c (instrument_values): Remove
9543 HIST_TYPE_INDIR_CALL_TOPN.
9544 * tree-profile.c (init_ic_make_global_vars):
9545 Always build __gcov_indirect_call only.
9546 (gimple_init_gcov_profiler): Remove usage
9547 of PARAM_INDIR_CALL_TOPN_PROFILE.
9548 (gimple_gen_ic_profiler): Likewise.
9549 * value-prof.c (dump_histogram_value): Likewise.
9550 (stream_in_histogram_value): Likewise.
9551 (gimple_indirect_call_to_profile): Likewise.
9552 (gimple_find_values_to_profile): Likewise.
9553 * value-prof.h (enum hist_type): Likewise.
9554
9555 2019-06-07 Martin Liska <mliska@suse.cz>
9556
9557 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
9558 function.
9559
9560 2019-06-07 Martin Liska <mliska@suse.cz>
9561
9562 PR tree-optimization/78902
9563 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
9564 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
9565 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9566 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9567 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
9568 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9569 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
9570 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
9571 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9572 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9573 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9574 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
9575 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
9576 New.
9577 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
9578 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
9579 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
9580 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9581 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9582 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
9583 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9584 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9585 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
9586 warn_unused_result attribute.
9587 (BUILT_IN_STRDUP): Likewise.
9588 (BUILT_IN_STRNDUP): Likewise.
9589 (BUILT_IN_ALLOCA): Likewise.
9590 (BUILT_IN_CALLOC): Likewise.
9591 (BUILT_IN_MALLOC): Likewise.
9592 (BUILT_IN_REALLOC): Likewise.
9593
9594 2019-06-06 Jim Wilson <jimw@sifive.com>
9595
9596 PR target/89955
9597 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
9598 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
9599 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
9600
9601 2019-06-06 Martin Sebor <msebor@redhat.com>
9602
9603 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
9604 (handle_builtin_malloc): Remove trailing spaces.
9605 (handle_builtin_memset): Same.
9606 (handle_builtin_memcmp): Same.
9607 (compute_string_length): Same.
9608 (determine_min_objsize): Same.
9609 (handle_builtin_string_cmp): Same.
9610 (handle_char_store): Same. Break up excessively long line.
9611
9612 2019-06-06 Martin Jambor <mjambor@suse.cz>
9613
9614 * tree-sra.c (build_reconstructed_reference): Drop the alignment
9615 check.
9616
9617 2019-06-06 Martin Jambor <mjambor@suse.cz>
9618
9619 * tree-sra.c (struct access): New field grp_same_access_path.
9620 (dump_access): Dump it.
9621 (build_reconstructed_reference): New function.
9622 (build_ref_for_model): Use it if possible.
9623 (path_comparable_for_same_access): New function.
9624 (same_access_path_p): Likewise.
9625 (sort_and_splice_var_accesses): Set the new flag.
9626 (analyze_access_subtree): Likewise.
9627 (propagate_subaccesses_across_link): Propagate zero value of the new
9628 flag down the access tree.
9629
9630 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
9631
9632 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
9633 * config/gcn/gcn.opt (gpu_type): Add gfx906.
9634 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
9635 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
9636 Add gfx906.
9637
9638 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9639
9640 PR tree-optimization/90332
9641 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
9642 Handle VALS containing two vectors.
9643 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
9644 to...
9645 (@aarch64_combinez<mode>): ... This.
9646 (*aarch64_combinez_be<mode>): Rename to...
9647 (@aarch64_combinez_be<mode>): ... This.
9648 (vec_init<mode><Vhalf>): New define_expand.
9649 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
9650
9651 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9652
9653 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
9654 library functions only when not optimizing for size.
9655 (ashlsi3): Likewise.
9656 (ashrhi3): Likewise.
9657 (ashrsi3): Likewise.
9658 (lshrhi3): Likewise.
9659 (lshrsi3): Likewise.
9660
9661 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
9662
9663 PR rtl-optimization/88751
9664 * ira.c (ira): Use the number of the actually referenced registers
9665 when calculating the threshold.
9666
9667 2019-06-06 Jakub Jelinek <jakub@redhat.com>
9668
9669 * configure: Regenerate.
9670
9671 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9672
9673 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
9674 register if it is in memory, so the shift can be emulated with a rotate
9675 instruction.
9676 (ashrhi3): Likewise.
9677 (lshrhi3): Likewise.
9678
9679 2019-06-06 Martin Liska <mliska@suse.cz>
9680
9681 PR tree-optimization/87954
9682 * match.pd: Simplify mult where both arguments are 0 or 1.
9683
9684 2019-06-06 Richard Biener <rguenther@suse.de>
9685
9686 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
9687 put equivalences on UNDEFINED ranges.
9688 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9689 Make sure to drop defs of stmts added during simplification
9690 to VARYING.
9691
9692 2019-06-06 Richard Biener <rguenther@suse.de>
9693
9694 * tree-ssa-structalias.c: Include tree-cfg.h.
9695 (make_heapvar): Do not make heap vars artificial.
9696 (find_func_aliases_for_builtin_call): Handle stack allocation
9697 functions.
9698 (find_func_aliases): Delay processing of simple enough returns
9699 in non-IPA mode.
9700 (set_uids_in_ptset): Adjust.
9701 (find_what_var_points_to): Likewise.
9702 (solve_constraints): Do not dump points-to sets here.
9703 (compute_points_to_sets): Post-process return statements,
9704 amending the escaped solution. Dump points-to sets afterwards.
9705 (ipa_pta_execute): Dump points-to sets.
9706
9707 2019-06-06 Martin Liska <mliska@suse.cz>
9708
9709 PR web/87933
9710 * doc/install.texi: Fix HTML headers and
9711 titles for 'Installing GCC' pages.
9712
9713 2019-06-06 Martin Liska <mliska@suse.cz>
9714
9715 * ipa-icf-gimple.h (dump_message_1): Remove.
9716 (dump_message): Likewise.
9717 (return_false_with_message_1): Print also file.
9718 (return_false_with_msg): Likewise.
9719 (return_with_result): Likewise.
9720 (return_with_debug): Likewise.
9721 * ipa-icf.c (sem_function::equals_private): Remove call
9722 to dump_message.
9723
9724 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9725
9726 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
9727 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
9728 memory operand for it.
9729 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
9730
9731 2019-06-05 Martin Sebor <msebor@redhat.com>
9732
9733 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
9734 Adjust quoting and hyphenation.
9735 * convert.c (convert_to_real_1): Same.
9736 * gcc.c (driver_wrong_lang_callback): Same.
9737 (driver::handle_unrecognized_options): Same.
9738 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
9739 * opts-common.c (cmdline_handle_error): Same.
9740 (read_cmdline_option): Same.
9741 * opts-global.c (complain_wrong_lang): Same.
9742 (print_ignored_options): Same.
9743 (handle_common_deferred_options): Same.
9744 * pretty-print.h: Same.
9745 * print-rtl.c (debug_bb_n_slim): Same.
9746 * sched-rgn.c (make_pass_sched_fusion): Same.
9747 * tree-cfg.c (verify_gimple_assign_unary): Same.
9748 (verify_gimple_label): Same.
9749 * tree-ssa-operands.c (verify_ssa_operands): Same.
9750 * varasm.c (do_assemble_alias): Same.
9751 (assemble_alias): Same.
9752
9753 2019-06-05 Richard Henderson <rth@twiddle.net>
9754
9755 * config/alpha/alpha.c (direct_return): Move down after
9756 struct machine_function definition; use saved frame_size;
9757 return bool.
9758 (struct machine_function): Add sa_mask, sa_size, frame_size.
9759 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
9760 (alpha_compute_frame_layout): ... new function.
9761 (TARGET_COMPUTE_FRAME_LAYOUT): New.
9762 (alpha_initial_elimination_offset): Use saved sa_size.
9763 (alpha_vms_initial_elimination_offset): Likewise.
9764 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
9765 (alpha_expand_prologue): Use saved frame data. Merge integer
9766 and fp register save loops.
9767 (alpha_expand_epilogue): Likewise.
9768 (alpha_start_function): Use saved frame data.
9769 * config/alpha/alpha-protos.h (direct_return): Update.
9770 (alpha_sa_size): Remove.
9771
9772 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
9773
9774 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
9775 multiplication by a power-of-two value.
9776 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
9777 and turn the modulo operation into a masking operation.
9778
9779 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9780
9781 PR debug/90733
9782 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
9783 with VOIDmode inner operands.
9784
9785 2019-06-05 Richard Biener <rguenther@suse.de>
9786
9787 PR middle-end/90726
9788 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9789 turn an expression graph into a tree.
9790
9791 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9792
9793 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
9794 member.
9795 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
9796 treat it like explicit monotonic schedule modifier.
9797 (expand_omp_for): Initialize has_lastprivate_conditional.
9798 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
9799 schedule modifier.
9800
9801 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
9802 references, lookup in in hash map MEM_REF operand instead of the
9803 MEM_REF itself.
9804 (lower_omp_1): When looking for lastprivate conditional assignments,
9805 handle MEM_REFs with REFERENCE_TYPE operands.
9806
9807 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
9808 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
9809 and references a VLA. Handle references to non-VLAs if is_simd
9810 all privatization clauses like reductions.
9811 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
9812 If omp_is_reference, use always omp simd arrays and set
9813 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
9814 fails, emit reference initialization.
9815
9816 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9817
9818 PR target/89803
9819 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
9820 _mm_mask_fpclass_sd_mask): New intrinsics.
9821 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
9822 * config/i386/i386-builtin.def
9823 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
9824 New builtins.
9825 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
9826 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
9827 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
9828 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
9829 case QI_FTYPE_V2SF_INT): Ditto.
9830 * config/i386/sse.md
9831 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
9832 Extended to insnstructions with mask operands.
9833
9834 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9835
9836 * config/rs6000/constraints.md (define_register_constraint "wp"):
9837 Delete.
9838 (define_register_constraint "wq"): Delete.
9839 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9840 (rs6000_init_hard_regno_mode_ok): Adjust.
9841 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9842 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
9843 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
9844 (define_mode_attr VSa): Delete.
9845 (define_mode_attr VSisa): New.
9846 (rest of file): Adjust.
9847 * doc/md.texi (Machine Constraints): Adjust.
9848
9849 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9850
9851 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
9852 (define_attr "enabled"): Handle those new isa values.
9853
9854 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9855
9856 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
9857 (define_mode_attr VSr5): Delete.
9858 (define_mode_attr VStype_sqrt): Delete.
9859 (define_mode_iterator VSX_SPDP): Delete.
9860 (define_mode_attr VS_spdp_res): Delete.
9861 (define_mode_attr VS_spdp_insn): Delete.
9862 (define_mode_attr VS_spdp_type): Delete.
9863 (*vsx_sqrt<mode>2): Adjust.
9864 (vsx_<VS_spdp_insn>): Delete, split to...
9865 (vsx_xscvdpsp): ... this. New. And...
9866 (vsx_xvcvspdp): ... this. New. And...
9867 (vsx_xvcvdpsp): ... this. New.
9868
9869 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9870
9871 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
9872 and V2DF.
9873 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
9874 (rest of file): Adjust.
9875
9876 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9877
9878 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
9879 (vsx_extract_<mode>_var): Ditto.
9880
9881 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9882
9883 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
9884 with just "wa".
9885
9886 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9887
9888 * config/rs6000/constraints.md (define_register_constraint "ww"):
9889 Delete.
9890 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9891 (rs6000_init_hard_regno_mode_ok): Adjust.
9892 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9893 RS6000_CONSTRAINT_ww.
9894 * config/rs6000/rs6000.md: Adjust.
9895 * config/rs6000/vsx.md: Adjust.
9896 * doc/md.texi (Machine Constraints): Adjust.
9897
9898 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9899
9900 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
9901 (define_mode_attr sd): New.
9902 (define_mode_attr s): New.
9903 (define_mode_attr Ftrad): Delete.
9904 (define_mode_attr Fvsx): Delete.
9905 (define_mode_attr Fs): Delete.
9906 (rest of file): Use the new mode attributes.
9907 * config.rs6000/vsx.md: Use the new mode attributes.
9908
9909 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9910
9911 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
9912 with just "wa".
9913
9914 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9915
9916 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
9917 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
9918 used with VSX_B, VSX_D, or VSX_F, with just "wa".
9919
9920 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
9921
9922 PR target/78263
9923 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
9924 C++ with strict ANSI requirements.
9925
9926 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
9927
9928 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
9929 computations when step is 1.
9930
9931 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9932
9933 * config/rs6000/constraints.md (define_register_constraint "wf"):
9934 Delete.
9935 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9936 (rs6000_init_hard_regno_mode_ok): Adjust.
9937 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9938 RS6000_CONSTRAINT_wf.
9939 * config/rs6000/rs6000.md: Adjust.
9940 * config/rs6000/vsx.md: Adjust.
9941 * doc/md.texi (Machine Constraints): Adjust.
9942
9943 2019-06-04 Andrew Pinski <apinski@marvell.com>
9944
9945 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
9946 Fix ILP32 value.
9947
9948 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9949
9950 * config/rs6000/constraints.md (define_register_constraint "wd"):
9951 Delete.
9952 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9953 (rs6000_init_hard_regno_mode_ok): Adjust.
9954 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9955 RS6000_CONSTRAINT_wd.
9956 * config/rs6000/rs6000.md: Adjust.
9957 * config/rs6000/vsx.md: Adjust.
9958 * doc/md.texi (Machine Constraints): Adjust.
9959
9960 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9961
9962 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
9963 (rest of file): Adjust.
9964
9965 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9966
9967 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
9968 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
9969 (vsx_splat_<mode>_reg): Adjust.
9970
9971 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9972
9973 * config/rs6000/constraints.md (define_register_constraint "ws"):
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_ws.
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/constraints.md (define_register_constraint "wv"):
9986 Delete.
9987 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9988 (rs6000_init_hard_regno_mode_ok): Adjust.
9989 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9990 RS6000_CONSTRAINT_wv.
9991 * config/rs6000/rs6000.md: Adjust.
9992 * config/rs6000/vsx.md: Adjust.
9993 * doc/md.texi (Machine Constraints): Adjust.
9994
9995 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9996
9997 * config/rs6000/constraints.md (define_register_constraint "wi"):
9998 Delete.
9999 (define_register_constraint "wt"): Delete.
10000 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10001 (rs6000_init_hard_regno_mode_ok): Adjust.
10002 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10003 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
10004 * config/rs6000/rs6000.md: Adjust.
10005 * config/rs6000/vsx.md: Adjust.
10006 * doc/md.texi (Machine Constraints): Adjust.
10007
10008 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10009
10010 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
10011 const.
10012 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
10013 default_elf_asm_output_external.
10014
10015 2019-06-04 Martin Liska <mliska@suse.cz>
10016
10017 * ipa-icf.c (INCLUDE_LIST): Remove.
10018 (sem_item_optimizer::execute): Remove call to init_wpa.
10019 * ipa-icf.h (init_wpa): Remove.
10020
10021 2019-06-04 Jakub Jelinek <jakub@redhat.com>
10022
10023 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
10024 conditional on combined for simd.
10025 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
10026 member.
10027 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
10028 constructs, don't remove lastprivate_conditional_map, but instead set
10029 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
10030 to parent construct temporaries.
10031 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
10032 like !ctx->lastprivate_conditional_map.
10033 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
10034 use up->outer context instead of up.
10035 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
10036 gimple_omp_for_combined_p.
10037 (expand_omp_for_static_nochunk): Likewise.
10038 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10039 probably moved over into expand_omp_for_generic rather than being copied
10040 there.
10041
10042 2019-06-04 Martin Liska <mliska@suse.cz>
10043
10044 * value-prof.c (dump_histogram_value): Fix typo.
10045 (gimple_mod_subtract_transform): Likewise.
10046
10047 2019-06-04 Richard Biener <rguenther@suse.de>
10048
10049 PR middle-end/90726
10050 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10051 (tree_contains_chrecs): Likewise.
10052 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10053 exponential behaivor from ...
10054 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10055 ... here.
10056 (expression_expensive_p): Avoid exponential behavior and compute
10057 expanded size, rejecting any expansion.
10058 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10059 (idx_contains_abnormal_ssa_name_p): Likewise.
10060 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10061 (contains_abnormal_ssa_name_p): Simplify and use
10062 walk_tree_without_duplicates.
10063
10064 2019-06-04 Richard Biener <rguenther@suse.de>
10065
10066 PR tree-optimization/90738
10067 Revert
10068 2019-06-03 Richard Biener <rguenther@suse.de>
10069
10070 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10071 full reference tree and record in ref->ref.
10072 (vn_reference_lookup_3): Pass in original ref to
10073 ao_ref_init_from_vn_reference.
10074 (vn_reference_lookup): Likewise.
10075 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10076 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10077 Handle non-decl bases in the original reference.
10078
10079 2019-06-04 Martin Liska <mliska@suse.cz>
10080
10081 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10082 number of references.
10083 (sem_item_optimizer::do_congruence_step):
10084 (sem_item_optimizer::worklist_push): Dump how references
10085 a class has.
10086 (sem_item_optimizer::worklist_pop): Use heap.
10087 (sem_item_optimizer::process_cong_reduction): Likewise.
10088 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10089
10090 2019-06-04 Martin Liska <mliska@suse.cz>
10091
10092 * ipa-icf.h (struct sem_usage_pair_hash): New.
10093 (sem_usage_pair_hash::hash): Likewise.
10094 (sem_usage_pair_hash::equal): Likewise.
10095 (struct sem_usage_hash): Likewise.
10096 * ipa-icf.c (sem_item::sem_item): Initialize
10097 referenced_by_count.
10098 (sem_item::add_reference): Register a reference
10099 in ref_map and not in target->usages.
10100 (sem_item::setup): Remove initialization of
10101 dead vectors.
10102 (sem_item::~sem_item): Remove usage of dead vectors.
10103 (sem_item::dump): Remove dump of references.
10104 (sem_item_optimizer::sem_item_optimizer): Initialize
10105 m_references.
10106 (sem_item_optimizer::read_section): Remove useless
10107 dump.
10108 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10109 (sem_item_optimizer::build_graph): Pass m_references
10110 to ::add_reference.
10111 (sem_item_optimizer::verify_classes): Remove usage of dead
10112 vectors.
10113 (sem_item_optimizer::traverse_congruence_split): Return true
10114 when a class is split.
10115 (sem_item_optimizer::do_congruence_step_for_index): Use
10116 hash_map for look up of (sem_item *, index). That brings
10117 significant speed up.
10118 (sem_item_optimizer::do_congruence_step): Return true
10119 when a split is done.
10120 (congruence_class::is_class_used): Use referenced_by_count.
10121
10122 2019-06-04 Alan Modra <amodra@gmail.com>
10123
10124 PR target/90689
10125 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10126 error.
10127
10128 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10129
10130 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10131 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10132 (rs6000_secondary_reload_simple_move): Adjust.
10133 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10134 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10135 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10136 comment.
10137 (power6x): Adjust.
10138 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10139 (floatunssi<mode>2_lfiwzx): Adjust.
10140 (fix_trunc<mode>si2_stfiwx): Adjust.
10141 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10142 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10143 (mfpgpr): Mark as deprecated.
10144 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10145 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10146 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10147
10148 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10149
10150 * config/rs6000/constraints.md (define_register_constraint "wg"):
10151 Delete.
10152 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10153 RS6000_CONSTRAINT_wg.
10154 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10155 (rs6000_init_hard_regno_mode_ok): Adjust.
10156 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10157 Delete "wg" alternatives.
10158 * doc/md.texi (Machine Constraints): Adjust.
10159
10160 2019-06-03 Alan Modra <amodra@gmail.com>
10161
10162 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10163 (get_uncond_jump_length): Assert length less than INT_MAX and
10164 non-negative.
10165
10166 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10167
10168 PR middle-end/64242
10169 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10170 block.
10171 (expand_builtin_nonlocal_goto): Likewise.
10172
10173 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10174
10175 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10176 (aarch64_asm_output_external): Declare.
10177 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10178 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10179 (aarch64_asm_output_alias): New.
10180 (aarch64_asm_output_external): New.
10181 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10182 (ASM_OUTPUT_EXTERNAL): Define.
10183
10184 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10185 * tree-vrp.h (value_range_base::nonzero_p): New.
10186 (value_range_base::set_nonnull): Rename to...
10187 (value_range_base::set_nonzero): ...this.
10188 (value_range_base::set_null): Rename to...
10189 (value_range_base::set_zero): ...this.
10190 (value_range::set_nonnull): Remove.
10191 (value_range::set_null): Remove.
10192 * tree-vrp.c (range_is_null): Remove.
10193 (range_is_nonnull): Remove.
10194 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10195 instead of range_is_*null.
10196 (extract_range_from_unary_expr): Same.
10197 (value_range_base::set_nonnull): Rename to...
10198 (value_range_base::set_nonzero): ...this.
10199 (value_range::set_nonnull): Remove.
10200 (value_range_base::set_null): Rename to...
10201 (value_range_base::set_zero): ...this.
10202 (value_range::set_null): Remove.
10203 (extract_range_from_binary_expr): Rename set_*null uses to
10204 set_*zero.
10205 (extract_range_from_unary_expr): Same.
10206 (union_helper): Same.
10207 * vr-values.c (get_value_range): Use set_*zero instead of
10208 set_*null.
10209 (vr_values::extract_range_from_binary_expr): Same.
10210 (vr_values::extract_range_basic): Same.
10211
10212 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10213
10214 PR driver/90684
10215 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10216
10217 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10218
10219 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10220 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10221 Rename to...
10222 (aarch64_<su>abd<mode>_3): ... This.
10223 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10224
10225 2019-06-03 Richard Biener <rguenther@suse.de>
10226
10227 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10228 full reference tree and record in ref->ref.
10229 (vn_reference_lookup_3): Pass in original ref to
10230 ao_ref_init_from_vn_reference.
10231 (vn_reference_lookup): Likewise.
10232 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10233 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10234 Handle non-decl bases in the original reference.
10235
10236 2019-06-03 Martin Liska <mliska@suse.cz>
10237
10238 * doc/generic.texi: Remove Java Trees.
10239
10240 2019-06-03 Martin Liska <mliska@suse.cz>
10241
10242 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10243 returns 0 when operands are equal.
10244
10245 2019-06-03 Richard Biener <rguenther@suse.de>
10246
10247 PR tree-optimization/90716
10248 * tree-loop-distribution.c (destroy_loop): Process blocks in
10249 correct order.
10250
10251 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10252
10253 PR target/88837
10254 * vector-builder.h (vector_builder::count_dups): New method.
10255 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10256 Declare prototype.
10257 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10258 (vec_init<mode><Vel>): New pattern.
10259 * config/aarch64/aarch64.c (emit_insr): New function.
10260 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10261 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10262 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10263 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10264
10265 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10266
10267 PR tree-optimization/90681
10268 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10269 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10270 special case for SLP, but fail on non-groupped loads.
10271
10272 2019-06-03 Martin Liska <mliska@suse.cz>
10273
10274 * cfg.c (debug): Use TDF_DETAILS for debug and
10275 print edge info only once.
10276
10277 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10278
10279 PR fortran/90539
10280 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10281
10282 2019-06-01 Martin Sebor <msebor@redhat.com>
10283
10284 PR middle-end/90694
10285 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10286
10287 2019-05-31 Jan Hubicka <jh@suse.cz>
10288
10289 * alias.c: Include ipa-utils.h.
10290 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10291 * ipa-devirt.c (prevailing_odr_type): New.
10292 * ipa-utils.h (previaling_odr_type): Declare.
10293
10294 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10295 Hongtao Liu <hongtao.liu@intel.com>
10296
10297 PR target/89355
10298 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10299 NOTE_INSN_DELETED_LABEL check.
10300
10301 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10302 Robert Suchanek <robert.suchanek@mips.com>
10303
10304 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10305 and 3rd operands of the fmadd/fmsub/maddv builtin.
10306
10307 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10308
10309 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10310 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10311 on OMP_SIMD if not nested inside of worksharing loop that also has
10312 lastprivate conditional clause for the same decl.
10313 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10314 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10315 on simd.
10316 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10317 on simd construct.
10318 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10319 on simd construct.
10320 (lower_lastprivate_clauses): Likewise.
10321 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10322 calling lower_rec_input_clauses.
10323 (lower_omp_for): Likewise.
10324 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10325 clause on simd construct.
10326 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10327 OMP_CLAUSE__CONDTEMP_ clause is present.
10328
10329 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10330 ivar and lvar.
10331
10332 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10333
10334 PR c/43673
10335 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10336 TEX_D32, TEX_D64 or TEX_D128.
10337
10338 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10339
10340 * match.pd (~(vec?cst1:cst2)): New transformation.
10341
10342 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10343
10344 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10345 ((size_t)(A /[ex] B) CMP C): New transformation.
10346
10347 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10348
10349 * doc/md.texi: Document define_insn_and_rewrite.
10350 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10351 * gensupport.c (queue_elem): Update comment.
10352 (replace_operands_with_dups): New function.
10353 (gen_rewrite_sequence): Likewise.
10354 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10355 * read-rtl.c (apply_subst_iterator): Likewise.
10356 (add_condition_to_rtx, named_rtx_p): Likewise.
10357 (rtx_reader::read_rtx_operand): Likewise.
10358 * config/aarch64/aarch64-sve.md
10359 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10360 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10361 define_insn_and_rewrite.
10362 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
10363 Remove separate define_split.
10364
10365 2019-05-31 Jan Hubicka <jh@suse.cz>
10366
10367 * tree-ssa-alias.c (type_has_components_p): New function.
10368 (aliasing_component_refs_p): Use it.
10369
10370 2019-05-31 Martin Liska <mliska@suse.cz>
10371
10372 * gdbhooks.py: Add const_tree to TreePrinter.
10373
10374 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
10375
10376 PR debug/86964
10377 * common.opt (feliminate-unused-debug-symbols): Enable by default.
10378 * doc/invoke.texi (Debugging Options): Document new default of
10379 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
10380
10381 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10382
10383 PR tree-optimization/90671
10384 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
10385 template_block used to be empty on the first call, don't use
10386 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
10387 seq with bb_seq and set it with set_bb_seq.
10388
10389 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
10390
10391 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
10392
10393 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10394 Michael Meissner <meissner@linux.ibm.com>
10395
10396 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
10397 (prefixed_mem_operand): Likewise.
10398 (non_prefixed_mem_operand): Likewise.
10399 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
10400 prototype.
10401 * config/rs6000/rs6000.c (print_operand_address): Handle
10402 PC-relative addresses.
10403 (mode_supports_prefixed_address_p): New function.
10404 (rs6000_prefixed_address): New function.
10405 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
10406 (SYMBOL_REF_PCREL_P): Likewise.
10407
10408 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10409
10410 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
10411 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
10412 (gimplify_omp_for): If worksharing loop with lastprivate conditional
10413 is nested inside of parallel region, add _condtemp_ clause to both.
10414 * tree-nested.c (convert_nonlocal_omp_clauses,
10415 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
10416 assertion failure.
10417 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
10418 member.
10419 * omp-general.c (omp_extract_for_data): Compute it.
10420 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
10421 (lower_rec_input_clauses): Likewise.
10422 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
10423 clause is already present, just add one further one after it.
10424 (lower_lastprivate_clauses): Handle cond_ptr with array type.
10425 (lower_send_shared_vars): Clear _condtemp_ vars.
10426 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
10427 or section or taskgroup.
10428 * omp-expand.c (determine_parallel_type): Disallow combining only if
10429 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
10430 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
10431 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10432 expand_omp_for_static_chunk, expand_omp_for): Use
10433 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
10434 determine if a special set of API routines are needed and if condtemp
10435 needs to be initialized, while always initialize cond_var if
10436 fd->lastprivate_conditional is non-zero.
10437
10438 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10439 Michael Meissner <meissner@linux.ibm.com>
10440
10441 * config/rs6000/constraints.md (eI): New constraint.
10442 * config/rs6000/predicates.md (cint34_operand): New predicate.
10443 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
10444 (SIGNED_34BIT_OFFSET_P): Likewise.
10445 * doc/md.texi (eI): Document constraint.
10446
10447 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
10448
10449 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
10450
10451 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10452 Michael Meissner <meissner@linux.ibm.com>
10453
10454 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
10455 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
10456 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
10457 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
10458 (OTHER_FUTURE_MASKS): Likewise.
10459 (POWERPC_MASKS): Likewise.
10460 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
10461 specified without -mprefixed-addr or -mcpu=future. Error if
10462 -mprefixed-addr is specified without -mcpu=future.
10463 (rs6000_opt_masks): Add entry for prefixed-addr.
10464 * rs6000.opt (mprefixed-addr): New option.
10465
10466 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
10467
10468 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
10469 cfun->is_thunk check.
10470
10471 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10472
10473 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
10474 to length.
10475
10476 2019-05-30 Martin Liska <mliska@suse.cz>
10477
10478 * gdbinit.in: Fix 'ptc' command. Add trt
10479 that prints TREE_TYPE($).
10480
10481 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
10482 Alan Modra <amodra@gmail.com>
10483
10484 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
10485 calls here...
10486 (rs6000_indirect_call_template_1): ...and here.
10487 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
10488 plt16_ha, plt16_lo, mtctr indirect calls. Use
10489 rs6000_pltseq_enum.
10490 (rs6000_decl_ok_for_sibcall): New function.
10491 (rs6000_function_ok_for_sibcall): Refactor.
10492 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
10493 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
10494 when pcrel. Reorganize.
10495 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
10496 * rs6000.h (rs6000_pltseq_enum): New enum.
10497 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
10498 (*pltseq_tocsave): Use rs6000_pltseq_enum.
10499 (*pltseq_plt16_ha): Likewise.
10500 (*pltseq_plt16_lo): Likewise.
10501 (*pltseq_mtctr): Likewise.
10502 (*pltseq_plt_pcrel): New insn.
10503 (*call_local_aix): Handle @notoc calls.
10504 (*call_value_local_aix): Likewise.
10505 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
10506 (*call_value_nonlocal_aix): Likewise.
10507 (*call_indirect_pcrel): New insn.
10508 (*call_value_indirect_pcrel): Likewise.
10509
10510 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
10511
10512 * config/i386/sse.md (*save_multiple<mode>): Rename from
10513 save_multiple<mode>.
10514 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
10515 (*restore_multiple_and_return<mode>): Rename from
10516 restore_multiple_and_return<mode>.
10517 (*restore_multiple_leave_return<mode>): Rename from
10518 restore_multiple_leave_return<mode>.
10519
10520 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
10521
10522 * config.gcc (rx-*-linux*): New target.
10523 * config/rx/elf.opt: New file.
10524 * config/rx/linux.h: Likewise.
10525 * config/rx/t-linux: Likewise.
10526 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
10527 make it zero.
10528 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
10529 (ASM_APP_OFF): Likewise.
10530 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
10531 moved elsewhere.
10532
10533 2019-05-29 Jan Hubicka <jh@suse.cz>
10534
10535 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
10536 variants are pointer equivalent.
10537
10538 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10539
10540 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
10541 * config/aarch64/aarch64-sve2.md: New file.
10542 (<u>avg<mode>3_floor): New pattern.
10543 (<u>avg<mode>3_ceil): Likewise.
10544 (*<sur>h<addsub><mode>): Likewise.
10545 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
10546 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
10547
10548 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10549
10550 PR bootstrap/90543
10551 * optc-save-gen.awk: In cl_optimization_print, use correct condition
10552 for var_opt_string printing. In cl_optimization_print_diff, print
10553 (null) instead of invoking undefined behavior if one of the
10554 var_opt_string pointers is NULL and use && instead of first || in the
10555 guarding condition. For var_target_other options, handle const char *
10556 target variables similarly to const char * optimize node variables.
10557
10558 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
10559
10560 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
10561 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
10562 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
10563 Add autib1716 and pacib1716 initialisation.
10564 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
10565 for autib1716 and pacib1716.
10566 * config/aarch64/aarch64-protos.h (aarch64_key_type,
10567 aarch64_post_cfi_startproc): Define.
10568 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
10569 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
10570 aarch64_handle_pac_ret_protection): Set default sign key to A.
10571 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
10572 aarch64_expand_prologue): Add check for b-key.
10573 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
10574 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
10575 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
10576 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
10577 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
10578 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
10579 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10580 * config/aarch64/aarch64.md (do_return): Add check for b-key.
10581 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
10582 pauth_hint_num_a with pauth_hint_num.
10583 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
10584 pauth_hint_num_a with pauth_hint_num.
10585 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
10586 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
10587 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10588 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
10589 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
10590 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
10591 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
10592 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10593 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
10594 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
10595 UNSPEC_AUTIA1716 respectively.
10596 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
10597 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
10598 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
10599 * doc/invoke.texi (-mbranch-protection): Add b-key type.
10600 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
10601 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
10602
10603 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10604
10605 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
10606 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
10607 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
10608 explicit clause on combined parallel into implicit shared clause.
10609 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
10610 and firstprivate if the decl has one too from combined parallel to
10611 the worksharing construct.
10612
10613 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
10614 Michael Meissner <meissner@linux.ibm.com>
10615
10616 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
10617
10618 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
10619
10620 * rtl.h (LABEL_REF_P): New #define.
10621
10622 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
10623
10624 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
10625
10626 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10627
10628 * internal-fn.c: Marked mask_load_direct as vectorizable.
10629 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
10630 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
10631 combined even if masks different with allow_slp_p param.
10632 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
10633 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
10634 dissolve SLP-only vectorizable groups when SLP has been discarded.
10635 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
10636 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
10637 masks.
10638 (vect_build_slp_tree_1): Fixed comment typo.
10639 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
10640 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
10641 loads for SLP only.
10642 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
10643 vectorizable.
10644 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
10645
10646 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10647
10648 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
10649 Remove obsolete use_thunk reference.
10650 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10651 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10652 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10653 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10654 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10655 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10656 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10657 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10658 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10659
10660 2019-05-28 Nathan Sidwell <nathan@acm.org>
10661
10662 * tree.h (IDENTIFIER_ANON_P): New.
10663 (anon_aggrname_format, anon_aggname_p): Don't declare.
10664 (make_anon_name): Declare.
10665 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
10666 (hash_tree): Likewise.
10667 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
10668 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
10669 (anon_cnt, make_anon_name): New.
10670
10671 2019-05-28 Martin Liska <mliska@suse.cz>
10672
10673 PR other/90315
10674 * opts-global.c (decode_options): Print help for all
10675 help_option_arguments.
10676 * opts.c (print_help): Add new argument.
10677 (common_handle_option): Remember all values into
10678 help_option_arguments.
10679 * opts.h (print_help): Add new argument.
10680
10681 2019-05-28 Martin Liska <mliska@suse.cz>
10682
10683 PR ipa/90555
10684 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
10685 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
10686 (func_checker::compare_bb): Call compare_loops.
10687
10688 2019-05-27 Jakub Jelinek <jakub@redhat.com>
10689
10690 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10691 on sections construct.
10692 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
10693 construct.
10694 (lower_omp_sections): Handle lastprivate conditional.
10695 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
10696 lastprivate_conditional_map.
10697 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
10698
10699 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
10700 critical, taskgroup and section regions when looking for a region
10701 with non-NULL lastprivate_conditional_map.
10702
10703 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10704
10705 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
10706 (*ix86_gen_sub3): Ditto.
10707 (*ix86_gen_sub3_carry): Ditto.
10708 (*ix86_gen_one_cmpl2): Ditto.
10709 (*ix86_gen_andsp): Ditto.
10710 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
10711 (gen_and2_insn): New static function.
10712 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
10713 Use gen_add3_insn instead of ix86_gen_add3.
10714 (ix86_expand_split_stack_prologue): Use gen_add2_insn
10715 instead of ix86_gen_add3.
10716 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
10717 Use gen_sub3_insn instead of ix86_gen_sub3.
10718 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
10719 instead of ix86_gen_add3.
10720 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
10721 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
10722 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
10723 * config/i386/i386-options.c (ix86_option_override_internal):
10724 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
10725 ix86_gen_one_cmpl2 and ix86_gen_andsp.
10726
10727 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
10728
10729 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
10730 and DW_OP_GNU_const_index opcodes.
10731
10732 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10733
10734 * config/i386/i386.h (STACK_SIZE_MODE): Define.
10735
10736 2019-05-27 Richard Biener <rguenther@suse.de>
10737
10738 PR tree-optimization/90637
10739 * tree-ssa-sink.c (statement_sink_location): Honor the
10740 computed sink location for single-uses.
10741
10742 2019-05-27 Richard Biener <rguenther@suse.de>
10743
10744 PR middle-end/90610
10745 * match.pd (vec_perm): Avoid clobbering op0 when not generating
10746 a bit-insert.
10747
10748 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10749
10750 * config/i386/i386.md (@sub<mode>3_carry): Rename
10751 from sub<mode>3_carry.
10752 (@leave_<mode>): New expander.
10753 (*leave): Rename from leave.
10754 (*leave_rex64): Rename from leave_rex64.
10755 (@monitorx_<mode>): Rename from monitorx_<mode>.
10756 (@clzero_<mode>): Rename from clzero_<mode>.
10757 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
10758 from sse3_monitor_<mode>.
10759 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
10760 (*ix86_gen_leave): Ditto.
10761 (*ix86_gen_monitor): Ditto.
10762 (*ix86_gen_monitorx): Ditto.
10763 (*ix86_gen_clzero): Ditto.
10764 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
10765 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
10766 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
10767 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
10768 Use gen_sse3_monitor instead of ix86_gen_monitor.
10769 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
10770 instead of ix86_gen_monitorx.
10771 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
10772 instead of ix86_gen_clzero.
10773 * config/i386/i386-options.c (ix86_option_override_internal):
10774 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
10775 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
10776
10777 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10778
10779 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
10780 Rename from tls_global_dynamic_64_<mode>.
10781 (@tls_local_dynamic_base_64_<mode>): Rename from
10782 tls_local_dynamic_base_64_<mode>.
10783 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
10784 Remove indirect function.
10785 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
10786 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
10787 instead of ix86_gen_tls_global_dynamic_64.
10788 Use gen_tls_local_dynamic_base_64 instead of
10789 ix86_gen_tls_local_dynamic_base_64.
10790 * config/i386/i386-options.c (ix86_option_override_internal):
10791 Do not initialize ix86_gen_tls_global_dynamic_64 and
10792 ix86_gen_tls_local_dynamic_base_64.
10793
10794 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10795
10796 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
10797 Rename from pro_epilogue_adjust_stack_<mode>_add.
10798 (@pro_epilogue_adjust_stack_sub_<mode>)
10799 Rename from pro_epilogue_adjust_stack_<mode>_sub.
10800 (@allocate_stack_worker_probe_<mode>):
10801 Rename from allocate_stack_worker_probe_<mode>.
10802 (allocate_stack): Use gen_allocate_stack_worker_probe.
10803 (probe_stack): Use gen_probe_stack_1.
10804 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
10805 (@adjust_stack_and_probe_<mode>): Rename from
10806 adjust_stack_and_probe<mode>.
10807 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
10808 (stack_protect_set): Use gen_stack_protect_set_1.
10809 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
10810 (stack_protect_test): Use gen_stack_protect_test_1.
10811 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
10812 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
10813 Remove indirect function.
10814 (*ix86_gen_adjust_stack_and_probe): Ditto.
10815 (*ix86_gen_probe_stack_range): Ditto.
10816 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
10817 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
10818 (ix86_adjust_stack_and_probe_stack_clash): Use
10819 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
10820 (ix86_adjust_stack_and_probe): Ditto.
10821 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
10822 of ix86_gen_probe_stack_range.
10823 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
10824 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
10825 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
10826 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
10827 CODE_FOR_stack_protect_test_{si,di}.
10828 * config/i386/i386-options.c (ix86_option_override_internal):
10829 Do not initialize ix86_gen_allocate_stack_worker,
10830 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10831
10832 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
10833
10834 * doc/invoke.texi (Link Options): Many editorial changes around
10835 -flinker-output.
10836
10837 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10838
10839 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
10840 pre-Solaris 11 referene and most Studio compiler details.
10841
10842 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
10843
10844 PR target/90530
10845 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
10846 DImode to SImode in floating-point registers on 64-bit target.
10847 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
10848 register_operand in xmpyu patterns.
10849
10850 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10851
10852 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
10853 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
10854 OMP_CLAUSE__REDUCTEMP_.
10855 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10856 OMP_CLAUSE__CONDTEMP_.
10857 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
10858 * tree-pretty-print.c (dump_omp_clause): Likewise.
10859 * tree-nested.c (convert_nonlocal_omp_clauses,
10860 convert_local_omp_clauses): Likewise.
10861 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
10862 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
10863 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
10864 on OMP_FOR.
10865 (gimplify_omp_for): Warn and disable conditional modifier from
10866 lastprivate on loop iterators.
10867 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
10868 member.
10869 * omp-general.c (omp_extract_for_data): Initialize it.
10870 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
10871 member.
10872 (delete_omp_context): Delete it.
10873 (lower_lastprivate_conditional_clauses): New function.
10874 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
10875 handle lastprivate conditional clauses.
10876 (lower_reduction_clauses): Add CLIST argument, emit it into
10877 the critical section if any.
10878 (lower_omp_sections): Adjust lower_lastprivate_clauses and
10879 lower_reduction_clauses callers.
10880 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
10881 to lower_lastprivate_clauses.
10882 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
10883 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
10884 clist into a critical section if not emitted there already by
10885 lower_reduction_clauses.
10886 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
10887 callers.
10888 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
10889 conditional variables.
10890 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
10891 clause is present.
10892 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10893 expand_omp_for_static_chunk): Handle lastprivate conditional.
10894 (expand_omp_for): Handle fd.lastprivate_conditional like
10895 fd.have_reductemp.
10896
10897 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10898
10899 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
10900 kernel does not exit cleanly.
10901 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
10902
10903 2019-05-24 Jason Merrill <jason@redhat.com>
10904
10905 Revert:
10906 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
10907
10908 2019-05-24 Richard Biener <rguenther@suse.de>
10909
10910 PR testsuite/90607
10911 * tree-loop-distribution.c (struct partition): Add location
10912 member.
10913 (partition_alloc): Initialize all fields.
10914 (generate_memset_builtin): Use the location recorded in the
10915 partition for the generated call.
10916 (generate_memcpy_builtin): Likewise.
10917 (classify_partition): Record the location of a single store
10918 as location for the partition.
10919
10920 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10921
10922 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
10923 for lo-part.
10924
10925 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
10926
10927 PR target/90588
10928 * common/config/aarch64/aarch64-common.c
10929 (aarch64_rewrite_selected_cpu): Change local temporary variable
10930 type from unsigned long to uint64_t.
10931 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
10932 aarch64_get_extension_string_for_isa_flags): Change declaration to
10933 match new definition by replacing unsigned long with uint64_t.
10934
10935 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10936
10937 PR target/90568
10938 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
10939 gen_attr_type just once instead of 4-7 times. Formatting fixes.
10940 Handle stack_protect_test_<mode> codegen similarly to corresponding
10941 sub instruction.
10942
10943 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
10944
10945 * config/i386/darwin.h: Reject -mfentry*.
10946 * doc/sourcebuild.texi: Document mfentry target support.
10947
10948 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10949
10950 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
10951 Rename to rs6000_global_entry_point_prologue_needed_p. Return
10952 false for PC-relative functions.
10953 (rs6000_output_function_prologue): Change called function name to
10954 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
10955 name,1" for PC-relative functions.
10956 (rs6000_elf_declare_function_name): Change called function name to
10957 rs6000_global_entry_point_prologue_needed_p.
10958
10959 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
10960
10961 PR target/90552
10962 * config/i386/i386.c (gen_rtx_cost):
10963 Use ix86_tune_cost instead of ix86_cost.
10964
10965 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10966 Michael Meissner <meissner@linux.ibm.com>
10967 Segher Boessenkool <segher@kernel.crashing.org>
10968
10969 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
10970 OPTION_MASK_PCREL.
10971 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
10972 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
10973 (rs6000_fndecl_pcrel_p): Likewise.
10974 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
10975 error if -mpcrel is requested without -mcpu=future.
10976 (rs6000_opt_masks): Add entry for pcrel.
10977 (rs6000_fndecl_pcrel_p): New function.
10978 (rs6000_pcrel_p): Likewise.
10979 * config/rs6000/rs6000.opt (mpcrel): New option.
10980 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
10981
10982 2019-05-23 Jan Hubicka <jh@suse.cz>
10983 Martin Liska <mliska@suse.cz>
10984
10985 PR tree-optimization/90576
10986 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
10987 poly_int_tree_p.
10988 (aliasing_component_refs_p): Fix three way size compare conditional;
10989 give up earlier in case we can not decide on equivalence.
10990
10991 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10992 Michael Meissner <meissner@linux.ibm.com>
10993 Segher Boessenkool <segher@kernel.crashing.org>
10994
10995 * config.gcc: Add future cpu.
10996 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
10997 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
10998 #define.
10999 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
11000 (RS6000_CPU): New instantiation for future cpu.
11001 * config/rs6000/rs6000-opts.h (enum processor_type): Add
11002 PROCESSOR_FUTURE.
11003 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
11004 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
11005 * config/rs6000/rs6000-tables.opt: Regenerate.
11006 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
11007 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
11008 (rs6000_machine_from_flags): Handle future cpu.
11009 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
11010 PROCESSOR_POWER9 for now.
11011 (rs6000_adjust_cost): Likewise.
11012 (rs6000_issue_rate): Likewise.
11013 (rs6000_register_move_cost): Likewise.
11014 (rs6000_opt_masks): Add entry for future.
11015 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
11016 (MASK_FUTURE): New #define.
11017 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
11018 * config/rs6000/rs6000.opt (mfuture): New target option.
11019 * doc/invoke.texi (mcpu): Add future cpu.
11020
11021 2019-05-23 Martin Liska <mliska@suse.cz>
11022
11023 PR c++/90587
11024 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
11025 operation points to a temporary (pointed via tree_to_wide_ref)
11026 that is out of scope after the &.
11027
11028 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
11029
11030 PR c++/90592
11031 * doc/extend.texi (Function Names): Add missing word.
11032
11033 2019-05-23 Richard Biener <rguenther@suse.de>
11034
11035 PR tree-optimization/88440
11036 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11037 at -O[2s]+.
11038 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11039 generated call.
11040 (generate_memcpy_builtin): Likewise.
11041 (distribute_loop): Pass in whether to only distribute patterns.
11042 (prepare_perfect_loop_nest): Also allow size optimization.
11043 (pass_loop_distribution::execute): When optimizing a loop
11044 nest for size allow pattern replacement.
11045
11046 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11047
11048 PR target/90568
11049 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11050 of xor.
11051
11052 2019-05-23 Martin Liska <mliska@suse.cz>
11053
11054 PR sanitizer/90570
11055 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11056 expression similarly to gimplify_decl_expr.
11057
11058 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11059
11060 * cse.c (cse_dump_path): s/dump_file/f.
11061
11062 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11063
11064 PR c++/90462
11065 * diagnostic-format-json.cc: Include "selftest.h".
11066 (json_from_expanded_location): Only add "file" key for non-NULL
11067 file strings.
11068 (json_from_location_range): Don't add "start" and "finish"
11069 children if they are UNKNOWN_LOCATION.
11070 (selftest::test_unknown_location): New selftest.
11071 (selftest::test_bad_endpoints): New selftest.
11072 (selftest::diagnostic_format_json_cc_tests): New function.
11073 * json.cc (json::object::get): New function.
11074 (selftest::test_object_get): New selftest.
11075 (selftest::json_cc_tests): Call it.
11076 * json.h (json::object::get): New decl.
11077 * selftest-run-tests.c (selftest::run_tests): Call
11078 selftest::diagnostic_format_json_cc_tests.
11079 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11080 decl.
11081
11082 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11083 Andrew Stubbs <amd@codesourcery.com>
11084
11085 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11086 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11087 (kernel): Rename to...
11088 (main_kernel): ... this.
11089 (load_image): Load _init_array and _fini_array kernels.
11090 (run): Add argument for kernel to run.
11091 (main): Run init_array_kernel before main_kernel, and
11092 fini_array_kernel after.
11093 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11094 amdgpu_hsa_kernel attribute on functions.
11095 (gcn_disable_constructors): Delete.
11096 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11097 * config/gcn/crt0.c (size_t): Define.
11098 (_init_array, _fini_array): New.
11099 (__preinit_array_start, __preinit_array_end,
11100 __init_array_start, __init_array_end,
11101 __fini_array_start, __fini_array_end): Declare weak references.
11102
11103 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11104
11105 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11106
11107 2019-05-22 Jason Merrill <jason@redhat.com>
11108
11109 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11110
11111 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11112
11113 PR target/88483
11114 * config/i386/i386-options.c (ix86_init_machine_status): Set
11115 stack_frame_required to true.
11116 * config/i386/i386.c (ix86_get_frame_size): New function.
11117 (ix86_frame_pointer_required): Replace get_frame_size with
11118 ix86_get_frame_size.
11119 (ix86_compute_frame_layout): Likewise.
11120 (ix86_find_max_used_stack_alignment): Changed to void. Set
11121 stack_frame_required.
11122 (ix86_finalize_stack_frame_flags): Always call
11123 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11124 ix86_get_frame_size.
11125 * config/i386/i386.h (machine_function): Add stack_frame_required.
11126
11127 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11128
11129 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11130
11131 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11132
11133 * common/config/aarch64/aarch64-common.c
11134 (struct aarch64_option_extension, struct processor_name_to_arch,
11135 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11136 aarch64_contains_opt,
11137 aarch64_get_extension_string_for_isa_flags): Change type of
11138 variables storing flags to uint64_t.
11139 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11140 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11141 * config/aarch64/aarch64.c (struct processor,
11142 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11143 aarch64_validate_march, aarch64_override_options,
11144 aarch64_option_print, aarch64_handle_attr_isa_flags,
11145 aarch64_declare_function_name, aarch64_start_file): Make flag
11146 variables uint64_t.
11147 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11148 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11149 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11150 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11151 * config/aarch64/driver-aarch64.c
11152 (struct aarch64_arch_extension, struct aarch64_core_data,
11153 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11154 flag variables uint64_t.
11155 * doc/invoke.texi: Add documentation for new arguments.
11156
11157 2019-05-22 Richard Biener <rguenther@suse.de>
11158
11159 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11160 rewrite ...
11161 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11162
11163 2019-05-22 Martin Liska <mliska@suse.cz>
11164
11165 PR lto/90500
11166 * doc/extend.texi: Document the change.
11167
11168 2019-05-22 Richard Biener <rguenther@suse.de>
11169
11170 PR tree-optimization/90450
11171 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11172 (mem_ref_hasher::equal): Check it.
11173 (mem_ref_alloc): Initialize it.
11174 (gather_mem_refs_stmt): Set it.
11175
11176 2019-05-22 Richard Biener <rguenther@suse.de>
11177
11178 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11179 Add ABS_EXPR.
11180 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11181 as ABSU_EXPR.
11182
11183 2019-05-22 Alan Modra <amodra@gmail.com>
11184
11185 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11186 (ASM_CPU_SPEC): Conditionally add -many.
11187 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11188 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11189 (rs6000_file_start): ..extracted from here, and modified to
11190 test all ISA bits.
11191 (rs6000_output_function_prologue): Emit .machine as necessary.
11192
11193 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11194
11195 PR middle-end/90553
11196 * ira-lives.c (process_bb_node_lives): Consider defs
11197 for a call insn to be die before the call, not after.
11198
11199 * function.c (assign_parm_setup_block): Raise alignment of
11200 stacked parameter only for STRICT_ALIGNMENT targets.
11201
11202 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11203
11204 * config/rs6000/constraints.md (define_register_constraint "wz"):
11205 Delete.
11206 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11207 RS6000_CONSTRAINT_wz.
11208 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11209 (rs6000_init_hard_regno_mode_ok): Adjust.
11210 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11211 * doc/md.texi (Machine Constraints): Adjust.
11212
11213 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11214
11215 * config/rs6000/constraints.md (define_register_constraint "wl"):
11216 Delete.
11217 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11218 RS6000_CONSTRAINT_wl.
11219 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11220 (rs6000_init_hard_regno_mode_ok): Adjust.
11221 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11222 * doc/md.texi (Machine Constraints): Adjust.
11223
11224 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11225
11226 * config/rs6000/constraints.md (define_register_constraint "wm"):
11227 Delete.
11228 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11229 RS6000_CONSTRAINT_wm.
11230 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11231 (rs6000_init_hard_regno_mode_ok): Adjust.
11232 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11233 * doc/md.texi (Machine Constraints): Adjust.
11234
11235 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11236
11237 * config/rs6000/constraints.md (define_register_constraint "wk"):
11238 Delete.
11239 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11240 RS6000_CONSTRAINT_wk.
11241 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11242 (rs6000_init_hard_regno_mode_ok): Adjust.
11243 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11244 * doc/md.texi (Machine Constraints): Adjust.
11245
11246 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11247
11248 * config/rs6000/constraints.md (define_register_constraint "wj"):
11249 Delete.
11250 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11251 RS6000_CONSTRAINT_wj.
11252 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11253 (rs6000_init_hard_regno_mode_ok): Adjust.
11254 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11255 (VS_64dm): Delete.
11256 * config/rs6000/vsx.md: Ditto.
11257 * doc/md.texi (Machine Constraints): Adjust.
11258
11259 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11260
11261 * config/rs6000/constraints.md (define_register_constraint "wh"):
11262 Delete.
11263 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11264 RS6000_CONSTRAINT_wh.
11265 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11266 (rs6000_init_hard_regno_mode_ok): Adjust.
11267 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11268 * doc/md.texi (Machine Constraints): Adjust.
11269
11270 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11271
11272 PR target/90547
11273 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11274 Avoid calling gen_lowpart with CONST operand.
11275
11276 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11277
11278 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11279 field template_last_to_copy.
11280 (ssa_create_duplicates): Set it, and use it. Attempt to
11281 preserve more debug stmts.
11282
11283 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11284
11285 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11286 (signbit<mode>2): New expander
11287
11288 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11289
11290 PR bootstrap/87338
11291 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11292 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11293
11294 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11295
11296 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11297 %ebx and %ecx bafore calling cpuid with leaf 1 or
11298 non-constant leaf argument.
11299
11300 2019-05-21 Alan Modra <amodra@gmail.com>
11301
11302 PR target/90545
11303 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11304 power9 direct move cost.
11305
11306 2019-05-21 Richard Biener <rguenther@suse.de>
11307
11308 PR middle-end/90510
11309 * fold-const.c (fold_read_from_vector): New function.
11310 * fold-const.h (fold_read_from_vector): Declare.
11311 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11312 single-element insert permutations. Canonicalize selector
11313 further and fix issue with last commit.
11314
11315 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11316
11317 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11318 parameter with default value false to declaration.
11319 (split_edges_for_insertion): New inline function. Wrapper for
11320 split_critical_edges with for_edge_insertion_p = true.
11321 * tree-cfg.c (split_critical_edges): Don't split non-critical
11322 edges if for_edge_insertion_p is false. Fix whitespace.
11323 * tree-ssa-pre.c (pass_pre::execute): Call
11324 split_edges_for_insertion instead of split_critical_edges.
11325 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11326 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11327 (pass_data_sink_code): Update function name in the comment.
11328
11329 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11330
11331 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11332 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11333 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11334 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11335 positives.
11336
11337 2019-05-21 Martin Liska <mliska@suse.cz>
11338
11339 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11340 an extra newline.
11341 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11342 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11343 vec_lvsr.
11344 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11345 Quote a C type.
11346 (rs6000_function_arg): Likewise.
11347 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11348 (rs6000_expand_ternop_builtin): Use interval syntax.
11349 (get_element_number): Likewise.
11350 (altivec_expand_builtin): Likewise.
11351 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11352
11353 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11354
11355 PR c++/59813
11356 PR target/90418
11357 * function.h (struct function): Add calls_eh_return member.
11358 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11359 gimplifying __builtin_eh_return call.
11360 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11361 to cfun.
11362 (expand_call_inline): Or in src_cfun->calls_eh_return into
11363 dst_cfun->calls_eh_return.
11364 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
11365 cfun->calls_eh_return.
11366 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
11367 * lto-streamer-out.c (output_struct_function_base): Write
11368 calls_eh_return.
11369
11370 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
11371
11372 PR rtl-optimization/43147
11373 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
11374 IX86_BUILTIN_SHUFPD.
11375
11376 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11377
11378 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
11379 (refs_may_alias_p_1): ... here; update stats.
11380 (refs_may_alias_p): Do not update stats here.
11381
11382 2019-05-20 Richard Biener <rguenther@suse.de>
11383
11384 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
11385 doesn't produce pointers.
11386 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
11387 the first operand points to.
11388
11389 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11390
11391 * tree-ssa-alias.c (compare_sizes): New function.
11392 (sompare_type_sizes): New function
11393 (aliasing_component_refs_p): Use it.
11394 (indirect_ref_may_alias_decl_p): Likewise.
11395
11396 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11397
11398 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
11399
11400 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11401
11402 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
11403 (LIBLSAN_EARLY_SPEC): Likewise.
11404 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
11405
11406 2019-05-20 Martin Liska <mliska@suse.cz>
11407
11408 * config/i386/i386.c (ix86_libc_has_fast_function):
11409 Add ATTRIBUTE_UNUSED for the argument.
11410
11411 2019-05-20 Richard Biener <rguenther@suse.de>
11412
11413 * gimple-match-head.c: Include vec-perm-indices.h.
11414 * generic-match-head.c: Likewise.
11415 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
11416 is included.
11417 * fold-const.c (fold_vec_perm): Export.
11418 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
11419 (match.pd): ...here.
11420
11421 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11422
11423 * cfgloop.h (struct loop): Add simdlen member.
11424 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
11425 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
11426 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
11427 as new argument to autovectorize_vector_sizes target hook. If
11428 loop->simdlen, pick up vector size where the vectorization factor
11429 is equal to loop->simd, and if there is none, fall back to the first
11430 successful one.
11431 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
11432 caller.
11433 * omp-low.c (omp_clause_aligned_alignment): Likewise.
11434 * omp-general.c (omp_max_vf): Likewise.
11435 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
11436 * tree-vect-slp.c (vect_slp_bb): Likewise.
11437 * target.def (autovectorize_vector_sizes): Add ALL argument and
11438 document it.
11439 * doc/tm.texi: Adjust documentation.
11440 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
11441 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
11442 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
11443 bool argument.
11444 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
11445 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
11446 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
11447 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
11448 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
11449 preferred vector size is not 512-bit or 256-bit, just put those
11450 unpreferred ones last.
11451
11452 2019-05-20 Martin Liska <mliska@suse.cz>
11453
11454 * targhooks.c (default_libc_has_fast_function): New function.
11455 * targhooks.h (default_libc_has_fast_function): Likewise.
11456
11457 2019-05-20 Martin Liska <mliska@suse.cz>
11458
11459 PR middle-end/90263
11460 * builtins.c (expand_builtin_memory_copy_args): When having a
11461 target with fast mempcpy implementation do now use memcpy.
11462 * config/i386/i386.c (ix86_libc_has_fast_function): New.
11463 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
11464 * doc/tm.texi: Likewise.
11465 * doc/tm.texi.in: Likewise.
11466 * target.def:
11467 * expr.c (emit_block_move_hints): Add 2 new arguments.
11468 * expr.h (emit_block_move_hints): Bail out when libcall
11469 to memcpy would be used.
11470
11471 2019-05-20 Martin Liska <mliska@suse.cz>
11472
11473 * profile-count.c: Add vertical spacing in order
11474 to separate functions.
11475 * profile-count.h: Likewise.
11476
11477 2019-05-20 Martin Liska <mliska@suse.cz>
11478
11479 * profile-count.h: Do not use full qualified
11480 names if possible.
11481 * profile-count.c (profile_count::to_frequency): Likewise.
11482
11483 2019-05-20 Martin Liska <mliska@suse.cz>
11484
11485 * profile-count.h (enum profile_quality): Use capital letters
11486 for enum value names. Use the adjusted names.
11487 * profile-count.c: Use the adjusted names.
11488
11489 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11490
11491 * config/rs6000/constraints.md (define_register_constraint "wH"):
11492 Delete.
11493 (define_register_constraint "wI"): Delete.
11494 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11495 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
11496 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11497 (rs6000_init_hard_regno_mode_ok): Adjust.
11498 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
11499 resp. "d", or with "wa" as appropriate, all with "p8v".
11500 * config/rs6000/vsx.md: Ditto.
11501 * doc/md.texi (Machine Constraints): Adjust.
11502
11503 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11504
11505 * config/rs6000/constraints.md (define_register_constraint "wy"):
11506 Delete.
11507 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11508 RS6000_CONSTRAINT_wy.
11509 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11510 (rs6000_init_hard_regno_mode_ok): Adjust.
11511 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
11512 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
11513 (define_mode_attr Fisa): New.
11514 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
11515 * doc/md.texi (Machine Constraints): Adjust.
11516
11517 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11518
11519 * config/rs6000/constraints.md (define_register_constraint "wu"):
11520 Delete.
11521 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11522 RS6000_CONSTRAINT_wu.
11523 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11524 (rs6000_init_hard_regno_mode_ok): Adjust.
11525 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
11526 both with "p8v".
11527 (define_mode_attr Fa): Delete.
11528 * config/rs6000/vsx.md: Ditto.
11529 * doc/md.texi (Machine Constraints): Adjust.
11530
11531 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11532
11533 * config/rs6000/constraints.md (define_register_constraint "wJ"):
11534 Delete.
11535 (define_register_constraint "wK"): Delete.
11536 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11537 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
11538 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11539 (rs6000_init_hard_regno_mode_ok): Adjust.
11540 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
11541 Replace "wK" constraint by "wH" with "p9v".
11542 * config/rs6000/vsx.md: Ditto.
11543 * doc/md.texi (Machine Constraints): Adjust.
11544
11545 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11546
11547 * config/rs6000/constraints.md (define_register_constraint "wb"):
11548 Delete.
11549 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11550 RS6000_CONSTRAINT_wb.
11551 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11552 (rs6000_init_hard_regno_mode_ok): Adjust.
11553 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
11554 * config/rs6000/vsx.md: Ditto.
11555 * doc/md.texi (Machine Constraints): Adjust.
11556
11557 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11558
11559 * config/rs6000/constraints.md (define_register_constraint "wo"):
11560 Delete.
11561 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11562 RS6000_CONSTRAINT_wo.
11563 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11564 (rs6000_init_hard_regno_mode_ok): Adjust.
11565 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
11566 * config/rs6000/altivec.md: Ditto.
11567 * doc/md.texi (Machine Constraints): Adjust.
11568
11569 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11570
11571 * config/darwin-c.c (darwin_register_objc_includes): Do not
11572 prepend the sysroot when building gnu-runtime header search
11573 paths.
11574
11575 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11576
11577 * config/darwin.c (darwin_file_end): Use switch_to_section ()
11578 instead of direct output of the asm.
11579
11580 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11581
11582 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
11583 argument to be type bool (was int before).
11584 (rs6000_emit_epilogue): Simplify some code. Declare some variables
11585 at first use. Use type bool for some variables. Fix a theoretical
11586 eh_return bug for svr4.
11587
11588 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11589
11590 * config/rs6000/rs6000.md (isa): New attribute.
11591 (enabled): New attribute.
11592
11593 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
11594
11595 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
11596 assemble_start_function and assemble_end_function.
11597
11598 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
11599
11600 PR middle-end/89433
11601 * omp-general.c (oacc_verify_routine_clauses): Change formal
11602 parameters. Add checking if already marked with an OpenACC
11603 'routine' directive. Adjust all users.
11604
11605 PR middle-end/89433
11606 * omp-general.c (oacc_build_routine_dims): Move some of its
11607 processing into...
11608 (oacc_verify_routine_clauses): ... this new function.
11609 * omp-general.h (oacc_verify_routine_clauses): New prototype.
11610
11611 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11612
11613 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
11614 formating of picbase labels to match other ports.
11615
11616 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11617
11618 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
11619 in the generated code.
11620
11621 2019-05-16 Martin Sebor <msebor@redhat.com>
11622
11623 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
11624 identifiers, keywords, operators, and types in diagnostics. Correct
11625 quoting, spelling, and sentence capitalization issues.
11626 (expand_builtin_atomic_is_lock_free): Same.
11627 (fold_builtin_next_arg): Same.
11628 * cfgexpand.c (expand_one_var): Same.
11629 (tree_conflicts_with_clobbers_p): Same.
11630 (expand_asm_stmt): Same.
11631 (verify_loop_structure): Same.
11632 * cgraphunit.c (process_function_and_variable_attributes): Same.
11633 * collect-utils.c (collect_execute): Same.
11634 * collect2.c (maybe_run_lto_and_relink): Same.
11635 (is_lto_object_file): Same.
11636 (scan_prog_file): Same.
11637 * convert.c (convert_to_real_1): Same.
11638 * dwarf2out.c (dwarf2out_begin_prologue): Same.
11639 * except.c (verify_eh_tree): Same.
11640 * gcc.c (execute): Same.
11641 (eval_spec_function): Same.
11642 (run_attempt): Same.
11643 (driver::set_up_specs): Same.
11644 (compare_debug_auxbase_opt_spec_function): Same.
11645 * gcov-tool.c (unlink_gcda_file): Same.
11646 (do_merge): Same.
11647 (do_rewrite): Same.
11648 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
11649 * gimplify.c (gimplify_asm_expr): Same.
11650 (gimplify_adjust_omp_clauses): Same.
11651 * hsa-gen.c (gen_hsa_addr_insns): Same.
11652 (gen_hsa_insns_for_load): Same.
11653 (gen_hsa_cmp_insn_from_gimple): Same.
11654 (gen_hsa_insns_for_operation_assignment): Same.
11655 (gen_get_level): Same.
11656 (gen_hsa_alloca): Same.
11657 (omp_simple_builtin::generate): Same.
11658 (gen_hsa_atomic_for_builtin): Same.
11659 (gen_hsa_insns_for_call): Same.
11660 * input.c (dump_location_info): Same.
11661 * ipa-devirt.c (compare_virtual_tables): Same.
11662 * ira.c (ira_setup_eliminable_regset): Same.
11663 * lra-assigns.c (lra_assign): Same.
11664 * lra-constraints.c (lra_constraints): Same.
11665 * lto-streamer-in.c (lto_input_mode_table): Same.
11666 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
11667 (merge_and_complain): Same.
11668 (compile_offload_image): Same.
11669 (compile_images_for_offload_targets): Same.
11670 (debug_objcopy): Same.
11671 (run_gcc): Same.
11672 (main): Same.
11673 * opts.c (print_specific_help): Same.
11674 (parse_no_sanitize_attribute): Same.
11675 (print_help): Same.
11676 (handle_param): Same.
11677 * plugin.c (add_new_plugin): Same.
11678 (parse_plugin_arg_opt): Same.
11679 (try_init_one_plugin): Same.
11680 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
11681 operators, and types in diagnostics. Correct quoting and spelling
11682 issues.
11683 * read-rtl-function.c (parse_edge_flag_token): Same.
11684 (function_reader::parse_enum_value): Same.
11685 * reg-stack.c (check_asm_stack_operands): Same.
11686 * regcprop.c (validate_value_data): Same.
11687 * sched-rgn.c (make_pass_sched_fusion): Same.
11688 * stmt.c (check_unique_operand_names): Same.
11689 * targhooks.c (default_target_option_pragma_parse): Same.
11690 * tlink.c (recompile_files): Same.
11691 * toplev.c (process_options): Same.
11692 (do_compile): Same.
11693 * trans-mem.c (diagnose_tm_1): Same.
11694 (ipa_tm_scan_irr_block): Same.
11695 (ipa_tm_diagnose_transaction): Same.
11696 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
11697 format a tree code name in a diagnostic.
11698 (verify_types_in_gimple_min_lval): Same.
11699 (verify_types_in_gimple_reference): Same.
11700 (verify_gimple_call): Same.
11701 (verify_gimple_assign_unary): Same.
11702 (verify_gimple_assign_binary): Same.
11703 (verify_gimple_assign_ternary): Same.
11704 (verify_gimple_assign_single): Same.
11705 (verify_gimple_switch): Same.
11706 (verify_gimple_label): Same.
11707 (verify_gimple_phi): Same.
11708 (verify_gimple_in_seq): Same.
11709 (verify_eh_throw_stmt_node): Same.
11710 (collect_subblocks): Same.
11711 (gimple_verify_flow_info): Same.
11712 (do_warn_unused_result): Same.
11713 * tree-inline.c (expand_call_inline): Same.
11714 * tree-into-ssa.c (update_ssa): Same.
11715 * tree.c (tree_int_cst_elt_check_failed): Same.
11716 (tree_vec_elt_check_failed): Same.
11717 (omp_clause_operand_check_failed): Same.
11718 (verify_type_variant): Same.
11719 (verify_type): Same.
11720 * value-prof.c (verify_histograms): Same.
11721 * varasm.c (assemble_start_function): Same.
11722
11723 2019-05-16 Martin Sebor <msebor@redhat.com>
11724
11725 * config/i386/i386-expand.c (get_element_number): Quote keywords
11726 and other internal names in diagnostics. Adjust other diagnostic
11727 formatting issues noted by -Wformat-diag.
11728 * config/i386/i386-features.c
11729 (ix86_mangle_function_version_assembler_name): Same.
11730 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
11731 * config/i386/i386.c (ix86_function_type_abi): Same.
11732 (ix86_function_ms_hook_prologue): Same.
11733 (classify_argument): Same.
11734 (ix86_expand_prologue): Same.
11735 (ix86_md_asm_adjust): Same.
11736 (ix86_memmodel_check): Same.
11737
11738 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11739
11740 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
11741 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
11742 and fpxx modes.
11743
11744 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
11745
11746 PR target/90497
11747 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
11748 intrinsics without SSE/SSE2/SSSE3.
11749 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
11750 check.
11751 (*mmx_uavgv8qi3): Likewise.
11752
11753 2019-05-17 Richard Biener <rguenther@suse.de>
11754
11755 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
11756 VEC_PERM_EXPR as __VEC_PERM with -gimple.
11757
11758 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
11759
11760 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
11761 vec_sldw insn pattern.
11762
11763 2019-05-17 Richard Biener <rguenther@suse.de>
11764
11765 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
11766
11767 2019-05-17 Martin Liska <mliska@suse.cz>
11768
11769 PR driver/90496
11770 * toplev.c (output_stack_usage): With LTO and sanitizer it
11771 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
11772 has no file location.
11773
11774 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11775
11776 PR c++/90484
11777 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
11778 sz0 is equal to sz1, instead return false in that case.
11779
11780 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
11781 has non-constant expression, force sctx.lane and use two
11782 argument IFN_GOMP_SIMD_LANE instead of single argument.
11783 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
11784 two argument IFN_GOMP_SIMD_LANE without lhs.
11785 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
11786 member.
11787 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
11788 Define.
11789 (LOOP_REQUIRES_VERSIONING): Or in
11790 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
11791 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11792 simd_if_cond.
11793 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
11794 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
11795 from simd if clause if needed.
11796
11797 2019-05-16 Richard Biener <rguenther@suse.de>
11798
11799 * tree-affine.c (expr_to_aff_combination): New function split
11800 out from...
11801 (tree_to_aff_combination): ... here.
11802 (aff_combination_expand): Avoid building a GENERIC tree.
11803
11804 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
11805
11806 * cgraphunit.c (cgraph_node::expand_thunk): Remove
11807 assemble_start_function and assemble_end_function calls.
11808 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
11809 assemble_start_function and assemble_end_function.
11810 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
11811 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
11812 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
11813 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
11814 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
11815 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
11816 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
11817 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
11818 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11819 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11820 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11821 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
11822 Likewise.
11823 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
11824 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
11825 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
11826 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
11827 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11828 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11829 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
11830 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
11831 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11832 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11833 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11834 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11835 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
11836 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
11837 Likewise.
11838 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11839 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11840 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
11841
11842 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
11843
11844 * tree-ssa-alias.c (alias_stats): Add
11845 aliasing_component_refs_p_may_alias and
11846 aliasing_component_refs_p_no_alias.
11847 (dump_alias_stats): Print aliasing_component_refs_p stats.
11848 (aliasing_component_refs_p): Update stats.
11849
11850 2019-05-16 Martin Liska <mliska@suse.cz>
11851
11852 PR lto/90500
11853 * multiple_target.c (expand_target_clones): Do not allow
11854 target_clones being used with a symbol that is an alias.
11855
11856 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
11857
11858 PR tree-optimization/90394
11859 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
11860 positives rather than ICE for cases where (code2 == NE_EXPR
11861 && code1 == BIT_AND_EXPR).
11862
11863 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11864
11865 PR fortran/90329
11866 * tree-core.h (struct tree_decl_common): Document
11867 decl_nonshareable_flag for PARM_DECLs.
11868 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
11869 * calls.c (expand_call): Don't try tail call if caller
11870 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
11871 passed on the stack and callee needs to pass any arguments on the
11872 stack.
11873 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11874 else if instead of series of mutually exclusive ifs. Handle
11875 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
11876 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
11877
11878 * lto-streamer.h (LTO_major_version): Bump to 9.
11879
11880 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
11881
11882 PR tree-optimization/90106
11883 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
11884 new parameter as new internal function call, also move it to new
11885 basic block.
11886 (use_internal_fn): Pass internal function call to
11887 shrink_wrap_one_built_in_call_with_conds.
11888
11889 2019-05-15 Jakub Jelinek <jakub@redhat.com>
11890
11891 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
11892 max_vf to 1.
11893 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
11894 safelen_int and set loop->dont_vectorize.
11895
11896 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11897
11898 PR target/89021
11899 * config/i386/i386-builtin.def: Enable MMX intrinsics with
11900 SSE/SSE2/SSSE3.
11901 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11902 Likewise.
11903 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
11904 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
11905 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
11906 is defined.
11907
11908 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11909
11910 PR target/89021
11911 * config/i386/mmx.md (*vec_dupv2sf): Changed to
11912 define_insn_and_split to support SSE emulation.
11913 (*vec_extractv2sf_0): Likewise.
11914 (*vec_extractv2sf_1): Likewise.
11915 (*vec_extractv2si_0): Likewise.
11916 (*vec_extractv2si_1): Likewise.
11917 (*vec_extractv2si_zext_mem): Likewise.
11918 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
11919 (vec_extractv2sf_1 splitter): Likewise.
11920 (vec_extractv2sfsf): Likewise.
11921 (vec_setv2si): Likewise.
11922 (vec_extractv2si_1 splitter): Likewise.
11923 (vec_extractv2sisi): Likewise.
11924 (vec_setv4hi): Likewise.
11925 (vec_extractv4hihi): Likewise.
11926 (vec_setv8qi): Likewise.
11927 (vec_extractv8qiqi): Likewise.
11928 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11929 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
11930 (vec_extractv2sisi): Likewise.
11931 (vec_extractv4hihi): Likewise.
11932 (vec_extractv8qiqi): Likewise.
11933 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11934 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
11935 (vec_initv2sisi): Likewise.
11936 (vec_initv4hihi): Likewise.
11937 (vec_initv8qiqi): Likewise.
11938 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
11939 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
11940 (vec_setv4hi): Likewise.
11941 (vec_setv8qi): Likewise.
11942
11943 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11944
11945 PR target/89021
11946 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
11947 TARGET_MMX_WITH_SSE.
11948 (MMXMODE:*mov<mode>_internal): Likewise.
11949 (MMXMODE:movmisalign<mode>): Likewise.
11950
11951 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
11952
11953 PR target/89021
11954 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
11955 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
11956 (sse2_cvtpd2pi): Ditto.
11957 (sse2_cvttpd2pi): Ditto.
11958 (*vec_concatv2sf_sse4_1): Ditto.
11959 (*vec_concatv2sf_sse): Ditto.
11960 (*vec_concatv2si_sse4_1): Ditto.
11961 (*vec_concatv2si): Ditto.
11962 (*vec_concatv4si_0): Ditto.
11963 (*vec_concatv2di_0): Ditto.
11964
11965 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11966
11967 PR target/89021
11968 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
11969
11970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11971
11972 PR target/89021
11973 * config/i386/sse.md (ssse3_palignrdi): Changed to
11974 define_insn_and_split to support SSE emulation.
11975
11976 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11977
11978 PR target/89021
11979 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
11980
11981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11982
11983 PR target/89021
11984 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
11985 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
11986 SSE emulation.
11987
11988 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11989
11990 PR target/89021
11991 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
11992 or TARGET_MMX_WITH_SSE.
11993 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
11994
11995 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11996
11997 PR target/89021
11998 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
11999
12000 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12001
12002 PR target/89021
12003 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
12004 Changed to define_insn_and_split to support SSE emulation.
12005
12006 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12007
12008 PR target/89021
12009 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
12010 Changed to define_insn_and_split to support SSE emulation.
12011
12012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12013
12014 PR target/89021
12015 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
12016 (*mmx_<emms>): This.
12017 (mmx_<emms>): New expander.
12018
12019 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12020
12021 PR target/89021
12022 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
12023 support.
12024 (*sse2_umulv1siv1di3): Add SSE2 emulation.
12025
12026 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12027
12028 PR target/89021
12029 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
12030
12031 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12032
12033 PR target/89021
12034 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
12035
12036 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12037
12038 PR target/89021
12039 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12040 TARGET_MMX_WITH_SSE.
12041 (*mmx_uavgv4hi3): Add SSE emulation.
12042
12043 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12044
12045 PR target/89021
12046 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12047 and TARGET_MMX_WITH_SSE.
12048 (*mmx_uavgv8qi3): Add SSE emulation.
12049
12050 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12051
12052 PR target/89021
12053 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12054 maskmovdqu for __MMX_WITH_SSE__.
12055
12056 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12057
12058 PR target/89021
12059 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12060 TARGET_MMX and TARGET_MMX_WITH_SSE.
12061 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12062
12063 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12064
12065 PR target/89021
12066 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12067 define_insn_and_split to support SSE emulation.
12068
12069 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12070
12071 PR target/89021
12072 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12073 and TARGET_MMX_WITH_SSE.
12074 (mmx_<code>v8qi3): Likewise.
12075 (smaxmin:<code>v4hi3): New.
12076 (umaxmin:<code>v8qi3): Likewise.
12077 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12078 (umaxmin:*mmx_<code>v8qi3): Likewise.
12079
12080 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12081
12082 PR target/89021
12083 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12084 TARGET_MMX_WITH_SSE.
12085 (*mmx_pinsrw): Add SSE emulation.
12086
12087 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12088
12089 PR target/89021
12090 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12091
12092 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12093
12094 PR target/89021
12095 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12096 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12097 SSE emulation.
12098
12099 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12100
12101 PR target/89021
12102 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12103 (sse_cvttps2pi): Likewise.
12104
12105 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12106
12107 PR target/89021
12108 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12109 TARGET_MMX_WITH_SSE.
12110 (mmx_pshufw_1): Add SSE emulation.
12111 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12112 TARGET_MMX_WITH_SSE to support SSE emulation.
12113
12114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12115
12116 PR target/89021
12117 * config/i386/constraints.md (Yw): New constraint.
12118 * config/i386/mmx.md (*vec_dupv2si): Changed to
12119 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12120 support SSE emulation.
12121
12122 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12123
12124 PR target/89021
12125 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12126 TARGET_MMX_WITH_SSE.
12127 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12128 support.
12129 (mmx_gt<mode>3): Likewise.
12130
12131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12132
12133 PR target/89021
12134 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12135 TARGET_MMX_WITH_SSE. Add SSE support.
12136
12137 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12138
12139 PR target/89021
12140 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12141 TARGET_MMX_WITH_SSE.
12142 (any_logic:<code><mode>3): New.
12143 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12144 Add SSE support.
12145
12146 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12147
12148 PR target/89021
12149 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12150 TARGET_MMX_WITH_SSE. Add SSE emulation.
12151 (mmx_<shift_insn><mode>3): Likewise.
12152 (ashr<mode>3): New.
12153 (<shift_insn><mode>3): Likewise.
12154
12155 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12156
12157 PR target/89021
12158 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12159 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12160
12161 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12162
12163 PR target/89021
12164 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12165 TARGET_MMX_WITH_SSE.
12166 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12167 SSE support.
12168
12169 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12170
12171 PR target/89021
12172 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12173 TARGET_MMX_WITH_SSE.
12174 (mulv4hi3): New.
12175 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12176 support.
12177
12178 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12179
12180 PR target/89021
12181 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12182 (plusminus:mmx_<plusminus_insn><mode>3): Check
12183 TARGET_MMX_WITH_SSE.
12184 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12185 (<plusminus_insn><mode>3): New.
12186 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12187 (*mmx_<plusminus_insn><mode>3): Likewise.
12188
12189 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12190
12191 PR target/89021
12192 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12193 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12194 prototype.
12195 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12196 define_insn_and_split to support SSE emulation.
12197 (mmx_punpcklbw): Likewise.
12198 (mmx_punpckhwd): Likewise.
12199 (mmx_punpcklwd): Likewise.
12200 (mmx_punpckhdq): Likewise.
12201 (mmx_punpckldq): Likewise.
12202
12203 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12204 Uros Bizjak <ubizjak@gmail.com>
12205
12206 PR target/89021
12207 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12208 New function.
12209 (ix86_split_mmx_pack): Likewise.
12210 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12211 New prototype.
12212 (ix86_split_mmx_pack): Likewise.
12213 * config/i386/i386.md (mmx_isa): New.
12214 (enabled): Also check mmx_isa.
12215 * config/i386/mmx.md (any_s_truncate): New code iterator.
12216 (s_trunsuffix): New code attr.
12217 (mmx_packsswb): Removed.
12218 (mmx_packssdw): Likewise.
12219 (mmx_packuswb): Likewise.
12220 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12221 MMX packsswb/packuswb with SSE2.
12222 (mmx_packssdw): Likewise.
12223 * config/i386/predicates.md (register_mmxmem_operand): New.
12224
12225 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12226
12227 PR target/89021
12228 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12229 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12230 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12231 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12232 (ix86_vector_mode_supported_p): Likewise.
12233 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12234
12235 2019-05-15 Martin Liska <mliska@suse.cz>
12236
12237 PR middle-end/90478
12238 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12239 Check for overflow.
12240
12241 2019-05-15 Richard Biener <rguenther@suse.de>
12242
12243 * tree-into-ssa.c (pass_build_ssa::execute): Run
12244 update_address_taken before going into SSA.
12245
12246 2019-05-15 Richard Biener <rguenther@suse.de>
12247
12248 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12249 as __BIT_FIELD_REF with type with -gimple.
12250
12251 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12252
12253 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12254 semantically equivalent branches (left over after prior refactorings).
12255
12256 2019-05-15 Richard Biener <rguenther@suse.de>
12257
12258 PR tree-optimization/88828
12259 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12260 bogus check.
12261
12262 2019-05-14 Richard Biener <rguenther@suse.de>
12263
12264 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12265 as __VIEW_CONVERT with -gimple.
12266
12267 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12268
12269 PR target/82920
12270 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12271 Darwin.
12272
12273 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12274
12275 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12276 define_split to become a define_insn_and_split.
12277
12278 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12279
12280 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12281 arguments.
12282 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12283 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12284 (sibcall_epilogue): Adjust.
12285 (epilogue): Adjust.
12286
12287 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12288
12289 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12290 to unsupported ones.
12291 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12292 * config.host: Likewise.
12293 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12294 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12295 __svr4__]: Remove "brand" fallback.
12296 [!KSTAT_DATA_STRING]: Remove.
12297 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12298 to *-*-solaris2*.
12299 (comdat_group): Likewise.
12300 (set_have_as_tls): Likewise.
12301 (gcc_cv_target_dl_iterate_phdr): Likewise.
12302 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12303 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12304 * configure: Regenerate.
12305 * doc/install.texi: Simplify Solaris target triplets.
12306 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12307 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12308 Remove Solaris 10 references.
12309 Remove obsolete Solaris bug reference.
12310 (Specific, sparc-sun-solaris2.10): Remove.
12311
12312 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12313
12314 * config/i386/i386.md (any_div): New code iterator.
12315 (paired_mod): New code attribute.
12316 (sgnprefix): Handle DIV and UDIV RTXes.
12317 (u): Ditto.
12318 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12319 and udivmod<mode>4 patterns using any_div code iterator.
12320 (divmod splitters): Macroize splitters using any_div code iterator.
12321 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12322 (*udivmodsi4_pow2_zext_2): Ditto.
12323 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12324 and *udivmod<mode>4_noext patterns using any_div code iterator.
12325 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12326 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12327 patterns using any_div code iterator.
12328 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12329 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12330 patterns using any_div code iterator.
12331 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12332 udivmodhiqi3 patterns using any_extend code iterator.
12333
12334 2019-05-14 Richard Biener <rguenther@suse.de>
12335 H.J. Lu <hongjiu.lu@intel.com>
12336
12337 PR tree-optimization/88828
12338 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12339 permuting in a single non-constant element not extracted
12340 from a vector.
12341
12342 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12343
12344 * internal-fn.def (SIGNBIT): New.
12345 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12346 defined.
12347 (signbitv4sf2): Likewise.
12348
12349 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12350
12351 PR target/90357
12352 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12353 next insn when the SRC reg is dead.
12354
12355 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12356
12357 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12358 (alloc_cand_and_find_basis): Ditto.
12359 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12360 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12361 (create_add_imm_cand, slsr_process_cast): Ditto.
12362 (slsr_process_copy, replace_mult_candidate): Ditto.
12363 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
12364 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
12365 (pass_strength_reduction::execute): Init the first NULL element.
12366
12367 2019-05-13 Nathan Sidwell <nathan@acm.org>
12368
12369 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
12370 (run_attempt): Reformat line break.
12371
12372 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
12373
12374 PR target/90418
12375 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
12376 data registers in sibcall epilogues.
12377 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12378
12379 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
12380
12381 PR target/89221
12382 * configure.ac (--enable-frame-pointer):
12383 Disable by default for cygwin and mingw.
12384 * configure: Regenerate.
12385
12386 2019-05-13 Nathan Sidwell <nathan@acm.org>
12387
12388 * dwarf2out.c (breakout_comdat_types): Move comment to correct
12389 piece of code.
12390 (const_ok_for_output_1): Balance parens around #if/#else/#endif
12391 (gen_member_die): Move abstract origin check earlier. Only VARs
12392 can be static_inline_p. Simplify splicing control flow.
12393
12394 2019-05-13 Richard Biener <rguenther@suse.de>
12395
12396 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
12397 VIEW_CONVERT_EXPR.
12398 (vect_build_slp_tree_1): Likewise.
12399
12400 2019-05-13 Richard Biener <rguenther@suse.de>
12401
12402 PR tree-optimization/90402
12403 * tree-if-conv.c (tree_if_conversion): Value number only
12404 the loop body by making the latch an exit of the region
12405 as well.
12406 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
12407 processing PHIs.
12408 (do_rpo_vn): Deal with multiple edges into the entry block
12409 that are not backedges inside the region by skipping PHIs
12410 of the entry block.
12411
12412 2019-05-13 Richard Biener <rguenther@suse.de>
12413
12414 PR tree-optimization/90316
12415 * tree-ssa-pre.c (insert_aux): Fold into ...
12416 (insert): ... this function. Use a RPO walk to reduce the
12417 number of required iterations.
12418
12419 2019-05-13 Martin Liska <mliska@suse.cz>
12420
12421 PR tree-optimization/90416
12422 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
12423 string instead of passing the second part as va_arg argument.
12424
12425 2019-05-13 Martin Liska <mliska@suse.cz>
12426
12427 PR gcov-profile/90380
12428 * gcov.c (handle_cycle): Do not support zero cycle count,
12429 it should not be possible.
12430 (path_contains_zero_cycle_arc): New function.
12431 (circuit): Ignore zero cycle arc counts.
12432
12433 2019-05-13 Martin Liska <mliska@suse.cz>
12434
12435 PR gcov-profile/90380
12436 * gcov.c (enum loop_type): Remove the enum and
12437 the operator.
12438 (handle_cycle): Assert that we should not reach
12439 a negative count.
12440 (circuit): Use loop_found instead of a tri-state loop_type.
12441 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
12442 happen.
12443
12444 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12445
12446 PR target/82920
12447 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
12448 (ix86_output_indirect_branch_via_reg): Use output mechanism
12449 accounting for __USER_LABEL_PREFIX__.
12450 (ix86_output_indirect_branch_via_push): Likewise.
12451 (ix86_output_function_return): Likewise.
12452 (ix86_output_indirect_function_return): Likewise.
12453
12454 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
12455
12456 * doc/md.texi: Document use of code attributes in rtx patterns.
12457 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
12458 * read-rtl.c (find_code): Split out search loops into...
12459 (maybe_find_code): ...this new function.
12460 (check_code_iterator): Make the error message more informative.
12461 (check_code_attribute): New function.
12462 (rtx_reader::rtx_alloc_for_name): Likewise.
12463 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
12464 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
12465 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
12466 <max_opp> directly as an rtx code instead of via a match_operator.
12467 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
12468 (<su>abd<mode>_3): Update accordingly.
12469
12470 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12471
12472 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
12473 is given, print the state of the EH "save world" computation for
12474 Darwin.
12475
12476 2019-05-11 Jakub Jelinek <jakub@redhat.com>
12477
12478 PR c++/59813
12479 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
12480 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12481
12482 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
12483
12484 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
12485 Use pinsrd for TARGET_SSE4_1.
12486 * config/i386/sse.md (movdi_to_sse): Ditto.
12487
12488 2019-05-10 Richard Biener <rguenther@suse.de>
12489
12490 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
12491 (do_rpo_vn): Initialize next_value_id.
12492
12493 2019-05-10 Martin Liska <mliska@suse.cz>
12494
12495 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12496 Fix plural form.
12497
12498 2019-05-10 Jakub Jelinek <jakub@redhat.com>
12499
12500 PR tree-optimization/90385
12501 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
12502 arguments of the exit phis.
12503
12504 PR c++/90383
12505 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
12506 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
12507 id->do_not_fold.
12508 (copy_tree_body_r): Likewise.
12509 (copy_fn): Set id.do_not_fold to true.
12510
12511 2019-05-10 Martin Liska <mliska@suse.cz>
12512
12513 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
12514 Reapply changes from r269790.
12515
12516 2019-05-10 Martin Liska <mliska@suse.cz>
12517
12518 PR middle-end/90340
12519 * doc/invoke.texi: New params.
12520 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
12521 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
12522 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12523 Use it.
12524 * tree-switch-conversion.h (struct jump_table_cluster):
12525 Likewise.
12526
12527 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
12528
12529 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
12530
12531 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
12532
12533 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
12534
12535 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
12536
12537 PR rtl-optimization/88879
12538 * sel-sched.c (sel_target_adjust_priority): Remove assert.
12539
12540 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
12541
12542 PR target/90405
12543 * config/arm/arm.c (callee_saved_reg_p): Move before
12544 thumb_find_work_register.
12545 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
12546 thumb_find_work_register. Only call df_get_live_out once.
12547 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
12548 (thumb_find_work_register): Use
12549 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
12550 algorithms to locate a spare call clobbered reg.
12551
12552 2019-05-09 Martin Liska <mliska@suse.cz>
12553
12554 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
12555 and MAX_EXPR in GIMPLE FE format.
12556
12557 2019-05-09 Martin Liska <mliska@suse.cz>
12558
12559 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
12560 * gimple-pretty-print.c (dump_gimple_bb_header):
12561 Dump BB count.
12562 (pp_cfg_jump): Dump edge probability.
12563 * profile-count.c (profile_quality_as_string): Simplify
12564 with a static array.
12565 (parse_profile_quality): New function.
12566 (profile_count::dump): Simplify with a static array.
12567 (profile_count::from_gcov_type): Add new argument.
12568 * profile-count.h (parse_profile_quality): Likewise.
12569 * predict.h (set_hot_bb_threshold): New.
12570 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12571 New param.
12572 * predict.c (get_hot_bb_threshold): Set from the new param.
12573 (set_hot_bb_threshold): New.
12574
12575 2019-05-09 Richard Biener <rguenther@suse.de>
12576
12577 PR tree-optimization/90395
12578 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
12579 rewrite vector stores that throw internally.
12580
12581 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
12582
12583 * cif-code.def (CHKP): Remove.
12584
12585 PR target/89221
12586 * configure.ac (--enable-frame-pointer): Disable by default for
12587 GNU systems.
12588 * configure: Regenerate.
12589
12590 2019-05-09 Alan Modra <amodra@gmail.com>
12591
12592 PR target/89271
12593 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
12594 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
12595 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
12596 cost for general <-> vsx when direct moves are available.
12597 Cost union classes at minimal cost for any reg in the class.
12598 Correct calculation for moves between vsx, float, and altivec.
12599 Don't return a low cost for moves between special regs. Don't
12600 use hard coded register numbers.
12601 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
12602 (rs6000_ira_change_pseudo_allocno_class): New function.
12603 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
12604 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
12605 alternatives.
12606 (movsi_internal1): Don't disparage vector alternatives.
12607 (mov<mode>_internal): Likewise, excepting alternative that
12608 will be split.
12609 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
12610 we <- b alternative.
12611
12612 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12613
12614 PR c++/59813
12615 PR tree-optimization/89060
12616 * tree-ssa-live.h (live_vars_map): New typedef.
12617 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
12618 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
12619 (struct compute_live_vars_data): New type.
12620 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
12621 live_vars_at_stmt, destroy_live_vars): New functions.
12622 * tree-tailcall.c: Include tree-ssa-live.h.
12623 (live_vars, live_vars_vec): New global variables.
12624 (find_tail_calls): Perform variable life analysis before punting.
12625 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
12626 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
12627 member.
12628 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
12629 Perform variable life analysis to select variables that really need
12630 clobbers added.
12631 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
12632 instead set id->eh_landing_pad_dest and assert it is the same.
12633 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
12634
12635 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
12636 Richard Earnshaw <rearnsha@arm.com>
12637
12638 PR target/88167
12639 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
12640 function.
12641 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
12642 (thumb1_compute_save_core_reg_mask): Don't force a spare work
12643 register if both the epilogue and prologue can use call-clobbered
12644 regs.
12645 (thumb1_unexpanded_epilogue): Use
12646 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
12647 picking temporaries for restoring high regs to match that of the
12648 prologue where possible.
12649 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
12650 the list of work registers. Detect if the return address is still live
12651 at the end of the prologue and avoid using it for a work register if so.
12652 If the return address is not live, add LR to the list of pushable regs
12653 after the first pass.
12654
12655 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12656
12657 PR tree-optimization/90078
12658 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
12659 (INFTY): Increase the value for infinite cost.
12660 (struct comp_cost): Promote type of members to int64_t.
12661 (infinite_cost): Don't set complexity in initialization.
12662 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
12663 overflows to infinite_cost.
12664 (adjust_setup_cost): Promote type of parameter and cost computation
12665 to int64_t.
12666 (struct ainc_cost_data, struct iv_ca): Promote type of member to
12667 int64_t.
12668 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
12669 cost computation to int64_t.
12670 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
12671 int64_t's format specifier in dump.
12672
12673 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12674
12675 PR tree-optimization/90240
12676 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
12677 with respect to scaling factor pre-computed for each basic block.
12678 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
12679 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
12680 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
12681 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
12682 live range for array of loop's basic blocks. Cleanup aux field of
12683 loop's basic blocks.
12684
12685 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12686
12687 PR tree-optimization/90356
12688 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
12689
12690 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
12691
12692 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
12693 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
12694 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
12695 (ix86_handle_option): Handle -mavx512bf16.
12696 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
12697 to extra_headers.
12698 * config/i386/avx512bf16vlintrin.h: New.
12699 * config/i386/avx512bf16intrin.h: New.
12700 * config/i386/cpuid.h (bit_AVX512BF16): New.
12701 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
12702 * config/i386/i386-builtin-types.def: Add new types.
12703 * config/i386/i386-builtin.def: Add new builtins.
12704 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12705 __AVX512BF16__.
12706 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
12707 (ix86_option_override_internal): Handle BF16.
12708 (ix86_valid_target_attribute_inner_p): Ditto.
12709 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
12710 * config/i386/i386-builtin.c (enum processor_features): Add
12711 F_AVX512BF16.
12712 (static const _isa_names_table isa_names_table): Ditto.
12713 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
12714 (PTA_AVX512BF16): Ditto.
12715 * config/i386/i386.opt: Add -mavx512bf16.
12716 * config/i386/immintrin.h: Include avx512bf16intrin.h
12717 and avx512bf16vlintrin.h.
12718 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
12719 avx512f_cvtneps2bf16_<mode><mask_name>,
12720 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
12721 * config/i386/subst.md (mask_half): Add new subst.
12722 * doc/invoke.texi: Document -mavx512bf16.
12723
12724 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12725
12726 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
12727 Delete declaration.
12728 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
12729 (rs6000_debug_legitimize_reload_address): Delete.
12730 (rs6000_legitimize_reload_address_ptr): Delete.
12731 (rs6000_option_override_internal): Adjust.
12732 (mem_operand_gpr): Adjust comment.
12733 (legitimate_lo_sum_address_p): Ditto.
12734 (rs6000_legitimize_reload_address): Delete.
12735 (rs6000_debug_legitimize_reload_address): Delete.
12736 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
12737
12738 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
12739
12740 PR target/89765
12741 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12742 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
12743 to compute vector element selector for both constant and variable
12744 operands.
12745
12746 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12747
12748 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
12749 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
12750 ashrdi3_cvt using SWI48 mode iterator.
12751
12752 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12753
12754 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
12755 (aarch64_<su>abd<mode>_3): Likewise.
12756 (*aarch64_<su>abd<mode>_3): New define_insn.
12757 (<sur>sad<vsi2qi>): New define_expand.
12758 * config/aarch64/iterators.md: Added MAX_OPP attribute.
12759 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
12760 (build_vect_cond_expr): Likewise.
12761
12762 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12763
12764 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
12765 clobbers outside of accessible_reg_set.
12766 * config/i386/i386.c (ix86_conditional_register_usage):
12767 Disable register sets by clearing corresponding bits in
12768 accessible_reg_set. Do not set corresponding bits in fixed_regs,
12769 call_used_regs and don't clear corresponding reg_names array members.
12770
12771 2019-05-07 Richard Biener <rguenther@suse.de>
12772
12773 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
12774 not specified still compute a comp_vectype for invariant
12775 compares.
12776
12777 2019-05-07 Richard Biener <rguenther@suse.de>
12778
12779 PR tree-optimization/90316
12780 * tree-ssa-pre.c (translate_vuse_through_block): When
12781 same_valid is NULL do not bother to search for a virtual
12782 PHI continuation.
12783 (phi_translate_1): When operands changed we cannot keep
12784 the same value-number so do not bother to ask whether
12785 that's possible from translate_vuse_through_block.
12786
12787 2019-05-07 Martin Liska <mliska@suse.cz>
12788
12789 * bitmap.c (bitmap_register): Come up with
12790 alloc_descriptor_max_uid and assign it for
12791 a new bitmap.
12792 (register_overhead): Use get_descriptor as
12793 a descriptor.
12794 (release_overhead): New.
12795 (bitmap_elem_to_freelist): Call it.
12796 (bitmap_elt_clear_from): Likewise.
12797 (bitmap_obstack_free): Likewise.
12798 (bitmap_move): Sensitively release memory.
12799 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
12800 (bitmap_initialize): Initialize alloc_descriptor to zero.
12801 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
12802
12803 2019-05-07 Richard Biener <rguenther@suse.de>
12804
12805 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
12806 we build a SLP node. Remove max_size and limiting.
12807 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
12808
12809 2019-05-07 Richard Biener <rguenther@suse.de>
12810
12811 PR tree-optimization/90316
12812 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
12813 limit by reference.
12814 (walk_non_aliased_vuses): Take walking limit argument.
12815 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
12816 walking if it is reached instead of just counting.
12817 (get_continuation_for_phi): Likewise.
12818 (walk_non_aliased_vuses): Likewise, instead of leaving counter
12819 limiting to the callback.
12820 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
12821 (vn_reference_lookup_3): Likewise.
12822 (vn_reference_lookup_pieces): Likewise.
12823 (vn_reference_lookup): Likewise.
12824 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
12825 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
12826 (avail_exprs_stack::lookup_avail_expr): Likewise.
12827
12828 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
12829
12830 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
12831 for comparaible types in the second direction even if first one
12832 hits incomparable type.
12833
12834 2019-05-07 Richard Biener <rguenther@suse.de>
12835
12836 PR lto/90369
12837 * lto-wrapper.c (debug_objcopy): Use the original filename
12838 including archive offset for the filename used for -save-temps.
12839
12840 2019-05-07 Li Jia He <helijia@linux.ibm.com>
12841
12842 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
12843 detection.
12844
12845 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
12846 Hongtao Liu <hongtao.liu@intel.com>
12847
12848 PR target/89750
12849 PR target/86444
12850 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
12851 Modified, original implementation isn't correct.
12852
12853 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12854
12855 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
12856 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
12857 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
12858 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
12859 (FRAME_POINTER_REGNUM): Change numbering.
12860 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
12861 (alt_reg_names): Adjust.
12862 (rs6000_conditional_register_usage): Don't mark hard register 64 as
12863 fixed.
12864 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12865 (DWARF_FRAME_REGISTERS): Delete.
12866 (DWARF2_FRAME_REG_OUT): Fix whitespace.
12867 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12868 Adjust.
12869 (REG_ALLOC_ORDER): Adjust.
12870 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
12871 (REG_CLASS_CONTENTS): Adjust.
12872 (RETURN_ADDR_RTX): Change comment.
12873 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
12874 instead of 67.
12875 (REGISTER_NAMES): Adjust.
12876 (ADDITIONAL_REGISTER_NAMES): Adjust.
12877 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12878
12879 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12880
12881 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
12882 Delete.
12883 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12884 (DWARF_FRAME_REGISTERS): Adjust.
12885 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12886 Adjust.
12887 (REG_ALLOC_ORDER): Adjust.
12888 (enum reg_class): Delete SPR_REGS.
12889 (REG_CLASS_NAMES): Delete SPR_REGS.
12890 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
12891 (REGISTER_NAMES): Adjust.
12892 (ADDITIONAL_REGISTER_NAMES): Adjust.
12893 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12894 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
12895 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
12896 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
12897 (htm_spr_regno): Delete.
12898 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
12899 argument.
12900 (rs6000_dbx_register_number): Adjust.
12901
12902 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12903
12904 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
12905
12906 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12907
12908 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
12909 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
12910
12911 2019-05-06 Jakub Jelinek <jakub@redhat.com>
12912
12913 PR tree-optimization/88709
12914 PR tree-optimization/90271
12915 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
12916 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
12917 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
12918 variable.
12919 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
12920 of the store merging group is larger than
12921 PARAM_STORE_MERGING_MAX_SIZE parameter.
12922 (split_group): Add bzero_first argument. If set, always emit first
12923 the first store which must be = {} of the whole area and then for the
12924 rest of the stores consider all zero bytes as paddings.
12925 (imm_store_chain_info::output_merged_store): Check if first store
12926 is = {} of the whole area and if yes, determine which setting of
12927 bzero_first for split_group gives smaller number of stores. Adjust
12928 split_group callers.
12929 (lhs_valid_for_store_merging_p): Allow decls.
12930 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
12931 no elts.
12932 (pass_store_merging::process_store): Likewise.
12933
12934 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
12935
12936 PR target/89424
12937 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12938 handling of V1TImode.
12939
12940 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
12941
12942 PR target/89221
12943 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
12944 and enable_frame_pointer ...
12945 * configure.ac: ... here. Update help strings for
12946 --enable-frame-pointer.
12947 * configure: Regenerate.
12948 * config/i386/i386-options.c (ix86_option_override_internal): Remove
12949 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
12950 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
12951 (USE_X86_64_FRAME_POINTER): Ditto.
12952
12953 2019-05-06 Martin Liska <mliska@suse.cz>
12954
12955 * config.gcc: Append to target_gtfiles and fix indentation.
12956
12957 2019-05-06 Richard Biener <rguenther@suse.de>
12958
12959 PR tree-optimization/90358
12960 * tree-vect-stmts.c (get_group_load_store_type): Properly
12961 detect unused upper half of load.
12962 (vectorizable_load): Likewise.
12963
12964 2019-05-06 Richard Biener <rguenther@suse.de>
12965
12966 PR tree-optimization/88828
12967 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
12968 (simplify_vector_constructor): ...here. Handle constants in
12969 the constructor.
12970
12971 2019-05-06 Richard Biener <rguenther@suse.de>
12972
12973 PR tree-optimization/90328
12974 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
12975 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
12976 is valid in the loop nest before using it.
12977 (initialize_data_dependence_relation): Adjust.
12978 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
12979 loop as loop-nest to dr_may_alias_p.
12980
12981 2019-05-06 Richard Biener <rguenther@suse.de>
12982
12983 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
12984
12985 2019-05-06 Richard Biener <rguenther@suse.de>
12986
12987 PR tree-optimization/90316
12988 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
12989 compute target on demand.
12990 (get_continuation_for_phi): Remove code walking stmts to
12991 get to a target virtual operand which could end up being
12992 quadratic.
12993
12994 2019-05-06 Martin Liska <mliska@suse.cz>
12995
12996 PR sanitizer/90312
12997 * config/i386/i386-options.c (ix86_option_override_internal): Error only
12998 when -mabi is selected to a non-default version.
12999
13000 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
13001 Martin Liska <mliska@suse.cz>
13002
13003 * Makefile.in: Add lto-dump.texi.
13004 * cgraph.h: Add new functions get_visibility_string and
13005 get_symtab_type_string.
13006 * doc/gcc.texi: Include lto-dump section.
13007 * doc/lto-dump.texi: New file.
13008 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
13009 (parse_dump_option): Factor out this function.
13010 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
13011 (parse_dump_option): Export the function.
13012 * symtab.c (symtab_node::get_visibility_string): New function.
13013 (symtab_node::get_symtab_type_string): Likewise.
13014
13015 2019-05-06 Martin Liska <mliska@suse.cz>
13016
13017 * config/i386/i386-builtins.c: New file.
13018 * config/i386/i386-builtins.h: New file.
13019 * config/i386/i386-expand.c: New file.
13020 * config/i386/i386-expand.h: New file.
13021 * config/i386/i386-features.c: New file.
13022 * config/i386/i386-features.h: New file.
13023 * config/i386/i386-options.c: New file.
13024 * config/i386/i386-options.h: New file.
13025 * config.gcc: Add new files into extra_objs and
13026 target_gtfiles.
13027 * config/i386/i386.c: Split content of the file
13028 into newly introduced files.
13029 * config/i386/i386.h: Declare common variables
13030 and macros.
13031 * config/i386/t-i386: Define dependencies for new files.
13032
13033 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
13034
13035 PR target/89400
13036 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
13037 Restrict 'all' variant to 32-bit configurations.
13038 (unaligned_loadhiu): Likewise.
13039 (unaligned_storehi): Likewise.
13040 (unaligned_storesi): Likewise.
13041 (unaligned_loadhis): Disable when compiling for thumb1.
13042
13043 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13044
13045 PR tree-optimization/90269
13046 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13047 Ignore clobbers.
13048
13049 2019-05-03 Martin Liska <mliska@suse.cz>
13050
13051 * hash-map.h: Add is_empty function.
13052 * hash-set.h: Likewise.
13053 * hash-table.h: Likewise.
13054 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13055 elements () == 0 (and similar usages).
13056 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13057 * gimplify.c (gimplify_bind_expr): Likewise.
13058 (gimplify_switch_expr): Likewise.
13059 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13060 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13061 * postreload-gcse.c (dump_hash_table): Likewise.
13062 (gcse_after_reload_main): Likewise.
13063 * predict.c (combine_predictions_for_bb): Likewise.
13064 * tree-parloops.c (reduction_phi): Likewise.
13065 (separate_decls_in_region): Likewise.
13066 (transform_to_exit_first_loop): Likewise.
13067 (gen_parallel_loop): Likewise.
13068 (gather_scalar_reductions): Likewise.
13069 (try_create_reduction_list): Likewise.
13070 * var-tracking.c (dump_vars): Likewise.
13071 (emit_notes_for_changes): Likewise.
13072 (vt_emit_notes): Likewise.
13073
13074 2019-05-03 Richard Biener <rguenther@suse.de>
13075
13076 PR tree-optimization/90316
13077 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13078 before running VN.
13079
13080 2019-05-03 Richard Biener <rguenther@suse.de>
13081
13082 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13083 peeling for gaps by loading only lower halves of vectors
13084 if possible.
13085 (vectorizable_load): Likewise.
13086
13087 2019-05-03 Richard Biener <rguenther@suse.de>
13088
13089 PR middle-end/89518
13090 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13091
13092 2019-05-03 Richard Biener <rguenther@suse.de>
13093
13094 PR middle-end/87314
13095 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13096 Handle STRING_CST vs DECL or STRING_CST.
13097
13098 2019-05-03 Richard Biener <rguenther@suse.de>
13099
13100 PR tree-optimization/88963
13101 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13102 vector loads feeding only BIT_FIELD_REFs to component
13103 loads. Rewrite stores fed by CONSTRUCTORs to component
13104 stores.
13105
13106 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13107
13108 * opts.h (finish_options): Remove lang_mask argument.
13109 (print_help, help_option_argument): Declare.
13110 * opts.c (print_help): Remove forward declaration, no longer static.
13111 (finish_options): Remove lang_mask argument, don't call print_help
13112 here.
13113 * opts-global.c (decode_options): Adjust finish_option caller, call
13114 print_help here.
13115
13116 PR tree-optimization/90303
13117 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13118 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13119
13120 2019-05-03 Richard Biener <rguenther@suse.de>
13121
13122 PR tree-optimization/89698
13123 * gimple-fold.c (canonicalize_constructor_val): Early out
13124 for constants, handle unfolded INTEGER_CSTs as they appear in
13125 C++ virtual table ctors.
13126
13127 2019-05-03 Richard Biener <rguenther@suse.de>
13128
13129 * passes.c (execute_function_todo): Remove dead code.
13130
13131 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13132
13133 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13134 the internal register number, for any "real" register.
13135
13136 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13137
13138 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13139 correct numbers for TFHAR, TFIAR, TEXASR.
13140
13141 2019-05-02 Richard Biener <rguenther@suse.de>
13142
13143 PR tree-optimization/89653
13144 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13145 update-address-taken before the pass.
13146 * passes.def (pass_tree_loop_init): Put comment before it.
13147
13148 2019-05-02 Richard Biener <rguenther@suse.de>
13149
13150 PR tree-optimization/89509
13151 * tree-ssa-structalias.c (compute_dependence_clique): Look
13152 at the first subvar when determining whether it is restrict.
13153
13154 2019-05-02 Richard Biener <rguenther@suse.de>
13155
13156 PR tree-optimization/90273
13157 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13158 useless debug stmts.
13159
13160 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13161
13162 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13163 ACLE branch.
13164 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13165 SVE ACLE branch.
13166 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13167 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13168 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13169 (vectorizable_reduction): Use the functions above to vectorize in a
13170 fully masked loop codes that don't have a conditional internal
13171 function.
13172
13173 2019-05-02 Martin Liska <mliska@suse.cz>
13174
13175 * cgraphclones.c: Call valid_attribute_p with 1 for
13176 target_clone.
13177 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13178 it's for target attribute.
13179 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13180 Add new boolean argument.
13181 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13182 Likewise.
13183 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13184 to ix86_valid_target_attribute_inner_p.
13185 (ix86_valid_target_attribute_p): Pass flags argument to
13186 ix86_valid_target_attribute_inner_p.
13187 (get_builtin_code_for_version): Use 0 as it's target attribute.
13188
13189 2019-05-02 Martin Liska <mliska@suse.cz>
13190
13191 * gcc.c (process_command): Add dummy file only
13192 if n_infiles == 0.
13193 * opts-global.c (decode_options): Pass lang_mask.
13194 * opts.c (print_help): New function.
13195 (finish_options): Print --help if help_option_argument
13196 is set.
13197 (common_handle_option): Factor out content of OPT__help_
13198 into print_help.
13199 * opts.h (finish_options): Add new argument.
13200
13201 2019-05-02 Martin Liska <mliska@suse.cz>
13202
13203 PR target/88809
13204 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13205 With -minline-all-stringops use inline expansion using 4B loop.
13206 * doc/invoke.texi: Document the change of
13207 -minline-all-stringops.
13208
13209 2019-05-01 Jeff Law <law@redhat.com>
13210
13211 PR tree-optimization/88797
13212 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13213 PHI feeds a conditional on the RHS of an assignment.
13214
13215 2019-04-30 Andrew Waterman <andrew@sifive.com>
13216 Jim Wilson <jimw@sifive.com>
13217
13218 * config/riscv/constraints.md (L): New.
13219 * config/riscv/predicates.md (lui_operand): New.
13220 (sfb_alu_operand): New.
13221 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13222 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13223 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13224 * config/riscv/risc.md (type): Add sfb_alu.
13225 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13226 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13227 (branch_zero<mode>): Delete.
13228 (mov<mode>cc): New.
13229 (mov<GPR:mode><X:mode>cc): Likewise.
13230 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13231
13232 2019-04-30 Nathan Sidwell <nathan@acm.org>
13233
13234 * tree.h (MARK_TS_EXP): New.
13235
13236 2019-04-30 Martin Liska <mliska@suse.cz>
13237
13238 * opts.c (enable_warning_as_error): Provide hints
13239 for unknown options.
13240
13241 2019-04-30 Martin Liska <mliska@suse.cz>
13242
13243 PR debug/90288
13244 * doc/invoke.texi: Add missing dash for gas-locview-support
13245 and gno-as-locview-support.
13246
13247 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13248
13249 PR target/89093
13250 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13251 whitespace at the start of target attribute string.
13252
13253 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13254
13255 PR target/86538
13256 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13257 Define __ARM_FEATURE_ATOMICS.
13258
13259 2019-04-30 Martin Liska <mliska@suse.cz>
13260
13261 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13262 into built_in_function enum. Remove code for endp == 2 and
13263 use BUILT_IN_* constants.
13264 (gimple_fold_builtin): Call the function with fcode.
13265
13266 2019-04-30 Martin Liska <mliska@suse.cz>
13267
13268 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13269 DECL_FUNCTION_CODE into ix86_builtins enum before
13270 the switch statement.
13271
13272 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13273
13274 PR tree-optimization/89475
13275 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13276 calls.
13277
13278 2019-04-30 Martin Liska <mliska@suse.cz>
13279
13280 PR translation/90274
13281 * opts.c (print_filtered_help): Wrap string in _(...).
13282
13283 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13284
13285 PR tree-optimization/90240
13286 Revert:
13287 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13288
13289 PR tree-optimization/90078
13290 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13291 checks for infinite_cost overflow.
13292
13293 2019-04-29 Jeff Law <law@redhat.com>
13294
13295 * passes.def: Move -Wrestrict pass after copy propagation.
13296
13297 2019-04-29 Maya Rashish <coypu@sdf.org>
13298
13299 * config.gcc (default_gnu_indirect_function): Default to yes
13300 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13301 sparc*-*-netbsd*, x86_64-*-netbsd*.
13302
13303 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13304
13305 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13306 where cond2 is NE_EXPR.
13307 (is_value_included_in): Update comment.
13308
13309 2019-04-29 Richard Biener <rguenther@suse.de>
13310
13311 PR tree-optimization/90278
13312 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13313 EH on comparison simplification.
13314
13315 2019-04-29 Jason Merrill <jason@redhat.com>
13316
13317 PR c++/82081 - tail call optimization breaks noexcept
13318 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13319 nothrow function to a might-throw function into a tail call.
13320
13321 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13322
13323 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13324 (DDR_INNER_LOOP): Likewise.
13325 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13326 (initialize_data_dependence_relation): Likewise.
13327 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13328
13329 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13330
13331 PR rtl-optimization/90257
13332 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13333 return value.
13334
13335 Revert the revert:
13336 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13337
13338 PR target/90178
13339 Revert:
13340 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13341
13342 Revert the revert:
13343 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13344
13345 Revert:
13346 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13347
13348 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13349
13350 2019-04-29 Richard Biener <rguenther@suse.de>
13351
13352 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13353 rhs issue a reset.
13354
13355 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13356
13357 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13358 varasm.h, and netbsd-protos.h.
13359
13360 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13361
13362 PR target/89261
13363 * config/i386/i386-protos.h (ix86_data_alignment): Change
13364 the second argument type to unsigned int.
13365 * config/i386/i386.c (ix86_data_alignment): Change "align"
13366 argument type to unsigned int.
13367
13368 2019-04-27 Martin Liska <mliska@suse.cz>
13369
13370 PR middle-end/90258
13371 * opt-suggestions.c (option_proposer::build_option_suggestions):
13372 When get_valid_option_values returns empty values, add the
13373 misspelling candidate.
13374
13375 2019-04-26 Jim Wilson <jimw@sifive.com>
13376
13377 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
13378 parameter.
13379 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
13380 Pass orig_mode to riscv_build_integer.
13381 (riscv_split_integer): Pass mode to riscv_move_integer.
13382 (riscv_legitimize_const_move): Likewise.
13383 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
13384 promoted_mode. Replace force_reg call with code to load constant into
13385 promoted reg and then subreg it for the store.
13386 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
13387 riscv_move_integer.
13388
13389 2018-04-26 Eugene Sharygin <eush@ispras.ru>
13390
13391 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
13392 corrupt codes.
13393
13394 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
13395
13396 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
13397 commentary about the encoding of precision.
13398
13399 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
13400
13401 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
13402 * config/i386/t-freebsd64: New file.
13403 * config.gcc: Add the t-freebsd64 for multilib support.
13404
13405 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
13406
13407 * doc/extend.texi (vector_size): Add missing comma after @xref.
13408
13409 2019-04-25 Jakub Jelinek <jakub@redhat.com>
13410
13411 * BASE-VER: Set to 10.0.0.
13412
13413 2019-04-25 Richard Biener <rguenther@suse.de>
13414
13415 PR middle-end/89765
13416 * gimplify.c (gimplify_expr): Avoid turning a lvalue
13417 VIEW_CONVERT_EXPR into one operating on an rvalue.
13418
13419 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
13420
13421 PR target/89929
13422 * config/i386/i386.c (feature_priority): Moved to file scope.
13423 (processor_features): Likewise.
13424 (processor_model): Likewise.
13425 (_arch_names_table): Likewise.
13426 (arch_names_table): Likewise.
13427 (_feature_list): Removed.
13428 (feature_list): Likewise.
13429 (_isa_names_table): Moved to file scope. Add priority.
13430 (isa_names_table): Likewise.
13431 (get_builtin_code_for_version): Replace feature_list with
13432 isa_names_table. Update error message for P_ZERO priority.
13433
13434 2019-04-25 Richard Biener <rguenther@suse.de>
13435
13436 * tree-pass.h (make_pass_phi_only_cprop): Remove.
13437 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
13438
13439 2019-04-24 Jeff Law <law@redhat.com>
13440
13441 PR tree-optimization/90037
13442 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
13443 * passes.def: Replace all instance of phi-only cprop with the
13444 lattice propagator. Move propagation pass from after erroneous
13445 path isolation to before erroneous path isolation.
13446 * tree-ssa-phionlycprop.c: Remove.
13447
13448 2019-04-24 Richard Biener <rguenther@suse.de>
13449
13450 PR middle-end/90213
13451 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
13452 by size and BITS_PER_UNIT on poly-wide-ints.
13453
13454 2019-04-25 Richard Biener <rguenther@suse.de>
13455
13456 PR middle-end/90194
13457 * match.pd: Add pattern to simplify view-conversion of an
13458 empty constructor.
13459
13460 2019-04-24 Clement Chigot <clement.chigot@atos.net>
13461
13462 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
13463 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
13464 for Go on 32 bit AIX.
13465 * config/rs6000/aix72.h: Likewise.
13466
13467 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13468
13469 PR target/90193
13470 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
13471 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
13472
13473 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
13474
13475 PR target/89952
13476 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
13477 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
13478 for restored hard frame pointer.
13479 (s390_sched_dependencies_evaluation): Implement new target hook.
13480 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
13481
13482 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
13483
13484 * config/arc/arc-options.def: Fix typos and spelling mistakes.
13485 * config/arc/arc.c (arc_init): Cleanup warning message.
13486 (arc_override_options): Likewise.
13487
13488 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13489
13490 PR target/90187
13491 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
13492 a register if both if_true and if_false are MEMs.
13493
13494 PR tree-optimization/90208
13495 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
13496 after labels of new_bb, not before them.
13497
13498 PR tree-optimization/90211
13499 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
13500 which are not SSA_NAMEs.
13501
13502 2018-04-23 Sudakshina Das <sudi.das@arm.com>
13503
13504 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
13505 AArch64.
13506 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
13507
13508 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13509
13510 PR rtl-optimization/87979
13511 * modulo-sched.c (sms_schedule): Start ii value "mii" should
13512 not equal zero.
13513
13514 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13515
13516 PR rtl-optimization/84032
13517 * modulo-sched.c (ps_insn_find_column): Change condition so that
13518 branch will always be the last insn in a row inside partial
13519 schedule.
13520
13521 2019-04-23 Richard Biener <rguenther@suse.de>
13522
13523 PR debug/90131
13524 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
13525 dest_single_pred_p argument.
13526 (remove_forwarder_block): Adjust.
13527 (remove_forwarder_block_with_phi): Likewise.
13528
13529 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13530 Bernd Edlinger <bernd.edlinger@hotmail.de>
13531 Jakub Jelinek <jakub@redhat.com>
13532
13533 PR target/89093
13534 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
13535 if used with general-regs-only.
13536 (arm_conditional_register_usage): Don't add non-general regs if
13537 general-regs-only.
13538 (arm_valid_target_attribute_rec): Handle general-regs-only.
13539 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
13540 general-regs-only.
13541 (TARGET_HARD_FLOAT_SUB): Define.
13542 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
13543 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
13544 (TARGET_REALLY_IWMMXT2): Likewise.
13545 * config/arm/arm.opt: Add -mgeneral-regs-only.
13546 * doc/extend.texi: Document ARM general-regs-only target.
13547 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
13548
13549 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13550
13551 PR tree-optimization/90078
13552 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13553 checks for infinite_cost overflow.
13554
13555 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13556
13557 PR tree-optimization/90021
13558 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
13559 and check univariate against it.
13560 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
13561 * tree-data-ref.c (add_other_self_distances): Pass new argument.
13562
13563 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13564
13565 PR target/90178
13566 Revert:
13567 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13568
13569 Revert the revert:
13570 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13571
13572 Revert:
13573 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13574
13575 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13576
13577 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
13578
13579 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
13580 names using operand format, rather than hard-wired.
13581 (speculation_barrier): Likewise.
13582
13583 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
13584
13585 PR tree-optimization/88055
13586 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
13587 (gen_one_condition): Use it if !HONOR_NANS.
13588
13589 2019-04-19 Jakub Jelinek <jakub@redhat.com>
13590
13591 PR middle-end/90139
13592 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
13593 assign_temp instead of gen_reg_rtx.
13594
13595 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
13596
13597 PR translation/90118
13598 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13599 Add missing space before %<.
13600
13601 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
13602
13603 PR rtl-optimization/87871
13604 * ira-lives.c (make_object_dead): Don't add conflicts to
13605 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
13606
13607 2019-04-18 Martin Sebor <msebor@redhat.com>
13608
13609 PR middle-end/89797
13610 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
13611 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
13612 assuming type size fits in SHWI.
13613
13614 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
13615
13616 PR ipa/85051
13617 * ipa-inline.c (flatten_function): New parameter UPDATE.
13618 (ipa_inline, early_inliner): Use it.
13619
13620 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13621
13622 * fold-const.c (int_const_binop): Return early on failure.
13623
13624 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13625
13626 PR middle-end/85164
13627 * combine.c (force_int_to_mode): Cast the argument rather than
13628 the result of known_alignment.
13629 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
13630
13631 2019-04-18 Richard Biener <rguenther@suse.de>
13632
13633 PR debug/90131
13634 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
13635 out from ...
13636 (remove_forwarder_block): ... here.
13637 (remove_forwarder_block_with_phi): Also move debug stmts here.
13638
13639 2019-04-18 Jakub Jelinek <jakub@redhat.com>
13640
13641 PR translation/79183
13642 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
13643 inform where appropriate.
13644
13645 2019-04-18 Richard Biener <rguenther@suse.de>
13646
13647 * tree.c (get_qualified_type): Put found type variants at the
13648 head of the variant list.
13649
13650 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13651
13652 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
13653
13654 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
13655
13656 PR target/90125
13657 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
13658 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
13659 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
13660 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
13661 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
13662
13663 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
13664
13665 * ira-conflicts.c (print_allocno_conflicts): Always print something,
13666 even for allocno's with no conflicts.
13667 (print_conflicts): Print an extra newline.
13668
13669 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13670
13671 * auto-inc-dec.c (attempt_change): Set the alignment of the
13672 temporary memory to that of the original.
13673
13674 2019-04-17 Joao Moreira <jmoreira@suse.de>
13675
13676 * targhooks.c (default_print_patchable_function_entry): Emit
13677 __patchable_function_entries section with writable flags to allow
13678 relocation resolution.
13679
13680 2019-04-17 Jonny Grant <jg@jguk.org>
13681
13682 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
13683
13684 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13685
13686 PR middle-end/90095
13687 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
13688 on lowpart SUBREGs.
13689
13690 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
13691
13692 * config/arc/arc.c (arc_init): Format diagnostic string.
13693 (arc_override_options): Likewise.
13694 (check_if_valid_regno_const): Likewise.
13695 (arc_reorg): Likewise.
13696
13697 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13698
13699 PR target/17108
13700 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
13701 name.
13702 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
13703 name.
13704 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
13705 (*movdi_update1): Use Pmode.
13706 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
13707 (movdi_<mode>_update_stack): Rename to ...
13708 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
13709 use Pmode.
13710 (*movsi_update1): Use Pmode.
13711 (*movsi_update2): Use Pmode.
13712 (movsi_update): Rename to ...
13713 (movsi_<mode>_update): ... this. Use Pmode.
13714 (movsi_update_stack): Fix condition.
13715 (*movhi_update1): Use Pmode. Fix argument to
13716 avoiding_indexed_address_p.
13717 (*movhi_update2): Ditto.
13718 (*movhi_update3): Ditto.
13719 (*movhi_update4): Ditto.
13720 (*movqi_update1): Ditto.
13721 (*movqi_update2): Ditto.
13722 (*movqi_update3): Ditto.
13723 (*movsf_update1, *movdf_update1): Merge, rename to...
13724 (*mov<mode>_update1): This. Use Pmode. Fix argument to
13725 avoiding_indexed_address_p. Add "size" attribute.
13726 (*movsf_update2, *movdf_update2): Merge, rename to...
13727 (*mov<mode>_update2): This. Ditto.
13728 (*movsf_update3): Use Pmode. Fix argument to
13729 avoiding_indexed_address_p.
13730 (*movsf_update4): Ditto.
13731 (allocate_stack): Simplify condition. Adjust pattern names.
13732
13733 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13734
13735 PR target/89093
13736 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
13737 whitespace at the start of target attribute string.
13738
13739 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
13740
13741 PR target/84369
13742 * config/rs6000/power9.md: Add store forwarding bypass.
13743
13744 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
13745
13746 PR debug/89528
13747 * valtrack.c (dead_debug_insert_temp): Reset debug references
13748 to the return value of a call being removed.
13749
13750 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13751
13752 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
13753 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
13754 implement target hook.
13755 (arc_memory_move_cost): New function.
13756 (TARGET_REGISTER_MOVE_COST): Define.
13757 (TARGET_MEMORY_MOVE_COST): Likewise.
13758 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
13759 (MEMORY_MOVE_COST): Likewise.
13760
13761 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13762
13763 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
13764 (sibcall_value_insn): Likewise.
13765 * config/arc/constraints.md (Rs5): Remove.
13766
13767 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13768
13769 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
13770 for last two fake registers.
13771 (arc_conditional_register_usage): Make sure fake frame and arg
13772 pointer regs are in general regs class.
13773 (FRAME_POINTER_MASK): Remove.
13774 (RETURN_ADDR_MASK): Remove.
13775 (arc_must_save_register): Use hard frame regnum.
13776 (frame_restore_reg): Use hard_frame_pointer_rtx.
13777 (arc_save_callee_saves): Likewise.
13778 (arc_restore_callee_saves): Likewise.
13779 (arc_save_callee_enter): Likewise.
13780 (arc_restore_callee_leave): Likewise.
13781 (arc_save_callee_milli): Likewise.
13782 (arc_eh_return_address_location): Likewise.
13783 (arc_check_multi): Use hard frame regnum.
13784 (arc_can_eliminate): Likewise.
13785 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
13786 for register allocator.
13787 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
13788 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
13789 (FRAME_POINTER_REGNUM): Change it to a fake register.
13790 (HARD_FRAME_POINTER_REGNUM): Defined.
13791 (ARG_POINTER_REGNUM): Change it to a new fake register.
13792 (ELIMINABLE_REGS): Update.
13793 (REGISTER_NAMES): Update names.
13794 * config/arc/arc.md (LP_START): Remove.
13795 (LP_END): Likewise.
13796 (shift_si3_loop): Update pattern.
13797
13798 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13799
13800 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
13801 to avoid delay slot scheduling.
13802 (arc_must_save_register): Don't save SP.
13803 * config/arc/arc.md (stack_tie): Remove.
13804 (UNSPEC_ARC_STKTIE): Likewise.
13805
13806 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
13807 Shiva Chen <shiva0217@gmail.com>
13808
13809 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
13810 code gen with large shift amount.
13811
13812 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
13813
13814 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
13815 subreg.
13816
13817 2019-04-16 Jakub Jelinek <jakub@redhat.com>
13818
13819 PR target/90096
13820 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
13821 print -m64/-mx32/-m32 if it is true.
13822 (ix86_debug_options, ix86_function_specific_print): Pass true as
13823 ADD_ABI_P to ix86_target_string.
13824 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
13825 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
13826 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
13827
13828 PR rtl-optimization/90082
13829 * dce.c (can_delete_call): New function.
13830 (deletable_insn_p, mark_insn): Use it.
13831
13832 PR tree-optimization/90090
13833 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
13834 throw internally.
13835 (is_division_by_square): Likewise. Formatting fix.
13836
13837 2019-04-16 Richard Biener <rguenther@suse.de>
13838
13839 PR tree-optimization/56049
13840 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
13841 equality check if alias-set zero will prevail.
13842
13843 2019-04-15 Jeff Law <law@redhat.com>
13844
13845 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
13846 size and alignment as unsigned.
13847
13848 2019-04-15 Richard Biener <rguenther@suse.de>
13849
13850 PR debug/90074
13851 * tree-loop-distribution.c (destroy_loop): Preserve correct
13852 debug info.
13853
13854 2019-04-15 Richard Biener <rguenther@suse.de>
13855
13856 PR tree-optimization/90071
13857 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
13858 abnormal operands from def stmts.
13859
13860 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
13861
13862 PR rtl-optimization/89794
13863 * combine.c (count_auto_inc): New function.
13864 (try_combine): Count how many auto_inc expressions there were in the
13865 original instructions. Ensure we have the same number in the new
13866 instructions. Remove the code that tried to ensure auto_inc side
13867 effects on i1 and i0 are not lost.
13868
13869 2019-04-15 Richard Biener <rguenther@suse.de>
13870
13871 PR ipa/88936
13872 * tree.h (auto_var_p): Declare.
13873 * tree.c (auto_var_p): New function, split out from ...
13874 (auto_var_in_fn_p): ... here.
13875 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
13876 member.
13877 (new_var_info): Initialize it.
13878 (set_uids_in_ptset): Also set the shadow variable uid if required.
13879 (ipa_pta_execute): Postprocess points-to solutions assigning
13880 shadow variable uids for locals that may reach their containing
13881 function recursively.
13882 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
13883 assert but instead check whether the points-to solution is
13884 a singleton.
13885
13886 2019-04-15 Martin Jambor <mjambor@suse.cz>
13887
13888 PR ipa/pr89693
13889 * cgraph.c (clone_of_p): Loop over clone chain for each step in
13890 the thunk chain.
13891
13892 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13893
13894 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
13895
13896 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13897 Kito Cheng <kito.cheng@gmail.com>
13898 Shiva Chen <shiva0217@gmail.com>
13899
13900 * config/nds32/nds32-md-auxiliary.c
13901 (nds32_legitimize_pic_address): Use new PIC pattern.
13902 (nds32_legitimize_tls_address): Use new TLS pattern.
13903 (nds32_output_symrel): New.
13904 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
13905 (nds32_alloc_relax_group_id): Ditto.
13906 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
13907 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
13908 relax_group_id.
13909 (nds32_group_tls_insn): Ditto.
13910 (nds32_group_float_insns): Ditto.
13911 * config/nds32/nds32.md (tls_le): New.
13912 (sym_got): Ditto.
13913
13914 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
13915
13916 * configure: Add nds32 target for dwarf2 debug_line checking.
13917 * configure.ac: Regenerated.
13918
13919 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
13920
13921 PR lto/89358
13922 * ipa-devirt.c (skip_in_fields_list_p): New.
13923 (odr_types_equivalent_p): Use it.
13924
13925 2019-04-13 Jakub Jelinek <jakub@redhat.com>
13926
13927 PR target/89093
13928 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
13929 instead of strncmp when checking for thumb and arm. Formatting fixes.
13930
13931 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
13932
13933 * doc/install.texi: Document --with-target-system-zlib.
13934
13935 2019-04-12 Martin Sebor <msebor@redhat.com>
13936
13937 PR c/88383
13938 PR c/89288
13939 PR c/89798
13940 PR c/89797
13941 * targhooks.c (default_vector_alignment): Avoid assuming
13942 argument fits in SHWI.
13943 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
13944 a shift expression.
13945 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
13946
13947 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13948
13949 PR rtl-optimization/89965
13950 * dce.c: Include rtl-iter.h.
13951 (struct check_argument_load_data): New type.
13952 (check_argument_load): New function.
13953 (find_call_stack_args): Check for loads from stack slots still tracked
13954 in sp_bytes and punt if any is found.
13955
13956 * config/mips/loongson-mmiintrin.h: Fix up #error message.
13957
13958 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
13959
13960 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
13961 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
13962
13963 2019-04-12 Martin Liska <mliska@suse.cz>
13964
13965 PR middle-end/89970
13966 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
13967 in error message.
13968 (separate_attrs): Handle multiple 'default's.
13969 (expand_target_clones): Rework error handling code.
13970
13971 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
13972
13973 PR target/87532
13974 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
13975 mode of vector rather than mode of destination for move instruction.
13976 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
13977 Use QI inner mode with V16QI vector mode.
13978
13979 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13980
13981 PR target/52726
13982 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
13983 "invalid %%t operand" in output_operand_lossage message.
13984
13985 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
13986
13987 * config/s390/predicates.md (permute_pattern_operand): New
13988 predicate.
13989 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
13990 operand for the permute pattern.
13991 ("*vec_perm<mode>"): New insn definition.
13992 ("bswap<mode>"): Generate the permute pattern operand in the
13993 expander and perform the operand reloads for pre arch13 level
13994 already.
13995 ("*bswap<mode>_emu"): Rename to ...
13996 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
13997 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
13998 Add the USE operand for the permute pattern.
13999 ("*vec_set_bswap_vec<mode>"): Likewise.
14000
14001 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14002
14003 PR c/89946
14004 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
14005 and gcc_unreachable if it fails, just call tree_to_uhwi which
14006 verifies that too. Test TREE_CHAIN instead of list_length > 1.
14007 Start warning message with a lower-case letter. Formatting fixes.
14008
14009 PR rtl-optimization/90026
14010 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
14011 successors, look for BARRIERs inside of the whole BB_FOOTER chain
14012 rather than just at the start of it. If e->src BB_FOOTER is not NULL
14013 in cfglayout mode, use emit_barrier_after_bb.
14014
14015 2018-04-11 Steve Ellcey <sellcey@marvell.com>
14016
14017 PR rtl-optimization/87763
14018 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
14019 New Instruction.
14020
14021 2019-04-11 Tom de Vries <tdevries@suse.de>
14022
14023 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
14024 max macro using statement expression.
14025
14026 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
14027
14028 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
14029 * xcoffout.c (xcoff_private_rodata_section_name): Define.
14030 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
14031 read_only_private_data_section using xcoff_private_rodata_section_name.
14032 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
14033
14034 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
14035
14036 PR target/90016
14037 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14038
14039 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14040
14041 PR rtl-optimization/89965
14042 * dce.c (sp_based_mem_offset): New function.
14043 (find_call_stack_args): Use sp_based_mem_offset.
14044
14045 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14046
14047 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14048
14049 2019-04-11 Richard Biener <rguenther@suse.de>
14050
14051 PR tree-optimization/90020
14052 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14053 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14054 * tree-ssa-pre.c (compute_avail): Use it to not put
14055 possibly trapping references after a call that might not
14056 return into EXP_GEN.
14057 * gcse.c (compute_hash_table_work): Do not elide
14058 marking a block containing a call if the call might not
14059 return.
14060
14061 2019-04-11 Richard Biener <rguenther@suse.de>
14062
14063 PR tree-optimization/90018
14064 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14065 Test both SLP and interleaving variants.
14066
14067 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14068
14069 * config/s390/8561.md: New file.
14070 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14071 Add arch13 cpu model.
14072 * config/s390/s390-opts.h (enum processor_type): Likewise.
14073 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14074 (s390_get_unit_mask): Likewise.
14075 (s390_is_fpd): Likewise.
14076 (s390_is_fxd): Likewise.
14077 * config/s390/s390.h (s390_tune_attr): Likewise.
14078 * config/s390/s390.md: Include arch13 pipeline description.
14079 * config/s390/s390.opt: Add arch13.
14080
14081 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14082
14083 PR rtl-optimization/87763
14084 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14085 New prototype.
14086 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14087 New function.
14088 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14089 New instruction.
14090 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14091 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14092 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14093 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14094
14095 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14096
14097 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14098 "Although" in -fipa-icf documentation.
14099
14100 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14101 of using multiple -g options.
14102
14103 2019-04-10 Martin Liska <mliska@suse.cz>
14104
14105 PR gcov-profile/89959
14106 * doc/gcov.texi: Make documentation of -x option
14107 more precise.
14108
14109 2019-04-10 Richard Biener <rguenther@suse.de>
14110
14111 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14112 member.
14113 (DR_GROUP_SAME_DR_STMT): Remove.
14114 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14115 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14116 replace with assert.
14117 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14118 (vect_record_grouped_load_vectors): Remove unreachable code.
14119
14120 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14121
14122 PR target/90016
14123 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14124 obsolete reference to N.
14125
14126 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14127
14128 PR middle-end/90025
14129 * expr.c (store_expr): Set properly size on the MEM passed to
14130 clear_storage.
14131
14132 PR c++/90010
14133 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14134 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14135 translation is needed, and when translation is needed, only append
14136 ... if the string length is hostsz or more bytes long. Avoid using
14137 strncpy or strcat.
14138
14139 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14140
14141 PR target/90024
14142 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14143 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14144 into three.
14145 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14146 differences directly.
14147 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14148
14149 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14150
14151 PR translation/90011
14152 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14153 from diagnostics.
14154 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14155 diagnostics.
14156 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14157 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14158 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14159 trailing space from -gsplit-dwarf diagnostics.
14160
14161 PR tree-optimization/89998
14162 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14163 instead of integer_type_node if possible, don't add ranges if return
14164 type is not compatible with int.
14165 * gimple-fold.c (gimple_fold_builtin_sprintf,
14166 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14167 integer_type_node.
14168
14169 2019-04-09 Martin Liska <mliska@suse.cz>
14170
14171 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14172 * doc/install.texi: Document the new config.
14173
14174 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14175
14176 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14177 use gimple_expr_type for load and store calls. Skip over the
14178 condition argument in a conditional internal function.
14179 Protect use of TREE_INT_CST_LOW.
14180
14181 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14182
14183 PR target/90015
14184 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14185 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14186 trailing period from it too.
14187
14188 2019-04-08 wu yuan <wuyuan5@huawei.com>
14189
14190 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14191 * config/aarch64/aarch64.md : Add "tsv110.md"
14192 * config/aarch64/tsv110.md: New file.
14193
14194 2019-04-08 Richard Biener <rguenther@suse.de>
14195
14196 PR tree-optimization/90006
14197 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14198 calls like lrint.
14199
14200 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14201
14202 PR target/83033
14203 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14204 construction.
14205 (fma_root_node): Likewise.
14206 (func_fma_steering): Likewise.
14207
14208 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14209
14210 PR rtl-optimization/89865
14211 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14212
14213 PR rtl-optimization/89865
14214 * config/i386/i386.md
14215 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14216 numbers not to clash with the additional operands[4].
14217 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14218 with extra register copy in the middle.
14219
14220 2019-04-08 Martin Liska <mliska@suse.cz>
14221
14222 PR gcov-profile/89961
14223 * doc/gcov.texi: Document data_file.
14224 * gcov.c (generate_results): Add data_info into JSON output.
14225
14226 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14227
14228 PR tree-optimization/89725
14229 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14230 loop's chrec as invariant symbol.
14231 * tree-chrec.h (chrec_contains_symbols): New parameter.
14232 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14233 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14234 function of loops not in DDR's loop_nest.
14235 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14236
14237 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14238
14239 PR target/89623
14240 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14241 Mask.
14242
14243 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14244
14245 PR target/89945
14246 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14247 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14248
14249 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14250
14251 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14252 targetm.fixed_condition_code_regs.
14253
14254 2019-04-05 Richard Biener <rguenther@suse.de>
14255
14256 PR debug/89892
14257 PR debug/89905
14258 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14259 debug bind stmts but reset them if they are not valid at the
14260 destination.
14261
14262 2019-04-05 Martin Liska <mliska@suse.cz>
14263
14264 PR translation/89936
14265 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14266 order to wrap keywords or arguments.
14267 * collect2.c (main): Likewise.
14268 (scan_prog_file): Likewise.
14269 (scan_libraries): Likewise.
14270 * common/config/riscv/riscv-common.c
14271 (riscv_subset_list::parsing_subset_version): Likewise.
14272 (riscv_subset_list::parse_std_ext): Likewise.
14273 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14274 Likewise.
14275 * config/arm/arm.c (arm_option_override): Likewise.
14276 * config/cris/cris.c (cris_print_operand): Likewise.
14277 * config/darwin-c.c (darwin_pragma_options): Likewise.
14278 (darwin_pragma_unused): Likewise.
14279 (darwin_pragma_ms_struct): Likewise.
14280 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14281 * config/i386/i386.c (print_reg): Likewise.
14282 (ix86_print_operand): Likewise.
14283 * config/i386/xm-djgpp.h: Likewise.
14284 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14285 * config/m32c/m32c.c (m32c_option_override): Likewise.
14286 * config/msp430/msp430.c (msp430_option_override): Likewise.
14287 * config/nds32/nds32.c (nds32_option_override): Likewise.
14288 * config/nvptx/mkoffload.c (main): Likewise.
14289 * config/rx/rx.c (rx_print_operand): Likewise.
14290 (valid_psw_flag): Likewise.
14291 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14292 (vms_pragma_nomember_alignment): Likewise.
14293 (vms_pragma_extern_model): Likewise.
14294 * lto-wrapper.c (compile_offload_image): Likewise.
14295 * omp-offload.c (oacc_parse_default_dims): Likewise.
14296 * symtab.c (symtab_node::verify_base): Likewise.
14297 * tlink.c (recompile_files): Likewise.
14298 (start_tweaking): Likewise.
14299 * tree-profile.c (parse_profile_filter): Likewise.
14300
14301 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14302
14303 PR tree-optimization/89956
14304 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14305 multiple negates of the same value.
14306
14307 2019-04-04 Martin Sebor <msebor@redhat.com>
14308
14309 PR middle-end/89957
14310 PR middle-end/89911
14311 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14312 have the same precision since the function crashes otherwise.
14313 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14314 has non-zero arguments.
14315
14316 2019-04-04 Martin Sebor <msebor@redhat.com>
14317
14318 PR middle-end/89934
14319 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14320 out if the number of arguments is less than expected.
14321
14322 2019-04-04 Jeff Law <law@redhat.com>
14323
14324 PR rtl-optimization/89399
14325 * ree.c (combine_set_extension): Use single_set rather than
14326 digging into PATTERN for items on the candidate list.
14327 (combine_reaching_defs): Likewise.
14328
14329 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14330
14331 PR rtl-optimization/46590
14332 * loop-invariant.c (find_defs): Move df_remove_problem and
14333 df_process_deferred_rescans to move_invariants.
14334 Move df_live_add_problem and df_live_set_all_dirty calls
14335 to move_invariants.
14336 (move_invariants): Likewise.
14337 (move_loop_invariants): Likewise, making the df_live calls
14338 conditional on -O. Remove the problem again if we added it
14339 locally.
14340
14341 2019-04-03 qing zhao <qing.zhao@oracle.com>
14342
14343 PR tree-optimization/89730
14344 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14345 -flive-patching=inline-only-static.
14346 (can_inline_edge_by_limits_p): Add the checking for
14347 -flive-patching=inline-only-static and grant always_inline
14348 even when -flive-patching=inline-only-static is specified.
14349
14350 2019-04-03 Jeff Law <law@redhat.com>
14351
14352 PR rtl-optimization/81025
14353 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14354
14355 2019-04-03 Richard Biener <rguenther@suse.de>
14356
14357 PR tree-optimization/84101
14358 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14359 regs.h for hard_regno_nregs.
14360 (cfun_returns): New helper.
14361 (vect_model_store_cost): When vectorizing a store to a decl
14362 we return and the function ABI returns in a multi-reg location
14363 account for the possible spilling that will happen.
14364
14365 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
14366
14367 * config/s390/s390.c (s390_legitimate_address_p): Reject long
14368 displacement addresses for vector mode operands.
14369
14370 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
14371
14372 * config/arc/arc.c (GMASK_LEN): Define.
14373 (arc_restore_callee_saves): Restore first blink when
14374 !optimize_size.
14375
14376 2019-04-03 Sudakshina Das <sudi.das@arm.com>
14377
14378 * doc/extend.texi: Add deprecated comment on sign-return-address
14379 function attribute and add mbranch-protection.
14380 * doc/invoke.texi: Add bti to the options for mbranch-protection.
14381
14382 2019-04-03 Richard Biener <rguenther@suse.de>
14383
14384 PR lto/89896
14385 * lto-wrapper.c (run_gcc): Avoid implicit rules making
14386 the all target phony.
14387
14388 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
14389
14390 PR target/89902
14391 PR target/89903
14392 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14393 Return false for variable DImode shifts.
14394 (dimode_scalar_chain::compute_convert_gain): Do not handle
14395 register count operand in variable DImode shifts.
14396 (dimode_scalar_chain::make_vector_copies): Remove support to copy
14397 count argument of a variable shift instruction to a vector register.
14398 (dimode_scalar_chain::convert_reg): Remove support to convert
14399 count argument of a variable shift instruction.
14400
14401 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14402
14403 PR rtl-optimization/84206
14404 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
14405 iterating over loop headers.
14406
14407 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14408
14409 PR rtl-optimization/85876
14410 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
14411 beyond the original fence.
14412
14413 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
14414
14415 * config.gcc: Mark spu* targets as deprecated/obsolete.
14416
14417 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14418
14419 * config/s390/s390-builtin-types.def: New builtin function type
14420 definitions. Remove unused types.
14421 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
14422 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
14423 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
14424 overloaded builtins.
14425 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
14426 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
14427 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
14428 (vec_double, vec_signed, vec_unsigned): Define to use the new
14429 overloaded builtins.
14430 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
14431 Remove expanders.
14432
14433 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14434
14435 * config/s390/s390-builtin-types.def: New builtin function type
14436 definitions.
14437 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
14438 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
14439 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
14440 (s390_vstrszh, s390_vstrszf): New low-level builtins.
14441 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
14442 constant definitions.
14443 * config/s390/vecintrin.h (vec_search_string_cc)
14444 (vec_search_string_until_zero_cc): New builtin name definitions.
14445 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
14446 expanders.
14447 ("vec_vstrs<mode>"): New insn definition.
14448
14449 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14450
14451 * config/s390/s390-builtin-types.def: Add new builtin function
14452 types.
14453 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
14454 New overloaded builtins.
14455 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
14456 s390_vsrd.
14457 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
14458 (UNSPEC_VEC_SLDBYTE): ... this.
14459 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
14460 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
14461 definitions.
14462 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
14463 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
14464 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
14465
14466 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14467
14468 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
14469 New insn definition.
14470 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
14471 * config/s390/vector.md (V_HW_HSD): ... here.
14472
14473 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14474
14475 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
14476 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
14477 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
14478 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
14479 New insn definitions.
14480
14481 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14482
14483 * config/s390/s390-builtin-types.def: Add new builtin function type.
14484 * config/s390/s390-builtins.def: Add overloaded builtin
14485 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
14486 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
14487 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
14488 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
14489 ("eltswap<mode>"): New expander.
14490 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
14491 insn definitions.
14492
14493 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14494
14495 * config/s390/s390-builtin-types.def: Add new builtin function types.
14496 * config/s390/s390-builtins.def: Add overloaded builtin
14497 s390_vec_revb. Add low-level builtins for vlbr and vstbr
14498 instructions.
14499 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
14500 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
14501 ("bswap<mode>"): New expander.
14502 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
14503
14504 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14505
14506 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
14507 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
14508 vector builtin version number in __VEC__.
14509
14510 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14511
14512 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
14513 iterators.
14514 (SFSI): New mode attribute.
14515 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
14516 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
14517 rename to ...
14518 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
14519 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
14520 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
14521 ("floatsi<mode>2"): Add wcefb instruction.
14522
14523 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14524
14525 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
14526 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
14527 mode iterators.
14528 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
14529 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
14530 support 32 bit fp-int conversions. Rename to ...
14531 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14532 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14533 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
14534 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
14535 ... to these.
14536
14537 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14538
14539 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
14540 if-then-else constructs if we can use the select instruction.
14541 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
14542
14543 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14544
14545 * config/s390/s390.md ("*popcountdi_arch13_cc")
14546 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
14547 definition.
14548 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
14549 Append _z196 to make it ...
14550 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
14551 ("popcounthi2_z196"): ... this.
14552 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
14553 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
14554
14555 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14556
14557 * config/s390/s390.c (s390_canonicalize_comparison): Convert
14558 certain compares for arch13 in order to make use of the condition
14559 code result produced by the new instructions.
14560 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
14561 nxrk, and nxgrk instruction patterns.
14562 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
14563 (inv_no): Add new code iterator together with some attributes.
14564 ("*andc_split_<mode>"): Disable splitter for arch13.
14565 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
14566 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
14567 ("*<ANDOR:bitops_name>c<GPR:mode>")
14568 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
14569 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
14570 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
14571 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
14572
14573 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14574
14575 * common/config/s390/s390-common.c (processor_flags_table): New
14576 entry for arch13.
14577 * config.gcc: Support arch13 with the --with-arch= configure flag.
14578 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14579 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
14580 * config/s390/s390.c (s390_get_sched_attrmask)
14581 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
14582 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
14583 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
14584 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
14585 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
14586 definitions.
14587 * config/s390/s390.opt: Support arch13 as processor type in
14588 command line options.
14589
14590 2019-04-02 Martin Liska <mliska@suse.cz>
14591
14592 PR translation/89912
14593 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
14594 Fix param description of graphite-max-arrays-per-scop.
14595
14596 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
14597
14598 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
14599 (ASAN_CC1_SPEC): Use it in 64-bit mode.
14600 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
14601
14602 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14603
14604 PR rtl-optimization/85412
14605 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
14606 sel_sched_region_1, not after.
14607
14608 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14609
14610 PR rtl-optimization/86928
14611 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
14612 compute_live if necessary.
14613 (sel_redirect_edge_and_branch): Likewise.
14614
14615 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
14616
14617 PR rtl-optimization/89865
14618 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
14619 register if it is a part of small class.
14620
14621 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14622
14623 PR rtl-optimization/87273
14624 * sel-sched-ir.c (merge_fences): Remove assert.
14625
14626 2019-04-01 Richard Biener <rguenther@suse.de>
14627
14628 PR tree-optimization/46590
14629 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
14630 (dom_walker::m_reachability): Add in place of...
14631 (dom_walker::m_skip_unreachable_blocks): ...this.
14632 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
14633 Move complex initialization ...
14634 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
14635 lazily and initialize edge flags on each invocation.
14636 (dom_walker::bb_reachable): Use m_reachability.
14637
14638 2019-04-01 Martin Liska <mliska@suse.cz>
14639
14640 PR driver/89861
14641 * opt-suggestions.c (option_proposer::build_option_suggestions):
14642 Add variant without any argument in order to provide better
14643 hints.
14644
14645 2019-04-01 Richard Biener <rguenther@suse.de>
14646
14647 PR c/71598
14648 * gimple.c: Include langhooks.h.
14649 (gimple_get_alias_set): Treat enumeral types as the underlying
14650 integer type.
14651
14652 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14653 Eric Botcazou <ebotcazou@adacore.com>
14654
14655 PR rtl-optimization/89862
14656 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
14657 that operates on the full registers for WORD_REGISTER_OPERATIONS
14658 architectures.
14659
14660 2019-03-29 Jim Wilson <jimw@sifive.com>
14661
14662 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
14663 Clear MASK_RVC and then set if C subset supported.
14664
14665 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14666
14667 PR c/89872
14668 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
14669 non-addressable complit into its initializer if it is volatile.
14670
14671 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
14672
14673 * opts-common.c (integral_argument): Set errno properly in one case.
14674
14675 2019-03-29 Martin Liska <mliska@suse.cz>
14676
14677 * doc/invoke.texi: Remove -Wchkp from documentation.
14678
14679 2019-03-29 Martin Liska <mliska@suse.cz>
14680
14681 * dbgcnt.c (print_limit_reach): New function.
14682 (dbg_cnt): Use it.
14683
14684 2019-03-29 Martin Liska <mliska@suse.cz>
14685
14686 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
14687 (dbg_cnt_process_opt): Parse first tokens aas
14688 dbg_cnt_process_single_pair is also using strtok.
14689
14690 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14691
14692 PR rtl-optimization/87485
14693 * function.c (expand_function_end): Move stack_protect_epilogue
14694 before loading of return value into hard register(s).
14695
14696 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14697
14698 PR middle-end/89621
14699 * tree-inline.h (struct copy_body_data): Add
14700 dont_remap_vla_if_no_change flag.
14701 * tree-inline.c (remap_type_3, remap_type_2): New functions.
14702 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
14703 and remap_type_2 returns false.
14704 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
14705 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
14706 only from where it is copied to nested contexts.
14707
14708 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14709
14710 PR target/89865
14711 * config/i386/i386.md (RMW operation with LEA peephole):
14712 Use LEAMODE mode attribute instead of SWI mode iterator for
14713 LEA pattern.
14714
14715 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14716
14717 PR target/89848
14718 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
14719 Also process XEXP (src, 0) of a shift insn.
14720
14721 2019-03-28 David Malcolm <dmalcolm@redhat.com>
14722
14723 PR middle-end/89725
14724 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
14725 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
14726
14727 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14728
14729 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
14730 test.
14731 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
14732 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
14733 immediately after first one with df_analyze in between, but rather
14734 process all bbs, queueing ones that need second pass in a worklist,
14735 df_analyze, process queued debug insn changes and if second pass is
14736 needed, process bbs from worklist, df_analyze, process queued debug
14737 insns again.
14738
14739 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
14740 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
14741 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
14742
14743 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
14744
14745 PR c/79022
14746 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
14747 definition.
14748
14749 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
14750
14751 PR target/85667
14752 * config/i386/i386.c (ix86_function_value_1): Call the newly added
14753 function for 32-bit MS_ABI.
14754 (function_value_ms_32): New function.
14755
14756 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
14757
14758 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
14759 (movdi): Call gen_movdi_symbol_save_scc.
14760 (gen_movdi_symbol_save_scc): New insn and split.
14761
14762 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
14763
14764 PR rtl-optimization/89313
14765 * function.c (matching_constraint_num): New static function.
14766 (match_asm_constraints_1): Use it. Fixup white space and comment.
14767 Don't replace inputs with non-matching constraints which conflict
14768 with early clobber outputs.
14769
14770 2019-03-27 Jeff Law <law@redhat.com>
14771
14772 PR rtl-optimization/87761
14773 PR rtl-optimization/89826
14774 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
14775 slightly later.
14776 (pass_cprop_hardreg::execute): Call df_analyze after adding the
14777 note problem to get REG_DEAD/REG_UNUSED notes updated.
14778
14779 2019-03-27 Richard Biener <rguenther@suse.de>
14780
14781 PR tree-optimization/89463
14782 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
14783 queue edges to remove.
14784 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
14785 dead stmts. Delay edge removal until PHIs are removed to
14786 make debug-stmt creation not confused by seemingly degenerate
14787 PHIs.
14788
14789 2019-03-27 Alan Modra <amodra@gmail.com>
14790
14791 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
14792 throughout file.
14793 * config/rs6000/darwin.h: Likewise.
14794 * config/rs6000/rs6000.c: Likewise.
14795
14796 2019-03-27 Alan Modra <amodra@gmail.com>
14797
14798 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
14799 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
14800
14801 2019-03-26 Andrew Waterman <andrew@sifive.com>
14802 Jim Wilson <jimw@sifive.com>
14803
14804 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
14805 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
14806 (generic_idivdi, generic_fmul_single, generic_fmul_double)
14807 (generic_fdiv, generic_fsqrt): Add check for generic tune.
14808 (generic_alu): Add auipc to type list.
14809 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
14810 (riscv_microarchitecture): Declare.
14811 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
14812 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
14813 field.
14814 (riscv_microarchitecture): New.
14815 (sifive_7_tune_info): New.
14816 (riscv_cpu_info_table): Add microarchitecture value for rocket and
14817 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
14818 entries.
14819 (riscv_store_data_bypass_p): New.
14820 (riscv_option_override): Set riscv_microarchitecture from
14821 cpu->microarchitecture.
14822 * config/riscv/riscv.md: Include sifive-7.md.
14823 (type): Add auipc.
14824 (tune): New.
14825 (auipc<mode>): Change type to auipc.
14826 (restore_stack_nonlocal): New.
14827 * config/riscv/sifive-7.md: New.
14828 * doc/invoke.texi (RISC-V Options): Update mtune docs.
14829
14830 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
14831
14832 PR target/89827
14833 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
14834 Also process XEXP (src, 0) of a shift insn.
14835
14836 2019-03-26 Richard Biener <rguenther@suse.de>
14837
14838 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
14839 (copy_debug_stmt): Likewise.
14840 (expand_call_inline): Likewise.
14841 (copy_bb): Avoid redundant lookup & set of gimple_block.
14842 * gimple-low.c (lower_gimple_return): Likewise.
14843 (lower_builtin_setjmp): Likewise.
14844
14845 2019-03-26 Jakub Jelinek <jakub@redhat.com>
14846
14847 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
14848 is constant 0, turn into static const data member initialized to false.
14849 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
14850 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
14851
14852 2019-03-26 Jason Merrill <jason@redhat.com>
14853 Jakub Jelinek <jakub@redhat.com>
14854
14855 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
14856 method.
14857 (mem_alloc_description::release_object_overhead): Fix comment typos.
14858 * hash-table.h (hash_table::~hash_table): Call
14859 release_instance_overhead only if m_entries is non-NULL, otherwise
14860 call unregister_descriptor.
14861
14862 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
14863
14864 PR tree-optimization/81740
14865 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14866 In case of outer loop vectorization, check for backward dependence
14867 at the inner loop if outer loop dependence is reversed.
14868
14869 2019-03-26 Alan Modra <amodra@gmail.com>
14870
14871 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
14872 rs6000_vector_mem init. Correct wI and wJ comment.
14873
14874 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
14875
14876 PR rtl-optimization/88347
14877 PR rtl-optimization/88423
14878 * sched-deps.c (sched_analyze_insn): Take into account that for
14879 tablejumps the barrier appears after a label and a jump_table_data.
14880
14881 2019-03-25 Martin Sebor <msebor@redhat.com>
14882
14883 PR c/89812
14884 * c-common.c (check_user_alignment): Rename local. Correct maximum
14885 alignment in diagnostic. Avoid assuming argument fits in SHWI,
14886 convert it to UHWI when it fits.
14887
14888 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
14889
14890 PR debug/86964
14891 * dwarf2out.c (premark_used_variables): New function.
14892 (prune_unused_types_walk): Do not mark not premarked external
14893 variables.
14894 (prune_unused_types): Call premark_used_variables.
14895
14896 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
14897
14898 PR rtl-optimization/89676
14899 * lra-constraints.c (curr_insn_transform): Do match reload for
14900 early clobbers when the match was successful only for different
14901 registers.
14902
14903 2019-03-25 Martin Sebor <msebor@redhat.com>
14904
14905 * doc/extend.texi (Common Type Attributes): Document vector_size.
14906 (Common Variable Attributes): Mention size constraint. Correct
14907 quoting and typos.
14908 (Vector Extensions): Use @dfn when defining bas type. Clarify
14909 base type and size constraints.
14910
14911 2019-03-25 Richard Biener <rguenther@suse.de>
14912
14913 PR tree-optimization/89789
14914 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
14915 changes from non-undefined back to undefined.
14916
14917 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
14918
14919 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
14920 heap string and a gc string, but since this variable is unknown to
14921 ggc the gc string might get reused and corrupted. Fixed by always
14922 using a heap string.
14923
14924 2019-03-25 Richard Biener <rguenther@suse.de>
14925
14926 PR tree-optimization/89779
14927 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
14928 to remove IV defs, delay actual removal.
14929 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
14930 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
14931 very end, properly also reset loop control IV information.
14932
14933 2019-03-25 Richard Biener <rguenther@suse.de>
14934
14935 PR tree-optimization/89802
14936 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
14937 move EH data to folded stmt.
14938
14939 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14940
14941 * config/s390/s390-builtin-types.def: Remove few unused types and
14942 fix sort order for others.
14943
14944 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14945
14946 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
14947 expected and found types with -mdebug during builtin matching.
14948
14949 2019-03-25 Richard Biener <rguenther@suse.de>
14950
14951 PR middle-end/89790
14952 * fold-const.c (operand_equal_p): Revert last change with
14953 updated comment.
14954
14955 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
14956
14957 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
14958 notes for the result of the __tls_get_addr calls.
14959 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
14960
14961 2019-03-24 Jeff Law <law@redhat.com>
14962
14963 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
14964
14965 PR rtl-optimization/87761
14966 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
14967 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
14968 as needed.
14969 (pass_cprop_hardreg::execute): Add df note problem and defer insn
14970 rescans. Reprocess blocks as needed, calling df_analyze before
14971 reprocessing. Always call df_analyze before fixing up debug bind
14972 insns.
14973
14974 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
14975
14976 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
14977 big endian.
14978
14979 2019-03-22 Andrew Pinski <apinski@marvell.com>
14980
14981 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
14982 attrribute for uxtw.
14983
14984 2019-03-26 Jeff Law <law@redhat.com>
14985
14986 PR rtl-optimization/87761
14987 * config/mips/mips-protos.h (mips_split_move): Add new argument.
14988 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
14989 (mips_split_move): Accept new INSN argument. Try to forward SRC
14990 into the next instruction.
14991 (mips_split_move_insn): Pass INSN through to mips_split_move.
14992
14993 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
14994
14995 PR rtl-optimization/89676
14996 * lra-constraints.c (curr_insn_transform): Do match reload for
14997 early clobbers even if the match was successful.
14998
14999 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15000
15001 PR c++/87481
15002 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
15003
15004 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
15005
15006 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
15007
15008 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15009
15010 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
15011 <avx512>_fmsub_<mode>_mask3<round_name>,
15012 <avx512>_fnmadd_<mode>_mask3<round_name>,
15013 <avx512>_fnmsub_<mode>_mask3<round_name>,
15014 avx512f_vmfmadd_<mode>_mask3<round_name>,
15015 avx512f_vmfmsub_<mode>_mask3<round_name>,
15016 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
15017 instead of register_operand and %v instead of v for match_operand 1.
15018 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
15019 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
15020 <round_nimm_predicate> instead of register_operand and %v instead of v
15021 for match_operand 1.
15022
15023 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
15024 <avx512>_fmadd_<mode>_mask3<round_name>,
15025 <avx512>_fmsub_<mode>_mask<round_name>,
15026 <avx512>_fmsub_<mode>_mask3<round_name>,
15027 <avx512>_fnmadd_<mode>_mask<round_name>,
15028 <avx512>_fnmadd_<mode>_mask3<round_name>,
15029 <avx512>_fnmsub_<mode>_mask<round_name>,
15030 <avx512>_fnmsub_<mode>_mask3<round_name>,
15031 <avx512>_fmaddsub_<mode>_mask<round_name>,
15032 <avx512>_fmaddsub_<mode>_mask3<round_name>,
15033 <avx512>_fmsubadd_<mode>_mask<round_name>,
15034 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
15035 <round_nimm_predicate> instead of nonimmediate_operand.
15036 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
15037 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15038 Use register_operand instead of <round_nimm_predicate> for the
15039 operand that needs to match output.
15040 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15041 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15042 Likewise. Formatting fixes.
15043
15044 PR target/89784
15045 * config/i386/i386.c (enum ix86_builtins): Remove
15046 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15047 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15048 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15049 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15050 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15051 __builtin_ia32_vfmsubss3_mask3): New builtins.
15052 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15053 avx512f_vmfmadd_<mode>_mask3<round_name>,
15054 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15055 *avx512f_vmfmsub_<mode>_mask<round_name>,
15056 avx512f_vmfmsub_<mode>_mask3<round_name>,
15057 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15058 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15059 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15060 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15061 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15062 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15063 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15064 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15065 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15066 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15067 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15068 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15069 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15070 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15071 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15072 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15073 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15074 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15075 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15076 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15077 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15078 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15079 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15080 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15081 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15082 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15083 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15084 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15085
15086 2019-03-21 Martin Sebor <msebor@redhat.com>
15087
15088 PR tree-optimization/89350
15089 * builtins.c (compute_objsize): Also ignore offsets whose upper
15090 bound is negative.
15091 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15092 (builtin_memref::builtin_memref): Initialize new member.
15093 Allow EXPR to be null.
15094 (builtin_memref::extend_offset_range): Replace local with a member.
15095 Avoid assuming pointer offsets are unsigned.
15096 (builtin_memref::set_base_and_offset): Determine base object
15097 before computing offset range.
15098 (builtin_access::builtin_access): Handle memset.
15099 (builtin_access::generic_overlap): Replace local with a member.
15100 (builtin_access::strcat_overlap): Same.
15101 (builtin_access::overlap): Same.
15102 (maybe_diag_overlap): Same.
15103 (maybe_diag_access_bounds): Same.
15104 (wrestrict_dom_walker::check_call): Handle memset.
15105 (check_bounds_or_overlap): Same.
15106
15107 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15108 Jakub Jelinek <jakub@redhat.com>
15109
15110 PR lto/89692
15111 * tree.c (fld_type_variant, fld_incomplete_type_of,
15112 fld_process_array_type): Call fld->pset.add and don't call
15113 add_tree_to_fld_list if it returns true.
15114 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15115 non-marked types from TYPE_NEXT_VARIANT list.
15116 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15117
15118 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15119
15120 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15121 to false, if true, don't alloc_entries during construction, but defer
15122 it to the first method that needs m_entries allocated.
15123 (hash_table::hash_table, hash_table::~hash_table,
15124 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15125 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15126 hash_table::clear_slot, hash_table::traverse_noresize,
15127 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15128 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15129 false.
15130 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15131 NO_INSERT instead of find_with_hash.
15132 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15133 hash_set::m_table): Add Lazy to template params of hash_table.
15134 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15135 * attribs.c (test_attribute_exclusions): Likewise.
15136 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15137 hash_set. Add tests for hash_set with Lazy = true.
15138
15139 2019-03-21 Richard Biener <rguenther@suse.de>
15140
15141 PR tree-optimization/89779
15142 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15143 checks with respect to released SSA names now having error_mark_node
15144 type.
15145 * fold-const.c (operand_equal_p): Likewise.
15146
15147 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15148
15149 PR target/89775
15150 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15151 available to ...
15152 (s390_optimize_register_info): Use global_not_special_regno_p to
15153 check for global regs.
15154
15155 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15156
15157 PR target/89752
15158 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15159 update this_alternative nor this_alternative_set.
15160
15161 2019-03-19 Jim Wilson <jimw@sifive.com>
15162
15163 PR target/89411
15164 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15165 align, size, offset. Use them to handle a BLKmode reference. Update
15166 comment.
15167 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15168
15169 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15170
15171 PR rtl-optimization/89768
15172 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15173 instead of GEN_INT.
15174 (unroll_loop_runtime_iterations): Likewise.
15175
15176 2019-03-19 Martin Sebor <msebor@redhat.com>
15177
15178 PR tree-optimization/89644
15179 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15180 rather than endptr as an indicator of nul-termination.
15181
15182 PR tree-optimization/89644
15183 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15184 arrays in determining sequence sizes in strncpy and stpncpy.
15185
15186 2019-03-19 Martin Liska <mliska@suse.cz>
15187
15188 PR middle-end/89737
15189 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15190 unlikely_edges if there's an edge that belongs to both these sets.
15191
15192 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15193
15194 PR target/89746
15195 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15196 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15197 go via a stack temporary.
15198
15199 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15200
15201 PR target/89378
15202 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15203 instead of gen_rtx_SUBREG.
15204 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15205
15206 2019-03-19 Richard Biener <rguenther@suse.de>
15207
15208 PR debug/88389
15209 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15210
15211 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15212
15213 PR lto/87809
15214 PR lto/89335
15215 * tree.c (free_lang_data_in_decl): Do not free context of C++
15216 destrutors.
15217
15218 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15219
15220 PR target/89506
15221 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15222 subs for the first alternative except when operands[3] is 1.
15223
15224 PR target/89752
15225 * gimplify.c (gimplify_asm_expr): For output argument with
15226 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15227 diagnose error.
15228
15229 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15230
15231 PR rtl-optimization/89753
15232 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15233 explicit unrolling factor even more robust.
15234
15235 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15236
15237 PR target/89726
15238 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15239 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15240 signed zeros, do another copysign after the compensation.
15241
15242 2019-03-18 Martin Sebor <msebor@redhat.com>
15243
15244 PR tree-optimization/89720
15245 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15246 more conservatively, the same as anti-range.
15247
15248 2019-03-18 Richard Biener <rguenther@suse.de>
15249
15250 PR middle-end/88945
15251 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15252 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15253 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15254 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15255
15256 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15257
15258 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15259 Extend queue to 1024 entries.
15260 Add "consumed" field.
15261 (gomp_print_output): Remove print_index parameter.
15262 Add final parameter.
15263 Change limit to unsigned.
15264 Use consumed field to implement circular buffer.
15265 Detect interrupted print in final pass.
15266 Flush output at the end.
15267 (run): Update gomp_print_output usage.
15268 (main): Initialize kernargs->output_data.consumed.
15269
15270 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15271
15272 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15273 calculation of the minimum number of scalar iterations for
15274 fully-predicated loops.
15275
15276 2019-03-18 Martin Jambor <mjambor@suse.cz>
15277
15278 PR tree-optimization/89546
15279 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15280 any propagation to its children took place.
15281
15282 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15283
15284 PR target/89627
15285 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15286 parameter, and make use of it.
15287 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15288
15289 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15290
15291 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15292 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15293 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15294 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15295 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15296 match what the ops is doing.
15297 (push_multi_fp_blink): Likewise.
15298 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15299 compiling for size and elf target.
15300 (arc_save_callee_enter): Adjust note to match what enter/leave
15301 operation does.
15302
15303 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15304
15305 * config/arc/arc.md (tst_movb): Fix constraint.
15306
15307 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15308
15309 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15310
15311 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15312
15313 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15314 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15315 reg_alloc_order references.
15316 (size_alloc_order): Define.
15317 (arc_adjust_reg_alloc_order): New function.
15318 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15319 order.
15320 (ADJUST_REG_ALLOC_ORDER): Define.
15321 (HONOR_REG_ALLOC_ORDER): Likewise.
15322
15323 2019-03-18 Richard Biener <rguenther@suse.de>
15324
15325 PR target/87561
15326 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15327 loads and stores a bit more.
15328
15329 2019-03-18 Richard Biener <rguenther@suse.de>
15330
15331 PR target/87561
15332 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15333 load pessimization to stores as well.
15334
15335 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15336
15337 PR middle-end/86979
15338 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15339 successor, use NULL as its av set.
15340
15341 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15342
15343 PR rtl-optimization/89721
15344 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15345
15346 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15347
15348 PR target/87532
15349 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15350 When handling vec_extract, use modular arithmetic to allow
15351 constant selectors greater than vector length.
15352 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15353 V1TImode vectors to have constant selector values greater than 0.
15354 Use modular arithmetic to compute vector index.
15355 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15356 index for in-memory vectors. Correct code generation for
15357 in-register vectors.
15358 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15359 compute index.
15360
15361 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
15362
15363 PR c++/88534
15364 PR c++/88537
15365 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
15366 VAR_DECL args.
15367
15368 2019-03-15 Jakub Jelinek <jakub@redhat.com>
15369
15370 PR c++/89709
15371 * tree.c (inchash::add_expr): Strip any location wrappers.
15372 * fold-const.c (operand_equal_p): Move stripping of location wrapper
15373 after hash verification.
15374
15375 PR debug/89704
15376 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
15377 SIGN_EXTEND and ZERO_EXTEND.
15378
15379 2019-03-14 Jason Merrill <jason@redhat.com>
15380 Jakub Jelinek <jakub@redhat.com>
15381
15382 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
15383 than if is_empty (*slot).
15384 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
15385 existing elt and for elt removal.
15386 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
15387 of already removed elt.
15388
15389 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
15390
15391 PR target/89650
15392 * config/i386/i386.c (remove_partial_avx_dependency): Handle
15393 REG_EH_REGION note.
15394
15395 2019-03-14 Martin Liska <mliska@suse.cz>
15396
15397 PR other/89712
15398 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
15399
15400 2019-03-14 Richard Biener <rguenther@suse.de>
15401
15402 PR target/89711
15403 * config/i386/i386.c (make_resolver_func): Properly set
15404 DECL_CONTEXT on the RESULT_DECL.
15405 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
15406
15407 2019-03-14 Richard Biener <rguenther@suse.de>
15408
15409 * gimple-pretty-print.c: Include cfgloop.h.
15410 (dump_gimple_phi): Adjust.
15411 (dump_gimple_bb_header): Dump loop header for GIMPLE.
15412 (pp_cfg_jump): Adjust.
15413 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
15414 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
15415 (lower_phi_internal_fn): Remove.
15416 (verify_gimple_call): Remove IFN_PHI special-casing.
15417 (dump_function_to_file): Dump IL state.
15418 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
15419 done to deal with PHI nodes being present in non-SSA state.
15420
15421 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15422
15423 PR ipa/89684
15424 * multiple_target.c (create_dispatcher_calls): Change
15425 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
15426 In the node->iterate_referring loop, push *ref rather than ref, call
15427 ref->remove_reference () and always pass 0 to iterate_referring.
15428
15429 PR rtl-optimization/89679
15430 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
15431 would contain a paradoxical SUBREG.
15432
15433 2019-03-14 Richard Biener <rguenther@suse.de>
15434
15435 PR tree-optimization/89710
15436 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
15437 safe_dyn_cast.
15438
15439 2019-03-14 Martin Liska <mliska@suse.cz>
15440
15441 * coverage.c (coverage_begin_function): Stream also
15442 end_column.
15443 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
15444 documentation about function declaration location.
15445 * gcov-dump.c (tag_function): Print whole range
15446 of function declaration.
15447 * gcov.c (struct function_info): Add end_column field.
15448 (function_info::function_info): Initialize it.
15449 (output_json_intermediate_file): Output {start,end}_column
15450 fields.
15451 (read_graph_file): Read end_column.
15452
15453 2019-03-14 Richard Biener <rguenther@suse.de>
15454
15455 PR middle-end/89698
15456 * fold-const.c (operand_equal_p): For INDIRECT_REF check
15457 that the access types are similar.
15458
15459 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15460
15461 PR tree-optimization/89703
15462 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
15463 aren't compatible also with builtin_decl_explicit. Check pure
15464 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
15465 and BUILT_IN_STPNCPY{,_CHK}.
15466
15467 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
15468
15469 PR target/89523
15470 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
15471 addr32 prefix to VSIB address for X32.
15472 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
15473 "%M2" to opcode.
15474 (*avx512pf_gatherpf<mode>df_mask): Likewise.
15475 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
15476 (*avx512pf_scatterpf<mode>df_mask): Likewise.
15477 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
15478 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
15479 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
15480 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
15481 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
15482 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
15483 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
15484 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
15485 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
15486 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
15487 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
15488 (*avx512f_scatterdi<mode>): Likewise.
15489
15490 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
15491
15492 PR target/85860
15493 * lra-constraints.c (inherit_in_ebb): Update
15494 potential_reload_hard_regs along with live_hard_regs.
15495
15496 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15497
15498 PR debug/89498
15499 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
15500 DWARF_OFFSET_SIZE.
15501 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
15502
15503 2019-03-13 Martin Sebor <msebor@redhat.com>
15504
15505 PR tree-optimization/89662
15506 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
15507 has a size.
15508
15509 2019-03-13 Richard Biener <rguenther@suse.de>
15510
15511 PR middle-end/89677
15512 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
15513 throw FP expressions at tree-affine.
15514
15515 2019-03-14 Richard Biener <rguenther@suse.de>
15516
15517 * tree-pretty-print.c (dump_generic_node): For -gimple properly
15518 dump negative integer constants using _Literal (type) -num.
15519
15520 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15521
15522 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
15523 nonlocal_value member.
15524
15525 PR middle-end/88588
15526 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
15527 (ipa_simd_modify_function_body): Handle PHIs.
15528
15529 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15530
15531 * config/s390/s390.c (s390_option_override_internal): Use more
15532 aggressive inlining parameters.
15533
15534 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15535
15536 * config/s390/3906.md: New file.
15537 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15538 (LONGRUNNING_THRESHOLD): Remove.
15539 (MAX_SCHED_MIX_SCORE): Decrease.
15540 (MAX_SCHED_MIX_DISTANCE): Decrease.
15541 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
15542 (struct s390_sched_state): New struct to hold scheduling state.
15543 (S390_SCHED_STATE_NORMAL): Remove.
15544 (S390_SCHED_STATE_CRACKED): Remove.
15545 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
15546 (s390_get_sched_attrmask): Use new attribute.
15547 (s390_get_unit_mask): Use new units.
15548 (s390_is_fpd): New function.
15549 (s390_is_fxd): New function.
15550 (s390_is_longrunning): New function.
15551 (s390_sched_score): Use new functions.
15552 (s390_sched_reorder): Likewise.
15553 (s390_sched_variable_issue): Rework and use new functions.
15554 (s390_sched_init): Use new functions.
15555 * config/s390/s390.h (s390_tune_attr): Add z14.
15556 * config/s390/s390.md: Add z14.
15557
15558 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15559
15560 * config/s390/2964.md: Update pipeline description.
15561 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15562 (LONGRUNNING_THRESHOLD): Remove.
15563 (LATENCY_FACTOR): Remove.
15564 (s390_get_unit_mask): Add unit.
15565 (s390_sched_score): Use fxd/fpd.
15566 (s390_sched_variable_issue): Use fxd/fpd.
15567
15568 2019-03-12 Martin Liska <mliska@suse.cz>
15569
15570 * config/i386/i386.c: Reword an error message.
15571
15572 2019-03-12 Martin Jambor <mjambor@suse.cz>
15573
15574 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
15575 terminate with newline.
15576
15577 2019-03-12 Jakub Jelinek <jakub@redhat.com>
15578
15579 PR target/52726
15580 * config/s390/s390.md (tabort): Use %wd instead of
15581 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
15582 letters and periods.
15583 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
15584 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
15585 's with %< and %>.
15586
15587 PR middle-end/89663
15588 * builtins.c (expand_builtin_int_roundingfn,
15589 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
15590 gcc_unreachable if validate_arglist fails.
15591
15592 2019-03-12 Richard Biener <rguenther@suse.de>
15593
15594 PR tree-optimization/89664
15595 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
15596 free the occurance tree after the early out.
15597
15598 2019-03-11 Jakub Jelinek <jakub@redhat.com>
15599
15600 PR middle-end/89655
15601 PR bootstrap/89656
15602 * vr-values.c (vr_values::update_value_range): If
15603 old_vr->varying_p (), don't update it, make new_vr also VARYING
15604 and return false.
15605
15606 2019-03-11 Martin Liska <mliska@suse.cz>
15607
15608 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15609 Fix double string quoting.
15610
15611 2019-03-11 Martin Liska <mliska@suse.cz>
15612
15613 * collect-utils.c (collect_wait): Wrap apostrophes
15614 in gcc internal format with %'.
15615 * collect2.c (main): Likewise.
15616 (scan_prog_file): Likewise.
15617 (scan_libraries): Likewise.
15618 * config/i386/i386.c (ix86_expand_call): Likewise.
15619 (ix86_handle_interrupt_attribute): Likewise.
15620 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15621 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
15622 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
15623 * lto-wrapper.c (find_crtoffloadtable): Likewise.
15624 * symtab.c (symtab_node::verify_base): Likewise.
15625 * tree-cfg.c (verify_gimple_label): Likewise.
15626 * tree.c (verify_type_variant): Likewise.
15627
15628 2019-03-11 Martin Liska <mliska@suse.cz>
15629
15630 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
15631 in a string format message and fix GNU coding style.
15632 (expand_builtin_set_thread_pointer): Likewise.
15633 * common/config/aarch64/aarch64-common.c
15634 (aarch64_rewrite_selected_cpu): Likewise.
15635 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
15636 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
15637 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
15638 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
15639 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
15640 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
15641 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
15642 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
15643 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
15644 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
15645 Likewise.
15646 * common/config/riscv/riscv-common.c
15647 (riscv_subset_list::parsing_subset_version): Likewise.
15648 (riscv_subset_list::parse_std_ext): Likewise.
15649 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
15650 (riscv_subset_list::parse): Likewise.
15651 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
15652 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
15653 (aarch64_override_options_internal): Likewise.
15654 (aarch64_validate_mcpu): Likewise.
15655 (aarch64_validate_march): Likewise.
15656 (aarch64_validate_mtune): Likewise.
15657 (aarch64_override_options): Likewise.
15658 * config/alpha/alpha.c (alpha_option_override): Likewise.
15659 * config/arc/arc.c (arc_init): Likewise.
15660 (parse_mrgf_banked_regs_option): Likewise.
15661 (arc_override_options): Likewise.
15662 (arc_expand_builtin_aligned): Likewise.
15663 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
15664 (arm_expand_builtin): Likewise.
15665 * config/arm/arm.c (arm_option_check_internal): Likewise.
15666 (arm_configure_build_target): Likewise.
15667 (arm_option_override): Likewise.
15668 (arm_options_perform_arch_sanity_checks): Likewise.
15669 (arm_handle_cmse_nonsecure_entry): Likewise.
15670 (arm_handle_cmse_nonsecure_call): Likewise.
15671 (arm_tls_referenced_p): Likewise.
15672 (thumb1_expand_prologue): Likewise.
15673 * config/avr/avr.c (avr_option_override): Likewise.
15674 * config/bfin/bfin.c (bfin_option_override): Likewise.
15675 * config/c6x/c6x.c (c6x_option_override): Likewise.
15676 * config/cr16/cr16.c (cr16_override_options): Likewise.
15677 * config/cris/cris.c (cris_option_override): Likewise.
15678 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
15679 * config/darwin-c.c (macosx_version_as_macro): Likewise.
15680 * config/darwin.c (darwin_override_options): Likewise.
15681 * config/frv/frv.c (frv_expand_builtin): Likewise.
15682 * config/h8300/h8300.c (h8300_option_override): Likewise.
15683 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
15684 (ix86_option_override_internal): Likewise.
15685 (warn_once_call_ms2sysv_xlogues): Likewise.
15686 (ix86_expand_prologue): Likewise.
15687 (split_stack_prologue_scratch_regno): Likewise.
15688 (ix86_warn_parameter_passing_abi): Likewise.
15689 * config/ia64/ia64.c (fix_range): Likewise.
15690 * config/m68k/m68k.c (m68k_option_override): Likewise.
15691 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
15692 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
15693 (mips_set_compression_mode): Likewise.
15694 * config/mmix/mmix.c (mmix_option_override): Likewise.
15695 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
15696 * config/msp430/msp430.c (msp430_option_override): Likewise.
15697 * config/nds32/nds32.c (nds32_option_override): Likewise.
15698 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
15699 (nios2_option_override): Likewise.
15700 (nios2_expand_custom_builtin): Likewise.
15701 * config/nvptx/mkoffload.c (main): Likewise.
15702 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
15703 * config/pa/pa.c (fix_range): Likewise.
15704 (pa_option_override): Likewise.
15705 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
15706 (riscv_option_override): Likewise.
15707 * config/rl78/rl78.c (rl78_option_override): Likewise.
15708 * config/rs6000/aix61.h: Likewise.
15709 * config/rs6000/aix71.h: Likewise.
15710 * config/rs6000/aix72.h: Likewise.
15711 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
15712 * config/rs6000/freebsd64.h: Likewise.
15713 * config/rs6000/linux64.h: Likewise.
15714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
15715 (rs6000_expand_zeroop_builtin): Likewise.
15716 (rs6000_expand_mtfsb_builtin): Likewise.
15717 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
15718 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
15719 (rs6000_invalid_builtin): Likewise.
15720 (rs6000_expand_split_stack_prologue): Likewise.
15721 * config/rs6000/rtems.h: Likewise.
15722 * config/rx/rx.c (valid_psw_flag): Likewise.
15723 (rx_expand_builtin): Likewise.
15724 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15725 * config/s390/s390.c (s390_expand_builtin): Likewise.
15726 (s390_function_profiler): Likewise.
15727 (s390_option_override_internal): Likewise.
15728 (s390_option_override): Likewise.
15729 * config/sh/sh.c (sh_option_override): Likewise.
15730 (sh_builtin_saveregs): Likewise.
15731 (sh_fix_range): Likewise.
15732 * config/sh/vxworks.h: Likewise.
15733 * config/sparc/sparc.c (sparc_option_override): Likewise.
15734 * config/spu/spu.c (spu_option_override): Likewise.
15735 (fix_range): Likewise.
15736 * config/visium/visium.c (visium_option_override): Likewise.
15737 (visium_handle_interrupt_attr): Likewise.
15738 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
15739 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
15740 (dbg_cnt_process_opt): Likewise.
15741 * dwarf2out.c (output_dwarf_version): Likewise.
15742 * except.c (expand_eh_return): Likewise.
15743 * gcc.c (defined): Likewise.
15744 (driver_handle_option): Likewise.
15745 (process_command): Likewise.
15746 (compare_files): Likewise.
15747 (driver::prepare_infiles): Likewise.
15748 (driver::do_spec_on_infiles): Likewise.
15749 (driver::maybe_run_linker): Likewise.
15750 * omp-offload.c (oacc_parse_default_dims): Likewise.
15751 * opts-global.c (handle_common_deferred_options): Likewise.
15752 * opts.c (parse_sanitizer_options): Likewise.
15753 (common_handle_option): Likewise.
15754 (enable_warning_as_error): Likewise.
15755 * passes.c (enable_disable_pass): Likewise.
15756 * plugin.c (parse_plugin_arg_opt): Likewise.
15757 (default_plugin_dir_name): Likewise.
15758 * targhooks.c (default_expand_builtin_saveregs): Likewise.
15759 (default_pch_valid_p): Likewise.
15760 * toplev.c (init_asm_output): Likewise.
15761 (process_options): Likewise.
15762 (toplev::run_self_tests): Likewise.
15763 * tree-cfg.c (verify_gimple_call): Likewise.
15764 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
15765 (tree_inlinable_function_p): Likewise.
15766 * var-tracking.c (vt_find_locations): Likewise.
15767
15768 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
15769
15770 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
15771 only on the else branch.
15772
15773 2019-03-11 Martin Liska <mliska@suse.cz>
15774
15775 * gcov.c (output_intermediate_json_line): Print function
15776 name of each line.
15777 (output_json_intermediate_file): Add new argument.
15778 * doc/gcov.texi: Document the change.
15779
15780 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
15781
15782 PR rtl-optimization/89588
15783 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15784 explicit unrolling factor more robust.
15785
15786 2019-03-11 Richard Biener <rguenther@suse.de>
15787
15788 PR tree-optimization/89649
15789 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
15790 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
15791 on the prolog and epilog loops.
15792 (vect_loop_versioning): Return copy of loop.
15793 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
15794 on the non-vectorized version of the loop.
15795
15796 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
15797
15798 PR target/68924
15799 * config/i386/sse.md (*vec_extractv2di_0_sse):
15800 Add (=r,x) alternative and corresponding splitter.
15801
15802 2019-03-10 Martin Jambor <mjambor@suse.cz>
15803
15804 PR tree-optimization/85762
15805 PR tree-optimization/87008
15806 PR tree-optimization/85459
15807 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
15808 it points to if there is a type changing MEM_REF. Adjust all callers.
15809 (build_accesses_from_assign): Disable total scalarization if
15810 contains_vce_or_bfcref_p returns true through the new parameter, for
15811 both rhs and lhs.
15812
15813 2019-03-09 Jakub Jelinek <jakub@redhat.com>
15814
15815 PR c/88568
15816 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
15817 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
15818
15819 PR target/79645
15820 * common.opt (fdiagnostics-show-labels,
15821 fdiagnostics-show-line-numbers, fdiagnostics-format=,
15822 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
15823 gas-locview-support, ginline-points, ginternal-reset-location-views):
15824 Terminate description text with a dot.
15825 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
15826 * config/mcore/mcore.opt (m210, m340): Likewise.
15827 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
15828 mnops=): Start description text with a capital letter.
15829 * config/arc/arc.opt (msize-level=): Likewise.
15830 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
15831 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
15832 mnewlib): Likewise.
15833 * config/ft32/ft32.opt (msim): Likewise.
15834 (mft32b, mcompress): Likewise. Terminate description text with a dot.
15835 (mnodiv, mnopm): Terminate description text with a dot.
15836 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
15837 a colon.
15838 * config/i386/i386.opt (prefer_vector_width, instrument_return):
15839 Likewise.
15840 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
15841 text.
15842
15843 PR rtl-optimization/89634
15844 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
15845 are modified in BB_END (e->src) instruction.
15846
15847 2019-03-08 David Malcolm <dmalcolm@redhat.com>
15848
15849 PR target/79926
15850 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
15851 messages more amenable to translation, and improve wording.
15852
15853 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
15854
15855 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
15856 ud- and du-chains between phases.
15857
15858 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
15859
15860 PR debug/89631
15861 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
15862 instead of POLY_INT_CST.
15863
15864 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
15865
15866 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
15867 requirement.
15868
15869 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
15870
15871 PR target/68924
15872 PR target/78782
15873 PR target/87558
15874 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
15875 (_mm_storeu_si64): Ditto.
15876
15877 2019-03-08 Martin Liska <mliska@suse.cz>
15878
15879 PR target/86952
15880 * config/i386/i386.c (ix86_option_override_internal): Disable
15881 jump tables when retpolines are used.
15882
15883 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
15884
15885 PR go/63560
15886 * ipa-split.c (execute_split_functions): Do not split
15887 'noinline' or 'section' function.
15888
15889 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15890
15891 PR target/79846
15892 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
15893 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
15894 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
15895
15896 PR ipa/80000
15897 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15898 from diagnostics. Formatting fixes.
15899
15900 PR target/85665
15901 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
15902 warn_odr diagnostics.
15903
15904 PR other/80058
15905 * lra-constraints.c (process_alt_operands): Avoid one space before
15906 " at the end of line and another after " on another line in a string
15907 literal.
15908 * attribs.c (handle_dll_attribute): Likewise.
15909 * config/avr/avr-devices.c (avr_texinfo): Likewise.
15910
15911 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
15912 warning_at or inform messages in G_() if there is no ?:.
15913
15914 PR tree-optimization/89550
15915 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
15916 returned true. Formatting fixes.
15917 (expand_builtin_strnlen): Formatting fixes.
15918 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
15919 if warning_at returned true.
15920 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
15921
15922 2019-03-08 Richard Biener <rguenther@suse.de>
15923
15924 PR middle-end/89578
15925 * cfgloop.h (struct loop): Add owned_clique field.
15926 * cfgloopmanip.c (copy_loop_info): Copy it.
15927 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
15928 cliques.
15929 * tree-inline.c (copy_loops): Remap owned_clique.
15930 * lto-streamer-in.c (input_cfg): Stream owned_clique.
15931 * lto-streamer-out.c (output_cfg): Likewise.
15932
15933 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15934
15935 PR target/80190
15936 * config/darwin.c: Include intl.h.
15937 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
15938 composing the message out of two separate parts.
15939
15940 2019-03-07 Jakub Jelinek <jakub@redhat.com>
15941
15942 PR target/80003
15943 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
15944 doesn't start with a capital letter and doesn't end with a dot.
15945 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
15946 with a capital letter.
15947 (ix86_mangle_function_version_assembler_name): Likewise.
15948 (ix86_generate_version_dispatcher_body): Likewise.
15949 (fold_builtin_cpu): Likewise.
15950 (get_builtin_code_for_version): Likewise. Remove extraneous space.
15951 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
15952 translators, wrap full type name in %qs.
15953
15954 PR translation/79999
15955 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
15956 depend clause with source (or sink) modifier.
15957 * omp-expand.c (expand_omp_ordered_sink): Likewise.
15958
15959 PR target/89602
15960 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
15961 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
15962 (avx512f_load<mode>_mask): New define_expand.
15963 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
15964 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
15965 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
15966 __builtin_ia32_movess_mask): New builtins.
15967 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
15968 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
15969 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
15970 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
15971
15972 2019-03-07 Martin Jambor <mjambor@suse.cz>
15973
15974 PR lto/87525
15975 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
15976 for extern inline functions.
15977
15978 2019-03-07 Martin Jambor <mjambor@suse.cz>
15979
15980 PR ipa/88235
15981 * cgraph.h (cgraph_node): New inline method former_thunk_p.
15982 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
15983 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
15984 have multiple callees. At the end check if declarations match as
15985 opposed to cgraph_nodes.
15986
15987 2019-03-07 Martin Liska <mliska@suse.cz>
15988
15989 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
15990 which is equivalent to searching for this in clones chain.
15991 * symtab.c (symtab_node::verify_base): Similarly compare ASM
15992 names with a neighbour and special case first node in a chain.
15993
15994 2019-01-25 Jason Merrill <jason@redhat.com>
15995
15996 PR c++/80916 - spurious "static but not defined" warning.
15997 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
15998 for an internal symbol with DECL_EXTERNAL.
15999
16000 2019-04-07 Richard Biener <rguenther@suse.de>
16001
16002 PR middle-end/89618
16003 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
16004 * tree-inline.c (copy_loops): Simplify.
16005
16006 2019-03-07 Martin Liska <mliska@suse.cz>
16007
16008 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
16009
16010 2019-03-07 Richard Biener <rguenther@suse.de>
16011
16012 PR tree-optimization/89595
16013 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
16014 stmt iterator as reference, take boolean output parameter to
16015 indicate whether the stmt was removed and thus the iterator
16016 already advanced.
16017 (dom_opt_dom_walker::before_dom_children): Re-iterate over
16018 stmts created by folding.
16019
16020 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16021
16022 PR c++/89585
16023 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
16024 at toplevel.
16025
16026 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
16027
16028 PR rtl-optimization/88845
16029 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
16030 LRA.
16031 * lra.c (remove_scratches_1): New function.
16032 (remove_scratches): Use it.
16033 (lra_emit_move): Likewise.
16034
16035 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
16036
16037 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16038 unaligned_access variable.
16039 * config/arc/arc.c (arc_override_options): Set unaligned access
16040 default on for HS CPUs.
16041 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16042
16043 2019-03-06 Martin Liska <mliska@suse.cz>
16044
16045 PR gcov-profile/89577
16046 * doc/gcov.texi: Prefer to use --coverage.
16047 * doc/sourcebuild.texi: Likewise.
16048
16049 2019-03-02 Jason Merrill <jason@redhat.com>
16050
16051 PR c++/86485 - -Wmaybe-unused with empty class ?:
16052 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16053
16054 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16055
16056 PR target/89587
16057 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16058 if_multiarch.
16059
16060 PR middle-end/89590
16061 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16062 exactly one argument.
16063
16064 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16065 Richard Sandiford <richard.sandiford@arm.com>
16066
16067 PR tree-optimization/89570
16068 * match.pd (vec_cond into cond_op simplification): Don't use
16069 get_conditional_internal_fn, use as_internal_fn (cond_op).
16070
16071 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16072
16073 PR target/89222
16074 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16075 to decide when to split off a non-zero offset from a symbol.
16076 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16077 in function symbols.
16078
16079 2019-03-05 Richard Biener <rguenther@suse.de>
16080
16081 PR tree-optimization/89594
16082 * tree-if-conv.c (pass_if_conversion::execute): Handle
16083 case where .LOOP_VECTORIZED_FUNCTION was removed.
16084
16085 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16086
16087 PR bootstrap/89560
16088 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16089 instead alloca it only when needed with the needed size.
16090
16091 PR tree-optimization/89570
16092 * match.pd (vec_cond into cond_op simplification): Guard with
16093 vectorized_internal_fn_supported_p test and #if GIMPLE.
16094
16095 PR tree-optimization/89566
16096 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16097 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16098 Punt if get_user_idx_format succeeds, but idx_format argument is
16099 not provided or doesn't have pointer type, or if idx_args is above
16100 number of provided arguments.
16101
16102 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16103
16104 PR tree-optimization/89437
16105 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16106
16107 2019-03-04 Richard Biener <rguenther@suse.de>
16108
16109 PR middle-end/89572
16110 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16111 safe_dyn_cast.
16112
16113 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16114
16115 PR tree-optimization/89487
16116 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16117 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16118 (distribute_loop): Don't do runtime alias check if there is non-
16119 addressable data reference.
16120 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16121 is a register variable.
16122
16123 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16124
16125 PR target/89506
16126 * config/arm/arm.md (cmpsi2_addneg): Use
16127 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16128 If operands[2] is 0 or INT_MIN, force use of subs.
16129 (*compare_scc splitter): Use gen_int_mode.
16130 (*negscc): Likewise.
16131 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16132
16133 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16134 Monk Chiang <sh.chiang04@gmail.com>
16135
16136 * common/config/riscv/riscv-common.c: Include sstream.
16137 (riscv_subset_list::to_string): New.
16138 (riscv_arch_str): Likewise.
16139 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16140 * config.in: Regen.
16141 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16142 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16143 (riscv_emit_attribute): New.
16144 (riscv_file_start): Emit attribute if needed.
16145 (riscv_option_override): Init riscv_emit_attribute_p.
16146 * config/riscv/riscv.opt (mriscv-attribute): New option.
16147 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16148 * configure: Regen.
16149 * doc/install.texi: Document --with-riscv-attribute.
16150 * doc/invoke.texi: Document -mriscv-attribute.
16151
16152 * common/config/riscv/riscv-common.c:
16153 Include config/riscv/riscv-protos.h.
16154 (INCLUDE_STRING): Defined.
16155 (RISCV_DONT_CARE_VERSION): Defined.
16156 (riscv_subset_t): Declare.
16157 (riscv_subset_t::riscv_subset_t): New.
16158 (riscv_subset_list): Declare.
16159 (riscv_subset_list::riscv_subset_list): New.
16160 (riscv_subset_list::~riscv_subset_list): Likewise.
16161 (riscv_subset_list::parsing_subset_version): Likewise.
16162 (riscv_subset_list::parse_std_ext): Likewise.
16163 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16164 (riscv_subset_list::add): Likewise.
16165 (riscv_subset_list::lookup): Likewise.
16166 (riscv_subset_list::xlen): Likewise.
16167 (riscv_subset_list::parse): Likewise.
16168 (riscv_supported_std_ext): Likewise.
16169 (current_subset_list): Likewise.
16170 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16171 parse.
16172
16173 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16174
16175 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16176 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16177 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16178
16179 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16180
16181 PR rtl-optimization/85899
16182 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16183 fallthru edges leading to the exit block.
16184
16185 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16186
16187 PR target/89517
16188 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16189 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16190
16191 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16192
16193 PR tree-optimization/89535
16194 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16195 for each operand. Calculate the fallback choice for mask operands
16196 and pass it to vect_get_vec_def_for_operand.
16197
16198 2019-03-01 Richard Biener <rguenther@suse.de>
16199
16200 PR middle-end/89541
16201 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16202 get virtual operands.
16203 (get_expr_operands): Handle CONST_DECL like other decls.
16204
16205 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16206
16207 PR middle-end/89503
16208 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16209 on DECL_P and EXPR_P.
16210
16211 2019-03-01 Richard Biener <rguenther@suse.de>
16212
16213 PR middle-end/89497
16214 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16215 argument, defaulted to zero.
16216 * passes.c (execute_function_todo): Pass down SSA update flags
16217 to cleanup_tree_cfg.
16218 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16219 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16220 form if requested.
16221 (cleanup_tree_cfg): Get and pass down SSA update flags.
16222
16223 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16224
16225 PR bootstrap/89539
16226 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16227 early_lto_debug argument.
16228
16229 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16230
16231 PR tree-optimization/89536
16232 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16233 only whether bit #0 of the value is 0 instead of the entire value.
16234
16235 2019-02-28 Marek Polacek <polacek@redhat.com>
16236
16237 PR c++/87068 - missing diagnostic with fallthrough statement.
16238 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16239 at the end of a seq, save its location to walk_stmt_info.
16240 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16241 a switch.
16242
16243 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16244
16245 PR lto/88585
16246 * tree.c (find_atomic_core_type): Move ahead in file.
16247 (check_base_type): Correctly compare alignments of atomic types.
16248
16249 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16250
16251 PR target/89455
16252 * config/i386/i386.c (get_builtin_code_for_version): Identify
16253 Westmere from PCLMUL, instead of AES.
16254
16255 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16256
16257 PR target/89434
16258 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16259 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16260 -UINTVAL (...).
16261
16262 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16263
16264 PR target/88530
16265 * config/aarch64/aarch64-option-extensions.def: Document it.
16266 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16267 if empty hwcaps.
16268
16269 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16270
16271 PR c/89520
16272 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16273 builtins if they don't have a single scalar floating point argument.
16274 Formatting fixes.
16275
16276 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16277
16278 PR rtl-optimization/89490
16279 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16280 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16281 block section is not mergeable.
16282
16283 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16284
16285 PR target/70341
16286 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16287 old define_insn to ...
16288 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16289 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16290 Rename old define_insn to ...
16291 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16292 (thumb2_casesi_internal_pic): New define_expand. Rename old
16293 define_insn to ...
16294 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16295 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16296 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16297
16298 2019-02-27 Richard Biener <rguenther@suse.de>
16299
16300 PR debug/88878
16301 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16302
16303 2019-02-27 Richard Biener <rguenther@suse.de>
16304
16305 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16306 building.
16307
16308 2019-02-27 Richard Biener <rguenther@suse.de>
16309
16310 PR debug/88878
16311 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16312 parameter, prefix section name with .gnu.debuglto_ if true.
16313 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16314 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16315
16316 2019-02-27 Richard Biener <rguenther@suse.de>
16317
16318 PR debug/89514
16319 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16320 rather than on use_debug_types, doing what output_die does.
16321 (value_format): Likewise.
16322
16323 2019-02-27 Martin Jambor <mjambor@suse.cz>
16324 Martin Sebor <msebor@redhat.com>
16325
16326 * doc/invoke.texi (Warning Options): Reword description of
16327 -Wno-absolute-value.
16328
16329 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16330
16331 PR tree-optimization/89280
16332 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16333 builtin_setjmp_setup_bb): New functions.
16334 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16335 When visiting __builtin_setjmp_setup block, queue in special
16336 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16337 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16338 from visited after the loop if they don't have any visited successor
16339 blocks.
16340
16341 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16342
16343 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16344 New function.
16345 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16346
16347 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16348
16349 PR c++/89507
16350 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16351 with types other than sizetype/ssizetype.
16352
16353 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16354
16355 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16356 (enum sparc_processor_type): ...this.
16357 (enum sparc_code_model_type): New enumeration type.
16358 (enum sparc_memory_model_type): Tweak comments.
16359 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16360 (mtune): Likewise.
16361 (mcmodel): Use sparc_code_model enumeration and variable.
16362 (sparc_code_model): New enumeration.
16363 (mdebug): Add Undocumented marker.
16364 * config/sparc/sparc.h (enum cmodel): Delete.
16365 (sparc_cmodel): Likewise.
16366 (TARGET_CM_MEDLOW): Adjust to above renaming.
16367 (TARGET_CM_MEDMID): Likewise.
16368 (TARGET_CM_MEDANY): Likewise.
16369 (TARGET_CM_EMBMEDANY): Likewise.
16370 * config/sparc/sparc.c (sparc_cmodel): Delete.
16371 (sparc_option_override): Remove string/value mapping support for the
16372 code model. Move code and memory model support to after the handling
16373 of target flags. Do private machine setup last.
16374 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
16375 (sparc_legitimize_reload_address): Likewise.
16376 (sparc_output_mi_thunk): Likewise.
16377 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
16378
16379 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16380
16381 PR tree-optimization/89500
16382 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
16383 (handle_builtin_strlen): Remove noncst_bound variable. Always
16384 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
16385 cst if the first cst bytes starting at x are known to be non-zero,
16386 even if the string is not zero terminated. Don't try to modify
16387 *si for strnlen. Update strlen_to_stridx only for strlen or if
16388 we can prove strnlen returns the same value as strlen would.
16389
16390 2019-02-26 Martin Liska <mliska@suse.cz>
16391
16392 * alloc-pool.h (struct pool_usage): Remove extra
16393 print_dash_line.
16394 * bitmap.h (struct bitmap_usage): Likewise.
16395 * ggc-common.c (struct ggc_usage): Likewise.
16396 * mem-stats.h (struct mem_usage): Likewise.
16397 (mem_alloc_description::dump): Print dash lines
16398 here and repeat header at the end of a table report.
16399 It's then more readable.
16400 * tree-phinodes.c (phinodes_print_statistics): Make
16401 horizontal alignment.
16402 * tree-ssanames.c (ssanames_print_statistics): Likewise.
16403 * vec.c (struct vec_usage): Remove extra print_dash_line.
16404 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
16405
16406 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
16407
16408 * doc/extend.texi (__builtin_object_size):
16409 Use @pxref instead of @xref inside parenthesis.
16410 (__builtin_has_attribute): Add missing comma after @xref.
16411 (__builtin_object_size): Ditto.
16412 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
16413
16414 2019-02-26 Jeff Law <law@redhat.com>
16415
16416 PR rtl-optimization/87761
16417 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
16418 detect obviously dead insns and delete them.
16419
16420 2019-02-26 Richard Biener <rguenther@suse.de>
16421
16422 PR tree-optimization/89505
16423 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
16424 to handle restrict pointed-to vars with multiple subvars
16425 correctly.
16426
16427 2019-02-26 Richard Biener <rguenther@suse.de>
16428
16429 PR tree-optimization/89489
16430 * tree-parloops.c (create_loop_fn): Copy over last_clique.
16431
16432 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16433
16434 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
16435 and move around comment.
16436 <BIT_AND_EXPR>: Likewise.
16437 <BIT_NOT_EXPR>: Add specific handling for boolean types.
16438
16439 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16440
16441 PR target/89474
16442 * config/i386/i386.c (remove_partial_avx_dependency): Call
16443 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
16444 after changing possibly many instructions to use that pseudo. Fix up
16445 insertion of v4sf_const0 setter at the start of bb.
16446
16447 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16448
16449 PR c/80409
16450 * doc/extend.texi (Variadic Pointer Args): New section.
16451
16452 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16453 Martin Sebor <msebor@gmail.com>
16454
16455 * common.opt (Wattribute-alias): Likewise.
16456 * doc/invoke.texi (Option Summary): List general form of
16457 -Wattribute-alias=. List positive form of -Wmissing-attributes.
16458 (-Wmissing-attributes): Invert entry, rewrite and correct default.
16459 Add cross-references.
16460 (-Wattribute-alias): Rewrite and correct default. Mention
16461 considered attributes (same as for -Wmissing-attributes).
16462
16463 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
16464
16465 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
16466 (_mm_cvtpd_ps): Likewise.
16467 (_mm_cvttpd_epi32): Likewise.
16468
16469 PR target/89338
16470 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
16471 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
16472
16473 PR target/89339
16474 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
16475
16476 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16477
16478 PR target/88530
16479 * common/config/aarch64/aarch64-common.c
16480 (struct aarch64_option_extension): Add is_synthetic.
16481 (all_extensions): Use it.
16482 (TARGET_OPTION_INIT_STRUCT): Define hook.
16483 (struct gcc_targetm_common): Moved to end.
16484 (all_extensions_by_on): New.
16485 (opt_ext_cmp, typedef opt_ext): New.
16486 (aarch64_option_init_struct): New.
16487 (aarch64_contains_opt): New.
16488 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
16489 * config/aarch64/aarch64-option-extensions.def
16490 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
16491 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
16492 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
16493 Set is_synthetic to false.
16494 (crypto): Set is_synthetic to true.
16495 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
16496 SYNTHETIC.
16497
16498 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16499
16500 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16501 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
16502 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16503 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
16504 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
16505 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
16506 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
16507 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
16508 Rename ...
16509 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
16510 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16511 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
16512 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
16513 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
16514 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
16515 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
16516 vfmlsl_laneq_high_f16): ... To this.
16517 * config/arm/neon.md: Update comments.
16518
16519 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16520
16521 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16522 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
16523 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16524 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
16525 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
16526 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
16527 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
16528 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
16529 Rename ...
16530 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
16531 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16532 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
16533 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
16534 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
16535 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
16536 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
16537 vfmlslq_laneq_high_f16): ... To this.
16538
16539 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
16540
16541 PR rtl-optimization/86096
16542 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
16543 comparing mw_order values.
16544
16545 2019-02-25 Jakub Jelinek <jakub@redhat.com>
16546
16547 PR target/89434
16548 * config/arm/arm.md (*subsi3_carryin_const): Use
16549 arm_neg_immediate_operand predicate instead of
16550 arm_not_immediate_operand, "L" constraint instead of "K" and
16551 print it using %n2 instead of %B2.
16552 (*subsi3_carryin_const0): New define_insn.
16553 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
16554 instead of arm_not_operand and "I" constraint instead of "K" and
16555 print it using %n3 instead of %B2. Instead of using match_dup 2 add
16556 another match_operand and in the condition check that it is negation
16557 of operands[2].
16558 (*subsi3_carryin_compare_const0): New define_ins.
16559 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
16560 *subsi3_carryin_const.
16561 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
16562 split into *subsi3_carryin_compare_const0 if the highpart is zero.
16563
16564 PR target/89438
16565 * config/arm.vfp.md (*negdf2_vfp): Use
16566 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
16567 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
16568
16569 2019-02-24 Jakub Jelinek <jakub@redhat.com>
16570
16571 PR rtl-optimization/89445
16572 * simplify-rtx.c (simplify_ternary_operation): Don't use
16573 simplify_merge_mask on operands that may trap.
16574 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
16575 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
16576 second operand is CONST_VECTOR, check if any element could be zero.
16577 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
16578 their operands can trap.
16579
16580 2019-02-23 Martin Sebor <msebor@redhat.com>
16581
16582 * gimple-ssa-sprintf.c (target_strtol): Rename...
16583 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
16584 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
16585 check for range error.
16586
16587 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
16588
16589 PR driver/69471
16590 * opts-common.c (prune_options): Also prune joined switches
16591 with Negative and RejectNegative.
16592 * config/i386/i386.opt (march=): Add Negative(march=).
16593 (mtune=): Add Negative(mtune=).
16594 * doc/options.texi: Document Negative used together with Joined
16595 and RejectNegative.
16596
16597 2019-02-22 Martin Sebor <msebor@redhat.com>
16598
16599 * doc/extend.texi (Other Builtins): Add
16600 __builtin_is_constant_evaluated.
16601
16602 2019-02-22 Richard Biener <rguenther@suse.de>
16603
16604 PR tree-optimization/87609
16605 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
16606
16607 2019-02-22 Jeff Law <law@redhat.com>
16608
16609 PR rtl-optimization/87761
16610 * config/mips/mips.md: Add new combiner pattern to recognize
16611 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
16612
16613 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
16614
16615 PR target/89324
16616 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
16617 destination register in peepholes generating patterns for ADDS/SUBS.
16618 (add<mode>3_compare0,
16619 *addsi3_compare0_uxtw, add<mode>3_compareC,
16620 add<mode>3_compareV_imm, add<mode>3_compareV,
16621 *adds_<optab><ALLX:mode>_<GPI:mode>,
16622 *subs_<optab><ALLX:mode>_<GPI:mode>,
16623 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
16624 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
16625 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
16626 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
16627 sub<mode>3_compare1): Allow stack pointer for source register.
16628 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
16629
16630 2019-02-22 Martin Sebor <msebor@redhat.com>
16631
16632 PR tree-optimization/88993
16633 PR tree-optimization/88853
16634 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
16635 New helper.
16636 (sprintf_dom_walker::call_info::is_string_func): New helper.
16637 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
16638 for formatted string functions.
16639 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
16640
16641 2019-02-22 Martin Sebor <msebor@redhat.com>
16642
16643 PR c/89425
16644 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
16645 unreachable subexpressions.
16646
16647 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
16648 Hongtao Liu <hongtao.liu@intel.com>
16649 Sunil K Pandey <sunil.k.pandey@intel.com>
16650
16651 PR target/87007
16652 * config/i386/i386-passes.def: Add
16653 pass_remove_partial_avx_dependency.
16654 * config/i386/i386-protos.h
16655 (make_pass_remove_partial_avx_dependency): New.
16656 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
16657 New function.
16658 (pass_data_remove_partial_avx_dependency): New.
16659 (pass_remove_partial_avx_dependency): Likewise.
16660 (make_pass_remove_partial_avx_dependency): Likewise.
16661 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
16662 (*extendsfdf2): Add avx_partial_xmm_update.
16663 (truncdfsf2): Likewise.
16664 (*float<SWI48:mode><MODEF:mode>2): Likewise.
16665 (SF/DF conversion splitters): Disabled for TARGET_AVX.
16666
16667 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
16668
16669 PR middle-end/85598
16670 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
16671 analysis for pass.
16672
16673 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
16674
16675 PR target/89444
16676 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
16677 (PTA_SKYLAKE): Add PTA_AES.
16678 (PTA_GOLDMONT): Likewise.
16679
16680 2019-02-22 Sudakshina Das <sudi.das@arm.com>
16681
16682 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
16683 instruction if enabled.
16684 (aarch64_override_options): Remove reference to return address key.
16685
16686 2019-02-22 Richard Biener <rguenther@suse.de>
16687
16688 PR tree-optimization/89440
16689 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16690 not necessary assert.
16691
16692 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
16693
16694 PR fortran/72741
16695 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
16696 (oacc_replace_fn_attrib_attr): ... this new function.
16697 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
16698 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
16699
16700 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16701
16702 * config/arm/arm-cpus.in (ares): Rename to...
16703 (neoverse-n1): ... This. Add ares as alias.
16704 * config/arm/arm-tables.opt: Regenerate.
16705 * config/arm/arm-tune.md: Likewise.
16706 * doc/invoke.txt (ARM Options): Document neoverse-n1.
16707
16708 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16709
16710 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
16711 * config/aarch64/aarch64-tune.md: Regenerate.
16712 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
16713
16714 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16715
16716 * config/aarch64/aarch64.c (ares_tunings): Rename to...
16717 (neoversen1_tunings): ... This.
16718 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
16719 (neoverse-n1): New CPU.
16720 * config/aarch64/aarch64-tune.md: Regenerate.
16721 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
16722
16723 2019-02-22 Richard Biener <rguenther@suse.de>
16724
16725 PR middle-end/87609
16726 * cfghooks.h (dependence_hash): New typedef.
16727 (struct copy_bb_data): New type.
16728 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
16729 (duplicate_block): Likewise.
16730 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
16731 (copy_bbs): Create and pass down copy_bb_data.
16732 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
16733 (rtl_duplicate_bb): Likewise.
16734 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
16735 remap dependence info.
16736
16737 2019-02-22 Richard Biener <rguenther@suse.de>
16738
16739 PR tree-optimization/87609
16740 * tree-core.h (tree_base): Document special clique values.
16741 * tree-inline.c (remap_dependence_clique): Do not use the
16742 special clique value of one.
16743 (maybe_set_dependence_info): Use clique one.
16744 (clear_dependence_clique): New callback.
16745 (compute_dependence_clique): Clear clique one from all refs
16746 before assigning it (again).
16747
16748 2019-02-21 Martin Sebor <msebor@redhat.com>
16749
16750 * doc/extend.texi (__clear_cache): Correct signature.
16751
16752 2019-02-21 Ian Lance Taylor <iant@golang.org>
16753
16754 PR go/89170
16755 * varasm.c (decode_addr_const): Call lookup_constant_def rather
16756 than output_constant_def.
16757 (add_constant_to_table): New static function.
16758 (output_constant_def): Call add_constant_to_table.
16759 (tree_output_constant_def): Likewise.
16760
16761 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16762
16763 PR c++/89285
16764 * builtins.c (fold_builtin_arith_overflow): If first two args are
16765 INTEGER_CSTs, set intres and ovfres to constants rather than calls
16766 to ifn.
16767
16768 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
16769
16770 PR target/87412
16771 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
16772 error for -mindirect-branch/-mfunction-return with incompatible
16773 -fcf-protection.
16774
16775 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16776
16777 PR bootstrap/88714
16778 * constraints.md (q): Remove.
16779 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
16780 instead of q.
16781
16782 2019-02-21 Martin Jambor <mjambor@suse.cz>
16783
16784 PR hsa/89302
16785 * omp-general.c (omp_extract_for_data): Removed a duplicate call
16786 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
16787 (omp_adjust_for_condition): ...here. Added necessary parameters.
16788 * omp-general.h (omp_adjust_for_condition): Updated declaration.
16789 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
16790 proper values to new parameters of omp_adjust_for_condition.
16791
16792 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16793
16794 PR middle-end/89412
16795 * expr.c (expand_assignment): If result is a MEM, use change_address
16796 instead of simplify_gen_subreg.
16797
16798 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16799 David Malcolm <dmalcolm@redhat.com>
16800
16801 PR middle-end/89091
16802 * fold-const.c (decode_field_reference): Return NULL_TREE if
16803 lang_hooks.types.type_for_size returns NULL. Check it before
16804 overwriting *exp_. Use return NULL_TREE instead of return 0.
16805
16806 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16807
16808 PR middle-end/88074
16809 PR middle-end/89415
16810 * toplev.c (do_compile): Double the emin/emax exponents to workaround
16811 buggy mpc_norm.
16812
16813 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
16814
16815 PR target/89397
16816 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
16817 TARGET_SSE in addition to TARGET_SSE_MATH.
16818
16819 (ix86_excess_precision): Ditto.
16820 (ix86_float_exceptions_rounding_supported_p): Ditto.
16821 (use_rsqrt_p): Ditto.
16822 * config/i386/sse.md (rsqrt<mode>2): Ditto.
16823
16824 2019-02-20 David Malcolm <dmalcolm@redhat.com>
16825
16826 PR c/89410
16827 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
16828 linenum_arith_t when determining if two adjacent line spans are
16829 close enough to merge.
16830 (diagnostic_show_locus): Use linenum_arith_t when iterating over
16831 lines within each line_span.
16832
16833 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
16834
16835 PR target/86487
16836 * lra-constraints.c(uses_hard_regs_p): Fix handling of
16837 paradoxical SUBREGS.
16838
16839 2019-02-20 Li Jia He <helijia@linux.ibm.com>
16840
16841 PR target/88100
16842 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
16843 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
16844 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
16845 range checking it.
16846
16847 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
16848
16849 * config/gcn/gcn.c (print_operand): Fix typo.
16850
16851 2019-02-19 Richard Biener <rguenther@suse.de>
16852
16853 PR middle-end/88074
16854 * toplev.c (do_compile): Initialize mpfr's exponent range
16855 based on available float modes.
16856
16857 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
16858
16859 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
16860 as long as the epilogue isn't completed.
16861
16862 2019-02-18 Martin Sebor <msebor@redhat.com>
16863
16864 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
16865 __has_cpp_attribute, and __has_include.
16866
16867 2019-02-18 Martin Sebor <msebor@redhat.com>
16868
16869 * doc/invoke.texi (-Wreturn-type): Correct and expand.
16870
16871 2019-02-18 Martin Sebor <msebor@redhat.com>
16872
16873 PR middle-end/89294
16874 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
16875 expression.
16876 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
16877
16878 2019-02-18 Richard Biener <rguenther@suse.de>
16879
16880 PR tree-optimization/89296
16881 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
16882 of no-warning flag to cases that might emit the bogus warning.
16883
16884 2019-02-18 Jakub Jelinek <jakub@redhat.com>
16885
16886 PR bootstrap/88714
16887 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
16888 "q" constraint.
16889 * config/arm/vfp.md (*movdi_vfp): Likewise.
16890 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
16891 "q" constraint for operands[0].
16892
16893 PR target/89369
16894 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
16895 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
16896 pattern in a temporary buffer.
16897 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
16898 than 64-operands[2].
16899
16900 PR target/89361
16901 * config/s390/s390.c (s390_indirect_branch_attrvalue,
16902 s390_indirect_branch_settings): Define unconditionally.
16903 (s390_set_current_function): Likewise, but guard the whole body except
16904 the s390_indirect_branch_settings call with
16905 #if S390_USE_TARGET_ATTRIBUTE.
16906 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
16907
16908 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
16909 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
16910 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
16911 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
16912 HOST_WIDE_INT_1U instead of 1ULL.
16913 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
16914 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
16915 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
16916 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
16917 instead of 1UL.
16918 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
16919 instead of 1ul.
16920
16921 2019-02-18 Martin Jambor <mjambor@suse.cz>
16922
16923 PR tree-optimization/89209
16924 * tree-sra.c (create_access_replacement): New optional parameter
16925 reg_tree. Use it as a type if non-NULL and access type is not of
16926 a register type.
16927 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
16928 to create_access_replacement.
16929 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
16930 Check lacc is non-NULL before attempting to re-create it on the RHS.
16931
16932 2019-02-18 Martin Liska <mliska@suse.cz>
16933
16934 PR ipa/89306
16935 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
16936 by default.
16937 (symbol_table::free_edge): Recycle m_summary_id.
16938 * cgraph.h (get_summary_id): New.
16939 (symbol_table::release_symbol): Set m_summary_id to -1
16940 by default.
16941 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
16942 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
16943 function_summary to fast_function_summary.
16944 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
16945 * ipa-pure-const.c (class funct_state_summary_t):
16946 Switch from function_summary to fast_function_summary.
16947 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
16948 (class ipa_ref_opt_summary_t): Switch from function_summary
16949 to fast_function_summary.
16950 * symbol-summary.h (class function_summary_base): New class
16951 that is created from base of former function_summary.
16952 (function_summary_base::unregister_hooks): New.
16953 (class function_summary): Inherit from function_summary_base.
16954 (class call_summary_base): New class
16955 that is created from base of former call_summary.
16956 (class call_summary): Inherit from call_summary_base.
16957 (struct is_same): New.
16958 (class fast_function_summary): New summary class.
16959 (class fast_call_summary): New summary class.
16960 * vec.h (vec_safe_grow_cleared): New function.
16961
16962 2019-02-18 Martin Liska <mliska@suse.cz>
16963
16964 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
16965 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
16966 * doc/tm.texi: Document new target hook.
16967 * doc/tm.texi.in: Likewise.
16968 * target.def: Add new target macro.
16969 * gcc.c (find_fortran_preinclude_file): Do not search multilib
16970 suffixes.
16971
16972 2019-02-17 Alan Modra <amodra@gmail.com>
16973
16974 PR target/89271
16975 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
16976 output reg on add insn.
16977 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
16978
16979 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16980
16981 PR target/89372
16982 * config/i386/sse.md (ssedoublemode): Remove V4HI.
16983 (PMULHRSW): Likewise.
16984 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
16985 TARGET_AVX2.
16986 (ssse3_pmulhrswv4hi3): New expander.
16987
16988 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16989
16990 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
16991 MMX. Add isa attribute.
16992
16993 2019-02-16 Jakub Jelinek <jakub@redhat.com>
16994
16995 PR rtl-optimization/66152
16996 * builtins.h (c_readstr): Declare.
16997 * builtins.c (c_readstr): Remove forward declaration. Add
16998 null_terminated_p argument, if false, read all bytes from the
16999 string instead of stopping after '\0'.
17000 * expr.c (string_cst_read_str): New function.
17001 (store_expr): Use string_cst_read_str instead of
17002 builtin_strncpy_read_str. Try to store by pieces the whole
17003 exp_len first, and only if that fails, split it up into
17004 store by pieces followed by clear_storage. Formatting fix.
17005
17006 * config/i386/i386.md (*movqi_internal): Remove static from
17007 buf variable. Use output_asm_insn (buf, operands); return "";
17008 instead of return buf;.
17009 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
17010 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
17011 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
17012
17013 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17014
17015 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
17016 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
17017 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
17018 (CC1_SPEC): Likewise.
17019 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
17020
17021 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17022
17023 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
17024 the base address on 64-bit strict-alignment platforms.
17025
17026 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
17027
17028 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
17029
17030 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17031
17032 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
17033
17034 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
17035
17036 PR rtl-optimization/88308
17037 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17038 on copied instruction.
17039
17040 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17041
17042 * final.c (insn_current_reference_address): Replace test on JUMP_P
17043 with test on jump_to_label_p.
17044 * config/visium/visium-passes.def: New file.
17045 * config/visium/t-visium (PASSES_EXTRA): Define.
17046 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17047 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17048 (TRAMPOLINE_ALIGNMENT): Define.
17049 * config/visium/visium.c (visium_option_override): Do not register
17050 the machine-specific reorg pass here.
17051 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17052 for the GR6.
17053 (output_branch): Adjust threshold for long branch instruction.
17054 * config/visium/visium.md (cpu): Move around.
17055 (length): Adjust for the GR6.
17056
17057 2019-02-15 Richard Biener <rguenther@suse.de>
17058 Jakub Jelinek <jakub@redhat.com>
17059
17060 PR tree-optimization/89278
17061 * tree-loop-distribution.c: Include tree-eh.h.
17062 (generate_memset_builtin, generate_memcpy_builtin): Call
17063 rewrite_to_non_trapping_overflow on builtin->size before passing it
17064 to force_gimple_operand_gsi.
17065
17066 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17067
17068 PR other/89342
17069 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17070 optimize_debug.
17071 * opth-gen.awk: Likewise.
17072
17073 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17074
17075 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17076 Enable MMX, SSE and SSE2 by default.
17077 * config/i386/i386.c (ix86_option_override_internal): Do not
17078 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17079
17080 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17081
17082 PR rtl-optimization/89354
17083 * combine.c (make_extraction): Punt if extraction_mode is narrower
17084 than len bits.
17085
17086 2019-02-14 Maya Rashish <coypu@sdf.org>
17087
17088 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17089 * config/netbsd-d.c: New file.
17090 * config/t-netbsd: Add netbsd-d.o
17091
17092 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17093
17094 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17095 affects_type_identity to true for aarch64_vector_pcs.
17096 (aarch64_comp_type_attributes): New function.
17097 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17098
17099 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17100
17101 PR target/88850
17102 * config/arm/iterators.md (ANY64): Add V4HF.
17103
17104 2019-02-14 Martin Liska <mliska@suse.cz>
17105
17106 PR rtl-optimization/89242
17107 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17108 process a transformation.
17109
17110 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17111
17112 PR tree-optimization/89314
17113 * fold-const.c (fold_binary_loc): Cast strlen argument to
17114 const char * before dereferencing it. Formatting fixes.
17115
17116 PR middle-end/89284
17117 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17118
17119 2019-02-13 Ian Lance Taylor <iant@golang.org>
17120
17121 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17122 and set current index for other optimizations.
17123
17124 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17125
17126 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17127 nonimmediate_operand as operand 2 predicate.
17128 (vec_set<VF2_512_256:mode>_0): Ditto.
17129 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17130 (*vec_concatv2si): Remove alternative 2.
17131 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17132 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17133 (vec_concatv2di): Split alternatives 4,5,6 to ...
17134 (*vec_concatv2di_0) ... new pattern.
17135
17136 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17137
17138 PR target/89190
17139 * config/arm/arm.c (ldm_stm_operation_p) Set
17140 addr_reg_in_reglist correctly for first register.
17141 (load_multiple_sequence): Remove dead base check.
17142 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17143
17144 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17145
17146 PR target/88847
17147 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17148 Expose as @aarch64_pred_mov.
17149 * config/aarch64/aarch64.c (aarch64_classify_address):
17150 Use expand_insn which legitimizes operands.
17151
17152 2019-02-13 Martin Liska <mliska@suse.cz>
17153
17154 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17155 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17156 and pointer_offset fields.
17157 (initialize_argument_information): Remove usage of dead
17158 fields.
17159 * cgraph.h (struct cgraph_thunk_info): Remove
17160 add_pointer_bounds_args.
17161 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17162 fields.
17163 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17164 fields.
17165 * config/i386/i386.c (ix86_function_arg_advance): Remove
17166 unrelated comment.
17167 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17168 (def_builtin): Remove usage of dead fields.
17169 (ix86_add_new_builtins): Likewise.
17170 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17171 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17172 (sem_function::init): Likewise.
17173 (sem_variable::merge): Likewise.
17174 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17175 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17176 * lto-cgraph.c (lto_output_node): Likewise.
17177 (lto_output_varpool_node): Likewise.
17178 (input_node): Likewise.
17179 (input_varpool_node): Likewise.
17180 * lto-streamer-out.c (lto_output): Likewise.
17181 * tree-inline.c (expand_call_inline): Remove usage of
17182 assign_stmts.
17183 * tree-inline.h (struct copy_body_data): Likewise.
17184 * varpool.c (varpool_node::dump): Likewise.
17185
17186 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17187
17188 PR middle-end/89303
17189 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17190 into pt->vars_contains_escaped_heap instead of setting
17191 pt->vars_contains_escaped_heap to it.
17192
17193 PR middle-end/89281
17194 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17195 INTVAL (size), compare it to GET_MODE_MASK instead of
17196 1 << GET_MODE_BITSIZE.
17197
17198 PR target/89290
17199 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17200 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17201 -mcmodel=large.
17202
17203 2019-02-13 Martin Liska <mliska@suse.cz>
17204
17205 PR lto/88858
17206 * cfgrtl.c (remove_barriers_from_footer): New function.
17207 (try_redirect_by_replacing_jump): Use it.
17208 (cfg_layout_redirect_edge_and_branch): Likewise.
17209
17210 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17211
17212 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17213 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17214 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17215 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17216 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17217 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17218 New BU_CRYPTO_2.
17219 * config/rs6000/rs6000.c (builtin_function_type)
17220 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17221 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17222 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17223 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17224 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17225
17226 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17227
17228 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17229 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17230
17231 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17232
17233 PR target/89229
17234 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17235 268678 and revision 268657.
17236 (*movti_internal): Likewise.
17237
17238 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17239
17240 PR target/89233
17241 * config/s390/s390.c (s390_decompose_address): Update comment.
17242 (s390_check_qrst_address): Reject invalid address forms after
17243 LRA.
17244
17245 2019-02-12 Martin Liska <mliska@suse.cz>
17246
17247 PR lto/88876
17248 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17249 we need default values of funct_state for a function that
17250 is not optimized.
17251
17252 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17253
17254 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17255 the object to pick the size of stores on strict-alignment platforms.
17256
17257 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17258 (*movdi_insn_sp32): Likewise.
17259 (*movdi_insn_sp64): Likewise.
17260
17261 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17262
17263 PR lto/88677
17264 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17265 types that needs constructiong.
17266 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17267
17268 2019-02-12 Richard Biener <rguenther@suse.de>
17269
17270 PR tree-optimization/89253
17271 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17272 duplicate the loop.
17273
17274 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17275
17276 PR lto/88147
17277 * input.c (selftest::test_line_offset_overflow): New selftest.
17278 (selftest::input_c_tests): Call it.
17279
17280 2019-02-11 Martin Sebor <msebor@redhat.com>
17281
17282 PR tree-optimization/88771
17283 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17284 when -Wstringop-overflow is set.
17285 (builtin_memref::builtin_memref): Adjust excessive upper bound
17286 only when lower bound is not excessive.
17287 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17288 -Wstringop-ovefflow.
17289 (maybe_diag_offset_bounds): Rename...
17290 (maybe_diag_access_bounds): ...to this.
17291 (check_bounds_or_overlap): Adjust for name change above.
17292
17293 2019-02-11 Martin Sebor <msebor@redhat.com>
17294
17295 PR c++/87996
17296 * builtins.c (max_object_size): Move from here...
17297 * builtins.h (max_object_size): ...and here...
17298 * tree.c (max_object_size): ...to here...
17299 * tree.h (max_object_size): ...and here.
17300
17301 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17302
17303 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17304 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17305 for correct semantics.
17306
17307 2019-02-11 Alan Modra <amodra@gmail.com>
17308
17309 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17310 -mlongcall and -mpltseq.
17311 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17312 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17313 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17314 * config/rs6000/sysv4.opt (mpltseq): New option.
17315 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17316 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17317 support is lacking. Don't allow -mpltseq with -mbss-plt.
17318 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17319 -mpltseq given for ELFv1.
17320 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17321 Only use UNSPEC_PLTSEQ for inline PLT calls.
17322 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17323 use UNSPEC_PLTSEQ for inline PLT calls.
17324 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17325 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17326 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17327 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17328 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17329 (pltseq_mtctr_<mode>): Likewise.
17330
17331 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17332
17333 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17334 Solaris ld.
17335 * configure: Regenerate.
17336
17337 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17338
17339 PR bootstrap/88714
17340 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17341 instead of r.
17342
17343 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17344
17345 * function.c (assign_parm_setup_block): Use the stored
17346 size, not the passed size, when allocating stack-space,
17347 also for a parameter with alignment larger than
17348 MAX_SUPPORTED_STACK_ALIGNMENT.
17349
17350 2019-02-11 Martin Liska <mliska@suse.cz>
17351
17352 PR ipa/89009
17353 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17354 * ipa-inline.c (inline_small_functions): Likewise.
17355 * ipa-pure-const.c (propagate_pure_const): Likewise.
17356 (propagate_nothrow): Likewise.
17357 * ipa-reference.c (propagate): Likewise.
17358 * ipa-utils.c (struct searchc_env): Remove unused field.
17359 (searchc): Always search across AVAIL_INTERPOSABLE.
17360 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17361 the only called IPA pure const can properly not propagate
17362 across interposable boundary.
17363 * ipa-utils.h (ipa_reduced_postorder): Remove param.
17364
17365 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
17366
17367 * config/nds32/nds32.md (call_internal, call_value_internal,
17368 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
17369
17370 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17371
17372 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
17373 typo.
17374
17375 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
17376
17377 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
17378 in comments
17379
17380 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17381
17382 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
17383
17384 2019-02-10 Jakub Jelinek <jakub@redhat.com>
17385
17386 PR tree-optimization/89268
17387 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
17388 if preds is non-NULL.
17389
17390 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17391
17392 PR lto/89272
17393 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
17394 polymorphic types.
17395
17396 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17397
17398 * config/nds32/nds32.md (trap): New pattern.
17399
17400 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17401
17402 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
17403 dwarf span.
17404
17405 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17406
17407 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
17408 to split POST_INC.
17409
17410 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17411
17412 * ipa-visibility.c (localize_node): Also do not localize
17413 LDPR_PREVAILING_DEF_IRONLY_EXP.
17414
17415 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17416
17417 PR lto/87957
17418 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
17419 instead of type_with_linkage.
17420
17421 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17422
17423 PR ipa/88755
17424 * params.def (uninlined-function-insns, uninlined-function-time,
17425 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
17426 bound so we don't get overflows.
17427
17428 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
17429
17430 * config/rs6000/rs6000-string.c (expand_compare_loop,
17431 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
17432 memcmp/strncmp.
17433
17434 2019-02-09 Jakub Jelinek <jakub@redhat.com>
17435
17436 PR middle-end/89246
17437 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17438 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
17439 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
17440
17441 2019-02-09 Alan Modra <amodra@gmail.com>
17442
17443 PR target/88343
17444 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
17445 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
17446 setup.
17447
17448 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
17449
17450 PR middle-end/88560
17451 * lra-constraints.c (process_alt_operands): Don't increase reject
17452 for memory when offset memory is required.
17453
17454 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
17455
17456 * config/s390/vector.md: Implement vector copysign.
17457
17458 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17459
17460 * expr.c (expand_constructor): Correct indentations.
17461
17462 2019-02-08 Richard Biener <rguenther@suse.de>
17463
17464 PR tree-optimization/89247
17465 * tree-if-conv.c: Include tree-cfgcleanup.h.
17466 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
17467 (tree_if_conversion): Pass through predicate vector.
17468 (pass_if_conversion::execute): Do CFG cleanup and SSA update
17469 inline, see if any if-converted loops we refrece in
17470 LOOP_VECTORIZED calls vanished and fixup.
17471 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
17472
17473 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
17474
17475 * config/s390/constraints.md (jdd): New constraint.
17476
17477 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17478
17479 PR target/89229
17480 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
17481 upper 16 vector registers without TARGET_AVX512VL.
17482 (*movti_internal): Likewise.
17483
17484 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17485
17486 PR rtl-optimization/89234
17487 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
17488 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
17489 (copy_reg_eh_region_note_backward): Likewise.
17490
17491 2019-02-08 Richard Biener <rguenther@suse.de>
17492
17493 PR middle-end/89223
17494 * tree-data-ref.c (initialize_matrix_A): Fail if constant
17495 doesn't fit in HWI.
17496 (analyze_subscript_affine_affine): Handle failure from
17497 initialize_matrix_A.
17498
17499 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17500
17501 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
17502 cfun everywhere.
17503
17504 2019-02-07 David Malcolm <dmalcolm@redhat.com>
17505
17506 PR tree-optimization/86637
17507 PR tree-optimization/89235
17508 * tree-vect-loop.c (optimize_mask_stores): Add an
17509 auto_purge_vect_location sentinel to ensure that vect_location is
17510 purged on exit.
17511 * tree-vectorizer.c
17512 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
17513 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
17514 to ensure that vect_location is purged on exit.
17515 (pass_slp_vectorize::execute): Likewise, replacing the manual
17516 reset.
17517 * tree-vectorizer.h (class auto_purge_vect_location): New class.
17518
17519 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17520
17521 * config/aarch64/iterators.md (max_opp): New code_attr.
17522 (USMAX): New code iterator.
17523 * config/aarch64/predicates.md (aarch64_smin): New predicate.
17524 (aarch64_smax): Likewise.
17525 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
17526 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
17527 MINUS (MAX MIN).
17528
17529 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
17530
17531 PR target/89229
17532 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
17533 for TARGET_AVX512VL.
17534 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
17535
17536 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
17537
17538 * config/s390/s390-builtin-types.def: Add new types.
17539 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
17540 (s390_vec_xlw4): Make the memory operand into a const pointer.
17541 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
17542 float.
17543 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
17544 a new vector type with the alignment of the scalar memory operand.
17545
17546 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
17547 Jakub Jelinek <jakub@redhat.com>
17548
17549 PR bootstrap/88714
17550 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
17551 arm_count_ldrdstrd_insns): New declarations.
17552 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
17553 MINUS.
17554 (valid_operands_ldrd_strd): New function.
17555 (arm_count_ldrdstrd_insns): New function.
17556 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
17557 sets instead of single DImode set and define new insns to match this.
17558
17559 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17560
17561 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
17562 Make it a C initializer.
17563
17564 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17565
17566 PR/target 88850
17567 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
17568
17569 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17570
17571 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
17572 Use neon_dot<q> for type.
17573 (neon_<sup>dot_lane<vsi2qi>): Likewise.
17574
17575 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17576
17577 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
17578 Use neon_dot<q> for type.
17579 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
17580 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
17581
17582 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
17583
17584 PR rtl-optimization/89225
17585 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
17586 sizes check.
17587
17588 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
17589
17590 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
17591 after restoring registers saved to allocate the frame on Windows.
17592
17593 2019-02-06 Richard Biener <rguenther@suse.de>
17594
17595 PR tree-optimization/89182
17596 * graphite.h (cached_scalar_evolution_in_region): Declare.
17597 * graphite.c (struct seir_cache_key): New.
17598 (struct sese_scev_hash): Likewise.
17599 (seir_cache): New global.
17600 (cached_scalar_evolution_in_region): New function.
17601 (graphite_transform_loops): Allocate and release seir_cache.
17602 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
17603 cached_scalar_evolution_in_region.
17604 * graphite-scop-detection.c (scop_detection::can_represent_loop):
17605 Simplify.
17606 (scop_detection::graphite_can_represent_expr: Use
17607 cached_scalar_evolution_in_region.
17608 (scop_detection::stmt_simple_for_scop_p): Likewise.
17609 (find_params_in_bb): Likewise.
17610 (gather_bbs::before_dom_children): Likewise.
17611 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
17612 (add_loop_constraints): Likewise.
17613
17614 2019-02-06 Jakub Jelinek <jakub@redhat.com>
17615
17616 PR middle-end/89210
17617 * fold-const-call.c (fold_const_vec_convert): Pass true as last
17618 operand to new_unary_operation only if both element types are integral
17619 and it isn't a widening conversion. Return NULL_TREE if
17620 new_unary_operation failed.
17621
17622 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
17623
17624 PR target/88856
17625 * config/s390/s390.md: Remove load and test FP splitter.
17626
17627 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17628
17629 PR target/89112
17630 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
17631 expand_compare_loop, expand_block_compare_gpr,
17632 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
17633 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
17634 #include "profile-count.h" and "predict.h" for types and functions
17635 needed to work with REG_BR_PROB notes.
17636
17637 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17638
17639 PR target/89112
17640 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
17641 for the long branch case.
17642
17643 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17644
17645 PR target/89188
17646 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
17647 can throw, non-call exceptions are enabled and we can't delete
17648 dead exceptions or alter cfg. Set must_clean if
17649 delete_insn_and_edges returns true, don't set it blindly for calls.
17650 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
17651
17652 PR rtl-optimization/89195
17653 * combine.c (make_extraction): For MEMs, don't extract bytes outside
17654 of the original MEM.
17655
17656 2019-02-05 Martin Liska <mliska@suse.cz>
17657
17658 PR gcov-profile/89000
17659 * gcov.c (function_summary): Remove argument.
17660 (file_summary): New function.
17661 (print_usage): Replace tabs with spaces.
17662 (generate_results): Use new function file_summary.
17663
17664 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17665
17666 PR target/89186
17667 * optabs.c (prepare_cmp_insn): Pass x and y to
17668 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
17669
17670 2019-02-05 Richard Biener <rguenther@suse.de>
17671
17672 PR middle-end/89150
17673 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
17674 (struct bitmap_element): Drop chain_prev so we properly recurse on
17675 the prev member, supporting tree views.
17676 (struct bitmap_head): GTY skip the obstack member.
17677
17678 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
17679
17680 PR c/88698
17681 * doc/extend.texi (Vector Extensions): Add an example of using vector
17682 types together with x86 intrinsics.
17683
17684 2019-02-04 Alan Modra <amodra@gmail.com>
17685
17686 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
17687 str[] size to 160, and comment.
17688
17689 2019-02-04 Alan Modra <amodra@gmail.com>
17690
17691 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
17692 (rs6000_pltseq_template): Guard output of TLS markers with
17693 TARGET_TLS_MARKERS.
17694 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
17695 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
17696 to use inline PLT sequences.
17697 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17698 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17699 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
17700
17701 2019-02-04 Martin Liska <mliska@suse.cz>
17702
17703 PR ipa/88985
17704 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
17705 out when ipa_fn_summaries does not contain entry for callee.
17706
17707 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
17708
17709 * config/sparc/sparc.h: Remove superfluous blank lines.
17710 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
17711 (got_register_rtx): ...this.
17712 (sparc_got): Adjust to above renaming.
17713 (sparc_tls_got): Likewise.
17714 (sparc_delegitimize_address): Likewise.
17715 (sparc_output_mi_thunk): Likewise.
17716 (sparc_init_pic_reg): Likewise.
17717 (save_local_or_in_reg_p): Fix test on the GOT register.
17718 (USE_HIDDEN_LINKONCE): Move around.
17719 (get_pc_thunk_name): Likewise.
17720 (gen_load_pcrel_sym): Likewise.
17721 (load_got_register): Likewise.
17722
17723 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
17724
17725 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
17726 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
17727
17728 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17729
17730 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
17731 into consideration.
17732
17733 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17734
17735 * config.gcc (with_nds32_lib, glibc):
17736 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
17737 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
17738 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
17739
17740 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
17741
17742 PR target/89071
17743 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
17744 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
17745 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
17746 (*rcpsf2_sse): Ditto.
17747 (*rsqrtsf2_sse): Ditto.
17748 (sse4_1_round<mode<2): Ditto.
17749
17750 2019-02-03 Richard Biener <rguenther@suse.de>
17751
17752 PR debug/87295
17753 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
17754 orig.
17755
17756 2019-02-02 Jakub Jelinek <jakub@redhat.com>
17757
17758 PR middle-end/87887
17759 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17760 Punt with warning on aggregate return or argument types. Ignore
17761 type/mode checking for uniform arguments.
17762
17763 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
17764
17765 * combine.c (try_combine): Do not print "Can't combine" messages unless
17766 printing failed combination attempts.
17767
17768 2019-02-01 Martin Jambor <mjambor@suse.cz>
17769
17770 PR hsa/87863
17771 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
17772 segment and global segment variables before making them static.
17773
17774 2019-02-01 Martin Jambor <mjambor@suse.cz>
17775
17776 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
17777 missed optimization dump with dump_enabled_p.
17778
17779 2019-02-01 Richard Biener <rguenther@suse.de>
17780
17781 PR middle-end/88597
17782 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
17783 the instantiate cache.
17784 (instantiate_scev_binary): Elide second operand procesing
17785 if equal to the first.
17786 * tree-chrec.c (chrec_contains_symbols): Add visited set.
17787 (chrec_contains_undetermined): Likewise.
17788 (tree_contains_chrecs): Likewise.
17789
17790 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
17791
17792 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
17793
17794 2019-02-01 Jakub Jelinek <jakub@redhat.com>
17795
17796 PR tree-optimization/89143
17797 * wide-int-range.h (wide_int_range_absu): Declare.
17798 * wide-int-range.cc (wide_int_range_absu): New function.
17799 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
17800
17801 PR tree-optimization/88107
17802 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
17803 instead of assertion that eh_region_outermost is non-NULL, if it
17804 is NULL, set *ALL to true and return NULL.
17805 (move_sese_region_to_fn): Adjust caller, if all is set, call
17806 duplicate_eh_regions with NULL region.
17807
17808 2019-02-01 Richard Biener <rguenth@suse.de>
17809
17810 PR rtl-optimization/88593
17811 * mode-switching.c (optimize_mode_switching): Free dominators before
17812 calling cleanup_cfg.
17813
17814 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
17815
17816 PR tree-optimization/88932
17817 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
17818
17819 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17820
17821 PR middle-end/89137
17822 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
17823 bogus clang warning.
17824
17825 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
17826
17827 PR target/89071
17828 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
17829 alternative to avoid partial SSE register stall for TARGET_AVX.
17830 (truncdfsf2): Ditto.
17831 (sse4_1_round<mode>2): Ditto.
17832
17833 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
17834
17835 PR tree-optimization/89008
17836 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
17837 process anything of the form X * 0.
17838
17839 2019-01-31 Richard Biener <rguenther@suse.de>
17840
17841 PR tree-optimization/89135
17842 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
17843 with abnormal preds.
17844
17845 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17846
17847 PR sanitizer/89124
17848 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
17849 always_inline callees into no_sanitize_address callers.
17850
17851 2019-01-31 Richard Biener <rguenther@suse.de>
17852
17853 PR rtl-optimization/89115
17854 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
17855
17856 2019-01-30 Martin Sebor <msebor@redhat.com>
17857
17858 PR other/89106
17859 * doc/extend.texi (cast to a union): Correct and expand.
17860
17861 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
17862
17863 PR rtl-optimization/87246
17864 * lra-constraints.c (simplify_operand_subreg): Reload memory
17865 in subreg if the address became invalid.
17866
17867 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
17868
17869 PR target/87064
17870 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
17871 Disable for little-endian.
17872
17873 2019-01-30 Richard Biener <rguenther@suse.de>
17874
17875 PR rtl-optimization/89115
17876 * opts.c (default_options_optimization): Reduce
17877 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
17878 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
17879 to the default.
17880
17881 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17882
17883 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
17884 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
17885 type of vector element when vec_extract is implemented by direct
17886 move.
17887
17888 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
17889
17890 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
17891
17892 2019-01-30 Richard Biener <rguenther@suse.de>
17893
17894 PR tree-optimization/89111
17895 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
17896 canonicalization to appropriately sized access types.
17897
17898 2019-01-30 Jakub Jelinek <jakub@redhat.com>
17899
17900 PR c++/89105
17901 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
17902 for arguments to functions that are TU-local and shouldn't be
17903 referenced by assembly.
17904
17905 2019-01-30 Ulrich Drepper <drepper@redhat.com>
17906
17907 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
17908 after '='.
17909
17910 2019-01-29 Martin Sebor <msebor@redhat.com>
17911
17912 PR c/88956
17913 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
17914
17915 2019-01-29 Jakub Jelinek <jakub@redhat.com>
17916
17917 PR c++/66676
17918 PR ipa/89104
17919 * omp-simd-clone.c (simd_clone_clauses_extract)
17920 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
17921 OMP_CLAUSE_ALIGNED_ALIGNMENT.
17922
17923 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
17924
17925 * config.gcc: Force .init_array for ARC.
17926
17927 2019-01-29 Richard Biener <rguenther@suse.de>
17928
17929 PR debug/87295
17930 * dwarf2out.c (collect_skeleton_dies): New helper.
17931 (copy_decls_for_unworthy_types): Call it.
17932 (build_abbrev_table): Assert we do not try to replace
17933 DW_AT_signature refs with local refs.
17934
17935 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17936
17937 PR middle-end/89002
17938 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
17939 for lastprivate/linear IV, push gimplify context around gimplify_assign
17940 and, if it needed any temporaries, pop it into a gimple bind around the
17941 sequence.
17942
17943 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17944
17945 * common.opt (-Wattribute-alias): Remove "no-" from name.
17946 Make -Wattribute-alias command line option and
17947 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
17948
17949 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17950
17951 PR target/89073
17952 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
17953 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
17954 x86 ISA options.
17955 (bmi2): Add missing @opindex.
17956 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
17957 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
17958 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
17959 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
17960 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
17961 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
17962 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
17963 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
17964 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
17965 xsavec, xsaveopt and xsaves options.
17966
17967 2019-01-28 Richard Biener <rguenther@suse.de>
17968
17969 PR debug/89076
17970 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
17971 support removal.
17972
17973 2019-01-28 Richard Biener <rguenther@suse.de>
17974
17975 PR tree-optimization/88739
17976 * tree-cfg.c (verify_types_in_gimple_reference): Verify
17977 BIT_FIELD_REFs only are applied to mode-precision operands
17978 when they are integral.
17979 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
17980 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
17981 BIT_FIELD_REFs of non-mode-precision integral operands.
17982
17983 2019-01-27 Jakub Jelinek <jakub@redhat.com>
17984
17985 PR target/87214
17986 * config/i386/sse.md
17987 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
17988 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
17989 first constants in pairs are multiples of 2. Formatting fixes.
17990 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
17991 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
17992 first constants in each quadruple are multiples of 4. Formatting fixes.
17993
17994 2019-01-26 Martin Jambor <mjambor@suse.cz>
17995
17996 PR ipa/88933
17997 * tree-inline.c: Include tree-cfgcleanup.h.
17998 (delete_unreachable_blocks_update_callgraph): Move...
17999 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
18000 ...here, make externally visible, make second argument bool, adjust
18001 all callers.
18002 * tree-cfgcleanup.c: Include cgraph.h.
18003 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
18004 Declare.
18005 * ipa-prop.c: Include tree-cfgcleanup.h.
18006 (ipcp_transform_function): Call
18007 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
18008
18009 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
18010
18011 PR rtl-optimization/88846
18012 * ira.c (process_set_for_memref_referenced_p): New.
18013 (memref_referenced_p): Add new param. Use
18014 process_set_for_memref_referenced_p. Add new switch cases.
18015 (memref_used_between_p): Pass new arg to memref_referenced_p.
18016
18017 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
18018
18019 PR target/88469
18020 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
18021 argument ABI_BREAK. Set to true if the calculated alignment has
18022 changed in gcc-9. Check bit-fields for their base type alignment.
18023 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
18024 (aarch64_function_arg_boundary): Likewise.
18025 (aarch64_gimplify_va_arg_expr): Likewise.
18026
18027 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18028
18029 PR middle-end/89037
18030 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
18031 instead of accessing TREE_INT_CST_ELT directly.
18032
18033 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
18034
18035 * doc/sourcebuild.texi (Environment attributes): Add fenv and
18036 fenv_exceptions description.
18037
18038 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18039
18040 PR rtl-optimization/87763
18041 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18042 Allow SUBREG when matching CC_NZmode compare.
18043
18044 2019-01-25 Richard Biener <rguenther@suse.de>
18045
18046 PR tree-optimization/89049
18047 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18048 Look at the pattern stmt to determine if the stmt is vectorized.
18049
18050 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18051
18052 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18053 (pred_mov<mode>): Handle all-register forms using both a new
18054 alternative and a split.
18055
18056 2019-01-25 Richard Biener <rguenther@suse.de>
18057
18058 PR tree-optimization/86865
18059 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18060 Reject non-do-while loops.
18061
18062 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18063
18064 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18065 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18066 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18067 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18068 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18069 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18070 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18071 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18072 vlogical_operand, gpc_reg_operand, int_reg_operand,
18073 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18074 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18075 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18076 (save_world_operation, restore_world_operation, lmw_operation,
18077 stmw_operation): Use MEM_P and REG_P.
18078 (tie_operand): Use MEM_P.
18079 (vrsave_operation, crsave_operation): Use REG_P.
18080 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18081 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18082 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18083 (call_operand): Use HARD_REGISTER_P.
18084 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18085 Use CONST_INT_P.
18086 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18087 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18088 quad_aligned_load_p, replace_swapped_aligned_store,
18089 recombine_lvx_pattern, replace_swapped_aligned_load,
18090 recombine_stvx_pattern): Use MEM_P.
18091 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18092 Use MEM_P and SYMBOL_REF_P.
18093 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18094 (insn_is_swappable_p): Use REG_P and MEM_P.
18095 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18096 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18097 Use CONST_INT_P.
18098 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18099 Use CONST_DOUBLE_P.
18100 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18101 CONST_WIDE_INT_P.
18102 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18103 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18104 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18105 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18106 reg_or_subregno:
18107 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18108 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18109 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18110 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18111 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18112 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18113 rs6000_split_logical_di): Use CONST_INT_P.
18114 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18115 REG_P and SYMBOL_REF_P.
18116 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18117 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18118 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18119 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18120 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18121 (small_data_operand, print_operand_address): Use CONST_INT_P and
18122 SYMBOL_REF_P.
18123 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18124 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18125 Use HARD_REGISTER_NUM_P.
18126 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18127 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18128 SUBREG_P and SYMBOL_REF_P.
18129 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18130 and HARD_REGISTER_NUM_P.
18131 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18132 reg_or_subregno.
18133 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18134 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18135 MEM_P and REG_P.
18136 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18137 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18138 find_addr_reg): Use REG_P.
18139 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18140 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18141 (offsettable_ok_by_alignment, constant_pool_expr_p,
18142 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18143 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18144 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18145 rs6000_assemble_integer, create_TOC_reference,
18146 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18147 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18148 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18149 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18150 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18151 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18152 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18153 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18154 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18155 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18156 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18157 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18158 and cbranch<mode>4): Use CONST_INT_P.
18159 (multiple define_splits): Use REG_P and SUBREG_P.
18160 (define_expands call, call_value): Use MEM_P.
18161 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18162 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18163 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18164 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18165 and HARD_REGISTER_NUM_P.
18166 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18167
18168 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18169
18170 PR rtl-optimization/88948
18171 * rtl.h (prepare_copy_insn): New prototype.
18172 * gcse.c (prepare_copy_insn): New function, split out from
18173 process_insert_insn.
18174 (process_insert_insn): Use prepare_copy_insn.
18175 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18176 instead of gen_move_insn.
18177
18178 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18179
18180 PR debug/89006
18181 * config/i386/i386.c (ix86_pic_register_p): Return true for
18182 UNSPEC_SET_GOT too.
18183
18184 PR tree-optimization/88964
18185 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18186 punt if HONOR_SNANS (chrec).
18187
18188 PR middle-end/89015
18189 * tree-nested.c (convert_nonlocal_reference_stmt,
18190 convert_local_reference_stmt, convert_tramp_reference_stmt,
18191 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18192 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18193 or GIMPLE_OMP_TASK.
18194
18195 PR tree-optimization/89027
18196 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18197 for "omp simd array" variables.
18198
18199 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18200
18201 PR target/88469
18202 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18203 force the alignment of m_val.
18204
18205 2019-01-24 Richard Biener <rguenther@suse.de>
18206
18207 PR lto/87187
18208 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18209 When in "legacy" debug mode make sure to reset self-origins.
18210
18211 2019-01-24 Martin Liska <mliska@suse.cz>
18212
18213 PR gcov-profile/88994
18214 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18215 result will be always smaller or equal to the original.
18216 * gcov.c (mangle_name): Fix else branch where we should
18217 also copy to PTR and shift the pointer.
18218
18219 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18220
18221 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18222 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18223
18224 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18225
18226 * common/config/i386/i386-common.c
18227 (OPTION_MASK_ISA_ENQCMD_SET,
18228 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18229 (ix86_handle_option): Handle -menqcmd.
18230 * config.gcc (enqcmdintrin.h): New header file.
18231 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18232 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18233 -menqcmd.
18234 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18235 function type.
18236 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18237 __builtin_ia32_enqcmds): New builtins.
18238 * config/i386/i386-c.c (__ENQCMD__): New macro.
18239 * config/i386/i386-option.c (ix86_target_string): Add
18240 -menqcmd.
18241 (ix86_valid_target_attribute_inner_p): Likewise.
18242 * config/i386/i386-expand.c
18243 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18244 IX86_BUILTIN_ENQCMDS.
18245 * config/i386/i386.h (TARGET_ENQCMD): New.
18246 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18247 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18248 (movdir64b_<mode>): Parameterize to enable share expansion code
18249 with ENQCMD in function ix86_expand_builtin.
18250 * config/i386/i386.opt: Add -menqcmd.
18251 * config/i386/immintrin.h: Include enqcmdintrin.h.
18252 * config/i386/enqcmdintrin.h: New intrinsic file.
18253 * doc/invoke.texi: Add -menqcmd.
18254
18255 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18256 Steve Ellcey <sellcey@marvell.com>
18257
18258 PR target/85711
18259 * recog.c (address_operand): Return false on wrong mode for address.
18260 (constrain_operands): Check for mode with 'p' constraint.
18261
18262 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18263
18264 PR target/88998
18265 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18266 Disparage MMX alternative.
18267 (sse2_cvtpd2pi): Ditto.
18268 (sse2_cvttpd2pi): Ditto.
18269
18270 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18271
18272 PR driver/89014
18273 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18274 use-after-free of the result of
18275 aarch64_get_extension_string_for_isa_flags.
18276
18277 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18278
18279 PR c/44715
18280 * doc/extend.texi: Document break and continue behavior in
18281 statement expressions.
18282
18283 2019-01-23 Richard Biener <rguenther@suse.de>
18284
18285 PR tree-optimization/89008
18286 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18287 not leave another stray operand.
18288
18289 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18290
18291 * BASE-VER: Bump to 9.0.1.
18292
18293 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18294
18295 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18296 thunk that returns by reference, use the type of the return object
18297 of the thunk instead of that of the alias to build the dereference.
18298
18299 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18300
18301 * config/arc/atomic.md: Add operand to DMB instruction.
18302
18303 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18304
18305 PR tree-optimization/88964
18306 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18307 build_zero_cst instead of build_int_cst. Return false for loop
18308 invariants which honor signed zeros.
18309
18310 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18311
18312 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18313
18314 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18315
18316 PR target/88965
18317 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18318 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18319 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18320
18321 PR middle-end/88968
18322 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18323 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18324
18325 PR target/87064
18326 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18327 Disable for little endian.
18328
18329 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18330
18331 PR target/88469
18332 * config/arm/arm.c (arm_needs_double_word_align): Check
18333 DECL_BIT_FIELD_TYPE.
18334
18335 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18336 H.J. Lu <hongjiu.lu@intel.com>
18337
18338 PR target/88909
18339 * config/i386/i386-builtin.def: Add mask2 to all builtin
18340 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18341 SPECIAL_ARGS.
18342 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18343 (BDESC_FIRST): Likewise.
18344 (define_builtin): Add an argument for mask2. Updated to handle
18345 both ix86_isa_flags and ix86_isa_flags2.
18346 (define_builtin_const): Likewise.
18347 (define_builtin_pure): Likewise.
18348 (define_builtin2): Deleted.
18349 (define_builtin_const2): Likewise.
18350 (builtin_description): Add a member, mask2.
18351 (bdesc_*): Add mask2 to builtin initializations.
18352 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18353 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18354 support.
18355 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18356
18357 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18358
18359 PR target/88954
18360 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18361 noplt attribute.
18362
18363 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18364
18365 PR target/88469
18366 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
18367 alignment is dominated by a bitfield with 64-bit aligned base type.
18368 (arm_function_arg): Emit a warning if the alignment has changed since
18369 earlier GCC releases.
18370 (arm_function_arg_boundary): Likewise.
18371 (arm_setup_incoming_varargs): Likewise.
18372
18373 2019-01-22 Richard Biener <rguenther@suse.de>
18374
18375 PR tree-optimization/88862
18376 * graphite-scop-detection.c
18377 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
18378
18379 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
18380
18381 * doc/extend.tex (AMD GCN Function Attributes): New section.
18382 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
18383 * doc/invoke.texi (AMD GCN Options): New section.
18384 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
18385
18386 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
18387
18388 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
18389 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
18390
18391 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18392
18393 PR tree-optimization/88044
18394 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
18395 is false in the first iteration, but !every_iteration, return false
18396 instead of true with niter->niter zero.
18397
18398 PR rtl-optimization/88904
18399 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
18400 any nonequal registers before processing BB_END (b).
18401
18402 PR target/88905
18403 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
18404 GET_MODE (op0).
18405 (expand_binop_directly, expand_doubleword_clz,
18406 expand_doubleword_popcount, expand_ctz, expand_ffs,
18407 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
18408
18409 PR rtl-optimization/49429
18410 PR target/49454
18411 PR rtl-optimization/86334
18412 PR target/88906
18413 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
18414 addressable from here...
18415 (emit_block_op_via_libcall): ... to here.
18416
18417 2019-01-22 Richard Biener <rguenther@suse.de>
18418
18419 * tree-vect-loop.c (vect_analyze_loop_operations): Use
18420 auto_vec for cost vector to fix memleak.
18421 (vectorize_fold_left_reduction): Properly gather SLP defs.
18422 (vectorizable_comparison): Do not swap operands to properly
18423 gather SLP defs.
18424
18425 2019-01-22 Alan Modra <amodra@gmail.com>
18426
18427 PR target/88614
18428 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
18429 stays a reg. Allow a const_int.
18430 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
18431 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
18432 (IS_NOMARK_TLSGETADDR): Define.
18433 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
18434 (rs6000_output_tlsargs): New function.
18435 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
18436 __tls_get_addr call takes an arg.
18437 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
18438 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
18439 delete split..
18440 (call_value_nonlocal_sysv): ..or here, delete split.
18441 (tls_gdld_nomark): Delete.
18442 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
18443 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
18444 (call_value_nonlocal_sysv): Likewise.
18445 (call_value_nonlocal_sysv_secure): Likewise.
18446 (call_value_nonlocal_aix): Likewise.
18447 (call_value_indirect_aix): Likewise.
18448 (call_value_indirect_elfv2): Likewise.
18449 (call_value_local32, call_value_local64): Disable for no-mark tls.
18450 (call_value_local_aix): Likewise.
18451
18452 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
18453
18454 PR target/88938
18455 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
18456 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
18457
18458 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
18459
18460 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
18461 string contents as hash_map keys.
18462
18463 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
18464
18465 PR c/88928
18466 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
18467 for rvalue context. Handle rvalues correctly. Use min_align_of_type
18468 instead of TYPE_ALIGN.
18469 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
18470 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
18471 pointer from TYPE_STUB_DECL.
18472
18473 2019-01-21 Richard Biener <rguenther@suse.de>
18474
18475 PR tree-optimization/88934
18476 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
18477 at the possibly non-constant operand.
18478 (vect_get_constant_vectors): Adjust.
18479
18480 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
18481
18482 PR target/71659
18483 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
18484 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
18485 instead of _X86INTRIN_H_INCLUDED.
18486 * onfig/i386/clwbintrin.h: Likewise.
18487 * config/i386/pkuintrin.h: Likewise.
18488 * config/i386/prfchwintrin.h: Likewise.
18489 * config/i386/rdseedintrin.h: Likewise.
18490 * config/i386/wbnoinvdintrin.h: Likewise.
18491 * config/i386/xsavecintrin.h: Likewise.
18492 * config/i386/xsavesintrin.h: Likewise.
18493 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
18494 * config/i386/xsaveintrin.h: Likewise.
18495 * config/i386/xsaveoptintrin.h: Likewise.
18496 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
18497 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
18498 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
18499 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
18500 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
18501 * config/i386/immintrin.h: Here.
18502
18503 2019-01-20 Martin Jambor <mjambor@suse.cz>
18504
18505 PR ipa/87615
18506 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
18507 with aa_walk_budget.
18508 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
18509 aa_walk_budget_p parameter.
18510 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
18511 walk. Updated all callers.
18512 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
18513 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
18514 unmodified_parm.
18515 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
18516 parameter info. Extract info from fbi. Pass fbi to recursive calls
18517 and to unmodified_parm.
18518 (phi_result_unknown_predicate): New parameter fbi, removed parameter
18519 info, updated call to will_be_nonconstant_expr_predicate.
18520 (param_change_prob): New parameter fbi, limit AA walking.
18521 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
18522 calls to various above functions.
18523 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
18524 parameter. Use it to limit AA walking.
18525 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
18526 fbi, limit AA walk.
18527 (detect_type_change): New parameter fbi, pass it on to
18528 detect_type_change_from_memory_writes.
18529 (detect_type_change_ssa): Likewise.
18530 (aa_overwalked): Removed.
18531 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
18532 accordingly, adjust to the neew AA limiting scheme.
18533 (parm_ref_data_preserved_p): Likewise.
18534 (ipa_compute_jump_functions_for_edge): Adjust call to
18535 get_dynamic_type.
18536 (ipa_analyze_call_uses): Likewise.
18537 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
18538 (ipa_analyze_node): Initialize aa_walk_budget.
18539 (ipcp_transform_function): Likewise.
18540 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
18541 to get_dynamic_type.
18542
18543 2019-01-19 Jakub Jelinek <jakub@redhat.com>
18544
18545 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
18546 outside of #if CHECKING_P code.
18547
18548 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
18549
18550 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
18551 New function, split out from...
18552 (loop_versioning::analyze_stride): ...here.
18553 (loop_versioning::find_per_loop_multiplication): Use gassign.
18554 (loop_versioning::analyze_term_using_scevs): Return a success code.
18555 (loop_versioning::analyze_arbitrary_term): New function.
18556 (loop_versioning::analyze_address_fragment): Use
18557 analyze_arbitrary_term if all else fails.
18558
18559 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
18560
18561 PR target/88892
18562 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
18563 operands.
18564
18565 2019-01-18 Richard Biener <rguenther@suse.de>
18566
18567 PR tree-optimization/88903
18568 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
18569 scalar stmts a SLP shift amount is composed of when detecting
18570 shifts by scalars.
18571
18572 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
18573
18574 PR target/88799
18575 * config/arm/arm-cpus.in (mp): New feature.
18576 (sec): New feature.
18577 (fgroup ARMv7ve): Add mp and sec features.
18578 (arch armv7-a): Add options to allow mp and sec extensions.
18579 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
18580 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
18581 extenstions to the base architecture.
18582 (cpu cortex-a8): Add sec extension to the base architecture.
18583 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
18584 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
18585 variants down to the base v7-a varaint.
18586 * config/arm/t-multilib (v7_a_arch_variants): New variable.
18587 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
18588 of permitted extensions for -march=armv7-a and for
18589 -mcpu=generic-armv7-a.
18590
18591 2019-01-18 Martin Liska <mliska@suse.cz>
18592
18593 * params.def: Fix comment.
18594 * tree-profile.c (gimple_init_gcov_profiler): Bump function
18595 name.
18596 (gimple_gen_ic_func_profiler): Likewise.
18597
18598 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18599
18600 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
18601 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
18602 and put in error checks for stack protector guard options.
18603 (aarch64_stack_protect_guard): New.
18604 (TARGET_STACK_PROTECT_GUARD): Define.
18605 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
18606 (reg_stack_protect_address<mode>): New.
18607 (stack_protect_set): Adjust for SSP_GLOBAL.
18608 (stack_protect_test): Likewise.
18609 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
18610 (-mstack-protector-guard): Likewise.
18611 (-mstack-protector-guard-offset): Likewise.
18612
18613 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18614
18615 PR tree-optimization/86214
18616 * tree-inline.h (struct copy_body_data): Add
18617 add_clobbers_to_eh_landing_pads member.
18618 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
18619 (copy_edges_for_bb): Call it if EH edge destination is <
18620 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
18621 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
18622 if flag_stack_reuse != SR_NONE and clear it afterwards.
18623
18624 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
18625
18626 PR target/85596
18627 * doc/install.texi (with-multilib-list): Document for aarch64.
18628
18629 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18630
18631 PR target/88734
18632 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
18633 (("..."))) with ("...").
18634
18635 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18636
18637 * doc/extend.texi (Built-in Functions for Memory Model Aware
18638 Atomic Operations): Document atomic fetch and nand.
18639
18640 2019-01-18 Martin Liska <mliska@suse.cz>
18641 Richard Biener <rguenther@suse.de>
18642
18643 PR middle-end/88587
18644 * cgraph.h (create_version_clone_with_body): Add new argument
18645 with attributes.
18646 * cgraphclones.c (cgraph_node::create_version_clone): Add
18647 DECL_ATTRIBUTES to a newly created decl. And call
18648 valid_attribute_p so that proper cl_target_optimization_node
18649 is set for the newly created declaration.
18650 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
18651 for declaration.
18652 (expand_target_clones): Do not call valid_attribute_p, it must
18653 be already done.
18654 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
18655 vector types.
18656
18657 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18658
18659 PR target/88734
18660 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
18661 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
18662 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
18663
18664 2019-01-17 Martin Sebor <msebor@redhat.com>
18665
18666 PR middle-end/88273
18667 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
18668 Handle anti-ranges the same as no range at all.
18669
18670 2018-01-17 Steve Ellcey <sellcey@cavium.com>
18671
18672 * config/aarch64/aarch64.c (cgraph.h): New include.
18673 (intl.h): New include.
18674 (supported_simd_type): New function.
18675 (currently_supported_simd_type): Ditto.
18676 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
18677 (aarch64_simd_clone_adjust): Ditto.
18678 (aarch64_simd_clone_usable): Ditto.
18679 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
18680 (TARGET_SIMD_CLONE_ADJUST): Ditto.
18681 (TARGET_SIMD_CLONE_USABLE): Ditto.
18682 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
18683 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
18684 call.
18685
18686 2019-01-17 Martin Sebor <msebor@redhat.com>
18687
18688 PR tree-optimization/88800
18689 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
18690 NO_WARNING bit here. Avoid folding out-of-bounds calls.
18691 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
18692 redundant argument. Add new argument and issue diagnostics under
18693 its control. Detect out-of-bounds access even with warnings
18694 disabled.
18695 (check_bounds_or_overlap): Change return type. Add argument.
18696 (wrestrict_dom_walker::check_call): Adjust.
18697 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
18698 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
18699 check_bounds_or_overlap's return value.
18700 (handle_builtin_stxncpy): Same.
18701 (handle_builtin_strcat): Same.
18702
18703 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18704 Kwok Cheung Yeung <kcy@codesourcery.com>
18705 Julian Brown <julian@codesourcery.com>
18706 Tom de Vries <tom@codesourcery.com>
18707
18708 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
18709
18710 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18711
18712 * doc/sourcebuild.texi: Document dg-require-effective-target
18713 llvm_binutils and offload_gcn.
18714
18715 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18716 Kwok Cheung Yeung <kcy@codesourcery.com>
18717 Julian Brown <julian@codesourcery.com>
18718 Tom de Vries <tom@codesourcery.com>
18719
18720 * doc/sourcebuild.texi: Document dg-required-effective-target
18721 exceptions.
18722
18723 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18724 Kwok Cheung Yeung <kcy@codesourcery.com>
18725 Julian Brown <julian@codesourcery.com>
18726 Tom de Vries <tom@codesourcery.com>
18727 Jan Hubicka <hubicka@ucw.cz>
18728 Martin Jambor <mjambor@suse.cz>
18729
18730 * config.gcc: Add amdgcn*-*-amdhsa configuration.
18731 * configure.ac: Check for dlopen.
18732 * configure: Regenerate.
18733
18734 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18735 Kwok Cheung Yeung <kcy@codesourcery.com>
18736 Julian Brown <julian@codesourcery.com>
18737 Tom de Vries <tom@codesourcery.com>
18738 Jan Hubicka <hubicka@ucw.cz>
18739 Martin Jambor <mjambor@suse.cz>
18740
18741 * common/config/gcn/gcn-common.c: New file.
18742 * config/gcn/driver-gcn.c: New file.
18743 * config/gcn/gcn-builtins.def: New file.
18744 * config/gcn/gcn-hsa.h: New file.
18745 * config/gcn/gcn-modes.def: New file.
18746 * config/gcn/gcn-opts.h: New file.
18747 * config/gcn/gcn-passes.def: New file.
18748 * config/gcn/gcn-protos.h: New file.
18749 * config/gcn/gcn-run.c: New file.
18750 * config/gcn/gcn-tree.c: New file.
18751 * config/gcn/gcn.c: New file.
18752 * config/gcn/gcn.h: New file.
18753 * config/gcn/gcn.opt: New file.
18754 * config/gcn/t-gcn-hsa: New file.
18755
18756 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18757 Kwok Cheung Yeung <kcy@codesourcery.com>
18758 Julian Brown <julian@codesourcery.com>
18759 Tom de Vries <tom@codesourcery.com>
18760 Jan Hubicka <hubicka@ucw.cz>
18761 Martin Jambor <mjambor@suse.cz>
18762
18763 * config/gcn/constraints.md: New file.
18764 * config/gcn/gcn-valu.md: New file.
18765 * config/gcn/gcn.md: New file.
18766 * config/gcn/predicates.md: New file.
18767
18768 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
18769
18770 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
18771 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
18772 (stmt_uses_0_or_null_in_undefined_way): Likewise.
18773 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
18774
18775 2019-01-17 Tamar Christina <tamar.christina@arm.com>
18776
18777 PR target/88851
18778 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
18779 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
18780 it and document registers.
18781
18782 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18783
18784 * config/aarch64/aarch64.c (ares_tunings): Define.
18785 * config/aarch64/aarch64-cores.def (ares): Use the above.
18786
18787 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18788
18789 PR target/88794
18790 Revert:
18791 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
18792
18793 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
18794 (_mm512_fixupimm_round_pd): Update parameters and builtin.
18795 (_mm512_maskz_fixupimm_round_pd): Ditto.
18796 (_mm512_fixupimm_round_ps): Ditto.
18797 (_mm512_maskz_fixupimm_round_ps): Ditto.
18798 (_mm_fixupimm_round_sd): Ditto.
18799 (_mm_maskz_fixupimm_round_sd): Ditto.
18800 (_mm_fixupimm_round_ss): Ditto.
18801 (_mm_maskz_fixupimm_round_ss): Ditto.
18802 (_mm512_fixupimm_pd): Ditto.
18803 (_mm512_maskz_fixupimm_pd): Ditto.
18804 (_mm512_fixupimm_ps): Ditto.
18805 (_mm512_maskz_fixupimm_ps): Ditto.
18806 (_mm_fixupimm_sd): Ditto.
18807 (_mm_maskz_fixupimm_sd): Ditto.
18808 (_mm_fixupimm_ss): Ditto.
18809 (_mm_maskz_fixupimm_ss): Ditto.
18810 (_mm512_mask_fixupimm_round_pd): Update builtin.
18811 (_mm512_mask_fixupimm_round_ps): Ditto.
18812 (_mm_mask_fixupimm_round_sd): Ditto.
18813 (_mm_mask_fixupimm_round_ss): Ditto.
18814 (_mm512_mask_fixupimm_pd): Ditto.
18815 (_mm512_mask_fixupimm_ps): Ditto.
18816 (_mm_mask_fixupimm_sd): Ditto.
18817 (_mm_mask_fixupimm_ss): Ditto.
18818 * config/i386/avx512vlintrin.h:
18819 (_mm256_fixupimm_pd): Update parameters and builtin.
18820 (_mm256_maskz_fixupimm_pd): Ditto.
18821 (_mm256_fixupimm_ps): Ditto.
18822 (_mm256_maskz_fixupimm_ps): Ditto.
18823 (_mm_fixupimm_pd): Ditto.
18824 (_mm_maskz_fixupimm_pd): Ditto.
18825 (_mm_fixupimm_ps): Ditto.
18826 (_mm_maskz_fixupimm_ps): Ditto.
18827 (_mm256_mask_fixupimm_pd): Update builtin.
18828 (_mm256_mask_fixupimm_ps): Ditto.
18829 (_mm_mask_fixupimm_pd): Ditto.
18830 (_mm_mask_fixupimm_ps): Ditto.
18831 * config/i386/i386-builtin-types.def: Add new types and remove
18832 useless ones.
18833 * config/i386/i386-builtin.def: Update builtin definitions.
18834 * config/i386/i386.c: Handle new builtin types and remove useless ones.
18835 * config/i386/sse.md: Update VFIXUPIMM* patterns.
18836 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18837 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18838 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
18839 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18840 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18841 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
18842 * config/i386/subst.md:
18843 (round_saeonly_sd_mask_operand4): Add new subst_attr.
18844 (round_saeonly_sd_mask_op4): Ditto.
18845 (round_saeonly_expand_operand5): Ditto.
18846 (round_saeonly_expand): Update.
18847
18848 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18849
18850 PR target/88794
18851 Revert:
18852 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
18853
18854 * config/i386/sse.md: Combine VFIXUPIMM* patterns
18855 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18856 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18857 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
18858 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18859 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18860 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
18861
18862 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18863
18864 PR target/88794
18865 Revert:
18866 2018-12-15 Jakub Jelinek <jakub@redhat.com>
18867
18868 PR target/88489
18869 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
18870 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
18871 instead of UNSPEC_FIXUPIMM.
18872
18873 2019-01-17 Richard Biener <rguenther@suse.de>
18874
18875 PR lto/86736
18876 * dwarf2out.c (want_pubnames): Never generate pubnames sections
18877 and friends for the LTO part of debug info.
18878
18879 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18880
18881 PR tree-optimization/86214
18882 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
18883 if x == y.
18884
18885 PR rtl-optimization/88870
18886 * dce.c (deletable_insn_p): Never delete const/pure calls that can
18887 throw if we can't alter the cfg or delete dead exceptions.
18888 (mark_insn): Don't call find_call_stack_args for such calls.
18889
18890 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
18891
18892 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
18893 prototypes for vec_st.
18894 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
18895 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
18896 mainly on signed/unsigned long long and double.
18897
18898 2019-01-16 David Malcolm <dmalcolm@redhat.com>
18899
18900 PR target/88861
18901 * combine.c (delete_noop_moves): Convert to "bool" return,
18902 returning true if any edges are eliminated.
18903 (combine_instructions): Also return true if delete_noop_moves
18904 returns true.
18905
18906 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18907
18908 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
18909 correct max nunits for endian swap.
18910 (aarch64_expand_fcmla_builtin): Correct subreg code.
18911 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18912 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
18913 lane endianness.
18914
18915 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
18916
18917 * config/alpha/alpha.c (alpha_gimplify_va_arg):
18918 Handle split indirect COMPLEX_TYPE arguments.
18919
18920 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
18921
18922 PR target/86891
18923 * config/aarch64/aarch64-modes.def: Add comment about how the carry
18924 bit is set by add and compare.
18925 (CC_ADC): New CC_MODE.
18926 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
18927 to cache the code and mode of X. Adjust the shape of a CC_Cmode
18928 comparison. Add detection for CC_ADCmode.
18929 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
18930 CC_ADCmode.
18931 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
18932 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
18933 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
18934 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
18935 to eliminate the need for zero-extending the operands.
18936 (add<mode>3_compareC_imm): Delete. Merge into ...
18937 (add<mode>3_compareC): ... this. Restructure the comparison to
18938 eliminate the need for zero-extending the operands.
18939 (add<mode>3_carryin): Use LTU for the overflow detection.
18940 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
18941 Reexpress comparison for overflow.
18942 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
18943 (add<mode>3_carryinC): Likewise.
18944 (add<mode>3_carryinV): Use LTU for carry between partials.
18945 * config/aarch64/predicates.md (aarch64_carry_operation): Update
18946 handling of CC_Cmode and add CC_ADCmode.
18947 (aarch64_borrow_operation): Likewise.
18948
18949 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18950
18951 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
18952 Remove patternmode.
18953 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
18954 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18955 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
18956 Remove endianness conversion.
18957
18958 2019-01-16 Martin Liska <mliska@suse.cz>
18959
18960 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
18961 for GCC driver.
18962 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
18963 a new argument.
18964 * gcc.c (add_sysrooted_hdrs_prefix): New function.
18965 (path_prefix_reset): Move up in the source file.
18966 (find_fortran_preinclude_file): Make complex search for the
18967 fortran header files.
18968
18969 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
18970
18971 * godump.c (go_output_typedef): When outputting a typedef, refer
18972 to the underlying type by its name and not its structure.
18973
18974 2019-01-15 David Malcolm <dmalcolm@redhat.com>
18975
18976 PR c++/88795
18977 * tree.c (build_function_type): Assert that arg_types is not
18978 error_mark_node.
18979
18980 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
18981
18982 PR inline-asm/52813
18983 * doc/extend.texi: Document that listing the stack pointer in the
18984 clobber list of an asm is a deprecated feature.
18985 * common.opt (Wdeprecated): Moved from c-family/c.opt.
18986 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
18987 warning instead of an error for clobbers of the stack pointer.
18988 Add a note explaining why.
18989
18990 2019-01-15 Richard Biener <rguenther@suse.de>
18991
18992 PR debug/88046
18993 * dwarf2out.c (gen_member_die): Do not generate inheritance
18994 DIEs late.
18995
18996 2019-01-15 Richard Biener <rguenther@suse.de>
18997
18998 PR tree-optimization/88855
18999 * tree-if-conv.c (combine_blocks): Collect
19000 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
19001
19002 2019-01-15 Tom de Vries <tdevries@suse.de>
19003
19004 PR target/80547
19005 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
19006 lhs == NULL_TREE for gang-level reduction.
19007
19008 2019-01-15 Richard Biener <rguenther@suse.de>
19009 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19010
19011 PR ipa/88788
19012 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
19013 return true if SSA_NAME is already marked in visited bitmap.
19014 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
19015
19016 2019-01-15 Jakub Jelinek <jakub@redhat.com>
19017
19018 PR tree-optimization/88775
19019 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
19020 equal == 0 equality pointer comparisons some more if compared in
19021 integral types and either one points to an automatic var and the
19022 other to a global, or we can prove at least one points to the middle
19023 or both point to start or both point to end.
19024
19025 2019-01-14 Andi Kleen <ak@linux.intel.com>
19026
19027 * Makefile.in: Lower autofdo sampling rate by 10x.
19028 * Makefile.tpl: Dito.
19029
19030 2019-01-14 Tom Honermann <tom@honermann.net>
19031
19032 * defaults.h: Define CHAR8_TYPE.
19033
19034 2019-01-14 Martin Sebor <msebor@redhat.com>
19035
19036 PR target/88638
19037 * doc/extend.texi (Darwin Format Checks): Clarify.
19038
19039 2019-01-14 Richard Biener <rguenther@suse.de>
19040
19041 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19042 whether we are in (simplify ...) or (match ...) context.
19043
19044 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19045
19046 PR rtl-optimization/88796
19047 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19048 * cfgexpand.c (stack_protect_prologue): Initialize
19049 crtl->stack_protect_guard_decl.
19050 * function.c (stack_protect_epilogue): Use it instead of calling
19051 targetm.stack_protect_guard again.
19052 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19053 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19054 crtl->stack_protect_guard_decl.
19055 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19056 on the returned MEM_EXPR.
19057
19058 2019-01-12 Tom de Vries <tdevries@suse.de>
19059
19060 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19061 vector length using -fopenacc-dim.
19062
19063 2019-01-12 Tom de Vries <tdevries@suse.de>
19064
19065 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19066 lengths into account.
19067
19068 2019-01-12 Svante Signell <svante.signell@gmail.com>
19069
19070 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19071 (TARGET_CAN_SPLIT_STACK): Define.
19072 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19073
19074 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19075
19076 * params.def (inline-unit-growth): Set to 40.
19077
19078 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19079
19080 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19081
19082 2019-01-12 Tom de Vries <tdevries@suse.de>
19083
19084 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19085 region calling vector-partitionable routine, set default_vector_length
19086 to WARP_SIZE.
19087
19088 2019-01-12 Tom de Vries <tdevries@suse.de>
19089
19090 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19091 variable default_vector_length.
19092
19093 2019-01-12 Tom de Vries <tdevries@suse.de>
19094
19095 PR middle-end/88703
19096 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19097 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19098 dimensions limits.
19099
19100 2019-01-12 Tom de Vries <tdevries@suse.de>
19101
19102 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19103 (nvptx_goacc_validate_dims): Add used parameter.
19104 * doc/tm.texi: Regenerate.
19105 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19106 argument to call to targetm.goacc.validate_dims.
19107 (default_goacc_validate_dims): Add used
19108 parameter.
19109 * target.def (validate_dims): Add used parameter in DEFHOOK.
19110 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19111
19112 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19113
19114 PR middle-end/85956
19115 PR lto/88733
19116 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19117 field.
19118 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19119 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19120 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19121 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19122
19123 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19124
19125 PR rtl-optimization/87305
19126 * lra-assigns.c
19127 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19128 for little endian pseudos used as paradoxical subreg.
19129
19130 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19131
19132 PR tree-optimization/88693
19133 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19134 for STRING_CSTs that don't contain any NUL characters in the first
19135 TREE_STRING_LENGTH bytes.
19136
19137 2019-01-11 Alan Modra <amodra@gmail.com>
19138
19139 PR 88777
19140 PR 88614
19141 * genattrtab.c (min_fn): Don't translate values.
19142 (min_attr_value): Return INT_MAX when the value can't be calculated.
19143 Return minimum among any values that can be calculated.
19144 (max_attr_value): Adjust.
19145
19146 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19147
19148 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19149
19150 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19151
19152 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19153 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19154 (aarch64_return_call_with_max_clobbers): New function.
19155 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19156 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19157 argument.
19158 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19159 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19160 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19161 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19162 * cselib.c (cselib_process_insn): Add argument to
19163 targetm.hard_regno_call_part_clobbered call.
19164 * ira-conflicts.c (ira_build_conflicts): Ditto.
19165 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19166 * lra-constraints.c (inherit_reload_reg): Ditto.
19167 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19168 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19169 argument. Call targetm.return_call_with_max_clobbers.
19170 Add argument to targetm.hard_regno_call_part_clobbered call.
19171 (calls_have_same_clobbers_p): New function.
19172 (process_bb_lives): Add call_insn and last_call_insn variables.
19173 Pass call_insn to check_pseudos_live_through_calls.
19174 Modify if stmt to check targetm.return_call_with_max_clobbers.
19175 Update setting of flush variable.
19176 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19177 to false.
19178 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19179 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19180 targetm.hard_regno_call_part_clobbered call.
19181 * reginfo.c (choose_hard_reg_mode): Ditto.
19182 * regrename.c (check_new_reg_p): Ditto.
19183 * reload.c (find_equiv_reg): Ditto.
19184 * reload1.c (emit_reload_insns): Ditto.
19185 * sched-deps.c (deps_analyze_insn): Ditto.
19186 * sel-sched.c (init_regs_for_mode): Ditto.
19187 (mark_unavailable_hard_regs): Ditto.
19188 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19189 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19190 (return_call_with_max_clobbers): New target function.
19191 * doc/tm.texi: Regenerate.
19192 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19193 * hooks.c (hook_bool_uint_mode_false): Change to
19194 hook_bool_insn_uint_mode_false.
19195 * hooks.h (hook_bool_uint_mode_false): Ditto.
19196
19197 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19198
19199 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19200 (aarch64_remove_extra_call_preserved_regs): New function.
19201 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19202 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19203 * doc/tm.texi: Regenerate.
19204 * final.c (get_call_reg_set_usage): Call new hook.
19205 * target.def (remove_extra_call_preserved_regs): New hook.
19206 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19207 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19208
19209 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19210
19211 PR bootstrap/88714
19212 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19213 inside of pass_combine_1 dump rather than pass_profile_1.
19214
19215 2019-01-11 Tom de Vries <tdevries@suse.de>
19216
19217 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19218 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19219 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19220 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19221 num_workers 16.
19222
19223 2019-01-11 Tom de Vries <tdevries@suse.de>
19224
19225 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19226
19227 2019-01-11 Jan Beulich <jbeulich@suse.com>
19228
19229 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19230 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19231 sse2_cvtsi2sd): Add {l}.
19232 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19233 syntax.
19234
19235 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19236
19237 PR target/88785
19238 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19239 define_expand.
19240 (*float<floatunssuffix>v2div2sf2): New define_insn.
19241 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19242 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19243 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19244 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19245 match_operands with "const0_operand" "C".
19246
19247 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19248
19249 * config/aarch64/aarch64-builtins.c
19250 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19251 (aarch64_init_simd_builtins): ...Here
19252
19253 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19254
19255 PR rtl-optimization/87305
19256 * lra-assigns.c
19257 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19258 allocation for big endian pseudos used as paradoxical subregs and
19259 spill them if it is wrong.
19260 * lra-constraints.c (lra_constraints): Add a comment.
19261
19262 2019-01-10 Richard Biener <rguenther@suse.de>
19263
19264 PR tree-optimization/88792
19265 * tree-ssa-pre.c (get_representative_for): Do not return a
19266 value-number here.
19267
19268 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19269
19270 PR middle-end/84877
19271 PR bootstrap/88450
19272 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19273 (assign_parm_setup_block): Do the argument slot realignment here
19274 instead.
19275
19276 2019-01-10 Stefan Agner <stefan@agner.ch>
19277
19278 PR target/88648
19279 * config/arm/arm.c (arm_option_override_internal): Force
19280 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19281
19282 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19283
19284 PR c/88568
19285 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19286 DECL_EXTERNAL.
19287
19288 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19289
19290 * config/arm/arm-builtins.c
19291 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19292 (MAC_LANE_PAIR_QUALIFIERS): New.
19293 (arm_expand_builtin_args): Use it.
19294 (arm_expand_builtin_1): Likewise.
19295 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19296 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19297 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19298 * config/arm/arm_neon.h:
19299 (vcadd_rot90_f16): New.
19300 (vcaddq_rot90_f16): New.
19301 (vcadd_rot270_f16): New.
19302 (vcaddq_rot270_f16): New.
19303 (vcmla_f16): New.
19304 (vcmlaq_f16): New.
19305 (vcmla_lane_f16): New.
19306 (vcmla_laneq_f16): New.
19307 (vcmlaq_lane_f16): New.
19308 (vcmlaq_laneq_f16): New.
19309 (vcmla_rot90_f16): New.
19310 (vcmlaq_rot90_f16): New.
19311 (vcmla_rot90_lane_f16): New.
19312 (vcmla_rot90_laneq_f16): New.
19313 (vcmlaq_rot90_lane_f16): New.
19314 (vcmlaq_rot90_laneq_f16): New.
19315 (vcmla_rot180_f16): New.
19316 (vcmlaq_rot180_f16): New.
19317 (vcmla_rot180_lane_f16): New.
19318 (vcmla_rot180_laneq_f16): New.
19319 (vcmlaq_rot180_lane_f16): New.
19320 (vcmlaq_rot180_laneq_f16): New.
19321 (vcmla_rot270_f16): New.
19322 (vcmlaq_rot270_f16): New.
19323 (vcmla_rot270_lane_f16): New.
19324 (vcmla_rot270_laneq_f16): New.
19325 (vcmlaq_rot270_lane_f16): New.
19326 (vcmlaq_rot270_laneq_f16): New.
19327 (vcadd_rot90_f32): New.
19328 (vcaddq_rot90_f32): New.
19329 (vcadd_rot270_f32): New.
19330 (vcaddq_rot270_f32): New.
19331 (vcmla_f32): New.
19332 (vcmlaq_f32): New.
19333 (vcmla_lane_f32): New.
19334 (vcmla_laneq_f32): New.
19335 (vcmlaq_lane_f32): New.
19336 (vcmlaq_laneq_f32): New.
19337 (vcmla_rot90_f32): New.
19338 (vcmlaq_rot90_f32): New.
19339 (vcmla_rot90_lane_f32): New.
19340 (vcmla_rot90_laneq_f32): New.
19341 (vcmlaq_rot90_lane_f32): New.
19342 (vcmlaq_rot90_laneq_f32): New.
19343 (vcmla_rot180_f32): New.
19344 (vcmlaq_rot180_f32): New.
19345 (vcmla_rot180_lane_f32): New.
19346 (vcmla_rot180_laneq_f32): New.
19347 (vcmlaq_rot180_lane_f32): New.
19348 (vcmlaq_rot180_laneq_f32): New.
19349 (vcmla_rot270_f32): New.
19350 (vcmlaq_rot270_f32): New.
19351 (vcmla_rot270_lane_f32): New.
19352 (vcmla_rot270_laneq_f32): New.
19353 (vcmlaq_rot270_lane_f32): New.
19354 (vcmlaq_rot270_laneq_f32): New.
19355 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19356 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19357 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19358 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19359 vcmlaq_lane270): New.
19360 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19361 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
19362 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
19363 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
19364 (arm_option_reconfigure_globals): Use them.
19365 * config/arm/iterators.md (VDF, VQ_HSF): New.
19366 (VCADD, VCMLA): New.
19367 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
19368 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
19369 New.
19370 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
19371 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
19372
19373 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19374
19375 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19376 Add qualifier_lane_pair_index.
19377 (emit-rtl.h): Include.
19378 (TYPES_QUADOP_LANE_PAIR): New.
19379 (aarch64_simd_expand_args): Use it.
19380 (aarch64_simd_expand_builtin): Likewise.
19381 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
19382 New.
19383 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
19384 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
19385 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
19386 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
19387 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
19388 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
19389 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
19390 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
19391 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
19392 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
19393 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
19394 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
19395 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
19396 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19397 Add __ARM_FEATURE_COMPLEX.
19398 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
19399 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
19400 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
19401 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19402 fcmlaq_lane270): New.
19403 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19404 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
19405 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
19406 * config/aarch64/arm_neon.h:
19407 (vcadd_rot90_f16): New.
19408 (vcaddq_rot90_f16): New.
19409 (vcadd_rot270_f16): New.
19410 (vcaddq_rot270_f16): New.
19411 (vcmla_f16): New.
19412 (vcmlaq_f16): New.
19413 (vcmla_lane_f16): New.
19414 (vcmla_laneq_f16): New.
19415 (vcmlaq_lane_f16): New.
19416 (vcmlaq_rot90_lane_f16): New.
19417 (vcmla_rot90_laneq_f16): New.
19418 (vcmla_rot90_lane_f16): New.
19419 (vcmlaq_rot90_f16): New.
19420 (vcmla_rot90_f16): New.
19421 (vcmlaq_laneq_f16): New.
19422 (vcmla_rot180_laneq_f16): New.
19423 (vcmla_rot180_lane_f16): New.
19424 (vcmlaq_rot180_f16): New.
19425 (vcmla_rot180_f16): New.
19426 (vcmlaq_rot90_laneq_f16): New.
19427 (vcmlaq_rot270_laneq_f16): New.
19428 (vcmlaq_rot270_lane_f16): New.
19429 (vcmla_rot270_laneq_f16): New.
19430 (vcmlaq_rot270_f16): New.
19431 (vcmla_rot270_f16): New.
19432 (vcmlaq_rot180_laneq_f16): New.
19433 (vcmlaq_rot180_lane_f16): New.
19434 (vcmla_rot270_lane_f16): New.
19435 (vcadd_rot90_f32): New.
19436 (vcaddq_rot90_f32): New.
19437 (vcaddq_rot90_f64): New.
19438 (vcadd_rot270_f32): New.
19439 (vcaddq_rot270_f32): New.
19440 (vcaddq_rot270_f64): New.
19441 (vcmla_f32): New.
19442 (vcmlaq_f32): New.
19443 (vcmlaq_f64): New.
19444 (vcmla_lane_f32): New.
19445 (vcmla_laneq_f32): New.
19446 (vcmlaq_lane_f32): New.
19447 (vcmlaq_laneq_f32): New.
19448 (vcmla_rot90_f32): New.
19449 (vcmlaq_rot90_f32): New.
19450 (vcmlaq_rot90_f64): New.
19451 (vcmla_rot90_lane_f32): New.
19452 (vcmla_rot90_laneq_f32): New.
19453 (vcmlaq_rot90_lane_f32): New.
19454 (vcmlaq_rot90_laneq_f32): New.
19455 (vcmla_rot180_f32): New.
19456 (vcmlaq_rot180_f32): New.
19457 (vcmlaq_rot180_f64): New.
19458 (vcmla_rot180_lane_f32): New.
19459 (vcmla_rot180_laneq_f32): New.
19460 (vcmlaq_rot180_lane_f32): New.
19461 (vcmlaq_rot180_laneq_f32): New.
19462 (vcmla_rot270_f32): New.
19463 (vcmlaq_rot270_f32): New.
19464 (vcmlaq_rot270_f64): New.
19465 (vcmla_rot270_lane_f32): New.
19466 (vcmla_rot270_laneq_f32): New.
19467 (vcmlaq_rot270_lane_f32): New.
19468 (vcmlaq_rot270_laneq_f32): New.
19469 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
19470 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
19471 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
19472 (FCADD, FCMLA): New.
19473 (rot): New.
19474 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
19475
19476 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19477
19478 PR other/16615
19479
19480 * config/pa/pa.c: Change "can not" to "cannot".
19481 * gimple-ssa-evrp-analyze.c: Likewise.
19482 * ipa-icf.c: Likewise.
19483 * ipa-polymorphic-call.c: Likewise.
19484 * ipa-pure-const.c: Likewise.
19485 * lra-constraints.c: Likewise.
19486 * lra-remat.c: Likewise.
19487 * reload1.c: Likewise.
19488 * reorg.c: Likewise.
19489 * tree-ssa-uninit.c: Likewise.
19490
19491 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19492
19493 PR other/16615
19494
19495 * Makefile.in: Mechanically replace "can not" with "cannot".
19496 * alias.c: Likewise.
19497 * builtins.c: Likewise.
19498 * calls.c: Likewise.
19499 * cgraph.c: Likewise.
19500 * cgraph.h: Likewise.
19501 * cgraphclones.c: Likewise.
19502 * cgraphunit.c: Likewise.
19503 * combine-stack-adj.c: Likewise.
19504 * combine.c: Likewise.
19505 * common/config/i386/i386-common.c: Likewise.
19506 * config/aarch64/aarch64.c: Likewise.
19507 * config/alpha/sync.md: Likewise.
19508 * config/arc/arc.c: Likewise.
19509 * config/arc/predicates.md: Likewise.
19510 * config/arm/arm-c.c: Likewise.
19511 * config/arm/arm.c: Likewise.
19512 * config/arm/arm.h: Likewise.
19513 * config/arm/arm.md: Likewise.
19514 * config/arm/cortex-r4f.md: Likewise.
19515 * config/csky/csky.c: Likewise.
19516 * config/csky/csky.h: Likewise.
19517 * config/darwin-f.c: Likewise.
19518 * config/epiphany/epiphany.md: Likewise.
19519 * config/i386/i386.c: Likewise.
19520 * config/i386/sol2.h: Likewise.
19521 * config/m68k/m68k.c: Likewise.
19522 * config/mcore/mcore.h: Likewise.
19523 * config/microblaze/microblaze.md: Likewise.
19524 * config/mips/20kc.md: Likewise.
19525 * config/mips/sb1.md: Likewise.
19526 * config/nds32/nds32.c: Likewise.
19527 * config/nds32/predicates.md: Likewise.
19528 * config/pa/pa.c: Likewise.
19529 * config/rs6000/e300c2c3.md: Likewise.
19530 * config/rs6000/rs6000.c: Likewise.
19531 * config/s390/s390.h: Likewise.
19532 * config/sh/sh.c: Likewise.
19533 * config/sh/sh.md: Likewise.
19534 * config/spu/vmx2spu.h: Likewise.
19535 * cprop.c: Likewise.
19536 * dbxout.c: Likewise.
19537 * df-scan.c: Likewise.
19538 * doc/cfg.texi: Likewise.
19539 * doc/extend.texi: Likewise.
19540 * doc/fragments.texi: Likewise.
19541 * doc/gty.texi: Likewise.
19542 * doc/invoke.texi: Likewise.
19543 * doc/lto.texi: Likewise.
19544 * doc/md.texi: Likewise.
19545 * doc/objc.texi: Likewise.
19546 * doc/rtl.texi: Likewise.
19547 * doc/tm.texi: Likewise.
19548 * dse.c: Likewise.
19549 * emit-rtl.c: Likewise.
19550 * emit-rtl.h: Likewise.
19551 * except.c: Likewise.
19552 * expmed.c: Likewise.
19553 * expr.c: Likewise.
19554 * fold-const.c: Likewise.
19555 * genautomata.c: Likewise.
19556 * gimple-fold.c: Likewise.
19557 * hard-reg-set.h: Likewise.
19558 * ifcvt.c: Likewise.
19559 * ipa-comdats.c: Likewise.
19560 * ipa-cp.c: Likewise.
19561 * ipa-devirt.c: Likewise.
19562 * ipa-fnsummary.c: Likewise.
19563 * ipa-icf.c: Likewise.
19564 * ipa-inline-transform.c: Likewise.
19565 * ipa-inline.c: Likewise.
19566 * ipa-polymorphic-call.c: Likewise.
19567 * ipa-profile.c: Likewise.
19568 * ipa-prop.c: Likewise.
19569 * ipa-pure-const.c: Likewise.
19570 * ipa-reference.c: Likewise.
19571 * ipa-split.c: Likewise.
19572 * ipa-visibility.c: Likewise.
19573 * ipa.c: Likewise.
19574 * ira-build.c: Likewise.
19575 * ira-color.c: Likewise.
19576 * ira-conflicts.c: Likewise.
19577 * ira-costs.c: Likewise.
19578 * ira-int.h: Likewise.
19579 * ira-lives.c: Likewise.
19580 * ira.c: Likewise.
19581 * ira.h: Likewise.
19582 * loop-invariant.c: Likewise.
19583 * loop-unroll.c: Likewise.
19584 * lower-subreg.c: Likewise.
19585 * lra-assigns.c: Likewise.
19586 * lra-constraints.c: Likewise.
19587 * lra-eliminations.c: Likewise.
19588 * lra-lives.c: Likewise.
19589 * lra-remat.c: Likewise.
19590 * lra-spills.c: Likewise.
19591 * lra.c: Likewise.
19592 * lto-cgraph.c: Likewise.
19593 * lto-streamer-out.c: Likewise.
19594 * postreload-gcse.c: Likewise.
19595 * predict.c: Likewise.
19596 * profile-count.h: Likewise.
19597 * profile.c: Likewise.
19598 * recog.c: Likewise.
19599 * ree.c: Likewise.
19600 * reload.c: Likewise.
19601 * reload1.c: Likewise.
19602 * reorg.c: Likewise.
19603 * resource.c: Likewise.
19604 * rtl.def: Likewise.
19605 * rtl.h: Likewise.
19606 * rtlanal.c: Likewise.
19607 * sched-deps.c: Likewise.
19608 * sched-ebb.c: Likewise.
19609 * sched-rgn.c: Likewise.
19610 * sel-sched-ir.c: Likewise.
19611 * sel-sched.c: Likewise.
19612 * shrink-wrap.c: Likewise.
19613 * simplify-rtx.c: Likewise.
19614 * symtab.c: Likewise.
19615 * target.def: Likewise.
19616 * toplev.c: Likewise.
19617 * tree-call-cdce.c: Likewise.
19618 * tree-cfg.c: Likewise.
19619 * tree-complex.c: Likewise.
19620 * tree-core.h: Likewise.
19621 * tree-eh.c: Likewise.
19622 * tree-inline.c: Likewise.
19623 * tree-loop-distribution.c: Likewise.
19624 * tree-nrv.c: Likewise.
19625 * tree-profile.c: Likewise.
19626 * tree-sra.c: Likewise.
19627 * tree-ssa-alias.c: Likewise.
19628 * tree-ssa-dce.c: Likewise.
19629 * tree-ssa-dom.c: Likewise.
19630 * tree-ssa-forwprop.c: Likewise.
19631 * tree-ssa-loop-im.c: Likewise.
19632 * tree-ssa-loop-ivcanon.c: Likewise.
19633 * tree-ssa-loop-ivopts.c: Likewise.
19634 * tree-ssa-loop-niter.c: Likewise.
19635 * tree-ssa-phionlycprop.c: Likewise.
19636 * tree-ssa-phiopt.c: Likewise.
19637 * tree-ssa-propagate.c: Likewise.
19638 * tree-ssa-threadedge.c: Likewise.
19639 * tree-ssa-threadupdate.c: Likewise.
19640 * tree-ssa-uninit.c: Likewise.
19641 * tree-ssanames.c: Likewise.
19642 * tree-streamer-out.c: Likewise.
19643 * tree.c: Likewise.
19644 * tree.h: Likewise.
19645 * vr-values.c: Likewise.
19646
19647 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
19648
19649 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
19650 (ix86_split_xorsign): Ditto.
19651 * config/i386/i386.c (ix86_expand_xorsign): New function.
19652 (ix86_split_xorsign): Ditto.
19653 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
19654 (xorsign<mode>3): New expander.
19655 (xorsign<mode>3_1): New insn_and_split pattern.
19656 * config/i386/sse.md (xorsign<mode>3): New expander.
19657
19658 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19659
19660 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
19661 (*tablejump_sp64): Likewise.
19662 (*tablejump<P:mode>): ...this.
19663 (*call_address_sp32): Merge into...
19664 (*call_address_sp64): Likewise.
19665 (*call_address<P:mode>): ...this.
19666 (*call_symbolic_sp32): Merge into...
19667 (*call_symbolic_sp64): Likewise.
19668 (*call_symbolic<P:mode>): ...this.
19669 (call_value): Remove constraint and add predicate.
19670 (*call_value_address_sp32): Merge into...
19671 (*call_value_address_sp64): Likewise.
19672 (*call_value_address<P:mode>): ...this.
19673 (*call_value_symbolic_sp32): Merge into...
19674 (*call_value_symbolic_sp64): Likewise.
19675 (*call_value_symbolic<P:mode>): ...this.
19676 (*sibcall_symbolic_sp32): Merge into...
19677 (*sibcall_symbolic_sp64): Likewise.
19678 (*sibcall_symbolic<P:mode>): ...this.
19679 (sibcall_value): Remove constraint and add predicate.
19680 (*sibcall_value_symbolic_sp32): Merge into...
19681 (*sibcall_value_symbolic_sp64): Likewise.
19682 (*sibcall_value_symbolic<P:mode>): ...this.
19683 (window_save): Minor tweak.
19684 (*branch_sp32): Merge into...
19685 (*branch_sp64): Likewise.
19686 (*branch<P:mode>): ...this.
19687
19688 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19689 James Clarke <jrtc27@jrtc27.com>
19690
19691 PR target/84010
19692 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
19693 consistently in TLS address generation and adjust code to the renaming
19694 of patterns. Mark calls to __tls_get_addr as const.
19695 * config/sparc/sparc.md (tgd_hi22): Turn into...
19696 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
19697 (tgd_lo10): Turn into...
19698 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
19699 (tgd_add32): Merge into...
19700 (tgd_add64): Likewise.
19701 (tgd_add<P:mode>): ...this and use Pmode throughout.
19702 (tldm_hi22): Turn into...
19703 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
19704 (tldm_lo10): Turn into...
19705 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
19706 (tldm_add32): Merge into...
19707 (tldm_add64): Likewise.
19708 (tldm_add<P:mode>): ...this and use Pmode throughout.
19709 (tldm_call32): Merge into...
19710 (tldm_call64): Likewise.
19711 (tldm_call<P:mode>): ...this and use Pmode throughout.
19712 (tldo_hix22): Turn into...
19713 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
19714 (tldo_lox10): Turn into...
19715 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
19716 (tldo_add32): Merge into...
19717 (tldo_add64): Likewise.
19718 (tldo_add<P:mode>): ...this and use Pmode throughout.
19719 (tie_hi22): Turn into...
19720 (tie_hi22<P:mode>): ...this and use Pmode throughout.
19721 (tie_lo10): Turn into...
19722 (tie_lo10<P:mode>): ...this and use Pmode throughout.
19723 (tie_ld64): Use DImode throughout.
19724 (tie_add32): Merge into...
19725 (tie_add64): Likewise.
19726 (tie_add<P:mode>): ...this and use Pmode throughout.
19727 (tle_hix22_sp32): Merge into...
19728 (tle_hix22_sp64): Likewise.
19729 (tle_hix22<P:mode>): ...this and use Pmode throughout.
19730 (tle_lox22_sp32): Merge into...
19731 (tle_lox22_sp64): Likewise.
19732 (tle_lox22<P:mode>): ...this and use Pmode throughout.
19733 (*tldo_ldub_sp32): Merge into...
19734 (*tldo_ldub_sp64): Likewise.
19735 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
19736 (*tldo_ldub1_sp32): Merge into...
19737 (*tldo_ldub1_sp64): Likewise.
19738 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
19739 (*tldo_ldub2_sp32): Merge into...
19740 (*tldo_ldub2_sp64): Likewise.
19741 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
19742 (*tldo_ldsb1_sp32): Merge into...
19743 (*tldo_ldsb1_sp64): Likewise.
19744 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
19745 (*tldo_ldsb2_sp32): Merge into...
19746 (*tldo_ldsb2_sp64): Likewise.
19747 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
19748 (*tldo_ldub3_sp64): Use DImode throughout.
19749 (*tldo_ldsb3_sp64): Likewise.
19750 (*tldo_lduh_sp32): Merge into...
19751 (*tldo_lduh_sp64): Likewise.
19752 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
19753 (*tldo_lduh1_sp32): Merge into...
19754 (*tldo_lduh1_sp64): Likewise.
19755 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
19756 (*tldo_ldsh1_sp32): Merge into...
19757 (*tldo_ldsh1_sp64): Likewise.
19758 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
19759 (*tldo_lduh2_sp64): Use DImode throughout.
19760 (*tldo_ldsh2_sp64): Likewise.
19761 (*tldo_lduw_sp32): Merge into...
19762 (*tldo_lduw_sp64): Likewise.
19763 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
19764 (*tldo_lduw1_sp64): Use DImode throughout.
19765 (*tldo_ldsw1_sp64): Likewise.
19766 (*tldo_ldx_sp64): Likewise.
19767 (*tldo_stb_sp32): Merge into...
19768 (*tldo_stb_sp64): Likewise.
19769 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
19770 (*tldo_sth_sp32): Merge into...
19771 (*tldo_sth_sp64): Likewise.
19772 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
19773 (*tldo_stw_sp32): Merge into...
19774 (*tldo_stw_sp64): Likewise.
19775 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
19776 (*tldo_stx_sp64): Use DImode throughout.
19777
19778 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19779
19780 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
19781 check configure option to set BTI and Return Address Signing.
19782 * configure.ac: Add --enable-standard-branch-protection and
19783 --disable-standard-branch-protection.
19784 * configure: Regenerated.
19785 * doc/install.texi: Document the same.
19786
19787 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19788 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19789
19790 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
19791 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
19792 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
19793 if bti is enabled.
19794 * config/aarch64/aarch64-bti-insert.c: New file.
19795 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
19796 pass.
19797 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
19798 new bti pass.
19799 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
19800 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
19801 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
19802 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
19803
19804 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19805
19806 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
19807 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
19808 Disable bti for -mbranch-protection=none.
19809 (aarch64_handle_standard_branch_protection): Enable bti for
19810 -mbranch-protection=standard.
19811 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
19812 -mbranch-protection.
19813 (aarch64_bti_enabled): Check if bti is enabled.
19814 * config/aarch64/aarch64.opt: Declare target variable.
19815 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
19816
19817 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19818
19819 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
19820 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
19821 (aarch64_expand_epilogue): Likewise.
19822 (aarch64_output_mi_thunk): Likewise.
19823 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
19824 TAILCALL_ADDR_REGS to x16 and x17.
19825 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
19826
19827 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19828
19829 * config/aarch64/aarch64-option-extensions.def: Define
19830 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
19831 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
19832 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
19833 (AARCH64_FL_PREDRES): New.
19834 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
19835 AARCH64_FL_PREDRES by default.
19836 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
19837
19838 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19839
19840 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
19841 ARMv8.5-A.
19842 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
19843 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
19844 * doc/invoke.texi: Document ARMv8.5-A.
19845
19846 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19847
19848 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
19849 (xorsign<mode>3): Likewise.
19850
19851 2019-01-09 Jelinek <jakub@redhat.com>
19852
19853 PR middle-end/88758
19854 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
19855 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
19856
19857 PR rtl-optimization/88331
19858 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
19859 not currently_expanding_to_rtl.
19860
19861 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19862
19863 * doc/invoke.texi (-Os): Remove trailing spaces.
19864 (-finline-functions): Remove reference to -O2.
19865
19866 2019-01-08 Jakub Jelinek <jakub@redhat.com>
19867
19868 PR rtl-optimization/79593
19869 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
19870
19871 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
19872 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
19873
19874 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
19875
19876 PR bootstrap/88721
19877 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
19878 to -1 on entry.
19879
19880 PR debug/88723
19881 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
19882 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
19883
19884 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
19885
19886 PR target/88717
19887 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
19888 ix86_avx_u128_mode_entry.
19889
19890 2019-01-08 Martin Liska <mliska@suse.cz>
19891
19892 PR tree-optimization/88753
19893 * tree-switch-conversion.c (switch_conversion::build_one_array):
19894 Come up with local variable constructor. Convert first to
19895 type of constructor values.
19896
19897 2019-01-08 Richard Biener <rguenther@suse.de>
19898
19899 PR tree-optimization/86554
19900 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
19901 rpo_avail): Move earlier.
19902 (visit_nary_op): When value-numbering to expressions
19903 with different overflow behavior make sure there's an
19904 available expression on the path.
19905
19906 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
19907
19908 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
19909 aarch64_parse_branch_protection,
19910 struct aarch64_branch_protect_type,
19911 aarch64_handle_no_branch_protection,
19912 aarch64_handle_standard_branch_protection,
19913 aarch64_validate_mbranch_protection,
19914 aarch64_handle_pac_ret_protection,
19915 aarch64_handle_attr_branch_protection,
19916 accepted_branch_protection_string,
19917 aarch64_pac_ret_subtypes,
19918 aarch64_branch_protect_types,
19919 aarch64_handle_pac_ret_leaf): Define.
19920 (aarch64_override_options_after_change_1, aarch64_override_options):
19921 Add check for accepted_branch_protection_string.
19922 (aarch64_option_save): Save accepted_branch_protection_string.
19923 (aarch64_option_restore): Save accepted_branch_protection_string.
19924 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
19925 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
19926 msign-return-address.
19927 * doc/invoke.texi: Add mbranch-protection.
19928
19929 2019-01-08 Alan Modra <amodra@gmail.com>
19930
19931 PR target/88614
19932 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
19933 Delete "unknownp" parameter. Adjust callers. Handle
19934 CONST_INT, PLUS, MINUS, and MULT.
19935 (attr_value_aligned): Renamed from or_attr_value.
19936 (min_attr_value): Return INT_MIN for unhandled rtl case..
19937 (min_fn): ..and translate to INT_MAX here.
19938 (write_length_unit_log): Modify to cope without "unknown".
19939 (write_attr_value): Handle IF_THEN_ELSE.
19940
19941 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19942
19943 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
19944 optimization for masked stores.
19945
19946 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19947
19948 PR middle-end/88567
19949 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
19950 output vector directly to duplicate_and_interleave instead of
19951 going through a temporary. Postpone insertion of ctor_seq to
19952 the end of the loop.
19953
19954 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
19955
19956 PR target/86891
19957 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
19958 unsigned_p. Handle signed and unsigned overflow correction as
19959 required.
19960 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
19961 prototype.
19962 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
19963 for operand 2.
19964 (add<mode>3_compareV_imm): Make this callable for expanding.
19965 (subv<GPI:mode>4): Use register_operand for operand 1. Use
19966 aarch64_plus_operand for operand 2.
19967 (subv<GPI:mode>_insn): New insn pattern.
19968 (subv<GPI:mode>_imm): Likewise.
19969 (negv<GPI:mode>3): New expand pattern.
19970 (negv<GPI:mode>_insn): New insn pattern.
19971 (negv<GPI:mode>_cmp_only): Likewise.
19972 (cmpv<GPI:mode>_insn): Likewise.
19973 (subvti4): Use register_operand for operand 1. Update call to
19974 aarch64_expand_subvti.
19975 (usubvti4): Likewise.
19976 (negvti3): New expand pattern.
19977 (negdi_carryout): New insn pattern.
19978 (negvdi_carryinV): New insn pattern.
19979 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
19980 version the named version.
19981 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
19982 operands.
19983 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
19984 patterns.
19985 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
19986 patterns.
19987 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
19988 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
19989 (sub<mode>3_carryinCV): Delete.
19990 (sub<GPI:mode>3_carryinV): New expand pattern.
19991 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
19992
19993 2019-01-07 Richard Biener <rguenther@suse.de>
19994
19995 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
19996 of tree_operand_hash.
19997
19998 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19999
20000 PR tree-optimization/88598
20001 * tree.h (single_nonzero_element): Declare.
20002 * tree.c (single_nonzero_element): New function.
20003 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
20004 if I is the only nonzero element of CST.
20005
20006 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20007
20008 PR tree-optimization/88598
20009 * tree.h (initializer_each_zero_or_onep): Declare.
20010 * tree.c (initializer_each_zero_or_onep): New function.
20011 (signed_or_unsigned_type_for): Handle float types too.
20012 (unsigned_type_for, signed_type_for): Update comments accordingly.
20013 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
20014 x & { 0 or -1, 0 or -1, ... }.
20015
20016 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
20017
20018 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
20019 with x86_64-pc-linux-gnu.
20020
20021 2019-01-07 Tom de Vries <tdevries@suse.de>
20022
20023 PR target/85486
20024 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
20025 function.
20026 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
20027 routines.
20028
20029 2019-01-07 Jakub Jelinek <jakub@redhat.com>
20030
20031 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
20032 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
20033 TARGET_AVX512F as condition.
20034
20035 PR debug/88723
20036 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
20037 const_not_ok_for_debug_p target hook.
20038 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20039 on UNSPEC and subexpressions thereof if all subexpressions of the
20040 UNSPEC are CONSTANT_P.
20041
20042 PR tree-optimization/88676
20043 * tree-ssa-phiopt.c (two_value_replacement): New function.
20044 (tree_ssa_phiopt_worker): Call it.
20045
20046 PR sanitizer/88619
20047 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20048 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20049
20050 PR c++/85052
20051 * tree-vect-generic.c: Include insn-config.h and recog.h.
20052 (expand_vector_piecewise): Add defaulted ret_type argument,
20053 if non-NULL, use that in preference to type for the result type.
20054 (expand_vector_parallel): Formatting fix.
20055 (do_vec_conversion, do_vec_narrowing_conversion,
20056 expand_vector_conversion): New functions.
20057 (expand_vector_operations_1): Call expand_vector_conversion
20058 for VEC_CONVERT ifn calls.
20059 * internal-fn.def (VEC_CONVERT): New internal function.
20060 * internal-fn.c (expand_VEC_CONVERT): New function.
20061 * fold-const-call.c (fold_const_vec_convert): New function.
20062 (fold_const_call): Use it for CFN_VEC_CONVERT.
20063 * doc/extend.texi (__builtin_convertvector): Document.
20064
20065 2019-01-07 Tom de Vries <tdevries@suse.de>
20066
20067 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20068 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20069 vector_red_partition, vector_red_sym): New global variables.
20070 (nvptx_option_override): Initialize vector_red_sym.
20071 (nvptx_declare_function_name): Restore red_partition register.
20072 (nvptx_file_end): Emit code to declare the vector reduction variables.
20073 (nvptx_output_red_partition): New function.
20074 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20075 large vector reductions.
20076 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20077 (nvptx_init_builtins): Add VECTOR_ADDR.
20078 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20079 Handle nvptx_expand_shared_addr.
20080 (nvptx_get_shared_red_addr): Add vector argument and handle large
20081 vectors.
20082 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20083 large vectors.
20084 (nvptx_goacc_reduction_init): Likewise.
20085 (nvptx_goacc_reduction_fini): Likewise.
20086 (nvptx_goacc_reduction_teardown): Likewise.
20087 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20088 init,fini,teardown}.
20089 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20090 (nvptx_set_current_function): Init vector_red_partition.
20091 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20092 (nvptx_red_partition): New insn.
20093 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20094
20095 2019-01-07 Tom de Vries <tdevries@suse.de>
20096
20097 PR target/85381
20098 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20099 empty loops.
20100
20101 2019-01-07 Tom de Vries <tdevries@suse.de>
20102
20103 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20104 (nvptx_option_override): Init oacc_bcast_partition.
20105 (nvptx_init_oacc_workers): New function.
20106 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20107 (nvptx_needs_shared_bcast): New function.
20108 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20109 to propagate state.
20110 (nvptx_shared_propagate): Initialize vector bcast partition and
20111 synchronization state.
20112 (nvptx_single): Generalize to enable vectors to use shared-memory
20113 to propagate state.
20114 (nvptx_process_pars): Likewise.
20115 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20116 * config/nvptx/nvptx.h (struct machine_function): Add
20117 bcast_partition and sync_bar members.
20118
20119 2019-01-07 Tom de Vries <tdevries@suse.de>
20120
20121 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20122 (nvptx_apply_dim_limits): New function.
20123 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20124 PTX_WARP_SIZE.
20125
20126 2019-01-07 Tom de Vries <tdevries@suse.de>
20127
20128 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20129 as late as possible.
20130
20131 2019-01-07 Tom de Vries <tdevries@suse.de>
20132
20133 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20134 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20135 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20136 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20137 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20138
20139 2019-01-07 Tom de Vries <tdevries@suse.de>
20140
20141 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20142
20143 2019-01-07 Tom de Vries <tdevries@suse.de>
20144
20145 * omp-offload.c (oacc_get_min_dim): New function.
20146 * omp-offload.h (oacc_get_min_dim): Declare.
20147
20148 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20149
20150 PR target/88521
20151 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20152 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20153
20154 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20155
20156 PR tree-opt/86020
20157 Revert:
20158 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20159
20160 * ipa-inline.c (edge_badness): Use inlined_time instead of
20161 inline_summaries->get.
20162
20163 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20164
20165 * opts.c (enable_fdo_optimizations): Enable
20166 version-loops-for-strides, loop-interchange, unrol-and-jam
20167 and tree-loop-distribution.
20168 * invoke.texi: Document newly enabled options.
20169
20170 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20171
20172 * doc/invoke.texi (max-inline-insns-small): New parameters.
20173 * ipa-inline.c (want_early_inline_function_p): simplify.
20174 (want_inline_small_function_p): Fix pasto from previous patch;
20175 use max-inline-insns-small bound.
20176 * params.def (max-inline-insns-small): New param.
20177 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20178 variables correctly.
20179
20180 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20181
20182 * doc/invoke.texi: Document max-inline-insns-size,
20183 uninlined-function-insns, uninlined-function-time,
20184 uninlined-thunk-insns and uninlined-thunk-time.
20185 * params.def: Add max-inline-insns-size,
20186 uninlined-function-insns, uninlined-function-time,
20187 uninlined-thunk-insns and uninlined-thunk-time.
20188 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20189 new parameters.
20190 * ipa-inline.c (can_inline_edge_by_limits_p,
20191 want_inline_small_function_p): Use new parameters.
20192
20193 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20194
20195 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20196
20197 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20198
20199 PR middle-end/82564
20200 PR target/88620
20201 * expr.c (expand_assignment): For calls returning VLA structures
20202 if to_rtx is not a MEM, force it into a stack temporary.
20203
20204 PR debug/88635
20205 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20206 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20207 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20208 subexpressions of both operands.
20209 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20210 subrtxes are CONSTANT_P.
20211 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20212 2018-11-09 changes.
20213
20214 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20215
20216 * params.def (hot-bb-count-ws-permille): Set to 990.
20217
20218 2019-01-04 Martin Sebor <msebor@redhat.com>
20219
20220 PR c/88546
20221 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20222 leaf.
20223
20224 2019-01-04 Martin Sebor <msebor@redhat.com>
20225
20226 PR c/88363
20227 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20228
20229 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20230
20231 * gdbinit.in: Turn off pagination for the skip commands, restore
20232 it to previous state afterwards.
20233
20234 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20235
20236 PR target/88594
20237 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20238 of GET_MODE (opN) as modes of the libcall arguments.
20239
20240 2019-01-04 Jan Beulich <jbeulich@suse.com>
20241
20242 * config/i386/sse.md
20243 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20244 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20245 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20246 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20247 avx512f_vmcmp<mode>3<round_saeonly_name>,
20248 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20249 avx512f_maskcmp<mode>3,
20250 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20251 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20252 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20253 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20254 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20255 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20256 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20257 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20258 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20259 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20260 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20261 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20262 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20263 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20264 avx512cd_maskb_vec_dup<mode>,
20265 avx512cd_maskw_vec_dup<mode>,
20266 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20267 avx512dq_vmfpclass<mode>,
20268 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20269 instead of =Yk.
20270
20271 2019-01-03 Martin Sebor <msebor@redhat.com>
20272
20273 PR tree-optimization/88659
20274 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20275
20276 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20277
20278 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20279 unaligned vsx and avoid lxvd2x/stxvd2x.
20280 (gen_lvx_v4si_move): New function.
20281
20282 2019-01-03 Tom de Vries <tdevries@suse.de>
20283
20284 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20285 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20286 function.
20287 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20288
20289 2019-01-03 Tom de Vries <tdevries@suse.de>
20290
20291 * config/nvptx/nvptx.c (struct offload_attrs): New.
20292 (populate_offload_attrs): New function. Factor mask extraction out of
20293 nvptx_reorg. Add extraction of dimensions.
20294 (nvptx_reorg): Use populate_offload_attrs.
20295
20296 2019-01-03 Tom de Vries <tdevries@suse.de>
20297
20298 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20299 cases for oacc_min_dims_p and routine_p. Add asserts for
20300 oacc_default_dims_p and offload_region_p.
20301
20302 2019-01-03 Tom de Vries <tdevries@suse.de>
20303
20304 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20305 factored out of ...
20306 (nvptx_goacc_validate_dims): ... here.
20307
20308 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20309
20310 PR tree-optimization/85574
20311 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20312 structure.
20313 (struct ssa_equip_hash_traits): Declare.
20314 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20315
20316 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20317
20318 PR debug/88644
20319 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20320 change it to qualified_type.
20321
20322 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20323
20324 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20325 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20326
20327 2019-01-02 Martin Sebor <msebor@redhat.com>
20328 Jeff Law <law@redhat.com>
20329
20330 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20331 (get_range_strlen_tree): Update appropriately.
20332 (get_range_strlen)
20333 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20334
20335 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20336 rather than set_range_info.
20337 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20338 maybe_set_strlen_range. Handle potentially boundary crossing
20339 cases more conservatively.
20340 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20341 Call set_strlen_range.
20342 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20343
20344 PR middle-end/88663
20345 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20346 need the flexp argument.
20347 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20348 from calls to get_range_strlen. Update comments. Just update
20349 VAL for an unterminated const char array and let the reset of the
20350 code handle it normally. No longer try to set *flexp. Adjust
20351 return value.
20352 (get_range_strlen): Update for the new get_range_strlen API.
20353 (get_maxval_strlen): Similarly.
20354 (gimple_fold_builtin_strlen): Handle update meaning of return value
20355 from get_range_strlen.
20356 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20357 get_range_strlen API.
20358
20359 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20360
20361 PR lto/88130
20362 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
20363 false at WPA time when body was removed.
20364
20365 2019-01-02 Martin Liska <mliska@suse.cz>
20366
20367 PR tree-optimization/88650
20368 * predict.c (set_even_probabilities): Calculate probability
20369 remainer only when really used.
20370
20371 2019-01-02 Richard Biener <rguenther@suse.de>
20372
20373 PR middle-end/88651
20374 * tree-data-ref.c (analyze_subscript_affine_affine): Use
20375 widest_ints when mangling max_stmt_execution results.
20376
20377 2019-01-02 Richard Biener <rguenther@suse.de>
20378
20379 PR tree-optimization/88621
20380 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
20381 bitfields when canoncalizing.
20382
20383 2019-01-02 Richard Biener <rguenther@suse.de>
20384
20385 PR target/87545
20386 * config/i386/x86-tune-costs.h (intel_cost): Adjust
20387 cost of cheap SSE instruction.
20388
20389 2019-01-02 Richard Biener <rguenther@suse.de>
20390
20391 PR ipa/85574
20392 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
20393 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
20394 function.
20395 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
20396 set after UIDs before splitting them.
20397
20398 2019-01-01 Martin Sebor <msebor@redhat.com>
20399 Jeff Law <law@redhat.com>
20400
20401 * gimple-fold.c (get_range_strlen_tree): Record if the computed
20402 length is optimistic. If it is, then arrange to compute the
20403 conservative length as well.
20404
20405 * gimple-fold.h (get_range_strlen): Update prototype.
20406 * builtins.c (check_access): Update call to get_range_strlen to use
20407 c_strlen_data pointer. Change various variable accesses to instead
20408 pull data from the c_strlen_data structure.
20409 (check_strncat_sizes, expand_builtin_strncat): Likewise.
20410 * calls.c (maybe_warn_nonstring_arg): Likewise.
20411 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
20412 minimum length if maximum lengh is unknown.
20413 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
20414 that used c_strlen, it's no longer needed. Restructure slightly.
20415 (format_string): Set unlikely range appropriately.
20416 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
20417 formatting issues.
20418 (get_range_strlen): Accept c_strlen_data pointer for external
20419 call sites as well. Pass through to call to internal get_range_strlen.
20420 Adjust minlen, maxlen and maxbound as needed.
20421 (get_maxval_strlen): Update comments.
20422 (gimple_fold_builtin_strlen): Update call to get_range_strlen
20423 to use c_strlen_data pointer. Change variable accesses to instead
20424 use c_strlen_data data members.
20425
20426 * gimple-fold.c (get_range_strlen): Update prototype.
20427 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
20428 local variables. Use pdata to return information to caller.
20429 Update calls to get_range_strlen. Update pdata->maxbound.
20430 (get_range_strlen -- static version): Similarly.
20431 (get_range_strlen -- extern version): Update for internal
20432 get_range_strlen API change. Convert to external data format.
20433 (get_maxval_strlen): Similarly.
20434
20435 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
20436
20437 * coverage.c (get_coverage_counts): Use current_function_decl.
20438 * profile.c (read_thunk_profile): New function.
20439 (branch_prob): Add THUNK parameter.
20440 * tree-profile.c (tree_profiling): Handle thunks.
20441 * value-prof.c (init_node_map): Handle thunks.
20442 * value-prof.h (branch_prob): Upate prototype.
20443 (read_thunk_profile): Declare.
20444
20445 2019-01-01 Jakub Jelinek <jakub@redhat.com>
20446
20447 Update copyright years.
20448
20449 * gcc.c (process_command): Update copyright notice dates.
20450 * gcov-dump.c (print_version): Ditto.
20451 * gcov.c (print_version): Ditto.
20452 * gcov-tool.c (print_version): Ditto.
20453 * gengtype.c (create_file): Ditto.
20454 * doc/cpp.texi: Bump @copying's copyright year.
20455 * doc/cppinternals.texi: Ditto.
20456 * doc/gcc.texi: Ditto.
20457 * doc/gccint.texi: Ditto.
20458 * doc/gcov.texi: Ditto.
20459 * doc/install.texi: Ditto.
20460 * doc/invoke.texi: Ditto.
20461 \f
20462 Copyright (C) 2019 Free Software Foundation, Inc.
20463
20464 Copying and distribution of this file, with or without modification,
20465 are permitted in any medium without royalty provided the copyright
20466 notice and this notice are preserved.