1 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
3 PR rtl-optimization/91347
4 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
5 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
7 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
9 * calls.h (function_arg_info): Add a pass_by_reference field,
11 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
12 when applying pass-by-reference semantics.
13 (initialize_argument_information): Likewise.
14 (emit_library_call_value_1): Likewise.
15 * function.c (assign_parm_data_one): Remove passed_pointer field.
16 (assign_parm_find_data_types): Don't set it.
17 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
18 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
19 arg.pass_by_reference instead of passed_pointer.
21 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
23 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
24 into a single function_arg_info, updating its fields when we
25 apply pass-by-reference and promotion semantics. Use the
26 function_arg_info to track the mode rather than keeping it in
27 a separate local variable.
28 (initialize_argument_information): Likewise. Base the final
29 arg_to_skip on this new function_arg_info rather than creating
30 a new one from scratch.
32 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
34 * function.c (assign_parm_data_one): Replace passed_type,
35 promoted_mode and named_arg with a function_arg_info field.
36 (assign_parm_find_data_types): Remove local variables and
37 assign directly to "data". Make data->passed_mode shadow
38 data->arg.mode until promotion, then assign the promoted
39 mode to data->arg.mode.
40 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
41 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
42 (assign_parm_remove_parallels, assign_parm_setup_block_p)
43 (assign_parm_setup_block, assign_parm_setup_reg)
44 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
45 arg.mode instead of promoted_mode, arg.type instead of passed_type
46 and arg.named instead of named_arg. Use data->arg for
47 function_arg_info structures that had the field values passed_type,
48 promoted_mode and named_arg. Base other function_arg_infos on
49 data->arg, changing the necessary properties.
51 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
53 * calls.h (apply_pass_by_reference_rules): Declare.
54 * calls.c (apply_pass_by_reference_rules): New function.
55 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
56 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
57 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
58 * function.c (assign_parm_find_data_types): Likewise.
59 * var-tracking.c (prepare_call_arguments): Likewise.
61 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
63 * target.def (must_pass_in_stack): Take a function_arg_info instead
65 * doc/tm.texi: Regenerate.
66 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
67 instead of a mode and a type.
68 (must_pass_in_stack_var_size_or_pad): Likewise.
69 * calls.c (must_pass_in_stack_var_size): Likewise.
70 (must_pass_in_stack_var_size_or_pad): Likewise.
71 (initialize_argument_information): Update call to
72 targetm.calls.must_pass_in_stack.
73 (must_pass_va_arg_on_stack): Likewise.
74 * function.c (assign_parm_find_entry_rtl): Likewise.
75 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
76 * config/alpha/alpha.c (alpha_function_arg): Likewise.
77 (alpha_function_arg_advance): Likewise.
78 * config/cr16/cr16.c (cr16_function_arg): Likewise.
79 (cr16_function_arg_advance): Likewise.
80 * config/cris/cris.c (cris_pass_by_reference): Likewise.
81 (cris_arg_partial_bytes): Likewise.
82 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
83 * config/lm32/lm32.c (lm32_function_arg): Likewise.
84 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
85 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
86 * config/mips/mips.c (mips_pass_by_reference): Likewise.
87 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
88 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
89 * config/sh/sh.c (sh_pass_by_reference): Likewise.
90 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
91 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
92 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
93 instead of a mode and a type.
94 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
95 (fr30_num_arg_regs): Likewise.
96 (fr30_setup_incoming_varargs): Update calls accordingly.
97 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
98 (fr30_function_arg_advance): Likewise.
99 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
100 instead of a mode and a type.
101 * config/gcn/gcn.c (num_arg_regs): Likewise.
102 (gcn_function_arg, gcn_function_arg_advance): Update calls to
103 num_arg_regs and targetm.calls.must_pass_in_stack.
104 (gcn_arg_partial_bytes): Likewise.
105 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
106 function_arg_info instead of a mode and a type.
107 (classify_argument): Update call accordingly.
108 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
109 function_arg_info instead of a mode and a type.
110 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
112 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
113 (rs6000_parm_needs_stack): Update call accordingly.
114 (setup_incoming_varargs): Likewise.
116 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
118 * target.def (callee_copies): Take a function_arg_info instead
119 of a mode, type and named flag.
120 * doc/tm.texi: Regenerate.
121 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
122 instead of a mode, type and named flag.
123 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
124 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
125 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
126 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
127 instead of a mode, type and named flag.
128 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
129 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
130 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
131 * calls.h (reference_callee_copied): Take a function_arg_info
132 instead of a mode, type and named flag.
133 * calls.c (reference_callee_copied): Likewise.
134 (initialize_argument_information): Update call accordingly.
135 (emit_library_call_value_1): Likewise.
136 * function.c (gimplify_parameters): Likewise.
137 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
138 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
139 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
140 * config/c6x/c6x.c (c6x_callee_copies): Delete.
141 (TARGET_CALLEE_COPIES): Define to
142 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
143 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
144 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
145 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
146 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
147 instead of a mode, type and named flag.
148 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
149 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
150 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
151 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
152 * config/msp430/msp430.c (msp430_callee_copies): Delete.
153 (TARGET_CALLEE_COPIES): Define to
154 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
155 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
156 instead of a mode, type and named flag.
157 * config/sh/sh.c (sh_callee_copies): Likewise.
158 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
159 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
160 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
162 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
164 * target.def (function_arg_advance): Take a function_arg_info instead
165 of a mode, type and named flag.
166 * doc/tm.texi: Regenerate.
167 * targhooks.h (default_function_arg_advance): Take a function_arg_info
168 instead of a mode, type and named flag.
169 * targhooks.c (default_function_arg_advance): Likewise.
170 * calls.c (initialize_argument_information): Update call to
171 targetm.calls.function_arg_advance.
172 (emit_library_call_value_1): Likewise.
173 * dse.c (get_call_args): Likewise.
174 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
175 * function.c (assign_parms, gimplify_parameters): Likewise.
176 * var-tracking.c (prepare_call_arguments): Likewise.
177 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
178 function_arg_info instead of a mode, type and named flag.
179 (aarch64_setup_incoming_varargs): Update call accordingly.
180 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
181 function_arg_info instead of a mode, type and named flag.
182 (alpha_setup_incoming_varargs): Update call accordingly.
183 * config/arc/arc.c (arc_function_arg_advance): Take a
184 function_arg_info instead of a mode, type and named flag.
185 (arc_setup_incoming_varargs): Update call accordingly.
186 * config/arm/arm.c (arm_function_arg_advance): Take a
187 function_arg_info instead of a mode, type and named flag.
188 (cmse_func_args_or_return_in_stack): Update call accordingly.
189 (arm_function_ok_for_sibcall): Likewise.
190 (cmse_nonsecure_call_clear_caller_saved): Likewise.
191 * config/avr/avr.c (avr_function_arg_advance): Take a
192 function_arg_info instead of a mode, type and named flag.
193 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
194 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
195 (c6x_call_saved_register_used): Update call accordingly.
196 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
197 function_arg_info instead of a mode, type and named flag.
198 * config/cris/cris.c (cris_function_arg_advance): Likewise.
199 * config/csky/csky.c (csky_function_arg_advance): Likewise.
200 (csky_setup_incoming_varargs): Update call accordingly.
201 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
202 function_arg_info instead of a mode, type and named flag.
203 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
204 * config/frv/frv.c (frv_function_arg_advance): Likewise.
205 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
206 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
207 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
208 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
209 (ix86_setup_incoming_varargs): Update call accordingly.
210 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
211 function_arg_info instead of a mode, type and named flag.
212 (ia64_setup_incoming_varargs): Update call accordingly.
213 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
214 function_arg_info instead of a mode, type and named flag.
215 (iq2000_expand_prologue): Update call accordingly.
216 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
217 function_arg_info instead of a mode, type and named flag.
218 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
219 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
220 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
221 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
222 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
224 (microblaze_expand_prologue): Update call accordingly.
225 * config/mips/mips.c (mips_function_arg_advance): Take a
226 function_arg_info instead of a mode, type and named flag.
227 (mips_setup_incoming_varargs): Update call accordingly.
228 (mips_output_args_xfer): Likewise.
229 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
230 function_arg_info instead of a mode, type and named flag.
231 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
232 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
233 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
234 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
235 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
236 (nios2_setup_incoming_varargs): Update call accordingly.
237 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
238 function_arg_info instead of a mode, type and named flag.
239 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
240 * config/pa/pa.c (pa_function_arg_advance): Likewise.
241 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
242 * config/pru/pru.c (pru_function_arg_advance): Likewise.
243 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
244 (riscv_setup_incoming_varargs): Update call accordingly.
245 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
246 function_arg_info instead of a mode, type and named flag.
247 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
249 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
250 (rs6000_parm_needs_stack): Update call accordingly.
251 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
252 instead of a mode, type and named flag.
253 * config/s390/s390.c (s390_function_arg_advance): Likewise.
254 (s390_call_saved_register_used): Update call accordingly.
255 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
256 instead of a mode, type and named flag.
257 (sh_output_mi_thunk): Update call accordingly.
258 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
259 function_arg_info instead of a mode, type and named flag.
260 * config/spu/spu.c (spu_function_arg_advance): Likewise.
261 (spu_setup_incoming_varargs): Update call accordingly.
262 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
263 function_arg_info instead of a mode, type and named flag.
264 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
265 (tilegx_setup_incoming_varargs): Update call accordingly.
266 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
267 function_arg_info instead of a mode, type and named flag.
268 (tilegx_setup_incoming_varargs): Update call accordingly.
269 * config/v850/v850.c (v850_function_arg_advance): Take a
270 function_arg_info instead of a mode, type and named flag.
271 * config/vax/vax.c (vax_function_arg_advance): Likewise.
272 * config/visium/visium.c (visium_function_arg_advance): Likewise.
273 (visium_setup_incoming_varargs): Update call accordingly.
274 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
275 function_arg_info instead of a mode, type and named flag.
277 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
279 * target.def (function_arg, function_incoming_arg): Take a
280 function_arg_info instead of a mode, tree and named flag.
281 * doc/tm.texi: Regenerate.
282 * targhooks.h (default_function_arg): Take a function_arg_info
283 instead of a mode, tree and named flag.
284 (default_function_incoming_arg): Likewise.
285 * targhooks.c (default_function_arg): Likewise.
286 (default_function_incoming_arg): Likewise.
287 * calls.h (function_arg_info::end_marker_p): New function.
288 (function_arg_info::end_marker): Likewise.
289 * calls.c (prepare_call_address, initialize_argument_information)
290 (expand_call, emit_library_call_value_1): Update calls to
291 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
292 * dse.c: Include calls.h.
293 (get_call_args): Update call to targetm.calls.function_arg.
294 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
295 * var-tracking.c (prepare_call_arguments): Likewise.
296 * function.c (assign_parm_find_entry_rtl): Update call to
297 targetm.calls.function_incoming_arg.
298 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
299 function_arg_info instead of a mode, tree and named flag.
300 * config/alpha/alpha.c (alpha_function_arg): Likewise.
301 * config/arc/arc.c (arc_function_arg): Likewise.
302 * config/arm/arm.c (arm_function_arg): Likewise.
303 (cmse_func_args_or_return_in_stack): Update call accordingly.
304 (arm_function_ok_for_sibcall): Likewise.
305 (cmse_nonsecure_call_clear_caller_saved): Likewise.
306 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
307 instead of a mode, tree and named flag.
308 * config/bfin/bfin.c (bfin_function_arg): Likewise.
309 * config/c6x/c6x.c (c6x_function_arg): Likewise.
310 (c6x_call_saved_register_used): Update call accordingly.
311 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
312 instead of a mode, tree and named flag.
313 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
314 (cris_function_arg_1): Likewise.
315 * config/csky/csky.c (csky_function_arg): Likewise.
316 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
317 * config/fr30/fr30.c (fr30_function_arg): Likewise.
318 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
319 (frv_function_arg_1): Likewise.
320 * config/ft32/ft32.c (ft32_function_arg): Likewise.
321 * config/gcn/gcn.c (gcn_function_arg): Likewise.
322 * config/h8300/h8300.c (h8300_function_arg): Likewise.
323 * config/i386/i386.c (ix86_function_arg): Likewise.
324 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
325 (ia64_function_arg_1): Likewise.
326 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
327 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
329 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
330 instead of a mode, tree and named flag.
331 * config/m32c/m32c.c (m32c_function_arg): Likewise.
332 * config/m32r/m32r.c (m32r_function_arg): Likewise.
333 * config/m68k/m68k.c (m68k_function_arg): Likewise.
334 * config/mcore/mcore.c (mcore_function_arg): Likewise.
335 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
336 (microblaze_expand_prologue): Update call accordingly.
337 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
338 instead of a mode, tree and named flag.
339 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
340 (mmix_function_arg_1): Likewise.
341 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
342 * config/moxie/moxie.c (moxie_function_arg): Likewise.
343 * config/msp430/msp430.c (msp430_function_arg): Likewise.
344 * config/nds32/nds32.c (nds32_function_arg): Likewise.
345 * config/nios2/nios2.c (nios2_function_arg): Likewise.
346 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
347 (nvptx_function_incoming_arg): Likewise.
348 * config/or1k/or1k.c (or1k_function_arg): Likewise.
349 * config/pa/pa.c (pa_function_arg): Likewise.
350 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
351 * config/pru/pru.c (pru_function_arg): Likewise.
352 * config/riscv/riscv.c (riscv_function_arg): Likewise.
353 * config/rl78/rl78.c (rl78_function_arg): Likewise.
354 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
355 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
356 (rs6000_parm_needs_stack): Update call accordingly.
357 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
358 instead of a mode, tree and named flag.
359 * config/s390/s390.c (s390_function_arg): Likewise.
360 (s390_call_saved_register_used): Update call accordingly.
361 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
362 instead of a mode, tree and named flag.
363 (sh_output_mi_thunk): Update call accordingly.
364 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
365 (sparc_function_incoming_arg): Take a function_arg_info instead of
366 a mode, tree and named flag.
367 * config/spu/spu.c (spu_function_arg): Likewise.
368 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
369 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
370 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
371 * config/v850/v850.c (v850_function_arg): Likewise.
372 * config/vax/vax.c (vax_function_arg): Likewise.
373 * config/visium/visium.c (visium_function_arg): Likewise.
374 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
375 (xtensa_function_incoming_arg): Likewise.
377 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
379 * target.def (setup_incoming_varargs): Take a function_arg_info
380 instead of a mode and tree.
381 * doc/tm.texi: Regenerate.
382 * targhooks.h (default_setup_incoming_varargs): Take a
383 function_arg_info instead of a mode and tree.
384 * targhooks.c (default_setup_incoming_varargs): Likewise.
385 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
386 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
387 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
388 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
389 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
390 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
391 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
392 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
394 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
395 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
396 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
397 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
398 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
399 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
400 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
401 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
402 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
403 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
404 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
405 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
406 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
407 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
408 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
409 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
410 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
411 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
412 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
413 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
414 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
415 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
416 * function.c (assign_parms_setup_varargs): Update call to
417 targetm.calls.setup_incoming_varargs.
419 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
421 * target.def (pass_by_reference): Take a function_arg_info instead
422 of a mode, type and named flag.
423 * doc/tm.texi: Regenerate.
424 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
426 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
427 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
428 function_arg_info instead of a mode, type and named flag.
429 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
430 * calls.h (pass_by_reference): Take a function_arg_info instead of a
431 mode, type and named flag.
432 * calls.c (pass_by_reference): Likewise.
433 (pass_va_arg_by_reference): Update call accordingly.
434 (initialize_argument_information): Likewise.
435 (emit_library_call_value_1): Likewise.
436 * function.c (assign_parm_find_data_types): Likewise.
437 * var-tracking.c (prepare_call_arguments): Likewise.
438 * stor-layout.c: Include calls.h.
439 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
440 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
441 function_arg_info instead of a mode, type and named flag.
442 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
443 * config/arc/arc.c (arc_pass_by_reference): Likewise.
444 * config/arm/arm.c (arm_pass_by_reference): Likewise.
445 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
446 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
447 (c6x_call_saved_register_used): Update call to pass_by_reference.
448 * config/cris/cris.c (cris_pass_by_reference): Take a
449 function_arg_info instead of a mode, type and named flag.
450 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
451 function_arg_info instead of a mode, type and named flag.
452 (epiphany_arg_partial_bytes): Update call accordingly.
453 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
454 function_arg_info instead of a mode, type and named flag.
455 (ft32_arg_partial_bytes): Update call accordingly.
456 * config/i386/i386.c (ix86_pass_by_reference): Take a
457 function_arg_info instead of a mode, type and named flag.
458 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
459 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
460 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
461 (m32r_return_in_memory): Update call accordingly.
462 * config/mips/mips.c (mips_pass_by_reference): Take a
463 function_arg_info instead of a mode, type and named flag.
464 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
465 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
466 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
467 (moxie_arg_partial_bytes): Update call accordingly.
468 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
469 function_arg_info instead of a mode, type and named flag.
470 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
471 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
472 * config/pa/pa.c (pa_pass_by_reference): Likewise.
473 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
474 (riscv_return_in_memory): Update call accordingly.
475 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
476 function_arg_info instead of a mode, type and named flag.
477 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
478 (rs6000_parm_needs_stack): Update call to pass_by_reference.
479 * config/s390/s390.c (s390_pass_by_reference): Take a
480 function_arg_info instead of a mode, type and named flag.
481 (s390_call_saved_register_used): Update call accordingly.
482 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
483 instead of a mode, type and named flag.
484 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
485 * config/spu/spu.c (spu_pass_by_reference): Likewise.
486 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
487 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
488 * config/v850/v850.c (v850_pass_by_reference): Likewise.
489 * config/visium/visium.c (visium_pass_by_reference): Likewise.
491 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
493 * target.def (arg_partial_bytes): Take a function_arg_info instead
494 of a mode, type and named flag.
495 * doc/tm.texi: Regenerate.
496 * target.h (function_arg_info): Declare.
497 * calls.h (function_arg_info): New class.
498 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
499 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
500 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
501 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
502 * calls.c (initialize_argument_information): Update call to
503 targetm.calls.partial_bytes.
504 (emit_library_call_value_1): Likewise.
505 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
506 * function.c (assign_parm_find_entry_rtl): Likewise.
507 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
508 function_arg_info instead of a mode, type and named flag.
509 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
510 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
511 (cmse_func_args_or_return_in_stack): Update accordingly.
512 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
513 function_arg_info instead of a mode, type and named flag.
514 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
515 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
516 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
517 * config/fr30/fr30.c: Include calls.h.
518 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
520 * config/frv/frv.c: Include calls.h.
521 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
523 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
524 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
525 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
526 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
527 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
528 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
529 * config/microblaze/microblaze.c (function_arg_partial_bytes):
531 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
532 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
533 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
534 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
535 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
536 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
537 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
538 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
539 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
540 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
541 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
542 (rs6000_parm_needs_stack): Update call accordingly.
543 * config/sh/sh.c (sh_arg_partial_bytes): Take a
544 function_arg_info instead of a mode, type and named flag.
545 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
546 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
548 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
550 * calls.h (must_pass_va_arg_in_stack): Declare.
551 * calls.c (must_pass_va_arg_in_stack): New function.
552 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
553 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
554 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
556 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
558 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
560 * calls.h (pass_va_arg_by_reference): Declare.
561 * calls.c (pass_va_arg_by_reference): New function.
562 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
563 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
564 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
565 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
566 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
567 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
568 (mips_gimplify_va_arg_expr): Likewise.
569 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
570 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
571 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
572 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
573 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
574 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
575 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
576 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
577 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
578 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
579 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
581 2019-08-20 Richard Biener <rguenther@suse.de>
584 * config/i386/i386-features.c (general_scalar_chain::convert_op):
585 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
586 (convert_scalars_to_vector): Add timode_p parameter and use it
587 to guard TImode-only operation.
588 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
589 (pass_stv::execute): Pass down timode_p.
591 2019-08-20 Lili Cui <lili.cui@intel.com>
593 * common/config/i386/i386-common.c
594 (processor_names): Add tigerlake and cooperlake.
595 (processor_alias_table): Add tigerlake and cooperlake.
596 * config.gcc: Add -march=tigerlake and cooperlake.
597 * config/i386/driver-i386.c
598 (host_detect_local_cpu): Detect tigerlake and cooperlake.
599 Add "has_avx" to classify processor.
600 * config/i386/i386-builtins.c (processor_model) :
601 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
602 (arch_names_table): Add tigerlake and cooperlake.
603 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
604 and PROCESSOR_COOPERLAKE.
605 * config/i386/i386-c.c
606 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
607 * config/i386/i386-options.c
608 (m_TIGERLAKE) : Define.
609 (m_COOPERLAKE) : Ditto.
610 (m_CORE_AVX512): Ditto.
611 (processor_cost_table): Add cascadelake.
612 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
614 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
615 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
616 (PTA_MOVDIRI): Ditto.
617 (PTA_MOVDIR64B): Ditto.
618 (PTA_COOPERLAKE) : Ditto.
619 (PTA_TIGERLAKE) : Ditto.
620 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
621 * doc/extend.texi: Add tigerlake and cooperlake.
622 * doc/invoke.texi: Add tigerlake and cooperlake.
624 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
626 * doc/install.texi (Specific, alpha): Remove note to use
627 binutils 2.11.2 or later.
629 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
632 * function.c (assign_parm_find_stack_rtl): Use larger alignment
635 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
637 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
638 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
639 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
640 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
641 * config/aarch64/constraints.md (Dt): New constraint
642 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
644 2019-08-19 Richard Biener <rguenther@suse.de>
646 PR tree-optimization/91403
647 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
648 cases we can handle with tail-recursion...
649 (follow_ssa_edge_expr): ... here. Do so.
651 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
654 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
655 implemented for -fsanitize=kernel-address, and merge check logic
656 with -fsanitize=address.
658 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
660 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
661 for cpu and machine. Factor 64/32b builtins.
663 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
665 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
666 gone, point to sourceforge.net.
668 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
670 * doc/ux.texi (User Experience Guidelines): Update reference.
672 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
674 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
677 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
679 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
680 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
682 2019-08-16 Martin Sebor <msebor@redhat.com>
684 * tree.def (TYPE_SIZE): Clarify.
685 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
687 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
689 PR tree-optimization/91109
690 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
691 * lra.c (lra): Use lra_need_for_scratch_reg_p.
692 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
694 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
696 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
697 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
698 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
699 (uavg<mode>3_ceil): New expander.
700 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
701 mode iterator when creating CONST1_RTX.
702 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
703 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
704 mode iterator for const1_operand predicate.
706 2019-08-16 Richard Biener <rguenther@suse.de>
708 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
709 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
711 (follow_ssa_edge_in_condition_phi_branch): Likewise.
712 (analyze_evolution_in_loop): Likewise.
713 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
714 (follow_ssa_edge_expr): ... here. Refactor code.
716 2019-08-16 Richard Biener <rguenther@suse.de>
719 * config/i386/i386-features.c
720 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
722 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
725 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
726 only if subst_name matches curr_attr string.
728 2019-08-16 Richard Biener <rguenther@suse.de>
730 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
731 stmt at gsi_p, instead replace it with a NOP removed later.
732 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
733 that became dead because of that.
735 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
737 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
738 for which we can't represent a range.
739 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
741 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
742 Set VR_UNDEFINED if type is not supported.
743 * tree-ssanames.c (get_range_info): Pass type to set_varying.
744 * tree-vrp.c (value_range_base::check): Assert that a varying has
746 (value_range_base::equal_p): Early bail for undefines.
747 (value_range_base::set_varying): Accept a type.
748 (value_range::set_varying): Same.
749 (value_range_base::type): VARYING can have a type, while UNDEFINE
751 (value_range_base::dump): Print type for VARYING nodes.
752 (value_range_base::set): Add type to VARYING.
753 (extract_range_from_multiplicative_op): Pass type to set_varying.
754 (extract_range_from_binary_expr): Same.
755 (value_range_base::intersect_helper): Same.
756 (value_range_base::union_helper): Same.
757 (value_range_base::normalize_symbolics): Same.
758 (determine_value_range_1): Same.
759 * tree-vrp.h (class value_range_base): Add type to set_varying.
760 Add prototype for dump(void).
761 Add prototype for supports_type_p.
762 (class value_range): Add type to set_varying.
763 Add prototype for dump(void).
764 * vr-values.c (set_value_range_to_truthvalue): Pass type to
766 (vr_values::get_lattice_entry): Set varying even if propagation
768 Pass type to set_varying.
769 (vr_values::get_value_range): Remove vr_const_varying.
770 Reallocate the lattice if needed.
771 (vr_values::update_value_range): Pass type to set_varying.
772 (vr_values::extract_range_for_var_from_comparison_expr): Same.
773 (vr_values::extract_range_from_binary_expr): Same.
774 (vr_values::extract_range_from_unary_expr): Same.
775 (vr_values::extract_range_from_cond_expr): Same.
776 (vr_values::check_for_binary_op_overflow): Same.
777 (vr_values::extract_range_basic): Same.
778 (vr_values::extract_range_from_assignment): Same.
779 (vr_values::vr_values): Increase size of num_vr_values.
780 (vr_values::extract_range_from_phi_node): Pass type to
783 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
786 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
787 for costs of hard register moves.
788 (ix86_register_move_cost): Likewise.
789 * config/i386/i386.h (processor_costs): Move costs of hard
790 register moves to hard_register. Add int_load, int_store,
791 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
792 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
793 for costs of RTL expressions.
794 * config/i386/x86-tune-costs.h: Move costs of hard register
795 moves to hard_register. Duplicate int_load, int_store,
796 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
797 sse_load, sse_store for costs of RTL expressions.
799 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
801 * target.def (setup_incoming_vararg_bounds): Remove.
802 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
803 * doc/tm.texi: Regenerate.
804 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
805 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
806 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
807 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
809 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
811 MSP430: Fix lines over 80 characters long in
812 config/msp430/*.{c,h} files
814 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
816 (msp430_select_hwmult_lib): Split line more than 80 characters long.
817 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
818 redundant old comment.
819 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
820 Split line more than 80 characters long.
821 * config/msp430/msp430.c (msp430_option_override): Likewise.
822 (msp430_return_in_memory): Likewise.
823 (msp430_gimplify_va_arg_expr): Likewise.
824 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
825 (msp430_legitimate_constant): Likewise.
826 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
827 (msp430_attr): Likewise.
828 (msp430_data_attr): Likewise.
829 (msp430_start_function): Likewise.
830 (gen_prefix): Likewise.
831 (msp430_init_sections): Likewise.
832 (msp430_select_section): Likewise.
833 (msp430_function_section): Likewise.
834 (msp430_unique_section): Likewise.
835 (msp430_output_aligned_decl_common): Likewise.
836 (msp430_do_not_relax_short_jumps): Likewise.
837 (msp430_init_builtins): Likewise.
838 (msp430_expand_delay_cycles): Likewise.
839 (msp430_expand_prologue): Likewise.
840 (msp430_expand_epilogue): Likewise.
841 (msp430_expand_helper): Likewise.
842 (msp430_split_movsi): Likewise.
843 (msp430_print_operand): Likewise.
844 (msp430_return_addr_rtx): Likewise.
845 (msp430x_extendhisi): Likewise.
846 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
847 (ASM_SPEC): Likewise.
848 Remove very obvious comments.
849 (LIB_SPEC): Split line more than 80 characters long.
850 (EH_RETURN_HANDLER_RTX): Likewise.
851 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
853 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
855 MSP430: Fix whitespace errors and incorrect indentation in
856 config/msp430/*.{c,h} files
858 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
859 (msp430_select_hwmult_lib): Likewise.
860 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
861 (msp430_extract_mcu_data): Likewise.
862 (struct t_msp430_mcu_data): Likewise.
863 * config/msp430/msp430.c (struct machine_function): Remove whitespace
864 before left square bracket.
865 (msp430_option_override): Fix indentation.
866 (msp430_hard_regno_nregs_with_padding): Likewise.
867 (msp430_initial_elimination_offset): Likewise.
868 (msp430_special_register_convention_p): Remove whitespace before left
869 square bracket and after exclamation mark.
870 (msp430_evaluate_arg): Likewise.
871 (msp430_callee_copies): Fix indentation.
872 (msp430_gimplify_va_arg_expr): Likewise.
873 (msp430_function_arg_advance): Remove whitespace before left square
875 (reg_ok_for_addr): Likewise.
876 (msp430_preserve_reg_p): Likewise.
877 (msp430_compute_frame_info): Likewise.
878 (msp430_asm_output_addr_const_extra): Add space between function name
879 and open parenthesis.
880 (has_section_name): Fix indentation.
881 (msp430_attr): Remove trailing whitespace.
882 (msp430_section_attr): Likewise.
883 (msp430_data_attr): Likewise.
884 (struct msp430_attribute_table): Fix comment and whitespace.
885 (msp430_start_function): Remove whitespace before left square bracket.
886 Add space between function name and open parenthesis.
887 (msp430_select_section): Remove trailing whitespace.
888 (msp430_section_type_flags): Remove trailing whitespace.
889 (msp430_unique_section): Remove space before closing parenthesis.
890 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
891 (msp430_builtins): Remove whitespace before left square bracket.
892 (msp430_init_builtins): Fix indentation.
893 (msp430_expand_prologue): Remove whitespace before left square bracket.
894 Remove space before closing parenthesis.
895 (msp430_expand_epilogue): Remove whitespace before left square bracket.
896 (msp430_split_movsi): Remove space before closing parenthesis.
897 (helper_function_name_mappings): Fix indentation.
898 (msp430_use_f5_series_hwmult): Fix whitespace.
899 (use_32bit_hwmult): Likewise.
900 (msp430_no_hwmult): Likewise.
901 (msp430_output_labelref): Remove whitespace before left square bracket.
902 (msp430_print_operand_raw): Likewise.
903 (msp430_print_operand_addr): Likewise.
904 (msp430_print_operand): Add two spaces after '.' in comment.
905 Fix trailing whitespace.
906 (msp430x_extendhisi): Fix indentation.
907 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
909 (PC_REGNUM): Likewise.
910 (STACK_POINTER_REGNUM): Likewise.
911 (CC_REGNUM): Likewise.
913 2019-08-15 Richard Biener <rguenther@suse.de>
916 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
918 (general_scalar_chain::make_vector_copies): Use it.
920 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
922 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
924 2019-08-15 Martin Liska <mliska@suse.cz>
926 * tree-ssa-dce.c (propagate_necessity): We can't reach now
927 operators with no arguments.
928 (eliminate_unnecessary_stmts): Likewise here.
930 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
932 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
933 <case COMPARE>: Revert 2019-08-14 change.
934 (convertible_comparison_p): Revert 2019-08-14 change. Return false
935 for (TARGET_64BIT || mode != DImode).
937 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
939 * tree-vrp.c (value_range_base::set): Merge in code from
940 value_range_base::set_and_canonicalize.
941 Enforce canonicalization at set time.
942 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
943 (value_range_base::set_undefined): Inline call to set().
944 (value_range_base::set_varying): Same.
945 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
946 (vrp_val_max): New argument handle_pointers.
948 (ranges_from_anti_range): Same.
949 (extract_range_into_wide_ints): Use tree argument instead of sign
951 (extract_range_from_multiplicative_op): Take in tree type instead
952 of precision and sign. Adapt function for canonicalized ranges.
953 (extract_range_from_binary_expr): Pass type to
954 extract_range_from_multiplicative_op.
955 Adapt for canonicalized ranges.
956 (extract_range_from_unary_expr): Same.
957 (value_range_base::intersect_helper): Adjust for canonicalized
959 (value_range_base::union_helper): Same.
960 (value_range_base::normalize_symbolics): New.
961 * tree-vrp.h (class value_range_base): Remove
962 set_and_canonicalize.
963 New prototype for normalize_symbolics.
964 (class value_range): Remove set_and_canonicalize.
965 (vrp_val_min): Adjust prototype.
968 (vr_values::extract_range_for_var_from_comparison_expr): Call set
969 instead of set_and_canonicalize.
971 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
974 * tree-vect-stmts.c (vectorizable_call): Check that the function
975 is a BUILT_IN_MD function before passing it to
976 targetm.vectorize.builtin_md_vectorized_function.
978 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
980 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
981 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
982 (aarch64_select_early_remat_modes): Use it.
984 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
986 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
987 16 for SVE predicates even if they are fixed-length.
989 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
991 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
992 operand order match the MOV /Z alias.
994 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
996 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
997 the vector pattern as an aarch64_svpattern argument. Update the
998 overloaded caller accordingly.
999 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1000 (aarch64_output_sve_vector_inc_dec): Likewise.
1002 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1004 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1005 multiplication case, try to compute VG * (lowest set bit) directly
1006 rather than always basing the multiplication on VG. Use
1007 expand_mult for the multiplication if we can.
1009 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1011 * config/aarch64/aarch64-protos.h
1012 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1013 (aarch64_sve_inc_dec_immediate_p): Rename to...
1014 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1015 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1016 (aarch64_output_sve_scalar_inc_dec): Declare.
1017 (aarch64_output_sve_inc_dec_immediate): Rename to...
1018 (aarch64_output_sve_vector_inc_dec): ...this.
1019 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1020 (aarch64_output_sve_scalar_inc_dec): New functions.
1021 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1022 arguments. Only handle true ADDVL and ADDPL instructions;
1023 don't emit an INC or DEC.
1024 (aarch64_sve_inc_dec_immediate_p): Rename to...
1025 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1026 (aarch64_output_sve_inc_dec_immediate): Rename to...
1027 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1028 aarch64_sve_vector_inc_dec_immediate_p.
1029 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1030 (aarch64_sve_plus_immediate): New predicates.
1031 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1032 rather than aarch64_sve_addvl_addpl_immediate.
1033 (aarch64_sve_inc_dec_immediate): Rename to...
1034 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1035 aarch64_sve_vector_inc_dec_immediate_p.
1036 (aarch64_sve_add_operand): Update accordingly.
1037 * config/aarch64/constraints.md (Uai): New constraint.
1038 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1039 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1040 operand into a register if it satisfies aarch64_sve_plus_immediate.
1041 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1042 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1043 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1044 aarch64_output_sve_vector_inc_dec instead of
1045 aarch64_output_sve_inc_dec_immediate.
1047 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1049 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1050 (UNSPEC_REVW): New constants.
1051 (elem_bits): New mode attribute.
1052 (SVE_INT_UNARY): New int iterator.
1053 (optab): Handle UNSPEC_REV[BHW].
1054 (sve_int_op): New int attribute.
1055 (min_elem_bits): Handle VNx16QI and the predicate modes.
1056 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1057 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1058 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1059 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1060 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1061 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1062 unspecs based on the total width of the reversed data.
1063 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1064 reinterpret followed by a subreg on big-endian targets.
1066 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1067 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1069 * config/aarch64/aarch64-sve.md
1070 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1071 alternatives in which one of the inputs is in the same register
1074 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1076 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1077 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1079 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1081 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1082 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1084 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1085 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1087 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1088 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1089 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1091 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1092 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1094 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1095 Add an alternative that uses reversed shifts.
1097 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1099 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1102 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1104 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1105 a commutativity marker.
1107 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1108 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1110 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1111 (aarch64_prepare_sve_cond_int_fma): Declare.
1112 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1113 (aarch64_prepare_sve_int_fma): New functions.
1114 (aarch64_prepare_sve_cond_int_fma): Likewise.
1115 * config/aarch64/aarch64-sve.md
1116 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1117 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1118 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1119 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1120 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1121 (*madd<mode>): Rename to...
1122 (*fma<mode>4): ...this.
1123 (*msub<mode>): Rename to...
1124 (*fnma<mode>4): ...this.
1126 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1127 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1129 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1130 Print 2.0 naturally.
1131 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1132 * config/aarch64/predicates.md
1133 (aarch64_sve_float_negated_arith_immediate): New predicate,
1134 renamed from aarch64_sve_float_arith_with_sub_immediate.
1135 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1136 positive and negative constants.
1137 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1138 or an aarch64_sve_float_arith_with_sub_immediate.
1139 * config/aarch64/constraints.md (vsN): Use
1140 aarch64_sve_float_negated_arith_immediate.
1141 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1143 (sve_pred_fp_rhs2_immediate): New int attribute.
1144 * config/aarch64/aarch64-sve.md
1145 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1146 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1147 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1148 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1149 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1150 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1152 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1153 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1155 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1156 (*aarch64_cond_abd<SVE_F:mode>_3)
1157 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1159 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1160 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1162 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1163 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1165 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1166 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1168 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1169 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1170 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1171 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1173 * optabs.h (create_convert_operand_from): Expand comment.
1174 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1175 when mapping scalar rtxes to vector operands.
1176 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1177 ashiftrt and lshiftrt.
1178 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1179 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1180 (*cond_<optab><mode>_any_const): New patterns.
1182 2019-08-15 Martin Liska <mliska@suse.cz>
1185 * cgraph.c (cgraph_node::remove): When setting
1186 n->origin = NULL for all nested functions, reset
1189 2019-08-15 Martin Liska <mliska@suse.cz>
1191 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1194 2019-08-15 Martin Liska <mliska@suse.cz>
1197 * passes.c (order): Remove.
1198 (uid_hash_t): Likewise).
1199 (remove_cgraph_node_from_order): Remove from set
1200 of pointers (cgraph_node *).
1201 (insert_cgraph_node_to_order): New.
1202 (duplicate_cgraph_node_to_order): New.
1203 (do_per_function_toporder): Register all 3 cgraph hooks.
1204 Skip removed_nodes now as we know about all of them.
1206 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1208 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1209 <case E_V8QImode>: Use vector_set path for
1210 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1211 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1212 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1214 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1216 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1218 2019-08-14 Martin Sebor <msebor@redhat.com>
1220 PR tree-optimization/91294
1221 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1222 source length as exact.
1224 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1226 * doc/extend.texi: Add "noinit" attribute documentation.
1227 * doc/sourcebuild.texi: Add noinit effective target documentation.
1228 * varasm.c (default_section_type_flags): Add support for "noinit"
1230 (default_elf_select_section): Add support for "noinit" attribute.
1231 * config/msp430/msp430.c (msp430_attribute_table): Remove
1234 2019-08-14 Richard Biener <rguenther@suse.de>
1235 Uroš Bizjak <ubizjak@gmail.com>
1238 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1240 (scalar_chain::smode): New member.
1241 (scalar_chain::vmode): Likewise.
1242 (dimode_scalar_chain): Rename to...
1243 (general_scalar_chain): ... this.
1244 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1245 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1246 base with TImode and V1TImode.
1247 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1248 (general_scalar_chain::vector_const_cost): Adjust for SImode
1250 (general_scalar_chain::compute_convert_gain): Likewise. Add
1251 {S,U}{MIN,MAX} support.
1252 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1253 (general_scalar_chain::make_vector_copies): Likewise. Handle
1254 non-DImode chains appropriately.
1255 (general_scalar_chain::convert_reg): Likewise.
1256 (general_scalar_chain::convert_op): Likewise.
1257 (general_scalar_chain::convert_insn): Likewise. Add
1258 fatal_insn_not_found if the result is not recognized.
1259 (convertible_comparison_p): Pass in the scalar mode and use that.
1260 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1261 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1262 (scalar_to_vector_candidate_p): Remove by inlining into single
1264 (general_remove_non_convertible_regs): Rename from
1265 dimode_remove_non_convertible_regs.
1266 (remove_non_convertible_regs): Remove by inlining into single caller.
1267 (convert_scalars_to_vector): Handle SImode and DImode chains
1268 in addition to TImode chains.
1269 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1270 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1271 (*<maxmin>di3_doubleword): Likewise.
1273 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1274 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1276 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1277 (*cond_bic<mode>_any): New patterns.
1279 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1281 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1282 take the equivalent mask, as well as a bit count.
1283 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1284 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1285 (aarch64_sve_pred_and_operand): New predicates.
1286 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1288 * config/aarch64/aarch64-sve.md
1289 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1290 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1292 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1294 * config/aarch64/aarch64-sve.md
1295 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1296 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1299 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1300 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1302 * config/aarch64/aarch64-sve.md
1303 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1304 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1306 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1307 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1309 * config/aarch64/aarch64-sve.md
1310 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1311 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1313 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1315 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1316 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1319 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1320 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1322 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1324 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1325 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1327 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
1328 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
1329 (aarch64_print_operand): Add support for %I.
1330 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
1331 Bitcast floating-point constants to the corresponding integer constant.
1332 (aarch64_float_const_representable_p): Handle vectors as well
1334 (aarch64_expand_sve_vcond): Make sure that the operands are valid
1335 for the new vcond_mask_<mode><vpred> expander.
1336 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
1337 test aarch64_float_const_representable_p.
1338 (aarch64_sve_reg_or_dup_imm): New predicate.
1339 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
1340 gen_vcond_mask_<mode><vpred> instead of
1341 gen_aarch64_sve_dup<mode>_const.
1342 (vcond_mask_<mode><vpred>): Turn into a define_expand that
1343 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
1344 for operands 1 and 2 respectively. Force operand 2 into a
1345 register if operand 1 is a register. Fold old define_insn...
1346 (aarch64_sve_dup<mode>_const): ...and this define_insn...
1347 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
1348 floating-point constants that can be moved as integers. Add
1349 alternatives for MOV /M and FMOV /M.
1350 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
1351 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
1352 1 and 2 respectively.
1353 * config/aarch64/constraints.md (Ufc): Handle vectors as well
1355 (vss): New constraint.
1357 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1359 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
1360 (aarch64_sve_float_maxmin_operand): New predicates.
1361 * config/aarch64/constraints.md (vsB): New constraint.
1363 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
1364 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
1366 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
1367 Use aarch64_sve_float_maxmin_operand for operand 2.
1368 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
1369 Add alternatives for the constant forms.
1371 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1373 * config/aarch64/constraints.md (vsb): New constraint.
1374 (vsm): Generalize description.
1375 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
1377 (sve_imm_con): Handle smax, smin, umax and umin.
1378 (sve_imm_prefix): New code attribute.
1379 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
1380 (aarch64_sve_vsb_operand): New predicates.
1381 (aarch64_sve_mul_immediate): Rename to...
1382 (aarch64_sve_vsm_immediate): ...this.
1383 (aarch64_sve_mul_operand): Rename to...
1384 (aarch64_sve_vsm_operand): ...this.
1385 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
1386 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
1387 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
1388 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
1389 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
1390 add movprfx support for the immediate alternatives.
1391 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
1393 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
1396 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1398 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
1399 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
1400 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
1402 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1404 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
1405 (optab, sve_int_op): Handle them.
1406 * config/aarch64/aarch64-sve.md: Expand comment.
1408 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1410 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
1411 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
1412 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
1414 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1416 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
1417 (aarch64_expand_sve_const_pred_trn): New functions.
1418 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
1419 use the above functions when the parameter is true.
1420 (aarch64_expand_sve_const_pred): Update call accordingly.
1421 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
1423 (@aarch64_sve_<perm_insn><mode>): ...this.
1425 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1427 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
1429 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
1430 (aarch64_sve_emit_int_cmp): New functions.
1431 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
1432 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
1433 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
1434 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
1435 (UNSPEC_PRED_Z): New unspec.
1436 (set_clobber_cc_nzc): Delete.
1437 * config/aarch64/aarch64-sve.md: Add a block comment about
1439 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
1440 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
1441 the old pattern with that name. Use UNSPEC_PRED_Z instead of
1443 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
1444 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
1445 check for compatible predicates.
1446 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
1447 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
1448 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
1451 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1453 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
1454 * config/aarch64/aarch64-sve.md: Add a section describing it.
1455 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
1456 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
1457 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
1458 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
1459 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
1460 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
1461 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
1462 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
1463 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
1464 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
1465 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
1466 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
1467 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
1468 (aarch64_evpc_rev_local): Update accordingly.
1470 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1472 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
1474 (SVE_BHSI, SVE_SDI): Tweak comment.
1475 (SVE_HSDI): Likewise. Fix definition.
1476 (SVE_SDF): New mode iterator.
1477 (elem_bits): New mode attribute.
1478 (SVE_COND_FCVT): New int iterator.
1479 * config/aarch64/aarch64-sve.md
1480 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
1481 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
1482 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
1483 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1484 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
1485 ...these new patterns.
1486 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
1487 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
1488 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
1490 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
1491 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
1492 ...these new patterns.
1493 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
1494 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
1495 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
1496 ...this new pattern.
1497 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
1498 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
1499 ...this new pattern.
1500 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
1502 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1504 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
1505 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
1506 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
1508 (optab, su): Handle them.
1509 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
1510 * config/aarch64/aarch64-sve.md
1511 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
1512 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
1513 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
1514 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
1515 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
1516 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
1517 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
1518 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
1519 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
1521 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
1522 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
1523 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
1524 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
1525 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
1526 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
1527 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
1528 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
1529 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
1530 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
1531 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
1532 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
1533 of UNSPEC_FLOAT_CONVERT.
1534 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
1535 aarch64_sve_extend<mode><Vwide>2.
1537 2019-08-14 Richard Biener <rguenther@suse.de>
1540 * config/i386/i386-features.c
1541 (dimode_scalar_chain::compute_convert_gain): Compute and dump
1542 individual instruction gain. Fix reg-reg copy GRP cost. Use
1543 ix86_cost->sse_op for vector instruction costs.
1545 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1547 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
1548 (cmp_op): Handle it.
1549 (SVE_COND_FP_CMP): Rename to...
1550 (SVE_COND_FP_CMP_I0): ...this.
1551 (SVE_FP_CMP): Remove.
1552 * config/aarch64/aarch64-sve.md
1553 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
1554 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
1555 using unspecs to represent the comparison.
1556 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
1557 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
1559 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
1560 (aarch64_unspec_cond_code): Move after integer code. Handle
1562 (aarch64_emit_sve_predicated_cond): Replace with...
1563 (aarch64_emit_sve_fp_cond): ...this new function.
1564 (aarch64_emit_sve_or_conds): Replace with...
1565 (aarch64_emit_sve_or_fp_conds): ...this new function.
1566 (aarch64_emit_sve_inverted_cond): Replace with...
1567 (aarch64_emit_sve_invert_fp_cond): ...this new function.
1568 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
1570 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1572 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
1573 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
1574 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
1575 SVE_HSD instead of SVE_SD.
1577 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1578 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1580 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
1582 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
1584 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
1585 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
1586 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
1587 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
1588 (*div<SVE_F:mode>3): Generalize to...
1589 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
1591 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1592 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1594 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
1596 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
1598 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
1600 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
1602 * config/aarch64/aarch64-sve.md: Add a block comment about the
1603 handling of predicated FP operations.
1604 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
1605 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
1606 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1607 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
1608 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
1610 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
1611 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
1613 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
1614 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
1615 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
1616 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
1617 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
1618 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1619 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1620 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
1621 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
1622 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
1623 strictness operands. Use aarch64_sve_pred_dominates_p to check
1624 whether the predicate on the conditional operation is suitable
1625 for merging. Split patterns into the canonical equal-predicate form.
1626 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
1627 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
1629 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1630 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1632 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
1633 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
1634 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
1636 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
1637 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
1640 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1641 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1643 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
1644 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
1645 actually has, rather than relying on REG_EQUAL notes.
1646 Make the insn operand order match the SVE operand order.
1647 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
1648 the SVE operand order.
1650 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1652 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
1653 (aarch64_emit_set_immediate): Likewise.
1654 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
1655 (aarch64_pfalse_reg): Likewise.
1656 (aarch64_convert_sve_data_to_pred): New function.
1657 (aarch64_sve_move_pred_via_while): Take an optional target register
1658 and the required register mode.
1659 (aarch64_expand_sve_const_pred_1): New function.
1660 (aarch64_expand_sve_const_pred): Likewise.
1661 (aarch64_expand_mov_immediate): Build an all-true predicate
1662 if the significant bits of the immediate are all true. Use
1663 aarch64_expand_sve_const_pred for all compile-time predicate constants.
1664 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
1665 before register allocation.
1666 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
1667 a VNx16BI PTRUE when splitting the memory alternative.
1668 (vec_duplicate<mode>): Update accordingly.
1669 (*pred_cmp<cmp_op><mode>): Rename to...
1670 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
1672 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1674 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
1675 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
1676 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
1677 (UNSPEC_PTEST): New unspec.
1678 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
1679 * config/aarch64/iterators.md (data_bytes): New mode attribute.
1680 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
1681 * config/aarch64/aarch64-sve.md: Add a new section describing the
1682 handling of UNSPEC_PTEST.
1683 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
1684 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
1685 (ptest_ptrue<mode>): Replace with...
1686 (aarch64_ptest<mode>): ...this new pattern.
1687 (cbranch<mode>4): Update after above changes.
1688 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
1690 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
1691 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
1692 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
1694 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
1697 * builtins.c (builtin_with_linkage_p): New function.
1698 * builtins.h (builtin_with_linkage_p): New function.
1699 * symtab.c (write_symbol): Remove redundant assert.
1700 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
1701 Remove FIXME and use builtin_with_linkage_p.
1703 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1706 * tree-core.h (function_decl::function_code): Change type to
1708 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
1709 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
1710 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
1711 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
1713 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
1714 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
1715 (fndecl_built_in_p): Change the type of the "name" argument to
1717 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
1718 after check for DECL_BUILT_IN_CLASS.
1719 * cgraphclones.c (build_function_decl_skip_args): Use
1720 set_decl_built_in_function.
1721 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
1722 * ipa-split.c (split_function): Likewise.
1723 * langhooks.c (add_builtin_function_common): Likewise.
1724 * omp-simd-clone.c (simd_clone_create): Likewise.
1725 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
1726 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
1727 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
1729 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
1730 instead of DECL_FUNCTION_CODE.
1731 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
1732 instead of DECL_FUNCTION_CODE.
1733 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
1734 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
1735 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
1736 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
1737 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
1738 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
1739 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1740 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
1741 (alpha_gimple_fold_builtin): Likewise.
1742 * config/arc/arc.c (arc_expand_builtin): Likewise.
1743 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
1744 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
1745 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
1746 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
1747 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
1748 * config/frv/frv.c (frv_expand_builtin): Likewise.
1749 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
1750 (gcn_expand_builtin): Likewise.
1751 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
1752 (fold_builtin_cpu): Likewise.
1753 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
1754 * config/i386/i386.c (ix86_fold_builtin): Likewise.
1755 (ix86_gimple_fold_builtin): Likewise.
1756 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
1757 (ia64_expand_builtin): Likewise.
1758 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
1759 * config/mips/mips.c (mips_expand_builtin): Likewise.
1760 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
1761 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1762 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
1763 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
1764 * config/pa/pa.c (pa_expand_builtin): Likewise.
1765 * config/pru/pru.c (pru_expand_builtin): Likewise.
1766 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
1767 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1769 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
1770 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
1771 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
1772 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
1773 (rs6000_builtin_reciprocal): Likewise.
1774 * config/rx/rx.c (rx_expand_builtin): Likewise.
1775 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1776 * config/s390/s390.c (s390_expand_builtin): Likewise.
1777 * config/sh/sh.c (sh_expand_builtin): Likewise.
1778 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
1779 (sparc_fold_builtin): Likewise.
1780 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
1781 * config/spu/spu.c (spu_expand_builtin): Likewise.
1782 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
1783 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
1784 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
1785 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
1786 (xtensa_expand_builtin): Likewise.
1788 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1791 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
1792 before the DECL_FUNCTION_CODE.
1793 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
1794 to check for a BUILT_IN_ALLOCA call.
1795 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
1796 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
1797 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
1798 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1799 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
1800 for BUILT_IN_NORMAL functions.
1801 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
1802 test for BUILT_IN_TM_ABORT.
1803 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
1804 to check for a BUILT_IN_STACK_RESTORE call.
1805 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
1806 * tree-ssa-threadedge.c
1807 (record_temporary_equivalences_from_stmts_at_dest): Check for a
1808 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
1809 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
1810 test for a BUILT_IN_NORMAL call instead of a negative test for
1811 an internal function call.
1813 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1815 * tree.h (build_vector_a_then_b): Declare.
1816 * tree.c (build_vector_a_then_b): New function.
1817 * fold-const-call.c (fold_while_ult): Likewise.
1818 (fold_const_call): Use it to handle IFN_WHILE_ULT.
1819 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
1820 (aarch64_svpattern): New enum.
1821 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
1822 constants through aarch64_expand_mov_immediate.
1823 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
1824 than general_operand as the predicate for operand 1.
1825 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
1826 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
1828 (simd_immediate_info::simd_immediate_info): New overload that
1829 takes a scalar_int_mode and an svpattern.
1830 (simd_immediate_info::u): Add a "pattern" field.
1831 (svpattern_token): New function.
1832 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
1833 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
1834 (aarch64_sve_move_pred_via_while): New functions.
1835 (aarch64_expand_mov_immediate): Try using
1836 aarch64_sve_move_pred_via_while for predicates that contain N ones
1837 followed by M zeros but that do not correspond to a VLnnn pattern.
1838 (aarch64_sve_pred_valid_immediate): New function.
1839 (aarch64_simd_valid_immediate): Use it instead of dealing directly
1840 with PTRUE and PFALSE.
1841 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
1844 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
1846 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
1848 (darwin_override_options): Likewise.
1849 * config/darwin.h: Likewise.
1850 * config/darwin.opt: Likewise.
1851 * config/i386/i386.c (output_pic_addr_const): Likewise.
1852 * config/rs6000/darwin.h: Likewise.
1853 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
1854 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
1855 ... this TARGET_MACHO_SYMBOL_STUBS.
1856 (FUNCTION_PROFILER):Likewise.
1857 * config/i386/i386.h: Likewise.
1859 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
1861 * config/i386/i386-expand.c (ix86_expand_vector_extract)
1862 <case E_V2SImode>: Use vec_extr path for
1863 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1864 <case E_V8QImode>: Ditto.
1865 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
1866 Use SWI48 mode iterator. Use %k to output operand 0.
1867 (*mmx_pextrw): New insn pattern.
1868 (*mmx_pextrb): Ditto.
1869 (*mmx_pextrb_zext): Ditto.
1871 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
1873 * target.def (libc_has_function, libc_has_fast_function): Improve
1874 documentation strings.
1875 * doc/tm.texi: Regenerate.
1877 2019-08-13 Caroline Tice <cmtice@google.com>
1880 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
1881 vtv_end.o or vtv_end_preinit.o files if !static.
1883 2019-08-13 Olivier Hainque <hainque@adacore.com>
1885 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
1887 2019-08-13 Olivier Hainque <hainque@adacore.com>
1889 * rtlanal.c (tablejump_casesi_pattern): New function, to
1890 determine if a tablejump insn is a casesi dispatcher. Extracted
1891 from patch_jump_insn.
1892 * rtl.h (tablejump_casesi_pattern): Declare.
1893 * cfgrtl.c (patch_jump_insn): Use it.
1894 * dwarf2cfi.c (create_trace_edges): Use it.
1896 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1899 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
1900 operand is larger than a long int.
1902 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1904 * machmode.h (opt_mode::else_mode): New function.
1905 (opt_mode::else_blk): Use it.
1906 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
1907 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
1908 (aarch64_gen_stepped_int_parallel): Likewise.
1909 (aarch64_stepped_int_parallel_p): Likewise.
1910 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1912 * config/aarch64/aarch64.c
1913 (aarch64_expand_sve_widened_duplicate): Delete.
1914 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
1915 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
1916 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1917 argument. Use early returns in the !CONST_INT_P handling.
1918 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
1919 than handling some inline.
1920 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
1922 (aarch64_simd_container_mode): ...here.
1923 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
1924 (aarch64_sve_ld1rq_operand_p): New functions.
1925 * config/aarch64/predicates.md (descending_int_parallel)
1926 (aarch64_sve_ld1rq_operand): New predicates.
1927 * config/aarch64/constraints.md (UtQ): New constraint.
1928 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
1929 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
1930 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
1931 (@aarch64_sve_reinterpret<mode>): New expander.
1932 (*aarch64_sve_reinterpret<mode>): New pattern.
1933 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
1934 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
1935 (*sve_ld1rq<Vesize>): Replace with...
1936 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
1938 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1940 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
1943 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1945 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
1946 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
1947 (msp430_check_path_for_devices): New.
1948 (parse_devices_csv_1): New.
1949 (parse_devices_csv): New.
1950 (msp430_extract_mcu_data): Try to find devices.csv and search for the
1951 MCU data in devices.csv before using the hard-coded data.
1952 Warn if devices.csv isn't found and the MCU wasn't found in the
1953 hard-coded data either.
1954 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
1955 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
1956 Search for devices.csv on -I and -L paths.
1957 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
1958 msp430_set_driver_var.
1959 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
1961 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
1962 searched for devices.csv.
1963 (mwarn-devices-csv): Document option.
1965 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1967 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
1968 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
1969 Use a single Dn alternative instead of separate Dz and Dm
1970 alternatives. Use aarch64_output_sve_move_immediate.
1971 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
1973 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
1975 (aarch64_output_sve_mov_immediate): Handle predicate modes.
1976 (aarch64_output_ptrue): Delete.
1978 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1980 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
1982 (simd_immediate_info::value, simd_immediate_info::step)
1983 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
1985 (simd_immediate_info::u): ...this new union.
1986 (simd_immediate_info::simd_immediate_info): Update accordingly.
1987 (aarch64_output_simd_mov_immediate): Likewise.
1988 (aarch64_output_sve_mov_immediate): Likewise.
1990 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1992 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
1994 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
1995 (msp430_select_cpu): New spec function.
1996 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
1998 * config/msp430/msp430-devices.c: New file.
1999 * config/msp430/msp430-devices.h: New file.
2000 * config/msp430/msp430.c: Remove msp430_mcu_data.
2001 (msp430_option_override): Use msp430_extract_mcu_data to extract
2003 (msp430_use_f5_series_hwmult): Likewise.
2004 (use_32bit_hwmult): Likewise.
2005 (msp430_no_hwmult): Likewise.
2006 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2008 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2010 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2011 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2012 Remove hard-coded MCU multilib data.
2014 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2016 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2017 based on the mode instead of testing properties of it.
2019 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2021 * doc/md.texi: Document the x and y constraints for AArch64.
2022 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2023 (FP_LO8_REGS): New reg_class.
2024 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2025 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2026 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2027 * config/aarch64/predicates.md (aarch64_simd_register): Use
2028 FP_REGNUM_P instead of checking the classes manually.
2029 * config/aarch64/constraints.md (y): New constraint.
2031 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2033 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2034 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2035 * config/aarch64/aarch64-simd.md
2036 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2037 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2038 from the asm template.
2039 * config/aarch64/aarch64-sve.md
2040 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2041 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2042 from the asm template.
2043 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2044 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2045 from the asm template.
2046 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2048 2019-08-13 Martin Liska <mliska@suse.cz>
2050 * value-prof.c (gimple_ic_transform): Add new line.
2051 Print details with MSG_NOTE.
2053 2019-08-13 Martin Liska <mliska@suse.cz>
2055 * doc/invoke.texi: Document automatic detection of jobserver.
2056 * lto-wrapper.c (run_gcc): Detect jobserver always.
2058 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2060 * config/i386/i386-expand.c (ix86_expand_vector_set)
2061 <case E_V2SImode>: Use vec_merge path for
2062 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2063 <case E_V8QImode>: Ditto.
2064 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2065 (*mmx_pinsrb): Ditto.
2067 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2071 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2072 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2073 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2074 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2075 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2077 2019-08-12 Richard Biener <rguenther@suse.de>
2080 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2083 2019-08-12 Richard Biener <rguenther@suse.de>
2086 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2087 lang_mask option, always use CL_DRIVER.
2088 (get_options_from_collect_gcc_options): Adjust.
2089 (find_and_merge_options): Likewise.
2090 (run_gcc): Likewise.
2092 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2094 * ipa-predicate.c (add_condition): Restore inverted test.
2096 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2098 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2099 (enum omp_clause_device_type_kind): New enum.
2100 (struct tree_omp_clause): Add subcode.device_type_kind.
2101 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2102 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2103 for device_type clause.
2104 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2105 * tree-pretty-print.c (dump_omp_clause): Likewise.
2108 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2111 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2113 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2114 handling spilled pseudos.
2116 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2119 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2120 to preserve the contents of the original insns.
2122 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2124 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2125 (addsi3_compare_op2): Likewise.
2127 2019-08-09 Martin Liska <mliska@suse.cz>
2129 * alias.c (alias_ptr_types_compatible_p): Strengten
2130 type comparison in LTO mode.
2132 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2135 * tree-tailcall.c (find_tail_calls): Reject calls that might
2136 read from an escaped RESULT_DECL.
2138 2019-08-09 Martin Liska <mliska@suse.cz>
2140 * doc/invoke.texi: Document the option value.
2141 * lto-wrapper.c (run_gcc): Set auto_parallel
2142 only with -flto=auto.
2144 2019-08-09 Martin Liska <mliska@suse.cz>
2146 * opts.c (common_handle_option): Error for an invalid argument
2149 2019-08-09 Martin Liska <mliska@suse.cz>
2151 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2152 use dump_printf to report optimization.
2153 (sem_variable::merge): Likwise.
2154 (sem_item_optimizer::merge_classes): Use dump_printf to report
2157 2019-08-09 Martin Liska <mliska@suse.cz>
2159 * value-prof.c (gimple_divmod_fixed_value_transform):
2160 Use dump_printf_loc.
2161 (gimple_mod_pow2_value_transform): Likewise.
2162 (gimple_mod_subtract_transform): Likewise.
2163 (init_node_map): Likewise.
2164 (gimple_ic_transform): Likewise.
2165 (gimple_stringops_transform): Likewise.
2167 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2169 * doc/extend.texi: Add const qualifier to ld intrinsics.
2171 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2173 * config/rs6000/dfp.md (D64_D128): Rename to ...
2174 (DDTD): ... this, throughout.
2175 (dfp_suffix): Rename to ...
2176 (q): ... this, throughout.
2178 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2180 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2181 (dfp_suffix): Ditto.
2182 (adddd3, addtd3): Merge to ...
2183 (add<mode>3 for D64_D128): ... this.
2184 (subdd3, subtd3): Merge to ...
2185 (sub<mode>3 for D64_D128): ... this.
2186 (muldd3, multd3): Merge to ...
2187 (mul<mode>3 for D64_D128): ... this.
2188 (divdd3, divtd3): Merge to ...
2189 (div<mode>3 for D64_D128): ... this.
2190 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2191 (*cmp<mode>_internal1 for D64_D128): ... this.
2192 (ftruncdd2, ftrunctd2): Merge to ...
2193 (ftrunc<mode>2 for D64_D128): ... this.
2194 (fixdddi2, fixtddi2): Merge to ...
2195 (fix<mode>di2 for D64_D128): ... this.
2197 2019-08-08 Jim Wilson <jimw@sifive.com>
2200 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2201 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2202 Pass into recursive call.
2203 (riscv_flatten_aggregate_argument): New arg. Pass to
2204 riscv_flatten_aggregate_field.
2205 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2206 riscv_flatten_aggregate_argument twice, with false and true as last
2207 arg. Process result twice. Compare results and warn if different.
2208 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2210 2019-08-08 Martin Liska <mliska@suse.cz>
2213 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2214 * lto-wrapper.c (jobserver_active_p): Likewise.
2216 2019-08-08 Martin Liska <mliska@suse.cz>
2218 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2219 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2220 (create_version_clone_with_body): Likewise.
2222 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2224 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2225 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2226 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2227 GOVD_EXPLICIT flags.
2228 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2229 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2230 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2231 call install_var_field with mask 11 instead of 3.
2232 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2233 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2235 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2237 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2238 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2240 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2242 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2243 MOVPRFX alternatives. Make the GPR alternatives more expensive
2246 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2248 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2249 Disparage the GPR alternative relative to the FPR one.
2250 Fix handling of 8-bit and 16-bit FPR values.
2252 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2254 * config/aarch64/iterators.md (BITWISEV): Delete.
2255 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2256 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2257 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2258 UNSPEC_FMINNMV, UNSPEC_FMINV.
2259 (bit_reduc_op): Delete.
2260 (sve_int_op): New int attribute.
2261 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2262 UNSPEC_FMINNMV, UNSPEC_FMINV.
2263 * config/aarch64/aarch64-sve.md
2264 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2265 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2266 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2267 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2268 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2269 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2271 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2272 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2273 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2274 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2275 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2278 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2280 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2281 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2282 (fms<mode>4, *fms<mode>4): Replace with...
2283 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2284 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2285 Use unspecs instead of rtx codes.
2286 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2287 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2289 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2291 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2293 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2294 * config/aarch64/aarch64-sve.md
2295 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2296 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2297 use a single unspec for the rhs.
2298 (*<su><maxmin><mode>3): Delete.
2299 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2301 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2303 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2304 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2305 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2306 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2307 (optab, sve_fp_op): Handle them.
2308 (SVE_FP_UNARY): Delete.
2309 (optab): Remove sqrt entry.
2310 (sve_fp_op): Remove neg, abs and sqrt entries.
2311 (SVE_COND_FP_UNARY): New int iterator.
2312 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2313 (*<frint_pattern><mode>2): Delete.
2314 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2315 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2316 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2317 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2319 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2321 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2323 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2325 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
2326 (UNSPEC_COND_FADD): ...this.
2327 (UNSPEC_COND_SUB): Rename to...
2328 (UNSPEC_COND_FSUB): ...this.
2329 (UNSPEC_COND_MUL): Rename to...
2330 (UNSPEC_COND_FMUL): ...this.
2331 (UNSPEC_COND_DIV): Rename to...
2332 (UNSPEC_COND_FDIV): ...this.
2333 (UNSPEC_COND_MAX): Rename to...
2334 (UNSPEC_COND_FMAXNM): ...this.
2335 (UNSPEC_COND_MIN): Rename to...
2336 (UNSPEC_COND_FMINNM): ...this.
2337 (UNSPEC_COND_LT): Rename to...
2338 (UNSPEC_COND_FCMLT): ...this.
2339 (UNSPEC_COND_LE): Rename to...
2340 (UNSPEC_COND_FCMLE): ...this.
2341 (UNSPEC_COND_EQ): Rename to...
2342 (UNSPEC_COND_FCMEQ): ...this.
2343 (UNSPEC_COND_NE): Rename to...
2344 (UNSPEC_COND_FCMNE): ...this.
2345 (UNSPEC_COND_GE): Rename to...
2346 (UNSPEC_COND_FCMGE): ...this.
2347 (UNSPEC_COND_GT): Rename to...
2348 (UNSPEC_COND_FCMGT): ...this.
2349 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
2350 (sve_fp_op_rev): Update accordingly.
2351 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
2353 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2355 * config/aarch64/aarch64-sve.md: Reorganize contents and add
2357 * config/aarch64/check-sve-md.awk: New file.
2358 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
2359 (insn-conditions.md): Depend on it.
2361 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
2364 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
2365 (*negsi2_cmpz_zext): Ditto.
2367 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2369 * config/aarch64/iterators.md (commutative): Remove.
2371 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
2374 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
2375 processing COLLECT_GCC_OPTIONS.
2376 (run_gcc): Likewise.
2378 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2380 PR tree-optimization/91109
2381 * lra-remat.c (update_scratch_ops): Remove assignment of the
2384 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2386 * data-streamer.h (streamer_write_poly_uint64): Declare.
2387 (streamer_read_poly_uint64): Likewise.
2388 * data-streamer-in.c (streamer_read_poly_uint64): New function.
2389 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
2390 * ipa-predicate.h (condition::size): Turn into a poly_int64.
2391 (add_condition): Take a poly_int64 size.
2392 * ipa-predicate.c (add_condition): Likewise.
2393 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
2394 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
2395 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
2396 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
2397 condition::size as a poly_int64.
2398 (unmodified_parm_1): Take a poly_int64 size pointer.
2399 (unmodified_parm): Likewise.
2400 (unmodified_parm_or_parm_agg_item): Likewise.
2401 (set_cond_stmt_execution_predicate): Update accordingly.
2402 (set_switch_stmt_execution_predicate): Likewise.
2403 (will_be_nonconstant_expr_predicate): Likewise.
2404 (will_be_nonconstant_predicate): Likewise.
2405 (inline_read_section): Stream condition::size as a poly_int.
2406 (ipa_fn_summary_write): Likewise.
2408 2019-08-07 Martin Liska <mliska@suse.cz>
2410 * fold-const.c (twoval_comparison_p): Replace int
2411 with bool as a return type.
2412 (simple_operand_p): Likewise.
2413 (operand_equal_p): Replace int with bool as a return type.
2414 * fold-const.h (operand_equal_p): Likewise.
2416 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2418 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
2419 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
2420 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2421 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
2422 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
2423 * tree-pretty-print.c (dump_omp_clause): Likewise.
2424 * tree-nested.c (convert_nonlocal_omp_clauses,
2425 convert_local_omp_clauses): Likewise.
2426 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
2428 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
2429 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
2430 clause with array or reference to array types, no matter what type
2431 except for reference it has.
2433 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
2435 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
2437 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
2439 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
2440 (arch_canonicalize): Support rv32g and rv64g and fix error
2443 2019-08-06 Martin Liska <mliska@suse.cz>
2445 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
2446 and DECL_IS_OPERATOR_DELETE_P.
2448 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2450 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
2451 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
2452 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
2453 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
2454 (gimplify_omp_for): Don't do C++ random access iterator clause
2455 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
2456 don't predetermine the artificial iterator in case of C++ random
2457 access iterators as lastprivate, but private. For OMP_LOOP, force
2458 bind expr around simd body and force for_pre_body before the
2459 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
2460 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
2461 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
2462 diff var of C++ random access iterators. Handle
2463 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
2464 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
2465 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
2466 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
2467 * omp-low.c (lower_rec_input_clauses): For
2468 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
2469 variables instead of default constructing them.
2470 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
2471 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
2472 is_taskloop_ctx check from the assert to the guarding condition.
2474 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
2476 * config/riscv/multilib-generator: (canonical_order): New.
2477 (arch_canonicalize): Dito.
2478 Apply arch_canonicalize for alts.
2480 2019-08-05 Martin Sebor <msebor@redhat.com>
2482 * doc/extend.texi (Common Variable Attributes): Document alias
2485 2019-08-05 Marek Polacek <polacek@redhat.com>
2487 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2488 * doc/invoke.texi: Document -Wcomma-subscript.
2490 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2492 * tree-core.h (tree_function_decl): Make function_code an
2493 independent field. Group the remaining bitfields into bytes
2494 and move decl_type so that it contines to be at a byte boundary.
2495 Leave 12 bits for future expansion.
2497 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2499 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
2500 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
2501 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
2504 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2506 * gimple.h (gimple_move_vops): Declare.
2507 * gimple.c (gimple_move_vops): New function
2508 * gimple-fold.c (replace_call_with_call_and_fold)
2509 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
2510 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
2511 (gimple_fold_call): Use it.
2512 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
2513 * tree-call-cdce.c (use_internal_fn): Likewise.
2514 * tree-if-conv.c (predicate_load_or_store): Likewise.
2515 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2516 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2517 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
2518 (update_call_from_tree): Likewise.
2519 * tree-vect-stmts.c (vectorizable_load): Likewise.
2520 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
2522 2019-08-05 Martin Liska <mliska@suse.cz>
2525 * tree-ssa-dce.c (propagate_necessity): Handle new operators
2527 (eliminate_unnecessary_stmts): Likewise.
2529 2019-08-05 Richard Biener <rguenther@suse.de>
2532 * fold-const.c (get_array_ctor_element_at_index): Create
2533 offset_ints according to the sign of the index type and treat
2534 that as signed if it is obviously so.
2536 2019-08-05 Jakub Jelinek <jakub@redhat.com>
2539 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
2540 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
2541 _mm256_storeu2_m128i): New function.
2543 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
2545 * config/riscv/riscv.c (riscv_promote_function_mode): New.
2546 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
2548 2019-08-05 Alan Modra <amodra@gmail.com>
2551 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
2552 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
2554 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
2556 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
2557 bug that was fixed in Tcl 8.6.1.
2559 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
2561 * config/rs6000/future.md: New file.
2562 * config/rs6000/rs6000.md: Include future.md.
2563 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
2565 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2567 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
2568 check to use targetm.slow_unaligned_access instead.
2570 * function.c (assign_param_data_one): Remove unused data members.
2572 2019-08-02 Steve Ellcey <sellcey@marvell.com>
2574 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
2575 build_distinct_type_copy.
2576 (simd_clone_adjust_argument_types): Ditto.
2577 (simd_clone_adjust): Call build_distinct_type_copy here.
2578 (expand_simd_clones): Ditto.
2580 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2583 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
2585 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
2587 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
2588 from 'const void *'.
2589 (sort_locs_in_loop_postorder_cmp): Likewise.
2591 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
2593 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
2594 (hot-bb-count-ws-permille): Likewise.
2595 (hot-bb-frequency-fraction): Likewise.
2596 (unlikely-bb-count-fraction): Likewise.
2597 * params.def (hot-bb-count-fraction): Rework description.
2598 (hot-bb-count-ws-permille): Likewise.
2599 (hot-bb-frequency-fraction): Likewise.
2600 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
2601 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
2603 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2606 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
2609 2019-08-02 Richard Biener <rguenther@suse.de>
2611 * vec.h (vec::sort): Add gcc_qsort_r support.
2612 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
2613 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
2614 to gcc_qsort_r style callback.
2615 (sort_locs_in_loop_postorder_cmp): Likewise.
2616 (analyze_memory_references): Use gcc_sort_r interfaces.
2617 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
2619 2019-08-02 Martin Liska <mliska@suse.cz>
2622 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
2623 to detect working job server.
2624 (driver::detect_jobserver): Test whether jobserver
2625 is active from GCC driver. That will prevent situation where
2626 GCC is invoked from a LD plugin and the linker already uses
2627 file descriptors suggested by make. That leads to a wrong
2629 * gcc.h (driver): Add detect_jobserver.
2630 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
2631 not scanning for --jobserver-auth prefix.
2633 2019-08-02 Jakub Jelinek <jakub@redhat.com>
2635 PR tree-optimization/91201
2636 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
2637 V16QImode extraction without sse4.1 try to use V4SImode lowpart
2640 2019-08-01 Martin Sebor <msebor@redhat.com>
2643 * tree.c (type_initializer_zero_p): Define.
2644 * tree.h (type_initializer_zero_p): New function.
2646 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2648 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
2650 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2652 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
2653 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
2654 * predict.c (maybe_hot_count_p): Likewise.
2655 (maybe_hot_bb_p): Tweak comment.
2656 (maybe_hot_edge_p): Likewise.
2657 (probably_never_executed): Likewise. Minor tweak.
2658 (probably_never_executed_bb_p): Likewise.
2659 (unlikely_executed_edge_p): Likewise.
2660 (probably_never_executed_edge_p): Likewise.
2661 (optimize_function_for_size_p): Likewise.
2662 (optimize_function_for_speed_p): Likewise.
2663 (function_optimization_type): Likewise.
2664 (optimize_bb_for_size_p): Likewise.
2665 (optimize_bb_for_speed_p): Likewise.
2666 (bb_optimization_type): Likewise.
2667 (optimize_edge_for_size_p): Likewise.
2668 (optimize_edge_for_speed_p): Likewise.
2669 (optimize_insn_for_size_p): Likewise.
2670 (optimize_insn_for_speed_p): Likewise.
2671 (optimize_loop_for_size_p): Likewise.
2672 (optimize_loop_for_speed_p): Likewise.
2673 (optimize_loop_nest_for_speed_p): Likewise.
2674 (optimize_loop_nest_for_size_p): Likewise.
2675 (predictable_edge_p): Likewise.
2676 (handle_missing_profiles): Minor tweak.
2678 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
2680 * config/rs6000/predicates.md (pcrel_external_address): Update
2683 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2686 * config/i386/mmx.md (usadv8qi): New expander.
2688 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
2691 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
2692 with reserved names that are in a system header.
2694 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2696 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
2697 (*vec_extractv2si_0_zext_sse4): New insn pattern.
2698 (*vec_extractv2si_0_zext): Ditto.
2699 (*vec_extractv2si_1): Add (rm,x) alternative.
2700 (*vec_extractv2si_1_zext): New insn pattern.
2701 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
2704 2019-08-01 Richard Biener <rguenther@suse.de>
2706 * domwalk.c (bb_postorder): Remove static variable.
2707 (cmp_bb_postorder): Adjust.
2708 (sort_bbs_postorder): Adjust and use gcc_sort_r.
2709 (dom_walker::walk): Adjust.
2711 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
2713 * sort.cc (sort_r_ctx): New struct.
2714 (reorder23): Make templated on context type.
2716 (cmp1): Ditto. Adjust signature.
2719 [CHECKING_P] (cmp2to3): New static function. Use it...
2720 (gcc_qsort) [CHECKING_P]: ...here.
2721 (gcc_sort_r): New function.
2722 * system.h (sort_r_cmp_fn): New function typedef.
2723 (qsort_chk): Adjust signature.
2724 (gcc_sort_r): Declare.
2725 * vec.c (qsort_chk_error): Adjust.
2726 (qsort_chk): Adjust.
2728 2019-08-01 Richard Biener <rguenther@suse.de>
2730 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
2731 (compute_antic): Localize it here.
2733 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
2735 * common/config/riscv/riscv-common.c: Check -march string ends
2738 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
2740 * ipa-devirt.c (type_warning_cmp): Make static.
2741 (decl_warning_cmp): Ditto.
2743 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
2746 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
2747 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
2748 use of deleted rs6000_dejagnu_cpu_index variable.
2749 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
2750 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2751 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
2752 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
2753 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
2754 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2756 2019-07-31 Richard Biener <rguenther@suse.de>
2758 PR tree-optimization/91280
2759 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2760 Decompose MEM_REF manually for offset handling.
2762 2019-07-31 Richard Biener <rguenther@suse.de>
2764 PR tree-optimization/91293
2765 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
2768 2019-07-31 Matt Thomas <matt@3am-software.com>
2769 Nick Hudson <nick@nthcliff.demon.co.uk>
2770 Matthew Green <mrg@eterna.com.au>
2771 Maya Rashish <coypu@sdf.org>
2773 * config.gcc (hppa*-*-netbsd*): New target.
2774 * config/pa/pa-netbsd.h: New file.
2775 * config/pa/pa32-netbsd.h: New file.
2777 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2779 PR tree-optimization/91201
2780 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
2782 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
2784 * config/gcn/gcn-valu.md
2785 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
2786 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
2787 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
2788 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
2789 struct ilist. Add nops for delayeduse insns.
2790 * config/gcn/gcn.md (delayeduse): New attribute.
2791 (*movbi): Remove s_waitcnt from stores.
2792 (*mov<mode>_insn): Likewise.
2793 (*movti_insn): Likewise. Add delayeduse attribute.
2794 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
2795 (atomic_store<mode>): Remove or adjust s_waitcnt.
2797 2019-07-31 Richard Biener <rguenther@suse.de>
2799 * vr-values.h (vr_values::swap_vr_value): New.
2800 (vr_values::free_value_range): likewise.
2801 * vr-values.c (vr_values::swap_vr_value): Implement.
2802 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
2803 Do not return a range or take a var.
2804 (evrp_range_analyzer::stack): Change back to recording a non-const
2806 * gimple-ssa-evrp-analyze.c
2807 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
2809 (evrp_range_analyzer::pop_to_marker): Adjust.
2810 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
2811 (evrp_range_analyzer::pop_value_range): Likewise. Free the
2812 no longer needed value-range.
2814 2019-07-31 Martin Liska <mliska@suse.cz>
2816 * tree-ssa-dce.c (propagate_necessity): Delete operator can
2817 have size and (or) alignment as 2nd and later arguments.
2818 Mark all of them as necessary.
2820 2019-07-31 Richard Biener <rguenther@suse.de>
2822 PR tree-optimization/91178
2823 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2826 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2828 PR tree-optimization/91201
2829 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
2830 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
2832 (reduc_plus_scal_<mode>): Improve formatting by introducing
2835 2019-07-31 Sudakshina Das <sudi.das@arm.com>
2837 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2838 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
2839 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
2840 (aarch64_init_tme_builtins): New.
2841 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
2842 (aarch64_expand_builtin_tme): New.
2843 (aarch64_expand_builtin): Handle TME builtins.
2844 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2845 __ARM_FEATURE_TME when enabled.
2846 * config/aarch64/aarch64-option-extensions.def: Add "tme".
2847 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
2849 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
2850 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
2852 (tstart, ttest, tcommit, tcancel): New instructions.
2853 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
2854 (__tcancel, __ttest): New.
2855 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
2856 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
2857 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
2858 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
2859 * config/arm/types.md: Add new tme type attr.
2860 * doc/invoke.texi: Document "tme".
2862 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
2864 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
2865 warn_unused_result attribute.
2866 (cmse_check_address_range): Add warn_unused_result attribute.
2868 2019-07-31 Richard Biener <rguenther@suse.de>
2870 PR tree-optimization/91257
2871 * tree-vrp.c (union_ranges): Unify equality and less tests
2872 by using compare_values. Re-order cheap tests first.
2874 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2877 * gimplify.c (gimplify_omp_for): If for class iterator on
2878 distribute parallel for there is no data sharing clause
2879 on inner_for_stmt, look for private clause on combined
2880 parallel too and if found, move it to inner_for_stmt.
2882 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
2884 * lra-int.h (lra_operand_data): Remove early_clobber field.
2885 (lra_insn_reg): Likewise.
2886 * lra.c (debug_operand_data): Update accordingly.
2887 (setup_operand_alternative): Likewise.
2888 (new_insn_reg): Likewise. Remove early_clobber parameter.
2889 (collect_non_operand_hard_regs): Update call accordingly.
2890 Don't assign to lra_insn_reg::early_clobber.
2891 (add_regs_to_insn_regno_info): Remove early_clobber parameter
2892 and update calls to new_insn_reg.
2893 (lra_update_insn_regno_info): Update calls accordingly.
2894 * lra-constraints.c (update_and_check_small_class_inputs): Take the
2895 alternative number as a parameter and test whether the operand
2896 is earlyclobbered in that particular alternative.
2897 (process_alt_operands): Update call accordingly. Use per-alternative
2898 checks for earyclobber here too.
2899 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
2900 against zero for IRA_UNKNOWN_ALT.
2902 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
2904 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
2906 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
2908 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
2909 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2911 2019-07-30 Martin Liska <mliska@suse.cz>
2914 * cgraph.c (cgraph_edge::make_direct): Use
2915 edge->indirect_unknown_callee as edge->resolve_speculation can
2916 deallocate edge which is this pointer.
2918 2019-07-30 Richard Biener <rguenther@suse.de>
2920 PR tree-optimization/91257
2921 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
2923 2019-07-30 Martin Liska <mliska@suse.cz>
2925 * doc/invoke.texi: Document new behavior.
2926 * lto-wrapper.c (cpuset_popcount): New function
2927 is a copy of libgomp/config/linux/proc.c.
2928 (init_num_threads): Likewise.
2929 (run_gcc): Automatically detect core count for -flto.
2930 (jobserver_active_p): New function.
2932 2019-07-30 Richard Biener <rguenther@suse.de>
2934 PR tree-optimization/91257
2935 * bitmap.h (bitmap_ior_into_and_free): Declare.
2936 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
2937 whether to add the unliked element to the freelist.
2938 (bitmap_list_insert_element_after): Add defaulted param for
2939 an already allocated element.
2940 (bitmap_ior_into_and_free): New function.
2941 * tree-ssa-structalias.c (condense_visit): Reduce the
2942 ponts-to and edge bitmaps of the SCC members in a
2943 logarithmic fashion rather than all to one.
2945 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
2947 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
2948 parameter. When nonnull, make sure that the addition or subtraction
2949 has the same condition.
2950 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
2951 for CFN_COND_MUL too.
2953 2019-07-30 Richard Biener <rguenther@suse.de>
2955 PR tree-optimization/91291
2956 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
2959 2019-07-30 Jakub Jelinek <jakub@redhat.com>
2962 * omp-low.c (global_nonaddressable_vars): New variable.
2963 (use_pointer_for_field): For global decls, if they are non-addressable,
2964 remember it in the global_nonaddressable_vars bitmap, if they are
2965 addressable and in the global_nonaddressable_vars bitmap, ignore their
2966 TREE_ADDRESSABLE bit.
2967 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
2968 vars in global_nonaddressable_vars bitmap.
2969 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
2972 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
2973 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
2974 comparison to unsigned HOST_WIDE_INT before shifting it left.
2976 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
2978 * config/i386/i386.md (movstrict<mode>): Use register_operand
2979 predicate for operand 0. Add expander condition. Assert that
2980 operand 0 is a SUBREG RTX.
2981 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
2982 Update operand constraints and insn condition.
2983 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
2984 (zero_extendqihi2_and): Do not call gen_movstrictqi.
2985 (*setcc_qi_slp): Use register_operand predicate for operand 0.
2986 Update operand 0 constraints.
2987 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
2989 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2991 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
2992 when -m{code,data}-region are used without -mlarge.
2993 * config/msp430/msp430.c (msp430_option_override): Error when a
2994 non-default code or data region is used without -mlarge.
2995 (msp430_section_attr): Emit a warning and do not add upper/lower/either
2996 attributes when they are used without -mlarge.
2998 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3001 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3003 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3006 * wide-int.h (generic_wide_int::sext_elt): New function.
3007 * inchash.h (hash::add_wide_int): Use it instead of elt.
3009 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3011 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3013 * config/arm/arm.md (<crc_variant>): Rename to...
3014 (arm_<crc_variant>): ... This.
3015 (<cdp>): Rename to...
3016 (arm_<cdp>): ... This.
3017 (<ldc>): Rename to...
3018 (arm_<ldc>): ... This.
3019 (<stc>): Rename to...
3020 (arm_<stc>): ... This.
3021 (<mcr>): Rename to...
3022 (arm_<mcr>): ... This.
3023 (<mrc>): Rename to...
3024 (arm_<mrc>): ... This.
3025 (<mcrr>): Rename to...
3026 (arm_<mcrr>): ... This.
3027 (<mrrc>): Rename to...
3028 (arm_<mrrc>): ... This.
3030 2019-07-29 Richard Biener <rguenther@suse.de>
3032 PR tree-optimization/91257
3033 * tree-ssa-sccvn.h (struct vn_avail): New.
3034 (struct vn_ssa_aux): Add avail member.
3035 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3036 member, add m_avail_freelist one.
3037 (rpo_elim::~rpo_elim): Remove.
3038 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3040 (rpo_elim::eliminate_push_avail): Likewise.
3041 (do_unwind): Likewise.
3042 (do_rpo_vn): Likewise.
3044 2019-07-29 Richard Biener <rguenther@suse.de>
3046 PR tree-optimization/91257
3047 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3048 most cases, instead call compare_values which handles the
3049 symbolic ranges we handle specially.
3050 (compare_values_warnv): Do not call operand_less_p but open-code
3051 the effective fold calls. Avoid converting so much.
3053 2019-07-29 Martin Liska <mliska@suse.cz>
3055 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3056 remove LHS of operator new call. It's handled latter.
3058 2019-07-29 Richard Biener <rguenther@suse.de>
3060 PR tree-optimization/91267
3061 * vr-values.c (vr_values::update_value_range): Add early return
3062 for effectively VARYING lattice entry.
3064 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3067 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3068 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3069 necessary if keep_all_vdefs_p is true.
3070 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3071 that keep_all_vdefs_p is false.
3072 (mark_all_reaching_defs_necessary): Likewise.
3073 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3075 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3077 * common.opt (Og): Change the initial value of flag_dse to 0.
3078 * opts.c (default_options_table): Move OPT_ftree_dse from
3079 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3080 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3081 entry before the OPT_ftree_sra entry.
3082 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3083 of flags disabled by Og.
3085 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3087 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3090 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3092 * doc/sourcebuild.texi (check-function-bodies): Document.
3094 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3096 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3097 VEC_DUPLICATE of a fixed-length vector even if the result
3098 is variable-length. Likewise fold a duplicate of a
3099 variable-length vector if the variable-length vector is
3100 itself a duplicate of a fixed-length sequence.
3101 (test_vector_ops_duplicate): Test more cases.
3103 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3105 * vector-builder.h (vector_builder): Add a shape template parameter.
3106 (vector_builder::new_unary_operation): New function, generalizing
3107 the old tree_vector_builder function.
3108 (vector_builder::new_binary_operation): Likewise.
3109 (vector_builder::binary_encoded_nelts): Likewise.
3110 * int-vector-builder.h (int_vector_builder): Update template
3111 parameters to vector_builder.
3112 (int_vector_builder::shape_nelts): New function.
3113 * rtx-vector-builder.h (rtx_vector_builder): Update template
3114 parameters to vector_builder.
3115 (rtx_vector_builder::shape_nelts): New function.
3116 (rtx_vector_builder::nelts_of): Likewise.
3117 (rtx_vector_builder::npatterns_of): Likewise.
3118 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3119 * tree-vector-builder.h (tree_vector_builder): Update template
3120 parameters to vector_builder.
3121 (tree_vector_builder::shape_nelts): New function.
3122 (tree_vector_builder::nelts_of): Likewise.
3123 (tree_vector_builder::npatterns_of): Likewise.
3124 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3125 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3126 (tree_vector_builder::new_binary_operation): Delete.
3127 (tree_vector_builder::binary_encoded_nelts): Likewise.
3128 * simplify-rtx.c: Include rtx-vector-builder.h.
3129 (distributes_over_addition_p): New function.
3130 (simplify_const_unary_operation)
3131 (simplify_const_binary_operation): Generalize handling of vector
3132 constants to include variable-length vectors.
3133 (test_vector_ops_series): Add more tests.
3135 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3138 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3139 than INDENTIFIER_POINTER.
3141 2019-07-28 Martin Liska <mliska@suse.cz>
3144 * cgraph.c (symbol_table::create_edge): Always allocate
3146 (symbol_table::free_edge): Store summary_id to
3147 edge_released_summary_ids if != -1;
3148 * cgraph.h (NEXT_FREE_NODE): Remove.
3149 (SET_NEXT_FREE_NODE): Likewise.
3150 (NEXT_FREE_EDGE): Likewise.
3151 (symbol_table::release_symbol): Store summary_id to
3152 cgraph_released_summary_ids if != -1;
3153 (symbol_table::allocate_cgraph_symbol): Always allocate
3156 2019-07-28 Alan Modra <amodra@gmail.com>
3158 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3161 2019-07-28 Alan Modra <amodra@gmail.com>
3164 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3166 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3167 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3168 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3170 2019-07-28 Alan Modra <amodra@gmail.com>
3173 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3174 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3175 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3176 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3177 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3178 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3179 in asm_default spec.
3180 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3181 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3183 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3185 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3187 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3190 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3191 * config/aarch64/aarch64-option-extensions.def: Add new comments
3192 and restore easier to read options.
3194 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3196 * convert.c (convert_to_real_1): Move part of conversion code...
3197 * match.pd: ...To here.
3199 2019-07-26 Martin Jambor <mjambor@suse.cz>
3202 * ipa-inline-transform.c (check_speculations_1): New function.
3203 (push_all_edges_in_set_to_vec): Likewise.
3204 (check_speculations): Use check_speculations_1, new parameter
3206 (inline_call): Pass new_edges to check_speculations.
3207 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3209 (speculation_useful_p): Early return true if edge is inlined, remove
3210 later checks for inline_failed.
3212 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3214 PR rtl-optimization/91223
3215 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3216 matching with INOUT operand.
3218 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3220 * stmt.c (expand_case): Try to narrow the index type if it's larger
3221 than a word. Tidy up.
3223 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3225 * cif-code.def (NEVER_CALL): New code.
3226 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3227 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3229 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3231 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3232 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3234 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3236 * ipa-devirt.c (add_type_duplicate): Fix return value.
3238 2019-07-25 Richard Biener <rguenther@suse.de>
3240 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3241 type parameter and use it instead of guessing expression
3242 type from the first operand.
3243 (extract_range_from_binary_expr): Pass expr_type down.
3245 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3247 * config/arm/arm.md (SATrev): Change to code attribute.
3248 (*satsi_<SAT:code>): Adjust for the above.
3249 (*satsi_<SAT:code>_shift): Likewise.
3251 2019-07-25 Richard Biener <rguenther@suse.de>
3253 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3254 Make value_range * temporary const.
3255 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3257 (evrp_range_analyzer::record_ranges_from_): Likewise.
3258 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3259 deal with having recorded a const one.
3260 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3261 Return a const value_range *.
3262 (evrp_range_analyzer::pop_value_range): Likewise.
3263 (evrp_range_analyzer::stack): Record const value_range *s.
3264 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3266 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3267 (format_integer): Likewise.
3268 (sprintf_dom_walker::handle_gimple_call): Likewise.
3269 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3270 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3271 (vrp_prop::get_value_range): Adjust.
3272 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3273 modifying the lattice in-place.
3274 (vrp_prop::visit_stmt): Likewise.
3275 * vr-values.c (vr_values::get_lattice_entry): New private method.
3276 (vr_values::get_value_range): Wrap it and return a const
3278 (vr_values::set_def_to_varying): New.
3279 (vr_values::set_defs_to_varying): Use it.
3280 (vr_values::update_value_range): Likewise.
3281 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3282 (values::op_with_constant_singleton_va): Likewise.
3283 (vr_values::extract_range_for_var_from_co): Likewise.
3284 (vr_values::extract_range_from_ssa_name): Likewise.
3285 (vr_values::extract_range_from_cond_expr): Likewise.
3286 (vr_values::extract_range_basic): Likewise.
3287 (compare_ranges): Take const value_range *, adjust.
3288 (compare_range_with_value): Likewise.
3289 (vrp_valueize): Adjust.
3290 (vrp_valueize_1): Likewise.
3291 (vr_values::get_vr_for_comparison): Return a const value_range *.
3292 (vr_values::compare_name_with_value): Adjust.
3293 (vr_values::compare_names): Likewise.
3294 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3296 (vr_values::vrp_evaluate_conditional): Likewise.
3297 (find_case_label_ranges): Take a const value_range *.
3298 (vr_values::vrp_visit_switch_stmt): Adjust.
3299 (vr_values::extract_range_from_phi_node): Likewise.
3300 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3301 (vr_values::simplify_abs_using_ranges): Likewise.
3302 (test_for_singularity): Take a const value_range *.
3303 (range_fits_type_p): Likewise.
3304 (vr_values::simplify_cond_using_ranges_1): Adjust.
3305 (vr_values::simplify_cond_using_ranges_2): Likewise.
3306 (vr_values::simplify_switch_using_ranges): Likewise.
3307 (vr_values::simplify_float_conversion_usi): Likewise.
3308 (vr_values::two_valued_val_range_p): Likewise.
3309 * vr-values.h (vr_values::get_value_range): Return a const
3311 (vr_values::set_def_to_varying): New.
3312 (vr_values::get_lattice_entry): New private method.
3313 (vr_values::get_vr_for_comparison): Return a const value_range *.
3315 2019-07-25 Martin Liska <mliska@suse.cz>
3316 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3319 * common.opt: Add -fallocation-dce
3320 * gimple.c (gimple_call_operator_delete_p): New.
3321 * gimple.h (gimple_call_operator_delete_p): Likewise.
3322 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3323 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
3324 DECL_IS_OPERATOR_DELETE_P.
3325 (mark_all_reaching_defs_necessary_1): Likewise.
3326 (propagate_necessity): Likewise.
3327 (eliminate_unnecessary_stmts): Handle
3328 gimple_call_operator_delete_p.
3329 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
3330 Add packing of OPERATOR_DELETE.
3331 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
3333 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
3334 (DECL_SET_IS_OPERATOR_DELETE): New.
3335 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
3337 2019-07-25 Martin Liska <mliska@suse.cz>
3339 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
3340 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
3341 * coverage.c (coverage_begin_function): Likewise.
3342 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
3343 * gimple.c (gimple_call_nonnull_result_p): Likewise.
3344 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
3345 (sem_item::hash_referenced_symbol_properties): Likewise.
3346 * lto-streamer-out.c (hash_tree): Likewise.
3347 * predict.c (expr_expected_value_1): Likewise.
3348 * tree-inline.c (expand_call_inline): Likewise.
3349 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3350 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3351 * tree-core.h (enum function_decl_type): New enum.
3352 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
3353 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
3354 (set_function_decl_type): Likewise.
3355 (DECL_IS_OPERATOR_NEW_P): New.
3356 (DECL_SET_IS_OPERATOR_NEW): Likewise.
3357 (DECL_LAMBDA_FUNCTION): Likewise.
3358 (DECL_LAMBDA_FUNCTION_P): Likewise.
3359 (DECL_IS_OPERATOR_NEW): Remove.
3360 (DECL_SET_LAMBDA_FUNCTION): Likewise.
3362 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
3364 * ipa-profile.c (get_most_common_single_value): Use
3365 get_nth_most_common_value.
3366 * profile.c (sort_hist_value): New function.
3367 (compute_value_histograms): Call sort_hist_value to sort the
3368 values after loading from disk.
3369 * value-prof.c (get_most_common_single_value): Rename to ...
3370 get_nth_most_common_value. Add input params n, return
3371 the n_th value and count.
3372 (gimple_divmod_fixed_value_transform): Use
3373 get_nth_most_common_value.
3374 (gimple_ic_transform): Likewise.
3375 (gimple_stringops_transform): Likewise.
3376 * value-prof.h (get_most_common_single_value): Add input params
3379 2019-07-25 Richard Biener <rguenther@suse.de>
3381 PR tree-optimization/91236
3382 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3383 size of CONSTRUCTOR write. Fix buffer size we pass to
3386 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3388 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
3389 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
3392 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3394 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
3395 explicitly disabled with --disable-initfini-array.
3397 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3399 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
3402 2019-07-24 Martin Sebor <msebor@redhat.com>
3404 PR tree-optimization/91183
3405 PR tree-optimization/86688
3406 * builtins.c (compute_objsize): Handle MEM_REF.
3407 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
3408 (get_min_string_length): Remove.
3409 (count_nonzero_bytes): New function.
3410 (handle_char_store): Rename...
3411 (handle_store): to this. Handle multibyte stores via integer types.
3412 (strlen_check_and_optimize_stmt): Adjust conditional and the called
3415 2019-07-24 Martin Sebor <msebor@redhat.com>
3418 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
3419 (diagnostic_report_diagnostic): Same.
3420 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
3421 (diagnostic_context::lang_mask): New data member.
3422 * ipa-pure-const.c (suggest_attribute): Use
3423 lang_hooks.option_lang_mask ().
3424 * opts-common.c (option_enabled): Handle new argument.
3425 (get_option_state): Pass an additional argument.
3426 * opts.c (print_filtered_help): Print supported languages for
3427 unsupported options. Adjust printing of current state.
3428 * opts.h (option_enabled): Add argument.
3429 * toplev.c (print_switch_values): Use lang_mask.
3430 (general_init): Set global_dc->lang_mask.
3432 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3435 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
3437 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
3439 * cgraphunit.c (symbol_table::compile): Start and stop
3440 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
3441 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
3443 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
3445 * gimplify.c (flag_instrument_functions_exclude_p): Include
3446 namespace/class information in the printable name.
3447 * opts.c (add_comma_separated_to_vector): Add NUL terminator
3448 to tokens entered into the vector.
3450 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
3452 * tree-nested.c (build_simple_mem_ref_notrap): New function.
3453 (get_static_chain): Call it instead of build_simple_mem_ref.
3454 (get_frame_field): Likewise.
3455 (get_nonlocal_debug_decl): Likewise.
3456 (convert_nonlocal_reference_op): Likewise.
3458 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
3460 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
3462 (arc_compute_frame_size): Millicode is disabled when compiling
3464 (arc_return_address_register): Likewise.
3465 (arc_compute_function_type): Likewise.
3466 (arc_compute_frame_size): Likewise.
3467 (secondary_reload_info): Likewise.
3468 (arc_get_unalign): Likewise.
3469 (arc_can_use_return_insn): Declare.
3470 * config/arc/arc.c (AUX_LP_START): Define
3471 (AUX_LP_END): Likewise.
3472 (arc_frame_info): Update gmask member to 64-bit datum.
3473 (GMASK_LEN): Update.
3474 (arc_compute_function_type): Make it static, move it forward.
3475 (arc_must_save_register): Update, consider the extra regs.
3476 (arc_compute_millicode_save_restore_regs): Update to use the 64
3478 (arc_compute_frame_size): Likewise.
3479 (arc_enter_leave_p): Likewise.
3480 (arc_save_callee_saves): Likewise.
3481 (arc_restore_callee_saves): Likewise.
3482 (arc_save_callee_enter): Likewise.
3483 (arc_restore_callee_leave): Likewise.
3484 (arc_save_callee_milli): Likewise.
3485 (arc_restore_callee_milli): Likewise.
3486 (arc_expand_prologue): Add new interrupt handling.
3487 (arc_return_address_register): Make it static, move it forward.
3488 (arc_expand_epilogue): Add new interrupt handling.
3489 (arc_get_unalign): Delete.
3490 (arc_epilogue_uses): Make sure we do not remove the extra
3491 saved/restored registers when interrupt.
3492 (arc_can_use_return_insn): New function.
3493 (push_reg): Likewise.
3494 (pop_reg): Likewise.
3495 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
3497 (arc_restore_callee_saves): Likewise, but restoring.
3498 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
3499 (R33_REG): Likewise.
3500 (R34_REG): Likewise.
3501 (R35_REG): Likewise.
3502 (R36_REG): Likewise.
3503 (R37_REG): Likewise.
3504 (R38_REG): Likewise.
3505 (R39_REG): Likewise.
3506 (R45_REG): Likewise.
3507 (R46_REG): Likewise.
3508 (R47_REG): Likewise.
3509 (R48_REG): Likewise.
3510 (R49_REG): Likewise.
3511 (R50_REG): Likewise.
3512 (R51_REG): Likewise.
3513 (R52_REG): Likewise.
3514 (R53_REG): Likewise.
3515 (R54_REG): Likewise.
3516 (R55_REG): Likewise.
3517 (R56_REG): Likewise.
3518 (R58_REG): Likewise.
3519 (type): Add rtie attribute.
3520 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
3521 (movsi_insn): Accept moves to lp_count.
3522 (rtie): Update pattern.
3523 (simple_return): Simplify it, don't use this pattern as a return
3525 (arc600_rtie): New pattern.
3526 (p_return_i): Clean up.
3528 * config/arc/builtins.def (rtie): Only available for non ARC6xx
3530 * config/arc/predicates.md (move_src_operand): Consider lp_count
3533 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
3535 * config/s390/predicates.md (addv_const_operand): New predicate.
3536 * config/s390/s390-modes.def (CCO): New condition code mode.
3537 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
3538 (s390_branch_condition_mask): Likewise.
3539 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
3540 ("mulv<mode>4"): New expanders.
3541 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
3542 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
3543 pattern definitions.
3545 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3548 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
3549 (define_predicates): Add entry for uniform_vector_p.
3550 (vec_same_elem_p): New match pattern.
3552 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3555 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
3556 * config/i386/darwin32-biarch.h .. to here.
3557 * config/i386/darwin64-biarch.h: Adjust comments.
3558 * config/rs6000/darwin32-biarch.h: Likewise.
3559 * config/rs6000/darwin64-biarch.h: Likewise.
3560 * config.gcc: Missed commit from r273746
3561 (*-*-darwin*): Don't include CPU t-darwin here.
3562 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3563 an error message if i686-darwin configuration is attempted for
3566 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
3569 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
3570 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3571 an error message if i686-darwin configuration is attempted for
3573 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
3574 (powerpc-*-darwin*): Use biarch files where needed.
3575 (powerpc64-*-darwin*): Likewise.
3576 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
3577 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3579 * config/i386/darwin32-biarch.h: New.
3580 * config/i386/darwin64.h: Rename.
3581 * config/i386/darwin64-biarch.h: To this.
3582 * config/i386/t-darwin: Rename.
3583 * config/i386/t-darwin32-biarch: To this.
3584 * config/i386/t-darwin64: Rename.
3585 * config/i386/t-darwin64-biarch: To this.
3586 * config/rs6000/darwin32-biarch.h: New.
3587 * config/rs6000/darwin64.h: Rename.
3588 * config/rs6000/darwin64-biarch.h: To this.
3589 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3591 * config/rs6000/t-darwin8: Rename.
3592 * config/rs6000/t-darwin32-biarch: To this.
3593 * config/rs6000/t-darwin64 Rename.
3594 * config/rs6000/t-darwin64-biarch: To this.
3596 2019-07-23 Martin Sebor <msebor@redhat.com>
3598 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
3600 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3602 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
3603 (rh): New alias for it.
3605 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3607 * gdbhooks.py: Pass replace=True to
3608 gdb.printing.register_pretty_printer.
3610 2019-07-23 Richard Biener <rguenther@suse.de>
3613 * lto-streamer-in.c (input_function): Drop inline-entry markers
3614 that ended up with an unknown location block.
3616 2019-07-23 Richard Biener <rguenther@suse.de>
3618 PR tree-optimization/83518
3619 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
3620 init from a constant even when partial defs are already recorded.
3622 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3624 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
3625 * config/i386/znver1.md: Enable patterns for znver2 and add store
3626 variants which use extra AGU unit.
3628 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3630 * config/i386/i386-options.c (ix86_option_override_internal): Default
3631 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
3632 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
3635 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3637 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
3638 (znver2_costs): Update 256 bit SSE costs and multiplication.
3640 2019-07-23 Jan Beulich <jbeulich@suse.com>
3642 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
3643 Require only AVX512F.
3644 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
3645 alternative expanding to vpternlog.
3647 2019-07-23 Martin Liska <mliska@suse.cz>
3649 * dwarf2out.c (gen_producer_string): Canonize -flto=N
3650 to -flto in dwarf producer string.
3652 2019-07-23 Richard Biener <rguenther@suse.de>
3654 * tree-cfg.c (label_for_bb): Remove global var.
3655 (main_block_label): Take label_for_bb as argument.
3656 (cleanup_dead_labels_eh): Likewise, adjust.
3657 (cleanup_dead_labels): Adjust.
3659 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3661 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
3662 Configurations): Add documentation for __builtin_mtfsf.
3664 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
3666 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
3667 * config/riscv/riscv.c (riscv_constant_alignment): Use
3668 riscv_align_data_type.
3669 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
3670 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3671 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3672 * config/riscv/riscv.opt (malign-data): New.
3673 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
3675 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
3677 * cgraph.c (dump_graphviz): New function.
3678 * cgraph.h (dump_graphviz): New function.
3679 * symtab.c (dump_graphviz): New function.
3681 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
3683 * config/aarch64/aarch64-simd.md
3684 (*aarch64_simd_sra<mode>): New.
3685 * config/aarch64/iterators.md
3686 (SHIFTRT): New iterator.
3687 (sra_op): New attribute.
3689 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3691 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
3692 callee-saved regs R4->R10 in an interrupt function that calls another
3695 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3697 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
3698 (_mm_blendv_epi8): New.
3700 2019-07-22 Richard Biener <rguenther@suse.de>
3702 PR tree-optimization/91221
3703 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
3704 restrict partial-def handling of empty constructors and
3705 memset to refs with known offset.
3707 2019-07-22 Jan Beulich <jbeulich@suse.com>
3709 * config/i386/sse.md (ternlogsuffix): New.
3710 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
3712 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
3714 2019-07-22 Martin Liska <mliska@suse.cz>
3716 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
3718 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
3720 2019-07-22 Martin Liska <mliska@suse.cz>
3722 * lto-section-in.c (lto_get_section_data):
3723 Use new function get_compression.
3724 * lto-streamer-out.c (produce_lto_section): Use
3725 set_compression to encode compression algorithm.
3726 * lto-streamer.h (struct lto_section): Do not
3727 use bitfields in the format.
3729 2019-07-22 Martin Liska <mliska@suse.cz>
3732 * opts-common.c (decode_cmdline_option): Decode
3733 argument of -Werror and check it for a wrong language.
3734 * opts-global.c (complain_wrong_lang): Remove such case.
3736 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
3738 * config/arc/arc.c (prepare_move_operands): Always use an
3739 intermediate register when storing a TLS symbols.
3741 2019-07-22 Stafford Horne <shorne@gmail.com>
3743 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
3746 2019-07-22 Stafford Horne <shorne@gmail.com>
3748 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
3749 and munordered-float validations.
3750 * config/or1k/constraints.md (d): New register constraint.
3751 * config/or1k/predicates.md (fp_comparison_operator): New.
3752 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
3754 (or1k_expand_compare): Normalize unordered comparisons.
3755 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
3756 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
3757 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
3758 * config/or1k/or1k.md (type): Add fpu.
3759 (fpu): New instruction reservation.
3760 (F, f, fr, fi, FI, FOP, fop): New.
3761 (<fop><F:mode>3): New ALU instruction definition.
3762 (float<fi><F:mode>2): New conversion instruction definition.
3763 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
3764 (fpcmpcc): New code iterator.
3765 (*sf_fp_insn): New instruction definition.
3766 (cstore<F:mode>4): New expand definition.
3767 (cbranch<F:mode>4): New expand definition.
3768 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
3769 munordered-float): New options.
3770 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
3773 2019-07-22 Stafford Horne <shorne@gmail.com>
3775 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
3776 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
3777 documenation to be more clear.
3778 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
3780 * config/or1k/or1k.opt (mrori): New option.
3781 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
3782 msfimm, mshftimm): Rewrite documentation to be more clear.
3783 * config/or1k/or1k.md (insn_support): Add ror and rori.
3784 (enabled): Add conditions for ror and rori.
3785 (rotrsi3): Replace condition for shftimm with ror and rori.
3787 2019-07-22 Stafford Horne <shorne@gmail.com>
3790 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
3791 (extend<mode>si2): Update predicate.
3792 * config/or1k/predicates.md (volatile_mem_operand): New.
3793 (reg_or_mem_operand): New.
3795 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
3797 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
3798 * config/rs6000/rs6000-call.c: ... to here.
3800 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3802 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
3805 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3807 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
3809 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3811 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
3813 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3815 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
3816 (any_memory_operand): New predicate.
3817 (reg_or_mem_operand): Use it.
3819 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3822 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
3824 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
3826 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
3827 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
3829 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3831 * tree.def (OMP_LOOP): New tree code.
3832 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
3833 (enum omp_clause_bind_kind): New enum.
3834 (struct tree_omp_clause): Add subcode.bind_kind.
3835 * tree.h (OMP_LOOP_CHECK): Rename to ...
3836 (OMP_LOOPING_CHECK): ... this.
3837 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
3838 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
3839 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
3840 (OMP_CLAUSE_BIND_KIND): Define.
3841 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3842 bind clause entries.
3843 (walk_tree_1): Handle OMP_CLAUSE_BIND.
3844 * tree-pretty-print.c (dump_omp_clause): Likewise.
3845 (dump_generic_node): Handle OMP_LOOP.
3846 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
3847 (in_omp_construct): New variable.
3848 (is_gimple_stmt): Handle OMP_LOOP.
3849 (gimplify_scan_omp_clauses): For lastprivate don't set
3850 check_non_private if code == OMP_LOOP. For reduction clause
3851 on OMP_LOOP combined with parallel or teams propagate as shared
3852 on the combined construct. Handle OMP_CLAUSE_BIND.
3853 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
3854 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
3855 for constructs from a loop construct to gimplify_scan_omp_clauses.
3856 Don't predetermine iterator linear on OMP_SIMD from loop construct.
3857 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
3858 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
3859 to match the implicit ORT_TARGET construct around whole body.
3860 Temporarily clear in_omp_construct when processing body.
3861 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
3862 etc. temporarily set in_omp_construct when processing body.
3863 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
3864 * omp-low.c (struct omp_context): Add loop_p.
3865 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
3866 in that the original var might be private.
3867 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
3868 (check_omp_nesting_restrictions): Adjust nesting restrictions for
3869 addition of loop construct.
3870 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
3872 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
3873 lastprivate non-addressable iterator of a collapse(1) simd.
3875 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
3877 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
3880 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
3882 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
3883 refer to default conditions. Warn for the 'y' spec which is ignored
3886 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
3888 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
3889 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3890 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3891 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3892 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3893 init_cumulative_args, rs6000_promote_function_mode,
3894 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3895 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3896 rs6000_function_arg_boundary, rs6000_parm_offset,
3897 rs6000_parm_start, rs6000_arg_size,
3898 rs6000_darwin64_record_arg_advance_flush,
3899 rs6000_darwin64_record_arg_advance_recurse,
3900 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3901 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3902 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3903 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3904 rs6000_finish_function_arg, rs6000_function_arg,
3905 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3906 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3907 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3908 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3909 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3910 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3911 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3912 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3913 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3914 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3915 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3916 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3917 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
3918 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
3919 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
3920 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
3921 get_element_number, altivec_expand_vec_set_builtin,
3922 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
3923 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
3924 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
3925 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
3926 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
3927 rs6000_expand_builtin, rs6000_vector_type,
3928 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
3929 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
3930 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
3932 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
3933 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3934 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3935 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3936 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3937 init_cumulative_args, rs6000_promote_function_mode,
3938 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3939 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3940 rs6000_function_arg_boundary, rs6000_parm_offset,
3941 rs6000_parm_start, rs6000_arg_size,
3942 rs6000_darwin64_record_arg_advance_flush,
3943 rs6000_darwin64_record_arg_advance_recurse,
3944 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3945 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3946 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3947 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3948 rs6000_finish_function_arg, rs6000_function_arg,
3949 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3950 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3951 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3952 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3953 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3954 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3955 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3956 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3957 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3958 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3959 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3960 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3961 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
3962 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
3963 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
3964 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
3965 get_element_number, altivec_expand_vec_set_builtin,
3966 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
3967 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
3968 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
3969 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
3970 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
3971 rs6000_expand_builtin, rs6000_vector_type,
3972 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
3973 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
3974 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
3975 to here from rs6000.c.
3976 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
3977 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
3978 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
3979 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
3980 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
3981 rs6000_return_in_memory, rs6000_return_in_msb,
3982 rs6000_pass_by_reference, setup_incoming_varargs,
3983 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
3984 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
3985 rs6000_function_arg_padding, rs6000_function_arg,
3986 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
3987 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
3988 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
3989 rs6000_passes_long_double, rs6000_passes_vector,
3990 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
3991 altivec_builtin_mask_for_load) Add declarations.
3992 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
3993 * config/config.gcc: Add new source file rs6000-call.c to garbage
3994 collector and extra_objs.
3996 2019-07-19 Jeff Law <law@redhat.com>
3998 PR tree-optimization/86061
3999 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4000 strncpy. Drop some trivial dead code.
4001 (maybe_trim_memstar_call): Handle strncpy.
4003 2019-07-19 Richard Biener <rguenther@suse.de>
4005 PR tree-optimization/91211
4006 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4007 memset encoding size.
4009 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4012 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4014 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4017 * ipa-inline.c (recursive_inlining): Fix limits check.
4019 2019-07-19 Richard Biener <rguenther@suse.de>
4021 PR tree-optimization/91200
4022 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4023 no PHI nodes in middle-bb.
4025 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4027 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4029 * config/aarch64/aarch64-option-extensions.def: Likewise.
4031 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4034 * function.c (insert_temp_slot_address): Store into the hash table
4035 a copy of address to avoid RTL sharing issues.
4037 2019-07-19 Richard Biener <rguenther@suse.de>
4039 PR tree-optimization/91207
4041 2019-07-17 Richard Biener <rguenther@suse.de>
4043 PR tree-optimization/91178
4044 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4045 loads with a gap larger than the vector size always use
4047 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4048 avoid loading vectors that are only contained in the gap
4049 and thus are not needed.
4051 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4053 * config/i386/i386.md (*addqi_2_slp): Remove.
4054 (*<code>qi_2_slp): Ditto.
4056 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4058 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4059 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4060 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4061 Rename function from rs6000_prefixed_address.
4062 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4064 (TARGET_TOC): Likewise.
4065 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4067 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4069 (TARGET_TOC): Likewise.
4070 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4072 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4074 (TARGET_TOC): Likewise.
4075 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4076 check to require -mcmodel=medium for pc-relative addressing.
4077 (create_TOC_reference): Add assertion for TARGET_TOC.
4078 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4080 (rs6000_emit_move): Likewise.
4081 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4083 (get_TOC_alias_set): Likewise.
4084 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4086 (rs6000_can_eliminate): Likewise.
4087 (rs6000_prefixed_address_mode_p): Rename function from
4088 rs6000_prefixed_address.
4089 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4090 TARGET_HAS_TOC and not pc-relative.
4091 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4092 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4094 (TARGET_TOC): Likewise.
4095 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4098 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4101 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4102 for operand 0. Do not use (match_dup) to match operand 1 with
4103 operand 0. Add check in insn constraint that either input operand
4104 matches operand 0. Use SWI12 mode iterator to also handle
4106 (*and<mode>_1_slp): Ditto.
4107 (*<code>qi_1_slp): Ditto.
4108 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4109 Do not use (match_dup) to match operand 1 with operand 0. Add
4110 check in insn constraint that operand 1 matches operand 0.
4111 Use SWI12 mode iterator to also handle HImode operands.
4112 (*ashl<mode>3_1_slp): Ditto.
4113 (*<shift_insn><mode>3_1_slp): Ditto.
4114 (*<rotate_insn><mode>3_1_slp): Ditto.
4116 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4118 * config/arm/arm-builtins.c
4119 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4120 (arm_expand_unop_builtin): Likewise.
4121 * config/arm/crypto.md
4122 (crypto_sha1h): Convert from define_insn to define_expand.
4123 (crypto_<crypto_pattern>): Likewise.
4124 (crypto_sha1h_lb): New define_insn.
4125 (crypto_<crypto_pattern>_lb): Likewise.
4127 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4130 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4131 (vsha1cq_u32): Likewise.
4132 (vsha1pq_u32): Likewise.
4133 (vsha1mq_u32): Likewise.
4134 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4136 (crypto_sha1c): Correct vec select.
4137 (crypto_sha1m): Likewise.
4138 (crypto_sha1p): Likewise.
4140 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4142 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4143 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4144 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4145 (subdi_zesidi_zesidi): Likewise.
4146 (negdi2_compare, negdi2_insn): Likewise.
4147 (negdi_extensidi): Likewise.
4148 (negdi_zero_extendsidi): Likewise.
4149 (arm_cmpdi_insn): Likewise.
4150 (subsi3_carryin): Use arm_borrow_operation.
4151 (subsi3_carryin_const): Likewise.
4152 (subsi3_carryin_const0): Likewise.
4153 (subsi3_carryin_compare): Likewise.
4154 (subsi3_carryin_compare_const): Likewise.
4155 (subsi3_carryin_compare_const0): Likewise.
4156 (subsi3_carryin_shift): Likewise.
4157 (rsbsi3_carryin_shift): Likewise.
4158 (negsi2_carryin_compare): Likewise.
4160 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4162 PR tree-optimization/91137
4163 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4164 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4165 Init, use and fini the above new field.
4166 (determine_base_object_1): New function.
4167 (determine_base_object): Reimplement using walk_tree.
4169 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4171 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4172 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4173 CLEANUP_FORCE_FAST_DCE is set.
4174 * ifcvt.c (rest_of_handle_if_conversion): Pass
4175 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4176 if-conversion succeeded.
4178 2019-07-18 Richard Biener <rguenther@suse.de>
4180 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4181 branches to make code less indented.
4183 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4186 * attribs.c (decls_mismatched_attributes): Simplify the logic
4187 that avoids duplicates and false positives.
4189 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4191 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4192 data into data section when generating PIC code.
4193 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4194 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4195 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4196 return 2 for SOM and 0 for other targets.
4198 2019-07-17 Jeff Law <law@redhat.com>
4200 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4201 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4202 avoid unexpected switch statement fallthru.
4204 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4206 * config/i386/i386.md (*add<dwi>3_doubleword):
4207 Remove redundant constraints.
4208 (*add<mode>_1): Ditto.
4211 (*addqi_1_slp): Ditto.
4212 (*add<mode>_2): Ditto.
4213 (*addv<mode>4): Ditto.
4214 (*sub<dwi>3_doubleword): Ditto.
4215 (*sub<mode>_1): Ditto.
4216 (*subqi_1_slp): Ditto.
4217 (*sub<mode>_2): Ditto.
4218 (*subv<mode>4): Ditto.
4219 (*sub<mode>_3): Ditto.
4220 (@add<mode>3_carry): Ditto.
4221 (@sub<mode>3_carry): Ditto.
4222 (*add<mode>3_cc_overflow_1): Ditto.
4223 (*add<mode>3_zext_cc_overflow_2): Ditto.
4225 (*and<mode>_1): Ditto.
4227 (*andqi_1_slp): Ditto.
4229 (*andqi_2_maybe_si): Ditto.
4230 (*and<mode>_2): Ditto.
4231 (*andqi_2_slp): Ditto.
4232 (*<code><mode>_1): Ditto.
4233 (*<code>qi_1): Ditto.
4234 (*<code>qi_1_slp): Ditto.
4235 (*<code><mode>_2): Ditto.
4236 (*<code>qi_2_slp): Ditto.
4238 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4240 * alias.c (record_component_aliases): Do not simplify pointed-to
4243 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4245 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4246 partial reg stall on alternative 2.
4248 2019-07-17 Richard Biener <rguenther@suse.de>
4250 PR tree-optimization/91178
4251 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4252 lower SSA names to avoid quadratic behavior in the common case.
4253 * tree-data-ref.c (split_constant_offset): Add limit argument
4254 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4255 (split_constant_offset_1): Add limit argument and use it to
4256 limit SSA def walking. Optimize the common plus/minus case.
4258 2019-07-17 Richard Biener <rguenther@suse.de>
4260 PR tree-optimization/91178
4261 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4262 loads with a gap larger than the vector size always use
4264 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4265 avoid loading vectors that are only contained in the gap
4266 and thus are not needed.
4268 2019-07-17 Richard Biener <rguenther@suse.de>
4270 PR tree-optimization/91180
4271 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4272 computation for memset partial defs.
4274 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4276 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4277 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4278 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4279 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4280 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4281 * omp-grid.c (grid_process_grid_body,
4282 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4283 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4284 == GF_OMP_FOR_KIND_SIMD.
4285 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4286 check_omp_nesting_restrictions, scan_omp_1_stmt,
4287 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4288 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4289 omp_find_scan): Likewise.
4290 * omp-expand.c (expand_omp_for): Likewise.
4291 * omp-general.c (omp_extract_for_data): Likewise.
4293 PR tree-optimization/91157
4294 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4295 a vector boolean with scalar mode.
4296 (expand_vector_condition): Handle first operand being a vector boolean
4298 (expand_vector_operations_1): For comparisons, don't bail out early
4299 if the return type is vector boolean with scalar mode, but comparison
4300 operand type is not.
4302 2019-07-17 Richard Biener <rguenther@suse.de>
4304 PR tree-optimization/91181
4305 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4308 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4310 * config/i386/i386.md (*testdi_1): Match CCZmode for
4311 constants that might have the SImode sign bit set.
4312 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4313 Use correct constraints for pentium pairing.
4314 (*test<mode>_1): Ditto.
4316 2019-07-16 Jeff Law <law@redhat.com>
4318 PR rtl-optimization/91173
4319 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4320 SSA_NAME with a constant value, fold its value into the offset
4321 and clear the base before calling gen_addr_rtx.
4323 2019-07-16 Jakub Jelinek <jakub@redhat.com>
4325 PR rtl-optimization/91164
4326 * dse.c (rest_of_handle_dse): If dead edges have been purged,
4327 invalidate dominance info.
4329 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4331 * read-md.h (md_reader::record_potential_iterator_use): Add a
4332 file_location parameter.
4333 * read-rtl.c (attribute_use::loc): New field.
4334 (map_attr_string): Take a file_location parameter. Report cases
4335 in which attributes map to multiple distinct values.
4336 (apply_attribute_uses): Update call accordingly.
4337 (md_reader::handle_overloaded_name): Likewise.
4338 (md_reader::apply_iterator_to_string): Likewise. Skip empty
4340 (record_attribute_use): Take a file_location parameter.
4341 Initialize attribute_use::loc.
4342 (md_reader::record_potential_iterator_use): Take a file_location
4343 parameter. Update call to record_attribute_use.
4344 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
4345 (rtx_reader::read_rtx_code): Likewise.
4346 (rtx_reader::read_rtx_operand): Likewise. Record a location
4347 for implicitly-expanded empty strings.
4349 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4351 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
4352 Use file_location instead of separate fields.
4353 (md_reader::set_md_ptr_loc): Take a file_location instead of a
4354 separate filename and line number.
4355 * read-md.c (ptr_loc): As above.
4356 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
4357 (md_reader::fprint_md_ptr_loc): Likewise.
4358 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
4359 instead of a separate filename and line number.
4360 (md_reader::read_string): Update call accordingly.
4362 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4364 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4365 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
4366 leaving the choice between SFDF and P implicit.
4367 (*mov<mode>_update2): Likewise.
4368 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
4369 rather than leaving the choice betweem IBM128 and GPR implicit.
4370 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
4371 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
4373 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
4374 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
4375 * config/rs6000/vsx.md
4376 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
4377 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
4378 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
4379 and VSX_EXTRACT_I implicit.
4381 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4383 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
4384 Explicitly use <MOVEP1:MODE> for the mode attribute.
4386 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
4389 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
4391 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
4394 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
4397 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
4399 * config/i386/i386.md (@test<mode>_ccno_1):
4400 Rename from test<mode>_ccno_1.
4401 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
4402 (*testqi_1_maybe_si): Remove modrm attribute.
4403 (*test<mode>_1): Ditto.
4404 * config/i386/i386-expand.c (ix86_split_idivmod): Use
4405 gen_test_ccno_1 and gen_extend_insn.
4407 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
4409 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
4412 2019-07-15 Richard Biener <rguenther@suse.de>
4415 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
4416 node make sure to replace all uses with something valid.
4418 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
4420 PR tree-optimization/88497
4421 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
4422 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
4423 function undistribute_bitref_for_vector.
4424 (undistribute_bitref_for_vector): New function.
4425 (cleanup_vinfo_map): Likewise.
4426 (sort_by_mach_mode): Likewise.
4428 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
4430 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
4431 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
4432 and testdi_ccno_1 using SWI48 mode attribute.
4433 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
4434 x86_64_szext_general_operand.
4435 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
4436 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
4437 instead of genera_operand mode attribute.
4439 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
4441 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
4442 fopen and fclose to their respective types.
4443 (DotFn.invoke): Ditto.
4445 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
4447 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
4448 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
4449 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
4450 (array_index_predicate): Remove.
4451 (analyze_function_body): Account cost for variable ofsetted array
4453 (estimate_node_size_and_time): Do not compute array index hint.
4454 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
4455 (inline_read_section): Do not read array index hint.
4456 (ipa_fn_summary_write): Do not write array index hint.
4457 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
4458 * ipa-cp.c (hint_time_bonus): Remove.
4459 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
4460 (ipa_fnsummary): Remove array_index.
4461 * ipa-inline.c (want_inline_small_function_p): Do not use
4463 (edge_badness): Likewise.
4464 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
4466 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
4469 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
4470 superfluous "builtin function" phrasing.
4472 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
4474 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
4476 (aliasing_component_refs_walk): Break out from ...
4477 (aliasing_component_refs_p): ... here.
4479 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
4482 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
4483 "builtin function" phrasing.
4485 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4488 * recog.h (temporary_volatile_ok): New class.
4489 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
4490 volatile_ok temporarily to true using temporary_volatile_ok.
4491 * expr.c (emit_block_move_via_cpymem): Likewise.
4492 * optabs.c (maybe_legitimize_operand): Likewise.
4494 2019-07-13 Jakub Jelinek <jakub@redhat.com>
4496 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
4497 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
4498 uses inside of order(concurrent) constructs.
4499 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
4500 OMP_CLAUSE_ORDER is seen.
4501 * omp-low.c (struct omp_context): Add order_concurrent member.
4502 (scan_sharing_clauses): Set ctx->order_concurrent if
4503 OMP_CLAUSE_ORDER is seen.
4504 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
4505 of simd order(concurrent). Diagnose constructs not allowed inside of
4506 for order(concurrent).
4507 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
4508 complaining about static double setjmp (double); or class static
4509 methods or non-global namespace setjmps.
4510 (omp_runtime_api_call): New function.
4511 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
4512 order(concurrent) loops.
4514 2019-07-12 Martin Sebor <msebor@redhat.com>
4516 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
4517 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
4518 * tree-vrp.c (vrp_prop::check_mem_ref): Use
4519 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4521 2019-07-12 Jan Hubicka <jh@suse.cz>
4523 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
4524 (indirect_refs_may_alias_p): ... here.
4525 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
4526 mem refs in the access paths.
4528 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
4530 PR tree-optimization/89430
4531 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
4532 store elimination for local variable without address escape.
4534 2019-07-12 Jeff Law <law@redhat.com>
4536 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
4537 for the ".far" section.
4539 2019-07-12 Richard Biener <rguenther@suse.de>
4541 PR tree-optimization/91145
4542 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
4545 2019-07-12 Alexandre Oliva <oliva@adacore.com>
4547 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
4548 rather than this_state as the lowering context for the ELSE
4549 seq in a GIMPLE_EH_ELSE.
4551 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4553 * vector-builder.h (vector_builder::elt): Allow already-supplied
4554 elements to be read back before building is complete.
4556 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4558 PR rtl-optimization/91136
4559 * df-core.c (ACCESSING REFS): Fix typos in comment.
4560 * resource.c (mark_target_live_reg): Add artificial defs that occur at
4561 the beginning of the block to the initial set of live registers.
4563 2019-07-12 Richard Biener <rguenther@suse.de>
4565 * fold-const.h (get_array_ctor_element_at_index): Adjust.
4566 * fold-const.c (get_array_ctor_element_at_index): Add
4567 ctor_idx output parameter informing the caller where in
4568 the constructor the element was (not) found. Add early exit
4569 for when the ctor is sorted.
4570 * gimple-fold.c (fold_array_ctor_reference): Support constant
4571 folding across multiple array elements.
4573 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4575 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
4576 doesn't have location, set the current location to the function's end.
4578 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4580 * config/aarch64/aarch64.md (*compare_condjump<mode>)
4581 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
4582 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
4583 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
4584 * config/aarch64/aarch64-simd.md
4585 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
4586 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
4587 * config/aarch64/aarch64-sve.md
4588 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
4589 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
4591 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4593 * doc/md.texi: Document that @ patterns can have different
4594 numbers of operands.
4595 * genemit.c (handle_overloaded_gen): Handle this case.
4596 * genopinit.c (handle_overloaded_gen): Likewise.
4597 * gensupport.c (replace_operands_with_dups): Iterate over
4598 the new rtx's format rather than the old one's.
4600 2019-07-12 Jakub Jelinek <jakub@redhat.com>
4602 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
4603 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4604 order clause entries.
4605 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
4606 * tree-pretty-print.c (dump_omp_clause): Likewise.
4607 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4609 * omp-low.c (scan_sharing_clauses): Likewise.
4610 * tree-nested.c (convert_nonlocal_omp_clauses,
4611 convert_local_omp_clauses): Likewise.
4613 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
4615 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
4616 fallthrough target of current basic block isn't the placed
4619 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
4622 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
4623 (_mm512_storeu_epi64): Likewise.
4624 (_mm512_loadu_epi32): Likewise.
4625 (_mm512_storeu_epi32): Likewise.
4626 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
4627 (_mm_storeu_epi64): Likewise.
4628 (_mm256_storeu_epi32): Likewise.
4629 (_mm_storeu_epi32): Likewise.
4631 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4633 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
4635 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4637 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
4640 2019-07-11 Jakub Jelinek <jakub@redhat.com>
4643 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
4644 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4645 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
4646 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
4647 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
4648 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
4650 (ufix_truncv2dfv2si2<mask_name>): Change into ...
4651 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
4652 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
4654 (sse2_cvttpd2dq<mask_name>): Change into ...
4655 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
4656 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
4657 (*sse2_cvtpd2dq<mask_name>): Change into ...
4658 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4659 Add "C" constraint to const0_operand.
4660 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
4661 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
4665 * config/i386/i386-builtin-types.def
4666 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
4667 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
4668 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
4669 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
4670 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
4671 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
4672 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
4673 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
4674 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
4675 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
4676 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
4677 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
4678 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
4679 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
4680 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
4681 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
4682 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
4683 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
4684 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
4685 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
4686 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
4687 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
4688 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
4689 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
4690 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
4691 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
4692 __builtin_ia32_vpdpbusd_v4si_maskz,
4693 __builtin_ia32_vpdpbusds_v16si_mask,
4694 __builtin_ia32_vpdpbusds_v16si_maskz,
4695 __builtin_ia32_vpdpbusds_v8si_mask,
4696 __builtin_ia32_vpdpbusds_v8si_maskz,
4697 __builtin_ia32_vpdpbusds_v4si_mask,
4698 __builtin_ia32_vpdpbusds_v4si_maskz,
4699 __builtin_ia32_vpdpwssd_v16si_mask,
4700 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
4701 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
4702 __builtin_ia32_vpdpwssd_v4si_maskz,
4703 __builtin_ia32_vpdpwssds_v16si_mask,
4704 __builtin_ia32_vpdpwssds_v16si_maskz,
4705 __builtin_ia32_vpdpwssds_v8si_mask,
4706 __builtin_ia32_vpdpwssds_v8si_maskz,
4707 __builtin_ia32_vpdpwssds_v4si_mask,
4708 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
4709 suffixed types rather than *_INT.
4710 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
4711 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
4712 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
4713 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
4714 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
4715 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
4717 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
4719 * tree-vrp.c (intersect_ranges): If we know the intersection is
4720 empty, there is no need to conservatively add anything else to
4723 2019-07-11 Richard Biener <rguenther@suse.de>
4726 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
4727 when the object is volatile and we have not cleared it even though
4728 there are no nonzero elements.
4730 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
4732 * config/rs6000/predicates.md (cint34_operand): Update
4733 SIGNED_34BIT_OFFSET_P call.
4734 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
4735 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
4736 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
4737 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
4738 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
4740 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
4741 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
4742 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
4743 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
4744 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
4746 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
4748 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
4749 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
4750 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
4751 (DEF_MIN_OSX_VERSION): New.
4753 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4755 * fold-const.c (fold_relational_const): Fix folding of
4756 vector-to-scalar NE_EXPRs.
4757 (test_vector_folding): Add more tests.
4759 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4762 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
4763 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
4764 (vec_setv2di_internal): Reexpress as...
4765 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
4766 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
4767 rather than gen_neon_vset_lane<mode>.
4769 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
4772 * lra-constraints.c (process_alt_operands): Don't match user
4773 defined regs only if they are early clobbers.
4775 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
4777 * wide-int.h (wi::lshift): Reject negative values for the fast path.
4779 2019-07-10 Richard Biener <rguenther@suse.de>
4781 PR tree-optimization/91126
4782 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
4783 native encoding offset for BYTES_BIG_ENDIAN.
4784 (vn_reference_lookup_3): Likewise.
4786 2019-07-10 Richard Biener <rguenther@suse.de>
4788 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
4789 LHS whenever possible.
4791 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
4793 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
4794 from ...; work also on duplicated types.
4795 (nonoverlapping_component_refs_since_match): ... here
4796 (ncr_type_uid): Break out from ...
4797 (ncr_compar): ... here; look for TYPE_UID of canonical type if
4799 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
4800 the types and nonoverlapping_component_refs_p_1 to disambiguate.
4802 2019-07-09 Martin Sebor <msebor@redhat.com>
4804 PR tree-optimization/90989
4805 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
4806 optimization to just single character stores.
4808 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
4810 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
4811 Swap operands only once.
4813 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4815 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
4816 for both call instructions.
4818 2019-07-09 John Darrington <john@darrington.wattle.id.au>
4820 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
4821 rather than GET_MODE_BITSIZE to better handle partial integer modes.
4823 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
4825 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
4826 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
4827 function from rs6000-logue.c back to rs6000.c.
4828 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
4830 2019-07-09 Martin Sebor <msebor@redhat.com>
4833 * auto-profile.c: Change class-key of PODs to struct and others
4835 * basic-block.h: Same.
4836 * bitmap.c (bitmap_alloc): Same.
4838 * builtins.c (expand_builtin_prefetch): Same.
4839 (expand_builtin_interclass_mathfn): Same.
4840 (expand_builtin_strlen): Same.
4841 (expand_builtin_mempcpy_args): Same.
4842 (expand_cmpstr): Same.
4843 (expand_builtin___clear_cache): Same.
4844 (expand_ifn_atomic_bit_test_and): Same.
4845 (expand_builtin_thread_pointer): Same.
4846 (expand_builtin_set_thread_pointer): Same.
4847 * caller-save.c (setup_save_areas): Same.
4848 (replace_reg_with_saved_mem): Same.
4849 (insert_restore): Same.
4850 (insert_save): Same.
4851 (add_used_regs): Same.
4852 * cfg.c (get_bb_copy): Same.
4853 (set_loop_copy): Same.
4856 * cfgexpand.c (alloc_stack_frame_space): Same.
4857 (add_stack_var): Same.
4858 (add_stack_var_conflict): Same.
4859 (add_scope_conflicts_1): Same.
4860 (update_alias_info_with_stack_vars): Same.
4861 (expand_used_vars): Same.
4862 * cfghooks.c (redirect_edge_and_branch_force): Same.
4863 (delete_basic_block): Same.
4865 (make_forwarder_block): Same.
4866 (force_nonfallthru): Same.
4867 (duplicate_block): Same.
4868 (lv_flush_pending_stmts): Same.
4870 * cfgloop.c (flow_loops_cfg_dump): Same.
4871 (flow_loop_nested_p): Same.
4872 (superloop_at_depth): Same.
4873 (get_loop_latch_edges): Same.
4874 (flow_loop_dump): Same.
4875 (flow_loops_dump): Same.
4876 (flow_loops_free): Same.
4877 (flow_loop_nodes_find): Same.
4878 (establish_preds): Same.
4879 (flow_loop_tree_node_add): Same.
4880 (flow_loop_tree_node_remove): Same.
4881 (flow_loops_find): Same.
4882 (find_subloop_latch_edge_by_profile): Same.
4883 (find_subloop_latch_edge_by_ivs): Same.
4884 (mfb_redirect_edges_in_set): Same.
4885 (form_subloop): Same.
4886 (merge_latch_edges): Same.
4887 (disambiguate_multiple_latches): Same.
4888 (disambiguate_loops_with_multiple_latches): Same.
4889 (flow_bb_inside_loop_p): Same.
4891 (get_loop_body_with_size): Same.
4892 (get_loop_body): Same.
4893 (fill_sons_in_loop): Same.
4894 (get_loop_body_in_dom_order): Same.
4895 (get_loop_body_in_custom_order): Same.
4896 (release_recorded_exits): Same.
4897 (get_loop_exit_edges): Same.
4898 (num_loop_branches): Same.
4899 (remove_bb_from_loops): Same.
4900 (find_common_loop): Same.
4901 (delete_loop): Same.
4902 (cancel_loop): Same.
4903 (verify_loop_structure): Same.
4904 (loop_preheader_edge): Same.
4905 (loop_exit_edge_p): Same.
4906 (single_exit): Same.
4907 (loop_exits_to_bb_p): Same.
4908 (loop_exits_from_bb_p): Same.
4909 (get_loop_location): Same.
4910 (record_niter_bound): Same.
4911 (get_estimated_loop_iterations_int): Same.
4912 (max_stmt_executions_int): Same.
4913 (likely_max_stmt_executions_int): Same.
4914 (get_estimated_loop_iterations): Same.
4915 (get_max_loop_iterations): Same.
4916 (get_max_loop_iterations_int): Same.
4917 (get_likely_max_loop_iterations): Same.
4918 * cfgloop.h (simple_loop_desc): Same.
4922 (loop_iterator::next): Same.
4923 (loop_outermost): Same.
4924 * cfgloopanal.c (mark_irreducible_loops): Same.
4925 (num_loop_insns): Same.
4926 (average_num_loop_insns): Same.
4927 (expected_loop_iterations_unbounded): Same.
4928 (expected_loop_iterations): Same.
4929 (mark_loop_exit_edges): Same.
4930 (single_likely_exit): Same.
4931 * cfgloopmanip.c (fix_bb_placement): Same.
4932 (fix_bb_placements): Same.
4933 (remove_path): Same.
4934 (place_new_loop): Same.
4936 (scale_loop_frequencies): Same.
4937 (scale_loop_profile): Same.
4938 (create_empty_if_region_on_edge): Same.
4939 (create_empty_loop_on_edge): Same.
4942 (fix_loop_placements): Same.
4943 (copy_loop_info): Same.
4944 (duplicate_loop): Same.
4945 (duplicate_subloops): Same.
4946 (loop_redirect_edge): Same.
4947 (can_duplicate_loop_p): Same.
4948 (duplicate_loop_to_header_edge): Same.
4949 (mfb_keep_just): Same.
4950 (has_preds_from_loop): Same.
4951 (create_preheader): Same.
4952 (create_preheaders): Same.
4953 (lv_adjust_loop_entry_edge): Same.
4954 (loop_version): Same.
4955 * cfgloopmanip.h: Same.
4957 * cgraphbuild.c: Same.
4958 * combine.c (make_extraction): Same.
4959 * config/i386/i386-features.c: Same.
4960 * config/i386/i386-features.h: Same.
4961 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
4962 (ix86_emit_outlined_ms2sysv_restore): Same.
4963 (ix86_noce_conversion_profitable_p): Same.
4964 (ix86_init_cost): Same.
4965 (ix86_simd_clone_usable): Same.
4966 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
4968 * coretypes.h: Same.
4969 * data-streamer-in.c (string_for_index): Change class-key of PODs
4970 to struct and others to class.
4971 (streamer_read_indexed_string): Same.
4972 (streamer_read_string): Same.
4973 (bp_unpack_indexed_string): Same.
4974 (bp_unpack_string): Same.
4975 (streamer_read_uhwi): Same.
4976 (streamer_read_hwi): Same.
4977 (streamer_read_gcov_count): Same.
4978 (streamer_read_wide_int): Same.
4979 * data-streamer.h (streamer_write_bitpack): Same.
4980 (bp_unpack_value): Same.
4981 (streamer_write_char_stream): Same.
4982 (streamer_write_hwi_in_range): Same.
4983 (streamer_write_record_start): Same.
4984 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
4985 (add_cross_iteration_register_deps): Same.
4986 (build_intra_loop_deps): Same.
4987 * df-core.c (df_analyze): Same.
4988 (loop_post_order_compute): Same.
4989 (loop_inverted_post_order_compute): Same.
4990 * df-problems.c (df_rd_alloc): Same.
4991 (df_rd_simulate_one_insn): Same.
4992 (df_rd_local_compute): Same.
4993 (df_rd_init_solution): Same.
4994 (df_rd_confluence_n): Same.
4995 (df_rd_transfer_function): Same.
4997 (df_rd_dump_defs_set): Same.
4998 (df_rd_top_dump): Same.
4999 (df_lr_alloc): Same.
5000 (df_lr_reset): Same.
5001 (df_lr_local_compute): Same.
5003 (df_lr_confluence_n): Same.
5005 (df_lr_top_dump): Same.
5006 (df_lr_verify_transfer_functions): Same.
5007 (df_live_alloc): Same.
5008 (df_live_reset): Same.
5009 (df_live_init): Same.
5010 (df_live_confluence_n): Same.
5011 (df_live_finalize): Same.
5012 (df_live_free): Same.
5013 (df_live_top_dump): Same.
5014 (df_live_verify_transfer_functions): Same.
5015 (df_mir_alloc): Same.
5016 (df_mir_reset): Same.
5017 (df_mir_init): Same.
5018 (df_mir_confluence_n): Same.
5019 (df_mir_free): Same.
5020 (df_mir_top_dump): Same.
5021 (df_word_lr_alloc): Same.
5022 (df_word_lr_reset): Same.
5023 (df_word_lr_init): Same.
5024 (df_word_lr_confluence_n): Same.
5025 (df_word_lr_free): Same.
5026 (df_word_lr_top_dump): Same.
5027 (df_md_alloc): Same.
5028 (df_md_simulate_one_insn): Same.
5029 (df_md_reset): Same.
5032 (df_md_top_dump): Same.
5033 * df-scan.c (df_insn_delete): Same.
5034 (df_insn_rescan): Same.
5035 (df_notes_rescan): Same.
5036 (df_sort_and_compress_mws): Same.
5037 (df_install_mws): Same.
5038 (df_refs_add_to_chains): Same.
5039 (df_ref_create_structure): Same.
5040 (df_ref_record): Same.
5041 (df_def_record_1): Same.
5042 (df_find_hard_reg_defs): Same.
5043 (df_uses_record): Same.
5044 (df_get_conditional_uses): Same.
5045 (df_get_call_refs): Same.
5046 (df_recompute_luids): Same.
5047 (df_get_entry_block_def_set): Same.
5048 (df_entry_block_defs_collect): Same.
5049 (df_get_exit_block_use_set): Same.
5050 (df_exit_block_uses_collect): Same.
5051 (df_mws_verify): Same.
5052 (df_bb_verify): Same.
5053 * df.h (df_scan_get_bb_info): Same.
5054 * doc/tm.texi: Same.
5055 * dse.c (record_store): Same.
5057 * emit-rtl.c (const_fixed_hasher::equal): Same.
5058 (set_mem_attributes_minus_bitpos): Same.
5059 (change_address): Same.
5060 (adjust_address_1): Same.
5061 (offset_address): Same.
5063 * except.c (dw2_build_landing_pads): Same.
5064 (sjlj_emit_dispatch_table): Same.
5065 * explow.c (allocate_dynamic_stack_space): Same.
5066 (emit_stack_probe): Same.
5067 (probe_stack_range): Same.
5068 * expmed.c (store_bit_field_using_insv): Same.
5069 (store_bit_field_1): Same.
5070 (store_integral_bit_field): Same.
5071 (extract_bit_field_using_extv): Same.
5072 (extract_bit_field_1): Same.
5073 (emit_cstore): Same.
5074 * expr.c (emit_block_move_via_cpymem): Same.
5075 (expand_cmpstrn_or_cmpmem): Same.
5076 (set_storage_via_setmem): Same.
5077 (emit_single_push_insn_1): Same.
5078 (expand_assignment): Same.
5079 (store_constructor): Same.
5080 (expand_expr_real_2): Same.
5081 (expand_expr_real_1): Same.
5084 * function.c (try_fit_stack_local): Same.
5085 (assign_stack_local_1): Same.
5086 (assign_stack_local): Same.
5087 (cut_slot_from_list): Same.
5088 (insert_slot_to_list): Same.
5089 (max_slot_level): Same.
5090 (move_slot_to_level): Same.
5091 (temp_address_hasher::equal): Same.
5092 (remove_unused_temp_slot_addresses): Same.
5093 (assign_temp): Same.
5094 (combine_temp_slots): Same.
5095 (update_temp_slot_address): Same.
5096 (preserve_temp_slots): Same.
5099 * gcc-rich-location.h: Same.
5101 * genattrtab.c (check_attr_test): Same.
5102 (check_attr_value): Same.
5103 (convert_set_attr_alternative): Same.
5104 (convert_set_attr): Same.
5106 (copy_boolean): Same.
5107 (get_attr_value): Same.
5108 (expand_delays): Same.
5109 (make_length_attrs): Same.
5111 (make_alternative_compare): Same.
5112 (simplify_test_exp): Same.
5113 (tests_attr_p): Same.
5114 (get_attr_order): Same.
5115 (clear_struct_flag): Same.
5117 (compares_alternatives_p): Same.
5120 (find_attrs_to_cache): Same.
5121 (write_test_expr): Same.
5122 (walk_attr_value): Same.
5123 (write_attr_get): Same.
5124 (eliminate_known_true): Same.
5125 (write_insn_cases): Same.
5126 (write_attr_case): Same.
5127 (write_attr_valueq): Same.
5128 (write_attr_value): Same.
5129 (write_dummy_eligible_delay): Same.
5130 (next_comma_elt): Same.
5132 (make_internal_attr): Same.
5133 (copy_rtx_unchanging): Same.
5134 (gen_insn_reserv): Same.
5135 (check_tune_attr): Same.
5136 (make_automaton_attrs): Same.
5138 * genextract.c (gen_insn): Same.
5139 (VEC_char_to_string): Same.
5140 * genmatch.c (print_operand): Same.
5142 (parser::parse_operation): Same.
5143 (parser::parse_capture): Same.
5144 (parser::parse_c_expr): Same.
5145 (parser::parse_simplify): Same.
5147 * genoutput.c (output_operand_data): Same.
5148 (output_get_insn_name): Same.
5149 (compare_operands): Same.
5150 (place_operands): Same.
5151 (process_template): Same.
5152 (validate_insn_alternatives): Same.
5153 (validate_insn_operands): Same.
5155 (note_constraint): Same.
5156 * genpreds.c (write_one_predicate_function): Same.
5157 (add_constraint): Same.
5158 (process_define_register_constraint): Same.
5159 (write_lookup_constraint_1): Same.
5160 (write_lookup_constraint_array): Same.
5161 (write_insn_constraint_len): Same.
5162 (write_reg_class_for_constraint_1): Same.
5163 (write_constraint_satisfied_p_array): Same.
5164 * genrecog.c (optimize_subroutine_group): Same.
5165 * gensupport.c (process_define_predicate): Same.
5166 (queue_pattern): Same.
5167 (remove_from_queue): Same.
5168 (process_rtx): Same.
5169 (is_predicable): Same.
5170 (change_subst_attribute): Same.
5171 (subst_pattern_match): Same.
5172 (alter_constraints): Same.
5173 (alter_attrs_for_insn): Same.
5174 (shift_output_template): Same.
5175 (alter_output_for_subst_insn): Same.
5176 (process_one_cond_exec): Same.
5178 (process_define_cond_exec): Same.
5179 (mnemonic_htab_callback): Same.
5180 (gen_mnemonic_attr): Same.
5181 (read_md_rtx): Same.
5183 * gimple-loop-interchange.cc (dump_reduction): Same.
5184 (dump_induction): Same.
5185 (loop_cand::~loop_cand): Same.
5186 (free_data_refs_with_aux): Same.
5187 (tree_loop_interchange::interchange_loops): Same.
5188 (tree_loop_interchange::map_inductions_to_loop): Same.
5189 (tree_loop_interchange::move_code_to_inner_loop): Same.
5190 (compute_access_stride): Same.
5191 (compute_access_strides): Same.
5192 (proper_loop_form_for_interchange): Same.
5193 (tree_loop_interchange_compute_ddrs): Same.
5194 (prune_datarefs_not_in_loop): Same.
5195 (prepare_data_references): Same.
5196 (pass_linterchange::execute): Same.
5197 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5198 (unroll_jam_possible_p): Same.
5200 (adjust_unroll_factor): Same.
5201 (tree_loop_unroll_and_jam): Same.
5202 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5203 (loop_versioning::expensive_stmt_p): Same.
5204 (loop_versioning::version_for_unity): Same.
5205 (loop_versioning::dump_inner_likelihood): Same.
5206 (loop_versioning::find_per_loop_multiplication): Same.
5207 (loop_versioning::analyze_term_using_scevs): Same.
5208 (loop_versioning::record_address_fragment): Same.
5209 (loop_versioning::analyze_expr): Same.
5210 (loop_versioning::analyze_blocks): Same.
5211 (loop_versioning::prune_conditions): Same.
5212 (loop_versioning::merge_loop_info): Same.
5213 (loop_versioning::add_loop_to_queue): Same.
5214 (loop_versioning::decide_whether_loop_is_versionable): Same.
5215 (loop_versioning::make_versioning_decisions): Same.
5216 (loop_versioning::implement_versioning_decisions): Same.
5217 * gimple-ssa-evrp-analyze.c
5218 (evrp_range_analyzer::record_ranges_from_phis): Same.
5219 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5220 (count_multiple_uses): Same.
5221 (split_group): Same.
5222 (imm_store_chain_info::output_merged_store): Same.
5223 (pass_store_merging::process_store): Same.
5224 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5225 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5227 (alloca_call_type): Same.
5228 (pass_walloca::execute): Same.
5229 * gimple-streamer-in.c (input_phi): Same.
5230 (input_gimple_stmt): Same.
5231 * gimple-streamer.h: Same.
5232 * godump.c (go_force_record_alignment): Same.
5233 (go_format_type): Same.
5234 (go_output_type): Same.
5235 (go_output_fndecl): Same.
5236 (go_output_typedef): Same.
5237 (keyword_hash_init): Same.
5238 (find_dummy_types): Same.
5239 * graph.c (draw_cfg_nodes_no_loops): Same.
5240 (draw_cfg_nodes_for_loop): Same.
5241 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5243 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5244 * hsa-dump.c (dump_hsa_cfun): Same.
5245 * hsa-gen.c (gen_function_def_parameters): Same.
5246 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5247 * input.c (dump_line_table_statistics): Same.
5250 * internal-fn.c (get_multi_vector_move): Same.
5251 (expand_load_lanes_optab_fn): Same.
5252 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5253 (expand_GOMP_SIMT_EXIT): Same.
5254 (expand_GOMP_SIMT_LAST_LANE): Same.
5255 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5256 (expand_GOMP_SIMT_VOTE_ANY): Same.
5257 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5258 (expand_GOMP_SIMT_XCHG_IDX): Same.
5259 (expand_addsub_overflow): Same.
5260 (expand_neg_overflow): Same.
5261 (expand_mul_overflow): Same.
5262 (expand_call_mem_ref): Same.
5263 (expand_mask_load_optab_fn): Same.
5264 (expand_scatter_store_optab_fn): Same.
5265 (expand_gather_load_optab_fn): Same.
5266 * ipa-cp.c (ipa_get_parm_lattices): Same.
5267 (print_all_lattices): Same.
5268 (ignore_edge_p): Same.
5269 (build_toporder_info): Same.
5270 (free_toporder_info): Same.
5271 (push_node_to_stack): Same.
5272 (ipcp_lattice<valtype>::set_contains_variable): Same.
5273 (set_agg_lats_to_bottom): Same.
5274 (ipcp_bits_lattice::meet_with): Same.
5275 (set_single_call_flag): Same.
5276 (initialize_node_lattices): Same.
5277 (ipa_get_jf_ancestor_result): Same.
5278 (ipcp_verify_propagated_values): Same.
5279 (propagate_scalar_across_jump_function): Same.
5280 (propagate_context_across_jump_function): Same.
5281 (propagate_bits_across_jump_function): Same.
5282 (ipa_vr_operation_and_type_effects): Same.
5283 (propagate_vr_across_jump_function): Same.
5284 (set_check_aggs_by_ref): Same.
5285 (set_chain_of_aglats_contains_variable): Same.
5286 (merge_aggregate_lattices): Same.
5287 (agg_pass_through_permissible_p): Same.
5288 (propagate_aggs_across_jump_function): Same.
5289 (call_passes_through_thunk_p): Same.
5290 (propagate_constants_across_call): Same.
5291 (devirtualization_time_bonus): Same.
5292 (good_cloning_opportunity_p): Same.
5293 (context_independent_aggregate_values): Same.
5294 (gather_context_independent_values): Same.
5295 (perform_estimation_of_a_value): Same.
5296 (estimate_local_effects): Same.
5297 (value_topo_info<valtype>::add_val): Same.
5298 (add_all_node_vals_to_toposort): Same.
5299 (value_topo_info<valtype>::propagate_effects): Same.
5300 (ipcp_propagate_stage): Same.
5301 (ipcp_discover_new_direct_edges): Same.
5302 (same_node_or_its_all_contexts_clone_p): Same.
5303 (cgraph_edge_brings_value_p): Same.
5304 (gather_edges_for_value): Same.
5305 (create_specialized_node): Same.
5306 (find_more_scalar_values_for_callers_subset): Same.
5307 (find_more_contexts_for_caller_subset): Same.
5308 (copy_plats_to_inter): Same.
5309 (intersect_aggregates_with_edge): Same.
5310 (find_aggregate_values_for_callers_subset): Same.
5311 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5312 (decide_about_value): Same.
5313 (decide_whether_version_node): Same.
5314 (spread_undeadness): Same.
5315 (identify_dead_nodes): Same.
5316 (ipcp_store_vr_results): Same.
5317 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5318 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5319 (redirect_to_unreachable): Same.
5320 (edge_set_predicate): Same.
5321 (evaluate_conditions_for_known_args): Same.
5322 (evaluate_properties_for_edge): Same.
5323 (ipa_fn_summary_t::duplicate): Same.
5324 (ipa_call_summary_t::duplicate): Same.
5325 (dump_ipa_call_summary): Same.
5326 (ipa_dump_fn_summary): Same.
5327 (eliminated_by_inlining_prob): Same.
5328 (set_cond_stmt_execution_predicate): Same.
5329 (set_switch_stmt_execution_predicate): Same.
5330 (compute_bb_predicates): Same.
5331 (will_be_nonconstant_expr_predicate): Same.
5332 (phi_result_unknown_predicate): Same.
5333 (analyze_function_body): Same.
5334 (compute_fn_summary): Same.
5335 (estimate_edge_devirt_benefit): Same.
5336 (estimate_edge_size_and_time): Same.
5337 (estimate_calls_size_and_time): Same.
5338 (estimate_node_size_and_time): Same.
5339 (remap_edge_change_prob): Same.
5340 (remap_edge_summaries): Same.
5341 (ipa_merge_fn_summary_after_inlining): Same.
5342 (ipa_fn_summary_generate): Same.
5343 (inline_read_section): Same.
5344 (ipa_fn_summary_read): Same.
5345 (ipa_fn_summary_write): Same.
5346 * ipa-fnsummary.h: Same.
5347 * ipa-hsa.c (ipa_hsa_read_section): Same.
5348 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
5349 * ipa-icf.c (sem_function::param_used_p): Same.
5350 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
5351 * ipa-inline.c (edge_badness): Same.
5352 (inline_small_functions): Same.
5353 * ipa-polymorphic-call.c
5354 (ipa_polymorphic_call_context::stream_out): Same.
5355 * ipa-predicate.c (predicate::remap_after_duplication): Same.
5356 (predicate::remap_after_inlining): Same.
5357 (predicate::stream_out): Same.
5358 * ipa-predicate.h: Same.
5359 * ipa-profile.c (ipa_profile_read_summary): Same.
5360 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
5361 (count_formal_params): Same.
5362 (ipa_dump_param): Same.
5363 (ipa_alloc_node_params): Same.
5364 (ipa_print_node_jump_functions_for_edge): Same.
5365 (ipa_print_node_jump_functions): Same.
5366 (ipa_load_from_parm_agg): Same.
5367 (get_ancestor_addr_info): Same.
5368 (ipa_compute_jump_functions_for_edge): Same.
5369 (ipa_analyze_virtual_call_uses): Same.
5370 (ipa_analyze_stmt_uses): Same.
5371 (ipa_analyze_params_uses_in_bb): Same.
5372 (update_jump_functions_after_inlining): Same.
5373 (try_decrement_rdesc_refcount): Same.
5374 (ipa_impossible_devirt_target): Same.
5375 (update_indirect_edges_after_inlining): Same.
5376 (combine_controlled_uses_counters): Same.
5377 (ipa_edge_args_sum_t::duplicate): Same.
5378 (ipa_write_jump_function): Same.
5379 (ipa_write_indirect_edge_info): Same.
5380 (ipa_write_node_info): Same.
5381 (ipa_read_edge_info): Same.
5382 (ipa_prop_read_section): Same.
5383 (read_replacements_section): Same.
5384 * ipa-prop.h (ipa_get_param_count): Same.
5385 (ipa_get_param): Same.
5386 (ipa_get_type): Same.
5387 (ipa_get_param_move_cost): Same.
5388 (ipa_set_param_used): Same.
5389 (ipa_get_controlled_uses): Same.
5390 (ipa_set_controlled_uses): Same.
5391 (ipa_get_cs_argument_count): Same.
5392 * ipa-pure-const.c (analyze_function): Same.
5393 (pure_const_read_summary): Same.
5395 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
5396 * ipa-split.c (test_nonssa_use): Same.
5397 (dump_split_point): Same.
5398 (dominated_by_forbidden): Same.
5399 (split_part_set_ssa_name_p): Same.
5400 (find_split_points): Same.
5401 * ira-build.c (finish_loop_tree_nodes): Same.
5402 (low_pressure_loop_node_p): Same.
5403 * ira-color.c (ira_reuse_stack_slot): Same.
5405 * ira.c (setup_reg_equiv): Same.
5406 (print_insn_chain): Same.
5408 * loop-doloop.c (doloop_condition_get): Same.
5410 (record_reg_sets): Same.
5411 (doloop_optimize): Same.
5412 * loop-init.c (loop_optimizer_init): Same.
5413 (fix_loop_structure): Same.
5414 * loop-invariant.c (merge_identical_invariants): Same.
5415 (compute_always_reached): Same.
5417 (may_assign_reg_p): Same.
5418 (find_invariants_bb): Same.
5419 (find_invariants_body): Same.
5420 (replace_uses): Same.
5421 (can_move_invariant_reg): Same.
5422 (free_inv_motion_data): Same.
5423 (move_single_loop_invariants): Same.
5424 (change_pressure): Same.
5425 (mark_ref_regs): Same.
5426 (calculate_loop_reg_pressure): Same.
5427 * loop-iv.c (biv_entry_hasher::equal): Same.
5428 (iv_extend_to_rtx_code): Same.
5429 (check_iv_ref_table_size): Same.
5430 (clear_iv_info): Same.
5431 (latch_dominating_def): Same.
5432 (iv_get_reaching_def): Same.
5433 (iv_constant): Same.
5439 (get_biv_step): Same.
5441 (analyzed_for_bivness_p): Same.
5443 (iv_analyze_biv): Same.
5444 (iv_analyze_expr): Same.
5445 (iv_analyze_def): Same.
5446 (iv_analyze_op): Same.
5448 (iv_analyze_result): Same.
5450 (eliminate_implied_conditions): Same.
5451 (simplify_using_initial_values): Same.
5452 (shorten_into_mode): Same.
5453 (canonicalize_iv_subregs): Same.
5454 (determine_max_iter): Same.
5455 (check_simple_exit): Same.
5456 (find_simple_exit): Same.
5457 (get_simple_loop_desc): Same.
5458 * loop-unroll.c (report_unroll): Same.
5459 (decide_unrolling): Same.
5460 (unroll_loops): Same.
5461 (loop_exit_at_end_p): Same.
5462 (decide_unroll_constant_iterations): Same.
5463 (unroll_loop_constant_iterations): Same.
5464 (compare_and_jump_seq): Same.
5465 (unroll_loop_runtime_iterations): Same.
5466 (decide_unroll_stupid): Same.
5467 (unroll_loop_stupid): Same.
5468 (referenced_in_one_insn_in_loop_p): Same.
5469 (reset_debug_uses_in_loop): Same.
5470 (analyze_iv_to_split_insn): Same.
5471 * lra-eliminations.c (lra_debug_elim_table): Same.
5472 (setup_can_eliminate): Same.
5474 (lra_get_elimination_hard_regno): Same.
5475 (lra_eliminate_regs_1): Same.
5476 (eliminate_regs_in_insn): Same.
5477 (update_reg_eliminate): Same.
5478 (init_elimination): Same.
5479 (lra_eliminate): Same.
5481 * lra-lives.c (initiate_live_solver): Same.
5482 * lra-remat.c (create_remat_bb_data): Same.
5483 * lra-spills.c (lra_spill): Same.
5484 * lra.c (lra_set_insn_recog_data): Same.
5485 (lra_set_used_insn_alternative_by_uid): Same.
5486 (init_reg_info): Same.
5487 (expand_reg_info): Same.
5488 * lto-cgraph.c (output_symtab): Same.
5489 (read_identifier): Same.
5490 (get_alias_symbol): Same.
5492 (input_varpool_node): Same.
5495 (input_cgraph_1): Same.
5497 (input_symtab): Same.
5498 (input_offload_tables): Same.
5499 (output_cgraph_opt_summary): Same.
5500 (input_edge_opt_summary): Same.
5501 (input_cgraph_opt_section): Same.
5502 * lto-section-in.c (lto_free_raw_section_data): Same.
5503 (lto_create_simple_input_block): Same.
5504 (lto_free_function_in_decl_state_for_node): Same.
5505 * lto-streamer-in.c (lto_tag_check_set): Same.
5506 (lto_location_cache::revert_location_cache): Same.
5507 (lto_location_cache::input_location): Same.
5508 (lto_input_location): Same.
5509 (stream_input_location_now): Same.
5510 (lto_input_tree_ref): Same.
5511 (lto_input_eh_catch_list): Same.
5512 (input_eh_region): Same.
5513 (lto_init_eh): Same.
5514 (make_new_block): Same.
5516 (fixup_call_stmt_edges): Same.
5517 (input_struct_function_base): Same.
5518 (input_function): Same.
5519 (lto_read_body_or_constructor): Same.
5520 (lto_read_tree_1): Same.
5521 (lto_read_tree): Same.
5522 (lto_input_scc): Same.
5523 (lto_input_tree_1): Same.
5524 (lto_input_toplevel_asms): Same.
5525 (lto_input_mode_table): Same.
5526 (lto_reader_init): Same.
5527 (lto_data_in_create): Same.
5528 * lto-streamer-out.c (output_cfg): Same.
5529 * lto-streamer.h: Same.
5530 * modulo-sched.c (duplicate_insns_of_cycles): Same.
5531 (generate_prolog_epilog): Same.
5532 (mark_loop_unsched): Same.
5533 (dump_insn_location): Same.
5534 (loop_canon_p): Same.
5535 (sms_schedule): Same.
5536 * omp-expand.c (expand_omp_for_ordered_loops): Same.
5537 (expand_omp_for_generic): Same.
5538 (expand_omp_for_static_nochunk): Same.
5539 (expand_omp_for_static_chunk): Same.
5540 (expand_omp_simd): Same.
5541 (expand_omp_taskloop_for_inner): Same.
5542 (expand_oacc_for): Same.
5543 (expand_omp_atomic_pipeline): Same.
5544 (mark_loops_in_oacc_kernels_region): Same.
5545 * omp-offload.c (oacc_xform_loop): Same.
5546 * omp-simd-clone.c (simd_clone_adjust): Same.
5547 * optabs-query.c (get_traditional_extraction_insn): Same.
5548 * optabs.c (expand_vector_broadcast): Same.
5549 (expand_binop_directly): Same.
5550 (expand_twoval_unop): Same.
5551 (expand_twoval_binop): Same.
5552 (expand_unop_direct): Same.
5553 (emit_indirect_jump): Same.
5554 (emit_conditional_move): Same.
5555 (emit_conditional_neg_or_complement): Same.
5556 (emit_conditional_add): Same.
5557 (vector_compare_rtx): Same.
5558 (expand_vec_perm_1): Same.
5559 (expand_vec_perm_const): Same.
5560 (expand_vec_cond_expr): Same.
5561 (expand_vec_series_expr): Same.
5562 (maybe_emit_atomic_exchange): Same.
5563 (maybe_emit_sync_lock_test_and_set): Same.
5564 (expand_atomic_compare_and_swap): Same.
5565 (expand_atomic_load): Same.
5566 (expand_atomic_store): Same.
5567 (maybe_emit_op): Same.
5568 (valid_multiword_target_p): Same.
5569 (create_integer_operand): Same.
5570 (maybe_legitimize_operand_same_code): Same.
5571 (maybe_legitimize_operand): Same.
5572 (create_convert_operand_from_type): Same.
5573 (can_reuse_operands_p): Same.
5574 (maybe_legitimize_operands): Same.
5575 (maybe_gen_insn): Same.
5576 (maybe_expand_insn): Same.
5577 (maybe_expand_jump_insn): Same.
5578 (expand_insn): Same.
5579 * optabs.h (create_expand_operand): Same.
5580 (create_fixed_operand): Same.
5581 (create_output_operand): Same.
5582 (create_input_operand): Same.
5583 (create_convert_operand_to): Same.
5584 (create_convert_operand_from): Same.
5587 * predict.c (optimize_insn_for_speed_p): Same.
5588 (optimize_loop_for_size_p): Same.
5589 (optimize_loop_for_speed_p): Same.
5590 (optimize_loop_nest_for_speed_p): Same.
5591 (get_base_value): Same.
5592 (predicted_by_loop_heuristics_p): Same.
5593 (predict_extra_loop_exits): Same.
5594 (predict_loops): Same.
5595 (predict_paths_for_bb): Same.
5596 (predict_paths_leading_to): Same.
5597 (propagate_freq): Same.
5598 (pass_profile::execute): Same.
5600 * profile-count.c (profile_count::differs_from_p): Same.
5601 (profile_probability::differs_lot_from_p): Same.
5602 * profile-count.h: Same.
5603 * profile.c (branch_prob): Same.
5604 * regrename.c (free_chain_data): Same.
5605 (mark_conflict): Same.
5606 (create_new_chain): Same.
5607 (merge_overlapping_regs): Same.
5608 (init_rename_info): Same.
5609 (merge_chains): Same.
5610 (regrename_analyze): Same.
5611 (regrename_do_replace): Same.
5612 (scan_rtx_reg): Same.
5613 (record_out_operands): Same.
5614 (build_def_use): Same.
5615 * regrename.h: Same.
5617 * reload1.c (init_reload): Same.
5618 (maybe_fix_stack_asms): Same.
5619 (copy_reloads): Same.
5620 (count_pseudo): Same.
5621 (count_spilled_pseudo): Same.
5623 (find_reload_regs): Same.
5624 (select_reload_regs): Same.
5625 (spill_hard_reg): Same.
5626 (fixup_eh_region_note): Same.
5627 (set_reload_reg): Same.
5628 (allocate_reload_reg): Same.
5629 (compute_reload_subreg_offset): Same.
5630 (reload_adjust_reg_for_icode): Same.
5631 (emit_input_reload_insns): Same.
5632 (emit_output_reload_insns): Same.
5633 (do_input_reload): Same.
5634 (inherit_piecemeal_p): Same.
5636 * sanopt.c (maybe_get_dominating_check): Same.
5637 (maybe_optimize_ubsan_ptr_ifn): Same.
5638 (can_remove_asan_check): Same.
5639 (maybe_optimize_asan_check_ifn): Same.
5640 (sanopt_optimize_walker): Same.
5641 * sched-deps.c (add_dependence_list): Same.
5642 (chain_to_prev_insn): Same.
5643 (add_insn_mem_dependence): Same.
5644 (create_insn_reg_set): Same.
5645 (maybe_extend_reg_info_p): Same.
5646 (sched_analyze_reg): Same.
5647 (sched_analyze_1): Same.
5648 (get_implicit_reg_pending_clobbers): Same.
5649 (chain_to_prev_insn_p): Same.
5650 (deps_analyze_insn): Same.
5651 (deps_start_bb): Same.
5652 (sched_free_deps): Same.
5654 (init_deps_reg_last): Same.
5656 * sched-ebb.c: Same.
5657 * sched-int.h: Same.
5658 * sched-rgn.c (add_branch_dependences): Same.
5659 (concat_insn_mem_list): Same.
5661 (sched_rgn_compute_dependencies): Same.
5662 * sel-sched-ir.c (reset_target_context): Same.
5663 (copy_deps_context): Same.
5664 (init_id_from_df): Same.
5665 (has_dependence_p): Same.
5666 (change_loops_latches): Same.
5667 (bb_top_order_comparator): Same.
5668 (make_region_from_loop_preheader): Same.
5669 (sel_init_pipelining): Same.
5670 (get_loop_nest_for_rgn): Same.
5671 (make_regions_from_the_rest): Same.
5672 (sel_is_loop_preheader_p): Same.
5673 * sel-sched-ir.h (inner_loop_header_p): Same.
5674 (get_all_loop_exits): Same.
5676 * sese.c (sese_build_liveouts): Same.
5677 (sese_insert_phis_for_liveouts): Same.
5678 * sese.h (defined_in_sese_p): Same.
5679 * sreal.c (sreal::stream_out): Same.
5681 * streamer-hooks.h: Same.
5682 * target-globals.c (save_target_globals): Same.
5683 * target-globals.h: Same.
5686 * targhooks.c (default_has_ifunc_p): Same.
5687 (default_empty_mask_is_expensive): Same.
5688 (default_init_cost): Same.
5689 * targhooks.h: Same.
5691 * tree-affine.c (aff_combination_mult): Same.
5692 (aff_combination_expand): Same.
5693 (aff_combination_constant_multiple_p): Same.
5694 * tree-affine.h: Same.
5695 * tree-cfg.c (build_gimple_cfg): Same.
5696 (replace_loop_annotate_in_block): Same.
5697 (replace_uses_by): Same.
5699 (dump_cfg_stats): Same.
5700 (gimple_duplicate_sese_region): Same.
5701 (gimple_duplicate_sese_tail): Same.
5702 (move_block_to_fn): Same.
5703 (replace_block_vars_by_duplicates): Same.
5704 (move_sese_region_to_fn): Same.
5705 (print_loops_bb): Same.
5707 (print_loops): Same.
5709 (debug_loops): Same.
5711 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
5712 (chrec_fold_multiply_poly_poly): Same.
5713 (chrec_evaluate): Same.
5714 (chrec_component_in_loop_num): Same.
5715 (reset_evolution_in_loop): Same.
5716 (is_multivariate_chrec): Same.
5717 (chrec_contains_symbols): Same.
5718 (nb_vars_in_chrec): Same.
5719 (chrec_convert_1): Same.
5720 (chrec_convert_aggressive): Same.
5721 * tree-chrec.h: Same.
5722 * tree-core.h: Same.
5723 * tree-data-ref.c (dump_data_dependence_relation): Same.
5724 (canonicalize_base_object_address): Same.
5725 (data_ref_compare_tree): Same.
5726 (prune_runtime_alias_test_list): Same.
5727 (get_segment_min_max): Same.
5728 (create_intersect_range_checks): Same.
5729 (conflict_fn_no_dependence): Same.
5730 (object_address_invariant_in_loop_p): Same.
5731 (analyze_ziv_subscript): Same.
5732 (analyze_siv_subscript_cst_affine): Same.
5733 (analyze_miv_subscript): Same.
5734 (analyze_overlapping_iterations): Same.
5735 (build_classic_dist_vector_1): Same.
5736 (add_other_self_distances): Same.
5737 (same_access_functions): Same.
5738 (build_classic_dir_vector): Same.
5739 (subscript_dependence_tester_1): Same.
5740 (subscript_dependence_tester): Same.
5741 (access_functions_are_affine_or_constant_p): Same.
5742 (get_references_in_stmt): Same.
5743 (loop_nest_has_data_refs): Same.
5744 (graphite_find_data_references_in_stmt): Same.
5745 (find_data_references_in_bb): Same.
5746 (get_base_for_alignment): Same.
5747 (find_loop_nest_1): Same.
5748 (find_loop_nest): Same.
5749 * tree-data-ref.h (dr_alignment): Same.
5750 (ddr_dependence_level): Same.
5751 * tree-if-conv.c (fold_build_cond_expr): Same.
5752 (add_to_predicate_list): Same.
5753 (add_to_dst_predicate_list): Same.
5754 (phi_convertible_by_degenerating_args): Same.
5755 (idx_within_array_bound): Same.
5756 (all_preds_critical_p): Same.
5757 (pred_blocks_visited_p): Same.
5758 (predicate_bbs): Same.
5759 (build_region): Same.
5760 (if_convertible_loop_p_1): Same.
5761 (is_cond_scalar_reduction): Same.
5762 (predicate_scalar_phi): Same.
5763 (remove_conditions_and_labels): Same.
5764 (combine_blocks): Same.
5765 (version_loop_for_if_conversion): Same.
5766 (versionable_outer_loop_p): Same.
5767 (ifcvt_local_dce): Same.
5768 (tree_if_conversion): Same.
5769 (pass_if_conversion::gate): Same.
5770 * tree-if-conv.h: Same.
5771 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
5772 * tree-loop-distribution.c (bb_top_order_cmp): Same.
5774 (stmt_has_scalar_dependences_outside_loop): Same.
5775 (copy_loop_before): Same.
5776 (create_bb_after_loop): Same.
5777 (const_with_all_bytes_same): Same.
5778 (generate_memset_builtin): Same.
5779 (generate_memcpy_builtin): Same.
5780 (destroy_loop): Same.
5781 (build_rdg_partition_for_vertex): Same.
5782 (compute_access_range): Same.
5783 (data_ref_segment_size): Same.
5784 (latch_dominated_by_data_ref): Same.
5785 (compute_alias_check_pairs): Same.
5786 (fuse_memset_builtins): Same.
5787 (finalize_partitions): Same.
5788 (find_seed_stmts_for_distribution): Same.
5789 (prepare_perfect_loop_nest): Same.
5790 * tree-parloops.c (lambda_transform_legal_p): Same.
5791 (loop_parallel_p): Same.
5792 (reduc_stmt_res): Same.
5793 (add_field_for_name): Same.
5794 (create_call_for_reduction_1): Same.
5795 (replace_uses_in_bb_by): Same.
5796 (transform_to_exit_first_loop_alt): Same.
5797 (try_transform_to_exit_first_loop_alt): Same.
5798 (transform_to_exit_first_loop): Same.
5800 (gen_parallel_loop): Same.
5801 (gather_scalar_reductions): Same.
5802 (get_omp_data_i_param): Same.
5803 (try_create_reduction_list): Same.
5804 (oacc_entry_exit_single_gang): Same.
5805 (parallelize_loops): Same.
5806 * tree-pass.h: Same.
5807 * tree-predcom.c (determine_offset): Same.
5808 (last_always_executed_block): Same.
5809 (split_data_refs_to_components): Same.
5810 (suitable_component_p): Same.
5811 (valid_initializer_p): Same.
5812 (find_looparound_phi): Same.
5813 (insert_looparound_copy): Same.
5814 (add_looparound_copies): Same.
5815 (determine_roots_comp): Same.
5816 (predcom_tmp_var): Same.
5817 (initialize_root_vars): Same.
5818 (initialize_root_vars_store_elim_1): Same.
5819 (initialize_root_vars_store_elim_2): Same.
5820 (finalize_eliminated_stores): Same.
5821 (initialize_root_vars_lm): Same.
5822 (remove_stmt): Same.
5823 (determine_unroll_factor): Same.
5824 (execute_pred_commoning_cbck): Same.
5825 (base_names_in_chain_on): Same.
5826 (combine_chains): Same.
5827 (pcom_stmt_dominates_stmt_p): Same.
5828 (try_combine_chains): Same.
5829 (prepare_initializers_chain_store_elim): Same.
5830 (prepare_initializers_chain): Same.
5831 (prepare_initializers): Same.
5832 (prepare_finalizers_chain): Same.
5833 (prepare_finalizers): Same.
5834 (insert_init_seqs): Same.
5835 * tree-scalar-evolution.c (loop_phi_node_p): Same.
5836 (compute_overall_effect_of_inner_loop): Same.
5837 (add_to_evolution_1): Same.
5838 (add_to_evolution): Same.
5839 (follow_ssa_edge_binary): Same.
5840 (follow_ssa_edge_expr): Same.
5841 (backedge_phi_arg_p): Same.
5842 (follow_ssa_edge_in_condition_phi_branch): Same.
5843 (follow_ssa_edge_in_condition_phi): Same.
5844 (follow_ssa_edge_inner_loop_phi): Same.
5845 (follow_ssa_edge): Same.
5846 (analyze_evolution_in_loop): Same.
5847 (analyze_initial_condition): Same.
5848 (interpret_loop_phi): Same.
5849 (interpret_condition_phi): Same.
5850 (interpret_rhs_expr): Same.
5851 (interpret_expr): Same.
5852 (interpret_gimple_assign): Same.
5853 (analyze_scalar_evolution_1): Same.
5854 (analyze_scalar_evolution): Same.
5855 (analyze_scalar_evolution_for_address_of): Same.
5856 (get_instantiated_value_entry): Same.
5857 (loop_closed_phi_def): Same.
5858 (instantiate_scev_name): Same.
5859 (instantiate_scev_poly): Same.
5860 (instantiate_scev_binary): Same.
5861 (instantiate_scev_convert): Same.
5862 (instantiate_scev_not): Same.
5863 (instantiate_scev_r): Same.
5864 (instantiate_scev): Same.
5865 (resolve_mixers): Same.
5866 (initialize_scalar_evolutions_analyzer): Same.
5867 (scev_reset_htab): Same.
5869 (derive_simple_iv_with_niters): Same.
5870 (simple_iv_with_niters): Same.
5871 (expression_expensive_p): Same.
5872 (final_value_replacement_loop): Same.
5873 * tree-scalar-evolution.h (block_before_loop): Same.
5874 * tree-ssa-address.h: Same.
5875 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
5876 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
5877 (record_edge_info): Same.
5878 * tree-ssa-live.c (var_map_base_fini): Same.
5879 (remove_unused_locals): Same.
5880 * tree-ssa-live.h: Same.
5881 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
5882 (pass_ch_vect::execute): Same.
5883 (pass_ch::process_loop_p): Same.
5884 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
5885 (movement_possibility): Same.
5886 (outermost_invariant_loop): Same.
5888 (determine_max_movement): Same.
5889 (invariantness_dom_walker::before_dom_children): Same.
5890 (move_computations): Same.
5891 (may_move_till): Same.
5892 (force_move_till_op): Same.
5893 (force_move_till): Same.
5894 (memref_free): Same.
5895 (record_mem_ref_loc): Same.
5896 (set_ref_stored_in_loop): Same.
5897 (mark_ref_stored): Same.
5898 (sort_bbs_in_loop_postorder_cmp): Same.
5899 (sort_locs_in_loop_postorder_cmp): Same.
5900 (analyze_memory_references): Same.
5901 (mem_refs_may_alias_p): Same.
5902 (find_ref_loc_in_loop_cmp): Same.
5903 (rewrite_mem_ref_loc::operator): Same.
5904 (first_mem_ref_loc_1::operator): Same.
5905 (sm_set_flag_if_changed::operator): Same.
5906 (execute_sm_if_changed_flag_set): Same.
5908 (hoist_memory_references): Same.
5909 (ref_always_accessed::operator): Same.
5910 (refs_independent_p): Same.
5911 (record_dep_loop): Same.
5912 (ref_indep_loop_p_1): Same.
5913 (ref_indep_loop_p): Same.
5914 (can_sm_ref_p): Same.
5915 (find_refs_for_sm): Same.
5916 (loop_suitable_for_sm): Same.
5917 (store_motion_loop): Same.
5918 (store_motion): Same.
5919 (fill_always_executed_in): Same.
5920 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
5921 (estimated_unrolled_size): Same.
5922 (loop_edge_to_cancel): Same.
5923 (remove_exits_and_undefined_stmts): Same.
5924 (remove_redundant_iv_tests): Same.
5925 (unloop_loops): Same.
5926 (estimated_peeled_sequence_size): Same.
5927 (try_peel_loop): Same.
5928 (canonicalize_loop_induction_variables): Same.
5929 (canonicalize_induction_variables): Same.
5930 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
5932 (stmt_after_inc_pos): Same.
5933 (contains_abnormal_ssa_name_p): Same.
5934 (niter_for_exit): Same.
5937 (find_givs_in_bb): Same.
5938 (find_induction_variables): Same.
5939 (find_interesting_uses_cond): Same.
5940 (outermost_invariant_loop_for_expr): Same.
5941 (idx_find_step): Same.
5942 (add_candidate_1): Same.
5943 (add_iv_candidate_derived_from_uses): Same.
5944 (alloc_use_cost_map): Same.
5945 (prepare_decl_rtl): Same.
5946 (generic_predict_doloop_p): Same.
5947 (computation_cost): Same.
5948 (determine_common_wider_type): Same.
5949 (get_computation_aff_1): Same.
5950 (get_use_type): Same.
5951 (determine_group_iv_cost_address): Same.
5953 (difference_cannot_overflow_p): Same.
5954 (may_eliminate_iv): Same.
5955 (determine_set_costs): Same.
5956 (cheaper_cost_pair): Same.
5957 (compare_cost_pair): Same.
5958 (iv_ca_cand_for_group): Same.
5959 (iv_ca_recount_cost): Same.
5960 (iv_ca_set_remove_invs): Same.
5961 (iv_ca_set_no_cp): Same.
5962 (iv_ca_set_add_invs): Same.
5963 (iv_ca_set_cp): Same.
5964 (iv_ca_add_group): Same.
5966 (iv_ca_compare_deps): Same.
5967 (iv_ca_delta_reverse): Same.
5968 (iv_ca_delta_commit): Same.
5969 (iv_ca_cand_used_p): Same.
5970 (iv_ca_delta_free): Same.
5974 (iv_ca_extend): Same.
5975 (iv_ca_narrow): Same.
5976 (iv_ca_prune): Same.
5977 (cheaper_cost_with_cand): Same.
5978 (iv_ca_replace): Same.
5979 (try_add_cand_for): Same.
5980 (get_initial_solution): Same.
5981 (try_improve_iv_set): Same.
5982 (find_optimal_iv_set_1): Same.
5983 (create_new_iv): Same.
5984 (rewrite_use_compare): Same.
5985 (remove_unused_ivs): Same.
5986 (determine_scaling_factor): Same.
5987 * tree-ssa-loop-ivopts.h: Same.
5988 * tree-ssa-loop-manip.c (create_iv): Same.
5989 (compute_live_loop_exits): Same.
5990 (add_exit_phi): Same.
5991 (add_exit_phis): Same.
5992 (find_uses_to_rename_use): Same.
5993 (find_uses_to_rename_def): Same.
5994 (find_uses_to_rename_in_loop): Same.
5995 (rewrite_into_loop_closed_ssa): Same.
5996 (check_loop_closed_ssa_bb): Same.
5997 (split_loop_exit_edge): Same.
5999 (ip_normal_pos): Same.
6000 (copy_phi_node_args): Same.
6001 (gimple_duplicate_loop_to_header_edge): Same.
6002 (can_unroll_loop_p): Same.
6003 (determine_exit_conditions): Same.
6004 (scale_dominated_blocks_in_loop): Same.
6005 (niter_for_unrolled_loop): Same.
6006 (tree_transform_and_unroll_loop): Same.
6007 (rewrite_all_phi_nodes_with_iv): Same.
6008 * tree-ssa-loop-manip.h: Same.
6009 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6010 (number_of_iterations_ne): Same.
6011 (assert_no_overflow_lt): Same.
6012 (assert_loop_rolls_lt): Same.
6013 (number_of_iterations_lt): Same.
6014 (adjust_cond_for_loop_until_wrap): Same.
6015 (tree_simplify_using_condition): Same.
6016 (simplify_using_initial_conditions): Same.
6017 (simplify_using_outer_evolutions): Same.
6018 (loop_only_exit_p): Same.
6019 (ssa_defined_by_minus_one_stmt_p): Same.
6020 (number_of_iterations_popcount): Same.
6021 (number_of_iterations_exit): Same.
6022 (find_loop_niter): Same.
6023 (finite_loop_p): Same.
6024 (chain_of_csts_start): Same.
6025 (get_val_for): Same.
6026 (loop_niter_by_eval): Same.
6027 (derive_constant_upper_bound_ops): Same.
6028 (do_warn_aggressive_loop_optimizations): Same.
6029 (record_estimate): Same.
6030 (get_cst_init_from_scev): Same.
6031 (record_nonwrapping_iv): Same.
6032 (idx_infer_loop_bounds): Same.
6033 (infer_loop_bounds_from_ref): Same.
6034 (infer_loop_bounds_from_array): Same.
6035 (infer_loop_bounds_from_pointer_arith): Same.
6036 (infer_loop_bounds_from_signedness): Same.
6037 (bound_index): Same.
6038 (discover_iteration_bound_by_body_walk): Same.
6039 (maybe_lower_iteration_bound): Same.
6040 (estimate_numbers_of_iterations): Same.
6041 (estimated_loop_iterations): Same.
6042 (estimated_loop_iterations_int): Same.
6043 (max_loop_iterations): Same.
6044 (max_loop_iterations_int): Same.
6045 (likely_max_loop_iterations): Same.
6046 (likely_max_loop_iterations_int): Same.
6047 (estimated_stmt_executions_int): Same.
6048 (max_stmt_executions): Same.
6049 (likely_max_stmt_executions): Same.
6050 (estimated_stmt_executions): Same.
6051 (stmt_dominates_stmt_p): Same.
6052 (nowrap_type_p): Same.
6053 (loop_exits_before_overflow): Same.
6054 (scev_var_range_cant_overflow): Same.
6055 (scev_probably_wraps_p): Same.
6056 (free_numbers_of_iterations_estimates): Same.
6057 * tree-ssa-loop-niter.h: Same.
6058 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6059 (idx_analyze_ref): Same.
6060 (analyze_ref): Same.
6061 (gather_memory_references_ref): Same.
6062 (mark_nontemporal_store): Same.
6063 (emit_mfence_after_loop): Same.
6064 (may_use_storent_in_loop_p): Same.
6065 (mark_nontemporal_stores): Same.
6066 (should_unroll_loop_p): Same.
6067 (volume_of_dist_vector): Same.
6068 (add_subscript_strides): Same.
6069 (self_reuse_distance): Same.
6070 (insn_to_prefetch_ratio_too_small_p): Same.
6071 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6072 (patch_loop_exit): Same.
6073 (find_or_create_guard_phi): Same.
6074 (easy_exit_values): Same.
6075 (connect_loop_phis): Same.
6076 (connect_loops): Same.
6077 (compute_new_first_bound): Same.
6079 (tree_ssa_split_loops): Same.
6080 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6081 (is_maybe_undefined): Same.
6082 (tree_may_unswitch_on): Same.
6083 (simplify_using_entry_checks): Same.
6084 (tree_unswitch_single_loop): Same.
6085 (tree_unswitch_loop): Same.
6086 (tree_unswitch_outer_loop): Same.
6087 (empty_bb_without_guard_p): Same.
6088 (used_outside_loop_p): Same.
6089 (get_vop_from_header): Same.
6090 (hoist_guard): Same.
6091 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6092 (get_lsm_tmp_name): Same.
6093 * tree-ssa-loop.h: Same.
6094 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6095 (build_and_add_sum): Same.
6096 (no_side_effect_bb): Same.
6098 (linearize_expr): Same.
6099 (should_break_up_subtract): Same.
6100 (linearize_expr_tree): Same.
6101 * tree-ssa-scopedtables.c: Same.
6102 * tree-ssa-scopedtables.h: Same.
6103 * tree-ssa-structalias.c (condense_visit): Same.
6104 (label_visit): Same.
6105 (dump_pred_graph): Same.
6106 (perform_var_substitution): Same.
6107 (move_complex_constraints): Same.
6108 (remove_preds_and_fake_succs): Same.
6109 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6110 (determine_bb_domination_status): Same.
6111 (duplicate_thread_path): Same.
6112 (thread_through_all_blocks): Same.
6113 * tree-ssa-threadupdate.h: Same.
6114 * tree-streamer-in.c (streamer_read_string_cst): Same.
6115 (input_identifier): Same.
6116 (unpack_ts_type_common_value_fields): Same.
6117 (unpack_ts_block_value_fields): Same.
6118 (unpack_ts_translation_unit_decl_value_fields): Same.
6119 (unpack_ts_omp_clause_value_fields): Same.
6120 (streamer_read_tree_bitfields): Same.
6121 (streamer_alloc_tree): Same.
6122 (lto_input_ts_common_tree_pointers): Same.
6123 (lto_input_ts_vector_tree_pointers): Same.
6124 (lto_input_ts_poly_tree_pointers): Same.
6125 (lto_input_ts_complex_tree_pointers): Same.
6126 (lto_input_ts_decl_minimal_tree_pointers): Same.
6127 (lto_input_ts_decl_common_tree_pointers): Same.
6128 (lto_input_ts_decl_non_common_tree_pointers): Same.
6129 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6130 (lto_input_ts_field_decl_tree_pointers): Same.
6131 (lto_input_ts_function_decl_tree_pointers): Same.
6132 (lto_input_ts_type_common_tree_pointers): Same.
6133 (lto_input_ts_type_non_common_tree_pointers): Same.
6134 (lto_input_ts_list_tree_pointers): Same.
6135 (lto_input_ts_vec_tree_pointers): Same.
6136 (lto_input_ts_exp_tree_pointers): Same.
6137 (lto_input_ts_block_tree_pointers): Same.
6138 (lto_input_ts_binfo_tree_pointers): Same.
6139 (lto_input_ts_constructor_tree_pointers): Same.
6140 (lto_input_ts_omp_clause_tree_pointers): Same.
6141 (streamer_read_tree_body): Same.
6142 * tree-streamer.h: Same.
6143 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6144 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6145 (vect_analyze_possibly_independent_ddr): Same.
6146 (vect_analyze_data_ref_dependence): Same.
6147 (vect_compute_data_ref_alignment): Same.
6148 (vect_enhance_data_refs_alignment): Same.
6149 (vect_analyze_data_ref_access): Same.
6150 (vect_check_gather_scatter): Same.
6151 (vect_find_stmt_data_reference): Same.
6152 (vect_create_addr_base_for_vector_ref): Same.
6153 (vect_setup_realignment): Same.
6154 (vect_supportable_dr_alignment): Same.
6155 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6156 (adjust_phi_and_debug_stmts): Same.
6157 (vect_set_loop_mask): Same.
6158 (add_preheader_seq): Same.
6159 (vect_maybe_permute_loop_masks): Same.
6160 (vect_set_loop_masks_directly): Same.
6161 (vect_set_loop_condition_masked): Same.
6162 (vect_set_loop_condition_unmasked): Same.
6163 (slpeel_duplicate_current_defs_from_edges): Same.
6164 (slpeel_add_loop_guard): Same.
6165 (slpeel_can_duplicate_loop_p): Same.
6166 (create_lcssa_for_virtual_phi): Same.
6168 (vect_update_ivs_after_vectorizer): Same.
6169 (vect_gen_vector_loop_niters_mult_vf): Same.
6170 (slpeel_update_phi_nodes_for_loops): Same.
6171 (slpeel_update_phi_nodes_for_guard1): Same.
6172 (find_guard_arg): Same.
6173 (slpeel_update_phi_nodes_for_guard2): Same.
6174 (slpeel_update_phi_nodes_for_lcssa): Same.
6175 (vect_do_peeling): Same.
6176 (vect_create_cond_for_alias_checks): Same.
6177 (vect_loop_versioning): Same.
6178 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6179 (vect_inner_phi_in_double_reduction_p): Same.
6180 (vect_analyze_scalar_cycles_1): Same.
6181 (vect_fixup_scalar_cycles_with_patterns): Same.
6182 (vect_get_loop_niters): Same.
6183 (bb_in_loop_p): Same.
6184 (vect_get_max_nscalars_per_iter): Same.
6185 (vect_verify_full_masking): Same.
6186 (vect_compute_single_scalar_iteration_cost): Same.
6187 (vect_analyze_loop_form_1): Same.
6188 (vect_analyze_loop_form): Same.
6189 (vect_active_double_reduction_p): Same.
6190 (vect_analyze_loop_operations): Same.
6191 (neutral_op_for_slp_reduction): Same.
6192 (vect_is_simple_reduction): Same.
6193 (vect_model_reduction_cost): Same.
6194 (get_initial_def_for_reduction): Same.
6195 (get_initial_defs_for_reduction): Same.
6196 (vect_create_epilog_for_reduction): Same.
6197 (vectorize_fold_left_reduction): Same.
6198 (vectorizable_reduction): Same.
6199 (vectorizable_induction): Same.
6200 (vectorizable_live_operation): Same.
6201 (loop_niters_no_overflow): Same.
6202 (vect_get_loop_mask): Same.
6203 (vect_transform_loop_stmt): Same.
6204 (vect_transform_loop): Same.
6205 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6206 (vect_determine_precisions): Same.
6207 (vect_pattern_recog_1): Same.
6208 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6209 * tree-vect-stmts.c (stmt_vectype): Same.
6210 (process_use): Same.
6211 (vect_init_vector_1): Same.
6212 (vect_truncate_gather_scatter_offset): Same.
6213 (get_group_load_store_type): Same.
6214 (vect_build_gather_load_calls): Same.
6215 (vect_get_strided_load_store_ops): Same.
6216 (vectorizable_simd_clone_call): Same.
6217 (vectorizable_store): Same.
6218 (permute_vec_elements): Same.
6219 (vectorizable_load): Same.
6220 (vect_transform_stmt): Same.
6221 (supportable_widening_operation): Same.
6222 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6223 (vec_info::free_stmt_vec_info): Same.
6224 (vect_free_loop_info_assumptions): Same.
6225 (vect_loop_vectorized_call): Same.
6226 (set_uid_loop_bbs): Same.
6227 (vectorize_loops): Same.
6228 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6229 * tree.c (add_tree_to_fld_list): Same.
6230 (fld_type_variant_equal_p): Same.
6231 (fld_decl_context): Same.
6232 (fld_incomplete_type_of): Same.
6233 (free_lang_data_in_binfo): Same.
6234 (need_assembler_name_p): Same.
6235 (find_decls_types_r): Same.
6236 (get_eh_types_for_runtime): Same.
6237 (find_decls_types_in_eh_region): Same.
6238 (find_decls_types_in_node): Same.
6239 (assign_assembler_name_if_needed): Same.
6240 * value-prof.c (stream_out_histogram_value): Same.
6241 * value-prof.h: Same.
6242 * var-tracking.c (use_narrower_mode): Same.
6243 (prepare_call_arguments): Same.
6244 (vt_expand_loc_callback): Same.
6245 (resolve_expansions_pending_recursion): Same.
6246 (vt_expand_loc): Same.
6247 * varasm.c (const_hash_1): Same.
6248 (compare_constant): Same.
6249 (tree_output_constant_def): Same.
6250 (simplify_subtraction): Same.
6251 (get_pool_constant): Same.
6252 (output_constant_pool_2): Same.
6253 (output_constant_pool_1): Same.
6254 (mark_constants_in_pattern): Same.
6255 (mark_constant_pool): Same.
6256 (get_section_anchor): Same.
6257 * vr-values.c (compare_range_with_value): Same.
6258 (vr_values::extract_range_from_phi_node): Same.
6259 * vr-values.h: Same.
6260 * web.c (unionfind_union): Same.
6263 2019-07-09 Martin Sebor <msebor@redhat.com>
6266 * align.h: Change class-key from class to struct and vice versa
6267 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6268 * alloc-pool.h: Same.
6269 * asan.c (shadow_mem_size): Same.
6270 * auto-profile.c: Same.
6271 * basic-block.h: Same.
6273 * cfgexpand.c (set_rtl): Same.
6274 (expand_one_stack_var_at): Same.
6278 * config/i386/i386.h: Same.
6279 * df-problems.c (df_print_bb_index): Same.
6281 * df.h (df_single_use): Same.
6282 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6283 (layout::annotation_line_showed_range_p): Same.
6284 (get_printed_columns): Same.
6285 (correction::ensure_terminated): Same.
6286 (line_corrections::~line_corrections): Same.
6289 * dump-context.h: Same.
6291 * dwarf2out.c: Same.
6292 * edit-context.c: Same.
6293 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6295 * function.c (assign_stack_local): Same.
6298 * gcov.c (block_info::block_info): Same.
6299 * genattrtab.c: Same.
6300 * genextract.c: Same.
6301 * genmatch.c (comparison_code_p): Same.
6302 (id_base::id_base): Same.
6303 (decision_tree::print): Same.
6304 * genoutput.c: Same.
6305 * genpreds.c (write_one_predicate_function): Same.
6306 * genrecog.c (validate_pattern): Same.
6307 (find_operand_positions): Same.
6308 (optimize_subroutine_group): Same.
6309 (merge_pattern_transition::merge_pattern_transition): Same.
6310 (merge_pattern_info::merge_pattern_info): Same.
6311 (merge_state_result::merge_state_result): Same.
6312 (merge_into_state): Same.
6313 * gensupport.c: Same.
6314 * gensupport.h: Same.
6315 * ggc-common.c (init_ggc_heuristics): Same.
6316 * ggc-tests.c (test_union): Same.
6317 * gimple-loop-interchange.cc (dump_induction): Same.
6318 * gimple-loop-versioning.cc: Same.
6319 * gimple-match.h (gimple_match_cond::any_else): Same.
6320 * gimple-ssa-backprop.c: Same.
6321 * gimple-ssa-sprintf.c: Same.
6322 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6324 (store_immediate_info::store_immediate_info): Same.
6325 (merged_store_group::apply_stores): Same.
6326 (get_location_for_stmts): Same.
6327 * gimple-ssa-strength-reduction.c: Same.
6328 * gimple-ssa-warn-alloca.c: Same.
6329 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
6330 * godump.c (go_type_decl): Same.
6331 * hash-map-tests.c (test_map_of_strings_to_int): Same.
6333 * hash-set-tests.c (test_set_of_strings): Same.
6335 * hsa-common.h: Same.
6336 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
6337 * input.c (assert_loceq): Same.
6340 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
6341 * ipa-fnsummary.h: Same.
6342 * ipa-inline.h: Same.
6344 * ipa-split.c (visit_bb): Same.
6345 * ira-int.h (minmax_set_iter_next): Same.
6346 * loop-invariant.c: Same.
6348 * lra-eliminations.c: Same.
6350 * lra-lives.c (mark_regno_dead): Same.
6351 * lra-remat.c: Same.
6352 * lra-spills.c: Same.
6353 * lto-streamer.h: Same.
6354 * mem-stats.h: Same.
6355 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
6356 * omp-low.c (omp_clause_aligned_alignment): Same.
6357 * optabs-query.h (get_vcond_eq_icode): Same.
6359 * opts.c (wrap_help): Same.
6361 * predict.c (predict_paths_leading_to_edge): Same.
6362 * pretty-print.h: Same.
6363 * profile-count.h: Same.
6365 * read-rtl-function.c: Same.
6368 * regrename.c: Same.
6369 * regrename.h: Same.
6372 * rtl.h (costs_add_n_insns): Same.
6374 * sched-int.h: Same.
6375 * sel-sched-ir.h: Same.
6377 * sese.h (vec_find): Same.
6379 * target-globals.h: Same.
6380 * tree-affine.c (aff_combination_find_elt): Same.
6381 * tree-affine.h: Same.
6382 * tree-data-ref.h: Same.
6383 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
6384 * tree-predcom.c: Same.
6385 * tree-scalar-evolution.c (find_var_scev_info): Same.
6386 * tree-ssa-alias.h: Same.
6387 * tree-ssa-ccp.c: Same.
6388 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
6389 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
6390 (rewrite_mem_refs): Same.
6391 (execute_sm_if_changed): Same.
6392 (hoist_memory_references): Same.
6393 * tree-ssa-loop-ivopts.c (operator<=): Same.
6394 * tree-ssa-loop.h: Same.
6395 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
6396 * tree-ssa-structalias.c: Same.
6397 * tree-switch-conversion.h (cluster::cluster): Same.
6398 (simple_cluster::simple_cluster): Same.
6399 * tree-vect-patterns.c (type_conversion_p): Same.
6400 * tree-vectorizer.c (dump_stmt_cost): Same.
6401 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
6402 * tree.c (protected_set_expr_location): Same.
6403 * tree.h (desired_pro_or_demotion_p): Same.
6404 (fndecl_built_in_p): Same.
6405 * unique-ptr-tests.cc: Same.
6406 * var-tracking.c (delete_variable_part): Same.
6407 * varasm.c (assemble_real): Same.
6408 (tree_output_constant_def): Same.
6410 * wide-int-bitmask.h: Same.
6411 * wide-int.h (decompose): Same.
6413 2019-07-09 Richard Biener <rguenther@suse.de>
6415 PR tree-optimization/91114
6416 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
6417 find a vector type isn't fatal.
6419 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6421 * config/aarch64/aarch64-simd.md
6422 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
6423 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
6424 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
6425 (*aarch64_crypto_aese_fused,
6426 *aarch64_crypto_aesd_fused): Update to new definition.
6427 * config/aarch64/aarch64.c
6428 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
6430 2019-07-09 Richard Biener <rguenther@suse.de>
6432 * gimple-match.h (gimple_match_op::resimplify): New.
6433 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
6434 gimple_resimplify4, gimple_resimplify5): Remove.
6435 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
6436 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
6438 (gimple_match_op::resimplify): New.
6439 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
6440 according to availability. Use gimple_match_op::resimplify.
6442 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
6444 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
6446 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6448 * config/arm/crypto.md:
6449 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
6450 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
6451 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
6452 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
6454 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
6455 * config/arm/aarch-common-protos.h
6456 (aarch_crypto_can_dual_issue): Remove.
6457 * config/arm/aarch-common.c
6458 (aarch_crypto_can_dual_issue): Likewise.
6459 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
6460 * config/arm/cortex-a53.md: Likewise.
6461 * config/arm/cortex-a57.md: Likewise.
6462 * config/arm/iterators.md:
6463 (CRYPTO_BINARY): Redefine.
6464 (CRYPTO_UNARY): Removed.
6465 (CRYPTO_AES, CRYPTO_AESMC): New.
6467 2019-07-09 Richard Biener <rguenther@suse.de>
6469 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
6470 (vn_reference_lookup_3): If the main ref has no access path recorded
6471 but orig_ref has use it to do access-path based disambiguation.
6472 (vn_reference_lookup_pieces): Adjust.
6473 (vn_reference_lookup): Pass down original ref if we valueized.
6475 2019-07-09 Martin Liska <mliska@suse.cz>
6477 * doc/extend.texi: Document influence on loop
6480 2019-07-09 Martin Liska <mliska@suse.cz>
6482 * lto-compress.c (lto_normalized_zstd_level): Do not use
6483 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
6484 of libzstd. One can use 0 as a default compression level.
6486 2019-07-09 Martin Liska <mliska@suse.cz>
6488 * doc/invoke.texi: Add link from -fprofile-dir option.
6489 Use better wording for 'gcno filename'.
6491 2019-07-08 Martin Sebor <msebor@redhat.com>
6495 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
6497 (args_loc_t): New type.
6498 (args_loc_t, locmap_t): same.
6499 (diag_returned_locals): New function.
6500 (is_addr_local): Same.
6501 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
6502 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
6503 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
6505 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6507 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
6508 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
6509 and casts in offset when different, both through gimple stmts
6510 and through trees. Rewritten using loops to minimize code duplication
6513 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
6515 * emit-rtl.c (set_insn_locations): New function moved from...
6516 * function.c (set_insn_locations): ...here.
6517 * ira-emit.c (emit_moves): Propagate location of the first instruction
6518 to the inserted move instructions.
6519 * reg-stack.c (compensate_edge): Set the location if the sequence is
6520 inserted on the edge.
6521 * rtl.h (set_insn_locations): Declare.
6523 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6525 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
6526 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
6529 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6531 PR rtl-optimization/88233
6532 * common.opt (fsplit-wide-types-early): New option.
6533 * common/config/rs6000/rs6000-common.c
6534 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
6536 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
6537 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
6538 flag_split_wide_types_early.
6539 (pass_data_lower_subreg3): New.
6540 (pass_lower_subreg3): New.
6541 (make_pass_lower_subreg3): New.
6542 * passes.def (pass_lower_subreg2): Move after the loop passes.
6543 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
6544 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
6545 the pass pipeline; its previous place is taken by ...
6546 (make_pass_lower_subreg3): ... this.
6548 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6550 * config/s390/s390.c (s390_shift_truncation_mask): Define.
6551 (TARGET_SHIFT_TRUNCATION_MASK): Define.
6553 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6555 * config/s390/constraints.md: Add new jsc constraint.
6556 * config/s390/predicates.md: New predicates.
6557 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
6558 * config/s390/s390.c (s390_valid_shift_count): New function.
6559 (print_shift_count_operand): Use s390_valid_shift_count.
6560 (print_operand): Likewise.
6561 * config/s390/s390.md: Use new predicate.
6562 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
6563 * config/s390/vector.md: Use new predicate.
6565 2019-07-08 Andrew Waterman <andrew@sifive.com>
6566 Jim Wilson <jimw@sifive.com>
6568 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
6569 bitsize instead of BITS_PER_WORD.
6571 2019-07-08 Martin Liska <mliska@suse.cz>
6573 * collect2.c (defined): Revert to before r254460.
6574 (scan_prog_file): Revert to before r254460.
6576 2019-07-08 Richard Biener <rguenther@suse.de>
6578 PR tree-optimization/83518
6579 * tree-ssa-sccvn.c: Include splay-tree.h.
6580 (struct pd_range, struct pd_data): New.
6581 (struct vn_walk_cb_data): Add data to track partial definitions.
6582 (vn_walk_cb_data::~vn_walk_cb_data): New.
6583 (vn_walk_cb_data::push_partial_def): New.
6584 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
6585 (vn_reference_lookup_2): When partial defs are registered give up.
6586 (vn_reference_lookup_3): Track partial defs for memset and
6587 constructor zeroing and for defs from constants.
6589 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6591 * doc/install.texi (bootstrap-Og): Document.
6593 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6595 * config/riscv/pic.md (*local_pic_load_s<mode>)
6596 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
6597 referenced by <mode>, giving...
6598 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
6599 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
6600 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
6601 use <X:MODE> for the mode attribute.
6603 2019-07-07 Jeff Law <law@redhat.com>
6605 PR tree-optimization/91090
6606 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
6607 in handling of ranges to simplify switch statements.
6609 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6611 * config/darwin.c (darwin_override_options): Make a final check on PIC
6614 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6616 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
6619 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6622 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
6623 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
6624 instead of matching them to "l" output operands.
6626 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6628 * config/mips/mips.c (mips_split_move): Zero-initialize addr
6629 and check whether addr.reg is nonnull before using it.
6631 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6633 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
6634 ctx->for_simd_scan_phase simd copy the outer var to the privatized
6635 variable(s). For conditional lastprivate look through outer
6636 GIMPLE_OMP_SCAN context.
6637 (lower_omp_1): For conditional lastprivate look through outer
6638 GIMPLE_OMP_SCAN context.
6640 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
6641 member to combined_into_simd_safelen1.
6642 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
6643 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
6644 clauses if ctx->combined_into_simd_safelen1 put statements after the
6645 predicate conditionalized block rather than into it.
6647 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6649 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
6651 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
6652 Make the choice of <mode> explicit, giving...
6653 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
6655 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6657 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
6658 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
6660 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
6661 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
6662 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
6663 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
6664 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
6665 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
6666 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
6667 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
6668 (*avx512f_scatterdi<mode>): Likewise.
6669 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
6671 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6673 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
6674 specify the mode iterator referenced by <mode>, giving...
6675 (*push1_h8300hs_<QHI:mode>): ...this.
6677 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6679 * config/gcn/gcn-valu.md
6680 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
6681 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
6682 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
6683 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
6684 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
6685 but using the _exec comparison patterns.
6686 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
6687 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
6688 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
6689 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
6690 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
6691 but using the _exec comparison patterns.
6693 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6695 * config/arm/sync.md
6696 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
6697 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
6698 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
6699 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
6702 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6704 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
6705 (maybe_lookup_ctx): Add forward declaration.
6706 (omp_find_scan): Likewise. Walk into body of simd if composited
6707 with worksharing loop.
6708 (scan_omp_simd_scan): New function.
6709 (scan_omp_1_stmt): Call it.
6710 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
6711 ctx->for_simd_scan_phase.
6712 (lower_rec_input_clauses): Do much less work for inscan reductions
6713 in ctx->for_simd_scan_phase is_simd regions.
6714 (lower_omp_scan): Set is_simd also on simd constructs composited
6715 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
6716 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
6717 emit their body after in simd constructs composited with worksharing
6719 (lower_omp_for_scan): Handle worksharing loop composited with simd.
6721 * omp-low.c (omp_find_scan): Make static.
6722 (lower_omp_for_scan): Fix order of merge arguments in input phase of
6723 the second loop, var2 represents the first partial sum and so needs
6724 to go before rprivb[ivar].
6726 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
6728 * config/rs6000/rs6000-logue.c: Remove unused code.
6730 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6732 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
6734 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
6737 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
6738 check with a frame laid out check.
6740 2019-07-05 Richard Biener <rguenther@suse.de>
6742 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
6743 when comparing against a store with possibly the same value.
6745 2019-07-05 Richard Biener <rguenther@suse.de>
6747 PR tree-optimization/91091
6748 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
6749 (walk_non_aliased_vuses): Likewise.
6750 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
6751 (get_continuation_for_phi): New tbaa_p parameter and pass
6753 (walk_non_aliased_vuses): Likewise.
6754 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
6755 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
6756 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
6758 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
6759 (adjust_offsets_for_equal_base_address): New function.
6760 (vn_reference_lookup_3): Use it to catch more base equivalences.
6761 Handle and pass down tbaa_p flag.
6762 (vn_reference_lookup_pieces): Adjust.
6763 (vn_reference_lookup): Remove alias-set altering, instead pass
6764 down false as tbaa_p.
6766 2019-07-05 Richard Biener <rguenther@suse.de>
6768 PR tree-optimization/91091
6769 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
6770 accesses can happen with -fno-strict-aliasing.
6772 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
6774 * tree-ssa-alias.c (alias_stats): Add
6775 nonoverlapping_component_refs_since_match_p_must_overlap.
6776 (dump_alias_stats): Print it.
6777 (nonoverlapping_component_refs_since_match_p): Add early exit.
6778 (nonoverlapping_component_refs_p): Do not account early exit.
6780 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6782 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
6783 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
6784 (emit_eh_dispatch): Delete.
6785 (lower_catch): Emit the eh_dispatch manually and set the location of
6786 the first catch statement onto it.
6787 (lower_eh_filter): Emit the eh_dispatch manually and set location.
6788 (lower_eh_dispatch): Propagate location.
6789 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
6790 (eliminate_build): Likewise.
6792 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6794 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
6795 phi nodes if possible.
6796 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
6797 location info on the newly created statement.
6798 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
6799 newly created increment if needed.
6801 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6804 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
6805 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
6806 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
6807 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
6808 ctx->add_safelen1 is set.
6810 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
6811 GOMP_loop_start at the start of second worksharing loop in a scan.
6812 For nowait, don't emit GOMP_loop_end_nowait at the end of first
6813 worksharing loop in a scan even if there are conditional lastprivates,
6814 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
6816 2019-07-04 Jan Hubicka <jh@suse.cz>
6818 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
6819 Fix check for match in the ref walk.
6821 2019-07-04 Martin Liska <mliska@suse.cz>
6823 * tree-ssa-loop-niter.c
6824 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
6825 (estimate_numbers_of_iterations):
6826 Support __builtin_expect_with_probability for analysis
6827 of # of loop iterations.
6829 2019-07-04 Alexandre Oliva <oliva@adacore.com>
6831 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
6832 * except.c: Likewise.
6833 * expr.c (expand_expr_real_1): Reject it.
6834 * gimplify.c (gimplify_expr): Gimplify it, within
6836 * tree-dump.c (dequeue_and_dump): Dump it.
6837 * tree-pretty-print.c (dump_generic_node): Likewise.
6838 * tree.c (block_may_fallthru): Handle it.
6839 * tree.def (EH_ELSE_EXPR): Introduce it.
6840 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
6841 with GIMPLE_EH_ELSE as try/finally/else.
6843 2019-07-04 Richard Biener <rguenther@suse.de>
6846 * tree-pass.h (execute_all_ipa_transforms): Add a flag
6847 parameter whether to disable GC collection.
6848 * passes.c (execute_one_ipa_transform_pass): Likewise, and
6850 (execute_all_ipa_transforms): Likewise and pass it down.
6851 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
6852 collection from applying IPA transforms.
6853 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
6854 from applying IPA transforms.
6856 2019-07-04 Richard Biener <rguenther@suse.de>
6858 PR tree-optimization/90911
6859 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
6860 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
6861 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
6862 scalar_loop_scaling.
6863 (vect_transform_loop): Scale scalar loop profile if needed.
6864 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
6865 the loop copy from if-conversion adjust edge probabilities
6866 and scale the vectorized loop body profile, queue the scalar
6867 profile for updating after peeling.
6869 2019-07-04 Jan Hubicka <jh@suse.cz>
6871 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
6872 parameters; return early for must-alias.
6873 (indirect_ref_may_alias_decl_p): Likewise; when establishing
6874 outer types match, try nonoverlapping_component_refs
6875 if must-alias is not obvious.
6876 (indirect_refs_may_alias_p): Likewise.
6877 (refs_may_alias_p_2): Likewise.
6879 2019-07-04 Richard Biener <rguenther@suse.de>
6881 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
6883 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
6885 (struct vn_walk_cb_data): New callback data struct.
6886 (vn_reference_lookup_2): Adjust.
6887 (vn_reference_lookup_3): Likewise.
6888 (vn_reference_lookup_pieces): Likewise.
6889 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
6890 (visit_reference_op_load): Adjust.
6892 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6894 PR tree-optimization/91063
6895 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
6896 stmt from stmts sequence before calling vect_init_vector_1.
6899 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6902 * fwprop.c (reg_single_def_p): New function.
6903 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
6904 (forward_propagate_into): New parameter reg_prop_only
6905 with default value false.
6906 Propagate def's src into loop only if SET_SRC and SET_DEST
6907 of def_set have single definitions.
6908 Likewise if reg_prop_only is set to true.
6909 (fwprop): New param fwprop_addr_p.
6910 Integrate fwprop_addr into fwprop.
6911 (fwprop_addr): Remove.
6912 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
6914 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
6915 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
6916 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
6918 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6920 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
6921 in worksharing loop scans.
6923 PR tree-optimization/91074
6924 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
6927 PR rtl-optimization/90756
6928 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
6931 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
6933 * config/aarch64/aarch64.md: Remove redundant constraints from
6934 define_expand but keep some patterns untouched if they are
6935 specially selected by TARGET_SECONDARY_RELOAD hook.
6936 * config/aarch64/aarch64-sve.md: Likewise.
6937 * config/aarch64/atomics.md: Remove redundant constraints from
6939 * config/aarch64/aarch64-simd.md: Likewise.
6941 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6943 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
6944 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
6945 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
6947 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
6950 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6952 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
6953 (STARTFILE_SPEC): Split crt3 into a separate spec.
6954 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
6955 (DARWIN_CRT2_SPEC): New.
6956 (DARWIN_CRT3_SPEC): New.
6957 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
6958 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
6959 (DARWIN_CRT3_SPEC): New.
6961 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
6963 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
6964 Change the RTL attribute "length" from "4" to "*" to allow the
6965 length attribute to be adjusted automatically for prefixed load,
6966 store, and add immediate instructions.
6967 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
6969 (extendsi<mode>2, EXTSI iterator): Likewise.
6970 (movsi_internal1): Likewise.
6971 (movsi_from_sf): Likewise.
6972 (movdi_from_sf_zero_ext): Likewise.
6973 (mov<mode>_internal): Likewise.
6974 (movcc_internal1, QHI iterator): Likewise.
6975 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
6976 (movsf_from_si): Likewise.
6977 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
6978 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
6979 (mov<mode>, FMOVE128 iterator): Likewise.
6980 (movdi_internal64): Likewise.
6981 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
6983 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
6984 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
6985 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
6986 (vsx_splat_v4sf): Likewise.
6988 2019-07-03 Mark Wielaard <mark@klomp.org>
6991 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
6992 DW_AT_addr_base if there is actually a .debug_addr section with
6994 (output_addr_table): Add DWARF5 table header generation here after
6995 checking there are actually any addresses from...
6996 (dwarf2out_finish): ...here.
6998 2019-07-03 Richard Biener <rguenther@suse.de>
7001 * match.pd (vec_perm -> bit_insert): Fix element read from
7004 2019-07-03 Martin Liska <mliska@suse.cz>
7006 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7007 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7009 * generic-match-head.c: Include dbgcnt.h.
7010 * gimple-match-head.c: Likewise.
7012 2019-07-03 Martin Liska <mliska@suse.cz>
7014 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7015 (GCOV_COUNTER_V_TOPN): New.
7016 (GCOV_COUNTER_V_INDIR): Use _topn.
7017 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7018 (GCOV_TOPN_VALUES): New.
7019 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7020 (GCOV_TOPN_VALUES_COUNTERS): New.
7021 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7023 (gimple_init_gcov_profiler): Rename variables from one_value
7025 (gimple_gen_one_value_profiler): Remove.
7026 (gimple_gen_topn_values_profiler): New function.
7027 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7028 names instead of SINGLE_VALUE.
7029 (stream_out_histogram_value): Likewise.
7030 (stream_in_histogram_value): Likewise.
7031 (get_most_common_single_value): Likewise.
7032 (gimple_divmod_fixed_value_transform): Likewise.
7033 (gimple_stringops_transform): Likewise.
7034 (gimple_divmod_values_to_profile): Likewise.
7035 (gimple_stringops_values_to_profile): Likewise.
7036 (gimple_find_values_to_profile): Likewise.
7037 * value-prof.h (enum hist_type): Rename to TOPN.
7038 (gimple_gen_one_value_profiler): Remove.
7039 (gimple_gen_topn_values_profiler): New.
7041 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7043 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7044 if it has the DW_AT_data_member_location attribute.
7046 2019-07-03 Richard Biener <rguenther@suse.de>
7048 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7051 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7053 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7054 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7055 (tlsdesc_small_sve_<mode>): Likewise.
7057 2019-07-03 Martin Liska <mliska@suse.cz>
7059 * Makefile.in: Define ZSTD_LIB.
7060 * common.opt: Adjust compression level
7061 to support also zstd levels.
7062 * config.in: Regenerate.
7063 * configure: Likewise.
7064 * configure.ac: Add --with-zstd and --with-zstd-include options
7066 * doc/install.texi: Mention zstd dependency.
7067 * gcc.c: Print supported LTO compression algorithms.
7068 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7069 (lto_compression_zstd): Likewise.
7070 (lto_uncompression_zstd): Likewise.
7071 (lto_end_compression): Dispatch in between zlib and zstd.
7072 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7073 (lto_uncompression_zlib): Make it static.
7074 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7075 * lto-section-in.c (lto_get_section_data): Pass info
7076 about used compression.
7077 * lto-streamer-out.c: By default use zstd when possible.
7078 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7079 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7081 2019-07-03 Martin Liska <mliska@suse.cz>
7083 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7084 * lto-section-out.c (lto_destroy_simple_output_block): Never
7085 compress LTO_section_lto section.
7086 * lto-streamer-out.c (produce_asm): Do not set major_version
7088 (lto_output_toplevel_asms): Likewise.
7089 (produce_lto_section): New function.
7090 (lto_output): Call produce_lto_section.
7091 (lto_write_mode_table): Do not set major_version and
7093 (produce_asm_for_decls): Likewise.
7094 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7096 (struct lto_header): Remove.
7097 (struct lto_section): New struct.
7098 (struct lto_simple_header): Do not inherit from lto_header.
7099 (struct lto_file_decl_data): Add lto_section_header field.
7101 2019-07-03 Martin Liska <mliska@suse.cz>
7103 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7105 * reg-stack.c (check_asm_stack_operands): Likewise.
7106 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7107 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7108 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7111 2019-07-03 Martin Liska <mliska@suse.cz>
7113 PR tree-optimization/90892
7114 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7115 in string constants.
7117 2019-07-03 Martin Liska <mliska@suse.cz>
7120 * multiple_target.c (create_dispatcher_calls): Add to comdat
7121 group only if set for ifunc.
7123 2019-07-03 Martin Liska <mliska@suse.cz>
7126 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7127 Define local_object_name in outer scope in order to handle
7128 use-after-scope issue.
7130 2019-07-03 Martin Liska <mliska@suse.cz>
7132 * common.opt: Add fprofile-note.
7133 * coverage.c (coverage_init): Append the option
7135 * doc/invoke.texi: Document -fprofile-note.
7137 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7139 PR tree-optimization/91033
7140 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7141 vect_analyze_data_refs): Add bool * arguments.
7142 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7143 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7144 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7145 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7146 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7147 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7148 vect_analyze_data_refs caller.
7150 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7152 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7153 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7154 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7155 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7156 OMP_CLAUSE__SCANTEMP_ entry.
7157 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7158 * tree-pretty-print.c (dump_omp_clause): Likewise.
7159 * tree-nested.c (convert_nonlocal_omp_clauses,
7160 convert_local_omp_clauses): Likewise.
7161 * omp-general.h (struct omp_for_data): Add have_scantemp and
7162 have_nonctrl_scantemp members.
7163 * omp-general.c (omp_extract_for_data): Initialize them.
7164 * omp-low.c (struct omp_context): Add scan_exclusive member.
7165 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7166 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7167 ctx->scan_exclusive.
7168 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7169 of !ctx->scan_inclusive.
7170 (lower_rec_input_clauses): Simplify gimplification of dtors using
7171 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7172 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7173 loops. Don't add barrier for reduction_omp_orig_ref if
7174 ctx->scan_??xclusive.
7175 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7176 (lower_omp_scan): Use ctx->scan_exclusive instead
7177 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7178 reductions. Use new_vard != new_var instead of repeated
7179 omp_is_reference calls.
7180 (omp_find_scan, lower_omp_for_scan): New functions.
7181 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7183 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7184 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7185 and fd->have_scantemp.
7187 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7188 on worksharing loop propagate it as shared clause to containing
7191 * omp-expand.c (expand_omp_for_static_nochunk,
7192 expand_omp_for_static_chunk): For nowait worksharing loop with
7193 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7196 2019-07-02 qing zhao <qing.zhao@oracle.com>
7198 PR preprocessor/90581
7199 * doc/cppopts.texi: Add document for -fmax-include-depth.
7200 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7202 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7204 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7205 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7206 (mmx_packssdw): Ditto.
7207 (mmx_punpckhbw): Ditto.
7208 (mmx_punpcklbw): Ditto.
7209 (mmx_punpckhwd): Ditto.
7210 (mmx_punpcklwd): Ditto.
7211 (mmx_punpckhdq): Ditto.
7212 (mmx_punpckldq): Ditto.
7213 (*vec_dupv4hi): Ditto.
7214 (*vec_dupv2si): Ditto.
7215 (mmx_pmovmskb): Ditto.
7216 * config/i386/sse.md (sse_cvtpi2ps): Use
7217 TARGET_SSE2 && SSE_REG_P in split condition.
7218 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7219 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7220 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7221 (ssse3_pshufbv8qi3): Ditto.
7222 (ssse3_palignrdi): Ditto.
7224 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7226 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7227 with inlined save and restore.
7229 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7231 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7232 to be inserted on single successor edge of the entry block. Then call
7233 commit_edge_insertions instead of inserting the instructions manually.
7234 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7235 RTL expansion and rebuild jump labels chain.
7237 2019-07-02 Richard Biener <rguenther@suse.de>
7239 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7241 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7243 * tree.c (build_common_tree_nodes): Initialize them.
7244 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7245 Make declarations comments.
7246 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7247 chrec_known): Remove definitions.
7248 (initialize_scalar_evolutions_analyzer): Remove.
7249 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7250 * tree-streamer.c (preload_common_nodes): Do not preload
7251 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7253 2019-07-02 Jan Hubicka <jh@suse.cz>
7255 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7258 2019-07-02 Jan Hubicka <jh@suse.cz>
7260 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7262 (nonoverlapping_component_refs_since_match_p): ... this one;
7263 handle also non-decl bases; return -1 if search gave up.
7264 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7265 nonoverlapping_component_refs_of_decl_p_no_alias to
7266 nonoverlapping_component_refs_since_match_p_may_alias,
7267 nonoverlapping_component_refs_since_match_p_no_alias.
7268 (dump_alias_stats): Update dumping.
7269 (aliasing_matching_component_refs_p): Break out from ...;
7270 dispatch to nonoverlapping_component_refs_for_decl_p
7271 and nonoverlapping_component_refs_since_match_p.
7272 (aliasing_component_refs_p): ... here; call
7273 nonoverlapping_component_refs_p in scenarios where we can not
7274 precisely determine base match.
7275 (decl_refs_may_alias_p): Use
7276 nonoverlapping_component_refs_since_match_p.
7277 (indirect_ref_may_alias_decl_p): Do not call
7278 nonoverlapping_component_refs_p.
7279 (indirect_refs_may_alias_p): Likewise.
7281 2019-07-02 Jan Hubicka <jh@suse.cz>
7283 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7284 to clobber of return value.
7286 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7288 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7289 for is_neon_type instructions that have not already been categorized.
7291 2019-07-02 Richard Biener <rguenther@suse.de>
7293 PR tree-optimization/58483
7294 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7295 for MEM_REF base hashing.
7296 (equal_mem_array_ref_p): Likewise for base comparison.
7298 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7300 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7302 (signbit<mode>2): Use that name. Simplify.
7304 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7307 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7308 Tune heuristic from PR71016 to allow MIN / MAX.
7310 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7312 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7314 (abs<mode>2): Use that name. Simplify.
7316 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7318 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7320 (neg<mode>2): Use that name. Simplify.
7322 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7324 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
7326 (abs<mode>2): Use that name. Simplify.
7328 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7330 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
7332 (neg<mode>2): Use that name. Simplify.
7334 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
7336 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
7337 ("enabled" attribute): Handle sse_noavx isa attribute.
7338 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
7339 Use TARGET_SSE && SSE_REGNO_P in split condition.
7340 (*vec_dupv2sf): Ditto.
7342 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7344 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
7346 (floatsi<mode>2): Use that name. Simplify.
7348 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7350 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
7352 (extenddf<mode>2_vsx): Make this a parameterized name.
7353 (extenddf<mode>2): Use those names. Simplify.
7355 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7357 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
7359 (eh_return): Use that name. Simplify.
7361 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7363 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
7364 (doloop_end): Use that name. Simplify.
7366 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7368 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
7370 (indirect_jump): Use that name. Simplify.
7372 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7374 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
7376 (abs<mode>2): Use that name. Simplify.
7378 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7380 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
7382 (fix_trunc<mode>si2): Use that name. Simplify.
7384 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7386 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
7387 (allocate_stack): Use that name. Simplify.
7389 2019-07-01 Martin Sebor <msebor@redhat.com>
7392 * hash-map.h (hash_map::put): On insertion invoke element ctor.
7393 (hash_map::get_or_insert): Same. Reformat comment.
7394 * hash-set.h (hash_set::add): On insertion invoke element ctor.
7395 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7396 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7397 * hash-table.h (hash_table::operator=): Prevent copy assignment.
7398 (hash_table::hash_table (const hash_table&)): Use copy ctor
7399 instead of assignment to copy elements.
7401 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
7402 John David Anglin <danglin@gcc.gnu.org>
7405 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
7406 using saved frame pointer.
7408 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
7411 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
7412 Add frame clobber and schedule blockage.
7414 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
7416 * doc/invoke.texi (Link Options): Further editorial changes to
7417 -flinker-output docs.
7419 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7421 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
7422 Load both operands of a PLUS into registers separately.
7424 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
7426 * config/s390/vector.md: Fix shift count operand printing.
7428 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7430 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
7432 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7434 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
7435 Use recog_data to test for an output operand.
7437 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7439 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
7440 exclude any others that are disparaged or that are bound to need
7442 (ira_get_dup_out_num): Expand comment.
7444 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7446 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
7447 constraint string for each operand/alternative combo. Only handle
7448 '%' at the start of constraint strings, and look for it outside
7451 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7453 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
7454 alternative_mask instead of HARD_REG_SET to represent a
7455 bitmask of alternatives.
7456 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7457 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
7459 2019-07-01 Martin Liska <mliska@suse.cz>
7461 * edit-context.c (test_applying_fixits_unreadable_file): Do not
7462 use () for a constructor call.
7463 (test_applying_fixits_line_out_of_range): Likewise.
7464 * ggc-page.c (alloc_page): Use (void *) for %p printf format
7466 (free_page): Likewise.
7468 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
7470 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
7471 parameter names to match usage (no functional change).
7472 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
7474 2019-07-01 Richard Biener <rguenther@suse.de>
7476 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
7478 (pass_fre::execute): Honor it.
7479 * passes.def: Adjust pass_fre invocations to allow iterating,
7480 add non-iterating pass_fre before late threading/dom.
7482 2019-07-01 Richard Biener <rguenther@suse.de>
7484 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
7485 TARGET_MEM_REF handling to also handle address-taken ones.
7487 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
7489 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7490 hardware attributes): Document avx512vp2intersect.
7492 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7494 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
7495 (abs<mode>2): New expander.
7496 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
7497 Use CODE_FOR_ssse3_absv8qi2.
7498 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
7499 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
7501 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7503 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
7504 to sse, sse_noavx and avx. Update all uses.
7506 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7508 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
7509 (*mmx_<plusminus_insn><mode>3): Ditto.
7510 (*mmx_mulv4hi3"): Ditto.
7511 (*mmx_smulv4hi3_highpart): Ditto.
7512 (*mmx_umulv4hi3_highpart): Ditto.
7513 (*mmx_pmaddwd): Ditto.
7514 (*sse2_umulv1siv1di3): Ditto.
7515 (*mmx_<code>v4hi3): Ditto.
7516 (*mmx_<code>v8qi3): Ditto.
7517 (mmx_ashr<mode>3): Ditto.
7518 ("mmx_<shift_insn><mode>3): Ditto.
7519 (*mmx_eq<mode>3): Ditto.
7520 (mmx_gt<mode>3): Ditto.
7521 (mmx_andnot<mode>3): Ditto.
7522 (*mmx_<code><mode>3): Ditto.
7523 (*mmx_pinsrw): Ditto.
7524 (*mmx_pextrw): Ditto.
7525 (mmx_pshufw_1): Ditto.
7526 (*mmx_uavgv8qi3): Ditto.
7527 (*mmx_uavgv4hi3): Ditto.
7528 ("mmx_psadbw): Ditto.
7529 * config/i386/sse.md (sse_cvtps2pi): Ditto.
7530 (sse_cvttps2pi): Ditto.
7531 (ssse3_pmaddubsw): Ditto.
7532 (*ssse3_pmulhrswv4hi3): Ditto.
7533 (ssse3_psign<mode>3): Ditto.
7535 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
7537 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
7538 adjustment for bit-fields to all aggregate types.
7540 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
7542 * config/rs6000/predicates.md (pcrel_address): Use
7543 SYMBOL_REF_LOCAL_P to determine if a label is local.
7544 (pcrel_external_address): New predicate.
7545 (non_prefixed_mem_operand): Delete, predicate not used.
7546 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
7547 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
7549 (SYMBOL_REF_PCREL_P): Likewise.
7552 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
7554 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
7555 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
7556 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
7558 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7560 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
7561 override on extra_headers.
7563 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7565 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
7566 * config/darwin-driver.c (darwin_default_min_version): Remove newline
7568 (darwin_driver_init): Likewise.
7570 2019-06-28 Jan Beulich <jbeulich@suse.com>
7572 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7573 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
7574 Eliminate redundant alternative.
7576 2019-06-28 Jan Beulich <jbeulich@suse.com>
7578 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7579 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
7582 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
7584 * config/arc/arc.c (arc_rtx_costs): All short instructions are
7585 having a lower cost regardless of the speed option.
7587 2019-06-28 Jan Beulich <jbeulich@suse.com>
7589 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
7590 vector_operand plus, on both alternatives, "Bm" constraint.
7592 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
7594 * config/arm/arm.md: Remove redundant constraints from
7595 define_expand but leave reload_inm and reload_outm patterns
7596 untouched since they need special constraints to work.
7597 * config/arm/arm-fixed.md: Remove redundant constraints from
7599 * config/arm/iwmmxt.md: Likewise.
7600 * config/arm/neon.md: Likewise.
7601 * config/arm/sync.md: Likewise.
7602 * config/arm/thumb1.md: Likewise.
7603 * config/arm/vec-common.md: Likewise.
7605 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
7607 * doc/install.texi: Document --disable-tm-clone-registry.
7609 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7612 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
7615 PR tree-optimization/91010
7616 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
7617 return true. Otherwise, don't call operand_equal_p if offset1 or
7618 offset2 is NULL and just return false.
7620 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7622 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
7623 user-specified float mode choice for kernel mode code.
7625 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7627 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
7630 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7632 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
7633 use longcall for 64b code.
7635 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
7637 * builtins.c (get_memory_rtx): Fix comment.
7638 * optabs.def (movmem_optab): Change to cpymem_optab.
7639 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
7640 (emit_block_move_hints): Change movmem to cpymem.
7641 * defaults.h: Change movmem to cpymem.
7642 * targhooks.c (get_move_ratio): Change movmem to cpymem.
7643 (default_use_by_pieces_infrastructure_p): Ditto.
7644 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
7645 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
7647 * config/aarch64/aarch64.h: Change movmem to cpymem.
7648 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
7649 * config/alpha/alpha.h: Change movmem to cpymem in comment.
7650 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
7652 * config/arc/arc-protos.h: Change movmem to cpymem.
7653 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
7654 * config/arc/arc.h: Change movmem to cpymem in comment.
7655 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
7656 * config/arm/arm-protos.h: Change movmem to cpymem in names.
7657 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
7658 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
7659 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
7660 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
7661 * config/avr/avr-protos.h: Change movmem to cpymem.
7662 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
7663 avr_out_movmem): Change movmem to cpymem.
7664 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
7665 Change movmem to cpymem.
7666 * config/bfin/bfin-protos.h: Change movmem to cpymem.
7667 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
7668 Change movmem to cpymem.
7669 * config/bfin/bfin.h: Change movmem to cpymem in comment.
7670 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
7671 * config/c6x/c6x-protos.h: Change movmem to cpymem.
7672 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
7673 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
7674 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
7675 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
7676 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
7677 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
7678 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
7679 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
7680 expand_small_cpymem_or_setmem,
7681 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
7682 expand_set_or_cpymem_constant_prologue,
7683 ix86_expand_set_or_cpymem): Change movmem to cpymem.
7684 * config/i386/i386-protos.h: Change movmem to cpymem.
7685 * config/i386/i386.h: Change movmem to cpymem in comment.
7686 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
7687 (setmem<mode>): Change expansion function name.
7688 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
7689 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
7690 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
7691 * config/m32c/m32c-protos.h: Change movmem to cpymem.
7692 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
7693 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
7694 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
7696 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
7697 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
7698 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
7699 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
7700 Change movmem to cpymem.
7701 * config/mips/mips.h: Change movmem to cpymem.
7702 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
7703 * config/nds32/nds32-memory-manipulation.c
7704 (nds32_expand_movmemsi_loop_unknown_size,
7705 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
7706 nds32_expand_movmemsi_unroll,
7707 nds32_expand_movmemsi): Change movmem to cpymem.
7708 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
7709 * config/nds32/nds32-protos.h: Change movmem to cpymem.
7710 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
7711 (pa_adjust_insn_length): Change call to compute_movmem_length.
7712 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
7713 movmemdi, movmemdi_prereload,
7714 movmemdi_postreload): Change movmem to cpymem.
7715 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
7716 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
7717 * config/riscv/riscv.c: Change movmem to cpymem in comment.
7718 * config/riscv/riscv.h: Change movmem to cpymem.
7719 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
7720 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
7721 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
7723 * config/s390/s390-protos.h: Change movmem to cpymem.
7724 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
7725 s390_expand_insv): Change movmem to cpymem.
7726 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
7727 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
7728 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
7729 * config/sparc/sparc.h: Change movmem to cpymem in comment.
7730 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
7731 for nonexistent function.
7732 * config/vax/vax.h: Change movmem to cpymem in comment.
7733 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
7734 * config/visium/visium.h: Change movmem to cpymem in comment.
7735 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
7736 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
7737 * doc/md.texi: Change movmem to cpymem and update description to match.
7738 * doc/rtl.texi: Change movmem to cpymem.
7739 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
7740 * doc/tm.texi: Regenerate.
7742 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
7744 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
7745 -fvariable-expansion-in-unroller by default.
7746 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
7749 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
7752 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7753 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7755 * config.gcc(rs6000-*-*): Define target_gtfiles.
7757 2019-06-27 Jan Hubicka <jh@suse.cz>
7759 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
7760 (add_type_duplicate): When odr hash is not allocated, to nothing.
7761 (odr_based_tbaa_p): New function.
7762 (set_type_canonical_for_odr_type): New function.
7763 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
7764 set_type_canonical_for_odr_type): New.
7765 * tree.c (gimple_canonical_types_compatible_p): ODR types with
7766 ODR based TBAA are not equivalent to non-ODR types.
7768 2019-06-27 Martin Liska <mliska@suse.cz>
7770 PR tree-optimization/90974
7771 PR rtl-optimization/90975
7772 PR rtl-optimization/90976
7774 PR tree-optimization/91017
7775 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
7777 * lra.c (lra_set_insn_recog_data): Remove a leftover from
7778 initial commit of IRA.
7779 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
7781 * tree-vect-loop.c (vect_create_epilog_for_reduction):
7782 Remove unused mode1.
7783 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
7786 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7789 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
7790 instead of register_operand for operands[1], add m to its constraints
7791 if operands[2] uses "C" constraint. Ensure in condition that if
7792 operands[2] is not 0, then operands[1] is not a MEM. For last two
7793 alternatives, use unaligned loads instead of aligned if operands[1] is
7796 2019-06-27 Martin Liska <mliska@suse.cz>
7798 * asan.c (asan_emit_allocas_unpoison): Remove obviously
7800 * bt-load.c (move_btr_def): Likewise.
7801 * builtins.c (expand_builtin_apply_args_1): Likewise.
7802 (expand_builtin_apply): Likewise.
7803 * cfgexpand.c (expand_asm_stmt): Likewise.
7804 (construct_init_block): Likewise.
7805 * cfghooks.c (verify_flow_info): Likewise.
7806 * cfgloopmanip.c (remove_path): Likewise.
7807 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
7808 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
7809 * combine.c (simplify_if_then_else): Likewise.
7810 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7811 (choose_basereg): Likewise.
7812 (ix86_expand_prologue): Likewise.
7813 (ix86_preferred_output_reload_class): Likewise.
7814 * cselib.c (cselib_record_sets): Likewise.
7815 * df-scan.c (df_scan_alloc): Likewise.
7816 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
7817 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
7818 * emit-rtl.c (try_split): Likewise.
7819 * graphite-scop-detection.c (assign_parameter_index_in_region):
7821 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
7822 * ira-color.c (setup_profitable_hard_regs): Likewise.
7823 * ira.c (rtx_moveable_p): Likewise.
7824 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7825 * read-rtl.c (read_subst_mapping): Likewise.
7826 * regrename.c (scan_rtx): Likewise.
7827 * reorg.c (fill_slots_from_thread): Likewise.
7828 * tree-inline.c (tree_function_versioning): Likewise.
7829 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
7830 * tree-ssa-sink.c (statement_sink_location): Likewise.
7831 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
7832 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
7833 (vect_create_epilog_for_reduction): Likewise.
7834 * tree.c (build_nonstandard_integer_type): Likewise.
7836 2019-06-27 Richard Biener <rguenther@suse.de>
7838 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
7840 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
7842 PR tree-optimization/89772
7843 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
7844 out-of-bound accesses checking.
7846 2019-06-27 Martin Liska <mliska@suse.cz>
7848 PR tree-optimization/91014
7849 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
7850 when LHS is NULL_TREE.
7852 2019-06-27 Martin Liska <mliska@suse.cz>
7854 * symbol-summary.h (traverse): Pass
7855 argument a to the call of callback.
7856 (gt_ggc_mx): Mark arguments as unused.
7857 (gt_pch_nx): Likewise.
7859 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
7862 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
7865 2019-06-26 Jeff Law <law@redhat.com>
7867 PR tree-optimization/90883
7868 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
7869 (delete_dead_or_redundant_assignment): Likewise.
7871 PR tree-optimization/90883
7872 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
7873 * tree-ssa-dse.c: Update various comments to distinguish between
7874 dead and redundant stores.
7875 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
7876 (dse_optimize_redundant_stores): New function.
7877 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
7878 Distinguish between dead and redundant calls in dump output. All
7880 (delete_dead_or_redundant_assignment): Similarly for assignments.
7881 (dse_optimize_stmt): Handle _CHK variants. For statements which
7882 store 0 into multiple memory locations, try to prove a subsequent
7885 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
7888 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
7889 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
7891 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7893 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
7894 (branch_islands): New extern.
7895 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
7896 * config/rs6000/rs6000.c: .. here.
7898 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7900 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
7901 (powerpc*-*-*) ... to here.
7903 2019-06-26 Jeff Law <law@redhat.com>
7905 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
7906 memcpy, memmove and memset builtins.
7907 (maybe_trim_memstar_call): Likewise.
7909 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7911 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
7913 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7915 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7917 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7919 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
7921 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
7923 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
7926 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7928 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
7930 2019-06-26 Richard Biener <rguenther@suse.de>
7933 * tree-inline.c (remap_ssa_name): Copy SSA range info.
7935 2019-06-26 Richard Biener <rguenther@suse.de>
7937 * lto-streamer.h (lto_bitmap_alloc): Remove.
7938 (lto_bitmap_free): Likewise.
7939 * lto-streamer.c (lto_bitmap_alloc): Remove.
7940 (lto_bitmap_free): Likewise.
7941 (lto_obstack): Likewise.
7942 (lto_obstack_initialized): Likewise.
7943 * lto-streamer-out.c (lto_output): Use own obstack for local
7944 bitmap, free it consistently.
7946 2019-06-26 Jakub Jelinek <jakub@redhat.com>
7949 * config/i386/sse.md
7950 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
7951 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
7952 insns if operands[2] is misaligned_operand.
7954 2019-06-26 Li Jia He <helijia@linux.ibm.com>
7956 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
7958 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
7961 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7963 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
7965 2019-06-26 Martin Liska <mliska@suse.cz>
7967 PR tree-optimization/90973
7968 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
7969 epilogue_cost_vec instead of prologue_cost_vec for
7972 2019-06-26 Martin Liska <mliska@suse.cz>
7974 * bb-reorder.c (connect_better_edge_p): Add missing else
7975 statement in the middle of if-else statements.
7977 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
7978 H.J. Lu <hongjiu.lu@intel.com>
7979 Olga Makhotina <olga.makhotina@intel.com>
7981 * common/config/i386/i386-common.c
7982 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
7983 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
7984 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
7985 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
7986 (ix86_handle_option): Handle -mavx512vp2intersect.
7987 * config/i386/avx512vp2intersectintrin.h: New.
7988 * config/i386/avx512vp2intersectvlintrin.h: New.
7989 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
7990 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7992 * config/i386/i386-builtin-types.def: Add new types.
7993 * config/i386/i386-builtin.def: Add new builtins.
7994 * config/i386/i386-builtins.c: (enum processor_features): Add
7995 F_AVX512VP2INTERSECT.
7996 (static const _isa_names_table isa_names_table): Ditto.
7997 * config/i386/i386-c.c (ix86_target_macros_internal): Define
7998 __AVX512VP2INTERSECT__.
7999 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8000 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8001 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8002 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8003 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8004 * config/i386/i386-options.c (ix86_target_string): Add
8005 -mavx512vp2intersect.
8006 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8007 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8008 P2HImode and P2QImode.
8009 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8010 number for P2QImode and P2HImode.
8011 (ix86_regmode_natural_size): New function.
8012 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8013 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8014 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8015 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8016 * config/i386/i386.opt: Add -mavx512vp2intersect.
8017 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8018 avx512vp2intersectvlintrin.h.
8019 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8020 (define_mode_iterator VI48_AVX512VP2VL): New.
8021 (avx512vp2intersect_2intersect<mode>,
8022 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8023 * config.gcc: Add avx512vp2intersectvlintrin.h and
8024 avx512vp2intersectintrin.h to extra_headers.
8025 * doc/invoke.texi: Document -mavx512vp2intersect.
8027 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8029 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8031 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8033 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8034 savres_routine_syms, savres_routine_name, morestack_ref,
8035 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8036 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8037 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8038 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8039 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8040 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8041 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8042 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8043 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8044 get_stack_clash_protection_probe_interval,
8045 get_stack_clash_protection_guard_size,
8046 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8047 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8048 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8049 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8050 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8051 gen_frame_mem_offset, rs6000_savres_routine_name,
8052 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8053 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8054 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8055 rs6000_global_entry_point_prologue_needed_p,
8056 rs6000_get_separate_components, rs6000_components_for_bb,
8057 rs6000_disqualify_components, rs6000_emit_prologue_components,
8058 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8059 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8060 rs6000_output_savres_externs, rs6000_output_function_prologue,
8061 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8062 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8063 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8064 rs6000_output_function_epilogue, gen_add3_const,
8065 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8066 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8068 (machine_function): Moved to rs6000.h.
8069 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8071 * config/rs6000/rs6000-logue.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 here from rs6000.c.
8106 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8107 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8108 quad_address_offset_p) Moved to here from rs6000.c.
8109 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8110 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8113 2019-06-25 Martin Liska <mliska@suse.cz>
8115 * hash-table.c (hashtab_chk_error): Move here from ...
8116 * hash-table.h (hashtab_chk_error): ... here.
8118 2019-06-25 Martin Liska <mliska@suse.cz>
8120 PR tree-optimization/90978
8121 * df-scan.c (df_update_entry_block_defs): Remove dead else
8123 (df_update_exit_block_uses): Likewise.
8125 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8126 Andrew Stubbs <ams@codesourcery.com>
8128 * config.gcc (thread_file): Set to gcn for AMD GCN.
8129 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8130 (TARGET_EMUTLS_VAR_INIT): New hook.
8132 2019-06-25 Martin Jambor <mjambor@suse.cz>
8135 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8137 2019-06-25 Richard Biener <rguenther@suse.de>
8139 PR tree-optimization/90930
8140 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8141 into parallel form in the last pass instance.
8143 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8145 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8146 (arc_legitimize_pic_address): Simplify and cleanup the function.
8147 (SYMBOLIC_CONST): Remove.
8148 (prepare_pic_move): Likewise.
8149 (prepare_move_operands): Handle complex mov cases here.
8150 (arc_legitimize_address_0): Remove call to
8151 arc_legitimize_pic_address.
8152 (arc_legitimize_address): Remove call to
8153 arc_legitimize_tls_address.
8154 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8155 (movhi_insn): Likewise.
8157 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8159 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8161 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8162 format of "__intN" types for UINTMAX_TYPE.
8163 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8164 format of "__intN" types for SIZETYPE.
8165 * tree.c (build_common_tree_nodes): Accept "__intN__"
8166 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8167 * doc/invoke.texi: Document that __intN__ disables pedantic
8170 2019-06-25 Jan Hubicka <jh@suse.cz>
8172 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8173 base2_alias_set is non-zero before doing TBAA based disambiguation.
8175 2019-06-25 Martin Liska <mliska@suse.cz>
8177 PR tree-optimization/90973
8178 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8179 of prologue and epilogue.
8181 2019-06-24 Jan Hubicka <jh@suse.cz>
8183 * ipa-utils.h (type_with_linkage_p): Verify that type is
8185 (odr_type_p): Remove extra return.
8186 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8187 hash STRING_FLAG only for arrays and integers.
8188 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8190 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8192 * print-tree.c (print_node): Print cxx-odr-p
8194 * tree.c (need_assembler_name_p): Also check that type
8196 (verify_type_variant): Update verification of SRING_FLAG;
8197 also check CXX_ODR_P.
8198 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8199 (TYPE_STRING_FLAG): Use it.
8200 (TYPE_CXX_ODR_P): New macro.
8201 * dwarf2out.c (gen_array_type_die): First check that type
8202 is an array and then test string flag.
8204 2019-06-24 Richard Biener <rguenther@suse.de>
8206 PR tree-optimization/90972
8207 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8208 in common code, dealing with STRING_CST properly.
8210 2019-06-24 Richard Biener <rguenther@suse.de>
8212 PR tree-optimization/90930
8213 PR tree-optimization/90316
8214 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8217 2019-06-24 Martin Sebor <msebor@redhat.com>
8219 * tree-pretty-print.h: Remove unnecessary punctuation characters
8221 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8223 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8225 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8226 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8227 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8229 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8231 * config/rs6000/darwin.h: Handle GCC target pragma.
8233 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8235 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8237 2019-06-22 Jeff Law <law@redhat.com>
8239 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8241 2019-06-22 Jan Hubicka <jh@suse.cz>
8243 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8244 give up on bitfields; continue searching for different refs
8247 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8249 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8250 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8251 containing the offset as possible simd lane access. Look through
8252 widening conversion. Move the
8253 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8255 2019-06-21 Richard Biener <rguenther@suse.de>
8257 PR tree-optimization/90930
8258 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8259 flag on new stmts to avoid re-processing them.
8261 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8263 PR c++/90875 - added -Wswitch-outside-range option
8264 * doc/invoke.texi (Wswitch-outside-range): Document.
8266 2019-06-21 Jeff Law <law@redhat.com>
8268 PR tree-optimization/90949
8269 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8270 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8272 2019-06-21 Richard Biener <rguenther@suse.de>
8275 * dwarf2out.c (prune_unused_types_walk): Always consider
8276 function-local extern declarations as used.
8278 2019-06-21 Richard Biener <rguenther@suse.de>
8280 PR tree-optimization/90913
8281 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8282 the scalar variant of if-conversion versioning.
8284 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8286 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8287 create another "omp scan inscan exclusive" array if
8288 !ctx->scan_inclusive.
8289 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8290 (lower_omp_scan): Likewise.
8291 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8292 2-bit bitfield for simd_lane_access_p member.
8293 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8294 aux == (void *)-4 as simd lane access.
8295 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8296 comment with permutations to show the canonical permutation order.
8297 (vectorizable_scan_store): Handle exclusive scan.
8298 (vectorizable_store): Call vectorizable_scan_store even for
8299 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8301 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8302 "omp simd array" arrays with one byte elements.
8304 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8306 * config/alpha/alpha.md (@unaligned_store<mode>):
8307 Rename from unaligned_store<mode>.
8308 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8309 * config/alpha/sync.md (@load_locked_<mode>): Rename
8310 from load_locked_<mode>.
8311 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8312 (@atomic_compare_and_swap<mode>_1): Rename
8313 from atomic_compare_and_swap<mode>_1.
8314 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8315 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8316 Use gen_reload_in_aligned and gen_unaligned_store.
8317 (emit_load_locked): Remove.
8318 (emit_store_conditional): Ditto.
8319 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8320 (alpha_split_compare_and_swap): Ditto.
8321 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8322 (alpha_split_compare_and_swap_12): Use gen_load_locked
8323 and gen_store_conditional.
8324 (alpha_split_atomic_exchange): Ditto.
8325 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
8326 (alpha_split_atomic_exchange_12): Use gen_load_locked
8327 and gen_store_conditional.
8329 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
8331 * config/aarch64/aarch64-errata.h: New file.
8332 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
8333 (CA53_ERR_843419_SPEC): Delete.
8334 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
8335 * config/aarch64/aarch64-linux.h: Likewise.
8336 * config/aarch64/aarch64-netbsd.h: Likewise.
8337 * config/aarch64/aarch64-freebsd.h: Likewise.
8339 2019-06-20 Marek Polacek <polacek@redhat.com>
8341 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
8343 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
8345 * config/rs6000/rs6000.md (isa attribute): Add support for
8346 for a future processor.
8348 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
8351 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
8352 standard scalar operation pattern for V2DF.
8353 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
8354 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
8355 (*ieee_<ieee_maxmin><mode>3): Likewise.
8356 (vec_setv2df_0): Likewise.
8358 2019-06-20 Jan Hubicka <jh@suse.cz>
8360 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
8361 parameter; it has no use in gimple memory model.
8362 (indirect_ref_may_alias_decl_p): Update.
8364 2019-06-20 Martin Liska <mliska@suse.cz>
8366 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
8369 2019-06-20 Jakub Jelinek <jakub@redhat.com>
8371 * tree-vect-stmts.c (enum scan_store_kind): New type.
8372 (scan_store_can_perm_p): Change last argument from int * to
8373 vec<enum scan_store_kind> *, record precisely which permutations
8374 need whole vector left shift or that plus VEC_COND_EXPR.
8375 (vectorizable_scan_store): Adjust caller, use whole vector left shift
8376 and additional VEC_COND_EXPR only for those iterations that need it.
8378 2019-06-20 Alexandre Oliva <oliva@adacore.com>
8380 * config.gcc: Fix ARM --with-fpu checking and error message.
8382 2019-06-19 Marek Polacek <polacek@redhat.com>
8384 PR c++/60364 - noreturn after first decl not diagnosed.
8385 * attribs.c (get_attribute_namespace): No longer static.
8386 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
8388 (attr_noreturn_exclusions): Make it extern.
8389 * attribs.h (get_attribute_namespace): Declare.
8390 * tree-inline.c (function_attribute_inlinable_p): Use
8393 2019-06-19 Martin Sebor <msebor@redhat.com>
8395 PR tree-optimization/90626
8396 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
8398 PR tree-optimization/90626
8399 * tree-ssa-strlen.c (strxcmp_unequal): New function.
8400 (handle_builtin_string_cmp): Call it.
8402 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8404 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
8405 and DARWIN_NOPIE_SPEC.
8406 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
8407 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
8408 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
8409 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
8410 (DARWIN_EXPORT_DYNAMIC): Delete.
8411 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
8412 and pie options processing to darwin.h.
8413 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
8415 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8417 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
8418 in computing the number of options to be moved.
8420 2019-06-19 Maya Rashish <coypu@sdf.org>
8422 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
8423 (CLEAR_INSN_CACHE) Use it.
8425 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
8427 * config/i386/i386.md (cmpstrnsi): Remove dead code.
8429 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
8432 * builtins.c (expand_builtin_setjmp_setup): Save
8433 hard_frame_pointer_rtx.
8434 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
8436 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
8438 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
8440 (remove_reg_equal_offset_note): Remove unused function.
8441 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
8443 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8444 (arc_builtin_setjmp_frame_value): Remove function.
8445 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8446 (avr_builtin_setjmp_frame_value): Remove function.
8447 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8448 (ix86_builtin_setjmp_frame_value): Remove function.
8449 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
8450 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8451 (sparc_builtin_setjmp_frame_value): Remove function.
8452 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8453 (vax_builtin_setjmp_frame_value): Remove function.
8454 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
8455 pointer if has_nonlocal_label.
8457 2019-06-19 Jakub Jelinek <jakub@redhat.com>
8459 * doc/md.texi: Document vec_shl_<mode> pattern.
8460 * optabs.def (vec_shl_optab): New optab.
8461 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
8462 argument, if == vec_shl_optab, check for left whole vector shift
8463 pattern rather than right shift.
8464 (expand_vec_perm_const): Add vec_shl_optab support.
8465 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
8467 * tree-vect-generic.c (lower_vec_perm): Support permutations which
8468 can be handled by vec_shl_optab.
8469 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
8470 (check_scan_store): Use it.
8471 (vectorizable_scan_store): If target can't do normal permutations,
8472 try to use whole vector left shifts and if needed a VEC_COND_EXPR
8474 * config/i386/sse.md (vec_shl_<mode>): New expander.
8476 * omp-low.c (lower_rec_input_clauses): Handle references properly
8478 (lower_omp_scan): Likewise.
8480 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8482 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
8483 mem_mode is BLKmode.
8485 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
8488 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
8489 pointer adjustment for the case of no callee-saved registers and
8490 stack frame bigger than 128 bytes.
8492 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8495 * omp-low.c (check_omp_nesting_restrictions): Handle
8496 GF_OMP_TARGET_KIND_OACC_DECLARE.
8498 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
8500 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
8501 (@add<mode>3_carry): Rename from add<mode>3_carry.
8502 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
8503 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
8504 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
8505 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
8506 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
8507 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
8508 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
8509 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
8510 (cmpstrnsi): Use gen_cmp_1.
8511 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
8512 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
8513 (@umonitor_<mode>): Rename from umonitor_<mode>.
8514 * config/i386/i386-expand.c (ix86_expand_copysign):
8515 Use gen_copysign3_const and gen_copysign3_var.
8516 (ix86_expand_xorsign): Use gen_xorsign3_1.
8517 (ix86_expand_branch): Use gen_sub3_carry_ccc,
8518 gen_sub3_carry_ccgz and gen_cmp1.
8519 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
8520 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
8521 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
8522 (ix86_split_lshr): Ditto.
8523 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
8525 2019-06-18 Jason Merrill <jason@redhat.com>
8527 * tree.c (build_constructor): Add MEM_STAT_DECL.
8529 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8531 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
8532 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
8533 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
8534 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
8535 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
8536 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
8537 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
8538 Use CC_NZC instead of CC.
8539 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
8540 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
8541 (aarch64_print_operand): Handle E_CC_NZCmode.
8542 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
8543 of gen_set_clobber_cc.
8545 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8547 * config/aarch64/aarch64-sve.md: Tabify file.
8549 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8551 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
8552 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
8553 * config/aarch64/aarch64-sve.md: Use it.
8555 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8557 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
8558 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
8559 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
8560 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
8561 (aarch64_expand_sve_vec_cmp_int): Use it.
8562 (aarch64_expand_sve_vec_cmp_float): Likewise.
8563 * config/aarch64/aarch64-sve.md: Likewise throughout.
8565 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8566 Kugan Vivekanandarajah <kuganv@linaro.org>
8568 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
8569 (*cond_<optab><mode>_z): Fold into...
8570 (*cond_<optab><mode>_any): ...here. Also handle cases in which
8571 operand 4 can be tied to operand 0 (either inherently or via RA).
8573 2019-06-18 Richard Biener <rguenther@suse.de>
8576 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
8577 as if optimized away.
8579 2019-06-18 Tom de Vries <tdevries@suse.de>
8581 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
8582 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
8583 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
8585 (define_insn "@set_softstack_<mode>"): ... this.
8586 (define_insn "omp_simt_enter_<mode>"): Rename to ...
8587 (define_insn "@omp_simt_enter_<mode>"): ... this.
8588 (define_insn "omp_simt_exit_<mode>"): Rename to ...
8589 (define_insn "@omp_simt_exit_<mode>"): ... this.
8591 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8593 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
8594 vf parameter. Restore the previous iv step of nscalars_step,
8595 but give it iv_type rather than compare_type. Tweak code order
8596 to match the comments.
8597 (vect_set_loop_condition_masked): Update accordingly.
8598 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
8599 for iv_precision. Tweak comment formatting.
8601 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8603 * config/darwin.c: Strip trailing whitespace.
8605 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8607 * config/darwin.c (darwin_emit_unwind_label): New default to false.
8608 (darwin_override_options): Set darwin_emit_unwind_label as needed.
8610 2019-06-18 Martin Jambor <mjambor@suse.cz>
8613 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
8614 caller does not have flag_ipa_cp set.
8616 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8618 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
8619 from "*fold_left_plus_<mode>", updated operands order.
8620 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
8621 * internal-fn.c (mask_fold_left_direct): New define.
8622 (expand_mask_fold_left_optab_fn): Likewise.
8623 (direct_mask_fold_left_optab_supported_p): Likewise.
8624 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
8625 * optabs.def (mask_fold_left_plus_optab): New optab.
8626 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
8627 masked internal_fn for a reduction ifn.
8628 (vectorize_fold_left_reduction): Add support for masking reductions.
8630 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
8633 * target.def (predict_doloop_p): New hook.
8634 * targhooks.h (default_predict_doloop_p): New declaration.
8635 * targhooks.c (default_predict_doloop_p): New function.
8636 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
8637 * doc/tm.texi: Regenerate.
8638 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
8639 (TARGET_PREDICT_DOLOOP_P): New macro.
8640 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
8642 2019-06-17 Jakub Jelinek <jakub@redhat.com>
8644 * omp-low.c (struct omp_context): Add scan_inclusive field.
8645 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
8647 (struct omplow_simd_context): Add lastlane member.
8648 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
8649 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
8651 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
8652 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
8653 (lower_omp_scan): New function.
8654 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
8655 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
8656 check 3rd argument if present rather than 2nd.
8657 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
8658 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
8660 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8661 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
8663 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
8664 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
8665 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
8667 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
8668 IFN_GOMP_SIMD_LANE argument.
8669 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
8670 encoded ->aux value.
8671 * tree-vect-stmts.c: Include attribs.h.
8672 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
8673 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
8675 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
8676 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
8678 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
8681 * config/i386/i386.md (*nabstf2_1): New insn pattern.
8682 (*nabs<mode>2_1): Ditto.
8683 (nabs sse-reg splitter): New splitter.
8684 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
8686 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8689 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8692 2019-06-17 Tom de Vries <tdevries@suse.de>
8694 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
8695 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
8696 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
8698 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
8700 (define_insn "omp_simt_enter_insn"): Rename to ...
8701 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
8702 match_operand 0, 1 and 2, as well as the unspec_volatile result.
8703 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
8704 gen_omp_simt_enter_si.
8705 (define_expand "omp_simt_exit"): New.
8706 (define_insn "omp_simt_exit"): Rename to ...
8707 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
8710 2019-06-17 Matthew Green <mrg@eterna.com.au>
8711 Maya Rashish <coypu@sdf.org>
8713 * config.gcc (aarch64*-*-netbsd*): New target.
8714 * config/aarch64/aarch64-netbsd.h: New file.
8715 * config/aarch64/t-aarch64-netbsd: Likewise.
8717 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8719 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
8720 the access path from base to first VIEW_CONVERT_EXPR or
8723 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8725 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
8726 access path on BIT_FIELD_REFs.
8728 2019-06-17 Martin Liska <mliska@suse.cz>
8731 * ipa-utils.h (odr_type_p): Remove dead code.
8733 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8735 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
8736 alternative Solaris 11.4 format.
8737 * configure: Regenerate.
8739 2019-06-17 Tom de Vries <tdevries@suse.de>
8741 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
8742 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
8744 (define_insn "call_value_insn"): Rename to ...
8745 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
8747 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
8750 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
8753 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
8754 frame clobbers and schedule block.
8755 (builtin_longjmp): Likewise.
8757 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8759 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
8760 describe how to perform MSPABI compliant 64-bit shift.
8761 * config/msp430/msp430.md (ashldi3): New define_expand.
8762 (ashrdi3): New define_expand.
8763 (lshrdi3): New define_expand.
8765 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8767 * doc/sourcebuild.texi: Document new effective target keyword
8770 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8772 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
8773 indirect_refs_may_alias_p): Revert accidental commits.
8775 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
8776 at the end of structures.
8778 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8780 * config/darwin.c (machopic_indirect_call_target): Use renamed
8781 darwin_picsymbol_stubs to decide on output.
8782 (darwin_override_options): Handle darwin_picsymbol_stubs.
8783 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
8784 (LD64_VERSION): Revise default.
8785 * config/darwin.opt: (mpic-symbol-stubs): New option.
8786 (darwin_picsymbol_stubs): New variable.
8787 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
8788 rename to TARGET_MACHO_PICSYM_STUBS.
8789 * config/i386/i386.c (output_pic_addr_const): Likewise.
8790 * config/i386/i386.h Likewise.
8791 * config/rs6000/darwin.h: Likewise.
8792 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
8793 darwin_picsymbol_stubs.
8795 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8797 * config/darwin.opt (prebind, noprebind, seglinkedit,
8798 noseglinkedit): Add RejectNegative.
8800 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8802 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
8803 in my previous patch.
8805 2019-06-16 Tom de Vries <tdevries@suse.de>
8807 PR tree-optimization/89376
8808 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
8810 2019-06-15 Maya Rashish <coypu@sdf.org>
8812 * doc/invoke.texi (Spec Files): Update location of the
8815 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
8817 * doc/extend.texi (Common Function Attributes): Clarify
8818 no_sanitize. Fix grammar.
8820 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
8822 * tree-ssa-alias.c (alias_stats): Add
8823 nonoverlapping_component_refs_p_may_alias,
8824 nonoverlapping_component_refs_p_no_alias,
8825 nonoverlapping_component_refs_of_decl_p_may_alias,
8826 nonoverlapping_component_refs_of_decl_p_no_alias.
8827 (dump_alias_stats): Dump them.
8828 (nonoverlapping_component_refs_of_decl_p): Add stats.
8829 (nonoverlapping_component_refs_p): Add stats; do not stop on first
8832 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
8834 * config/i386/i386.md (and<mode>3): Generate zero-extends for
8835 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
8837 (*anddi3_doubleword): Split before reload. Merge with
8838 anddi->zext pre-reload splitter.
8839 (*andndi3_doubleword): Split before reload.
8840 (*<code>di3_doubleword): Ditto.
8841 (*one_cmpldi2_doubleword): Ditto.
8843 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8846 * gimplify.c: Include omp-offload.h and context.h.
8847 (gimplify_bind_expr): Add "omp declare target" attributes
8848 to static block scope variables inside of target region or target
8851 2019-06-15 Tom de Vries <tdevries@suse.de>
8853 PR tree-optimization/90009
8854 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
8855 Return NULL if bb contains IFN_UNIQUE.
8857 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
8859 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
8860 (un): New define_mode_attr.
8861 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
8862 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
8863 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
8865 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
8867 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
8869 * config/darwin.opt: Add RejectNegative where needed, reorder
8870 and add minimal functional descriptions.
8872 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8874 PR rtl-optimization/90765
8875 * calls.c (update_stack_alignment_for_call): New function.
8876 (expand_call): Call update_stack_alignment_for_call when
8877 outgoing parameter is passed in the stack.
8878 (emit_library_call_value_1): Likewise.
8879 * function.c (locate_and_pad_parm): Don't update
8880 stack_alignment_needed and preferred_stack_boundary.
8882 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8885 * config/i386/i386-features.c
8886 (dimode_scalar_chain::compute_convert_gain): Replace
8887 mmxsse_to_integer with sse_to_integer.
8888 * config/i386/i386.c (ix86_register_move_cost): Verify that
8889 moves between MMX and non-MMX units require secondary memory.
8890 Correct costs of moves between SSE and integer units.
8891 * config/i386/i386.h (processor_costs): Rename cost of moving
8892 SSE register to integer to sse_to_integer. Rename cost of
8894 2019-06-14 Matt Thomas <matt@3am-software.com>
8895 Matthew Green <mrg@eterna.com.au>
8896 Nick Hudson <skrll@netbsd.org>
8897 Maya Rashish <coypu@sdf.org>
8898 Richard Earnshaw <rearnsha@arm.com>
8900 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
8901 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
8902 * config/arm/netbsd-eabi.h: New file.
8903 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
8905 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
8906 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
8907 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
8908 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
8910 2019-06-14 Richard Biener <rguenther@suse.de>
8912 * tree-loop-distribution.c (classify_partition): Return
8913 whether a reduction appeared in all partitions and do not
8914 stop builtin detection because of this.
8915 (distribute_loop): Sort a non-builtin partition last if
8916 there's a reduction in all partitions and make sure the
8917 partition prevailing as last is not a builtin.
8919 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
8922 * ipa-prop.c (add_to_agg_contents_list): New function.
8923 (clobber_by_agg_contents_list_p): Likewise.
8924 (extract_mem_content): Likewise.
8925 (get_place_in_agg_contents_list): Delete.
8926 (determine_known_aggregate_parts): Renamed from
8927 determine_locally_known_aggregate_parts. New parameter
8930 2019-06-13 Martin Sebor <msebor@redhat.com>
8932 PR tree-optimization/90662
8933 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
8936 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
8939 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
8940 dbase is not TARGET_MEM_REF.
8942 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8944 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
8946 (and<mode>3): Use gen_extend_insn instead of indirect functions.
8947 Do not generate DImode extends for 32bit targets.
8948 (and->zext post-reload splitter): Use gen_extend_insn
8949 instead of indirect functions.
8950 (anddi->zext pre-reload splitter): New.
8951 (*zext<mode>_doubleword_and): Remove.
8952 (*zext<mode>_doubleword): Ditto.
8953 (*zextsi_doubleword): Dittto.
8955 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8957 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
8958 Use gen_sub3_insn instead of indirect function.
8959 (ix86_expand_ashl_const): Use gen_add2_insn instead of
8961 (ix86_adjust_counter): Ditto.
8963 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
8964 Lijia He <helijia@linux.ibm.com>
8966 PR tree-optimization/77820
8967 * tree-ssa-threadedge.c
8968 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
8970 (thread_across_edge): Add call to
8971 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
8973 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
8975 * config/darwin-driver.c (validate_macosx_version_min): New.
8976 (darwin_default_min_version): Cleanup and validate supplied version.
8977 (darwin_driver_init): Likewise and push cleaned version into opts.
8979 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
8981 PR tree-optimization/90869
8982 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
8983 converts in MEM_REF referencing decl rather than view converts
8984 from decl type to MEM_REF type.
8986 2019-06-13 Richard Biener <rguenther@suse.de>
8988 PR tree-optimization/90856
8989 * tree-sra.c (build_ref_for_model): Only use
8990 build_reconstructed_reference when address-spaces are the same.
8992 2019-06-13 Jakub Jelinek <jakub@redhat.com>
8994 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
8995 wrap ei variable name in the declaration in ()s.
8996 (nvptx_single): Actually use mode_label variable. Formatting fix.
8998 2019-06-13 Richard Biener <rguenther@suse.de>
9000 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9001 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9002 also return the condition stmt.
9003 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9004 loop we can version and version that, reusing the loop version
9005 created by if-conversion instead of versioning again.
9007 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9009 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9011 * tree-vrp (value_range_base::may_contain_p): Call into
9013 (value_inside_range): Make private inside value_range_base class.
9014 Take min/max from *this.
9015 (range_includes_p): Remove.
9016 * tree-vrp.h (value_range_base): Add value_inside_range.
9017 (range_includes_p): Remove.
9018 (range_includes_zero_p): Call may_contain_p.
9019 * vr-values.c (compare_range_with_value): Same.
9021 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9023 * doc/extend.texi (ARC Function Attributes): Update info.
9025 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9027 PR tree-optimization/89713
9028 * doc/invoke.texi (-ffinite-loops): Document new option.
9029 * common.opt (-ffinite-loops): New option.
9030 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9031 IFN_GOACC_LOOP calls as necessary.
9032 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9034 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9035 IFN_GOACC_LOOP call is not used.
9036 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9038 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9041 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9042 compare_type is not with Pmode size, we will create an IV with
9043 Pmode size with truncated use (i.e. converted to the correct type).
9044 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9045 (vect_iv_limit_for_full_masking): New. Factored out of
9046 vect_set_loop_condition_masked.
9047 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9048 (vect_iv_limit_for_full_masking): Declare.
9050 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9053 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9054 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9055 (get_alias_ptr_type_for_ptr_address): Likewise.
9056 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9057 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9058 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9061 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9063 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9065 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9067 * common/config/pru/pru-common.c: New file.
9068 * config.gcc: Add PRU target.
9069 * config/pru/alu-zext.md: New file.
9070 * config/pru/constraints.md: New file.
9071 * config/pru/predicates.md: New file.
9072 * config/pru/pru-opts.h: New file.
9073 * config/pru/pru-passes.c: New file.
9074 * config/pru/pru-pragma.c: New file.
9075 * config/pru/pru-protos.h: New file.
9076 * config/pru/pru.c: New file.
9077 * config/pru/pru.h: New file.
9078 * config/pru/pru.md: New file.
9079 * config/pru/pru.opt: New file.
9080 * config/pru/t-pru: New file.
9081 * doc/extend.texi: Document PRU pragmas.
9082 * doc/invoke.texi: Document PRU-specific options.
9083 * doc/md.texi: Document PRU asm constraints.
9085 2019-06-12 Martin Sebor <msebor@redhat.com>
9088 * tree-pretty-print.c (dump_mem_ref): New function. Include
9089 MEM_REF type in output when different size than operand.
9090 (dump_generic_node): Move code to dump_mem_ref and call it.
9092 2019-06-12 Martin Sebor <msebor@redhat.com>
9094 PR tree-optimization/90662
9095 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9098 2019-06-12 Tom de Vries <tdevries@suse.de>
9100 PR tree-optimization/90009
9101 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9103 2019-06-12 Martin Liska <mliska@suse.cz>
9105 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9107 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9108 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9109 Do not sanitize created maps.
9111 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9113 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9114 value_range::singleton_p.
9115 * tree-vrp.c (value_range_constant_singleton): Remove.
9116 * tree-vrp.h (value_range_constant_singleton): Remove.
9117 * vr-values.c (vr_values::singleton): Use
9118 value_range::singleton_p.
9120 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9123 * cfgexpand.c (align_local_variable): Add really_expand argument,
9124 don't SET_DECL_ALIGN if it is false.
9125 (add_stack_var): Add really_expand argument, pass it through to
9126 align_local_variable.
9127 (expand_one_stack_var_1): Pass true as really_expand to
9128 align_local_variable.
9129 (expand_one_ssa_partition): Pass true as really_expand to
9131 (expand_one_var): Pass really_expand through to add_stack_var.
9133 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9135 * config/arm/iterators.md (VABAL): New int iterator.
9136 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9137 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9138 UNSPEC_VABAL_U values.
9140 2019-06-12 Martin Liska <mliska@suse.cz>
9142 * value-prof.c (stream_out_histogram_value): Only first value
9145 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9148 * symtab.c (symtab_node::set_section): Allow being called on aliases
9149 as long as they aren't analyzed yet.
9151 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9153 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9154 to `mips_set_text_contents_type' to indicate whether a
9155 non-debug insn follows.
9157 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9159 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9160 enabling -mpcrel by default.
9161 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9162 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9163 that the test against -mcpu=future is done first. Then test if
9164 -mprefixed-addr is on for -mpcrel.
9165 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9167 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9170 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9173 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9175 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9177 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9179 PR c++/90449 - add -Winaccessible-base option.
9180 * doc/invoke.texi (Winaccessible-base): Document.
9182 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9184 PR tree-optimization/62041
9185 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9187 2019-06-11 Jason Merrill <jason@redhat.com>
9189 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9190 * tree.c (get_tree_code_name): Likewise.
9191 * print-tree.c (print_node): Only briefly print a node with an
9194 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9197 * trans-mem.c (tm_memopt_compute_available): Add assertion
9198 that blocks is not empty. Formatting fix.
9200 2019-06-11 Martin Liska <mliska@suse.cz>
9203 * hash-table.h: Extend create_gcc, add one parameter
9204 that is passed into hash_table::hash_table.
9206 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9208 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9210 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9211 Emit clobber also for non-sse operations.
9212 (ix86_split_fp_absneg_operator): New function.
9213 * config/i386/i386.md (SSEMODEF): New mode iterator.
9214 (ssevecmodef): New mode attribute.
9215 (<code>tf2): Use absneg code iterator.
9216 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9217 Add three-operand AVX alternatives.
9218 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9219 Use absneg code iterator and X87MODEF mode iterator.
9220 (absneg fp_reg non-sse splitter): Call absneg code iterator
9221 and X87MODEF mode iterator.
9222 (absneg general_reg non-sse splitter): Use absneg code iterator
9223 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9224 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9225 code iterator. Add three-operand AVX alternative.
9226 (absneg sse_reg splitter): Use absneg code iterator
9227 and SSEMODEF mode iterator. Handle AVX operands.
9228 (absneg fp_reg splitter): Use absneg code iterator
9229 and MODEF mode iterator.
9230 (absneg general_reg splitter): Merge splitters using MODEF mode
9231 iterator. Use absneg code iterator. Call
9232 ix86_split_fp_absneg_operator.
9233 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9234 Do not enable for non-sse modes before reload.
9237 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9238 ssevecmodef mode attribute instaed of CSGNVMODE.
9239 (copysign<mode>3_const): Ditto.
9240 (copysign<mode>3_var): Ditto.
9241 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9242 Use absneg code iterator. Simplify code using std::swap.
9243 * config/i386/predicates.md (absneg_operator): Remove.
9245 2019-06-10 Martin Sebor <msebor@redhat.com>
9247 * gimple-fold.c (get_range_strlen): Update comment that didn't
9248 make it into r267503 or related commits.
9250 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9252 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9253 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9255 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9257 * tree.def (OMP_SCAN): New tree code.
9258 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9259 OMP_CLAUSE_EXCLUSIVE.
9260 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9261 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9262 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9263 OMP_CLAUSE_{IN,EX}CLUSIVE.
9264 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9265 * tree-nested.c (convert_nonlocal_reference_stmt,
9266 convert_local_reference_stmt, convert_gimple_call): Handle
9268 * tree-pretty-print.c (dump_omp_clause): Handle
9269 OMP_CLAUSE_{IN,EX}CLUSIVE.
9270 (dump_generic_node): Handle OMP_SCAN.
9271 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9272 * gimple.h (gomp_scan): New type.
9273 (is_a_helper <gomp_scan *>::test,
9274 is_a_helper <const gomp_scan *>::test): New templates.
9275 (gimple_build_omp_scan): Declare.
9276 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9277 gimple_omp_scan_set_clauses): New inline functions.
9278 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9279 * gimple.c (gimple_build_omp_scan): New function.
9280 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9281 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9282 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9283 GIMPLE_OMP_TASKGROUP.
9284 (dump_gimple_omp_scan): New function.
9285 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9286 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9287 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9288 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9289 (is_gimple_stmt): Handle OMP_SCAN.
9290 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9291 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9292 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9293 mentioned in nested #pragma omp scan. Handle
9294 OMP_CLAUSE_{IN,EX}CLUSIVE.
9295 (gimplify_expr): Handle OMP_SCAN.
9296 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9297 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9299 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9302 2019-06-10 Martin Liska <mliska@suse.cz>
9304 * ipa-cp.c (ignore_edge_p): New function.
9305 (build_toporder_info): Use it.
9306 * ipa-inline.c (ignore_edge_p): New function.
9307 (inline_small_functions): Use it.
9308 * ipa-pure-const.c (ignore_edge_for_nothrow):
9309 Verify opt_for_fn for caller and callee.
9310 (ignore_edge_for_pure_const): Likewise.
9311 * ipa-reference.c (ignore_edge_p): Extend to check
9313 * ipa-utils.c (searchc): Refactor.
9314 * ipa-utils.h: Fix coding style.
9316 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9318 * config/arc/arc.c (arc_rtx_costs): Update costs.
9320 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9322 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9323 (arc_split_ior): Likewise.
9324 (arc_check_mov_const): Likewise.
9325 (arc_split_mov_const): Likewise.
9326 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
9327 (arc_rtx_costs): Replace check Crr with Cax constraint.
9328 (prepare_move_operands): Cleanup, remove unused code.
9329 (arc_split_ior): New function.
9330 (arc_check_ior_const): Likewise.
9331 (arc_split_mov_const): Likewise.
9332 (arc_check_mov_const): Likewise.
9333 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
9334 in define_insn_and_split pattern.
9336 (mulsi3_v2): Add new matching variant.
9337 (andsi3_i): Cleanup pattern.
9338 (rotrsi3_cnt1): Update pattern.
9339 (rotrsi3_cnt8): New pattern.
9340 (ashlsi2_cnt8): Likewise.
9341 (ashlsi2_cnt16): Likewise.
9342 * config/arc/constraints.md (C0p): Update constraint.
9347 2019-06-10 Martin Liska <mliska@suse.cz>
9349 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
9350 Update coding style.
9351 (sem_item_optimizer::dump_cong_classes):
9352 Print how many items are in a non-singular class. Improve
9355 2019-06-10 Martin Liska <mliska@suse.cz>
9357 * value-prof.c (dump_histogram_value): Change dump format.
9358 (gimple_mod_subtract_transform): Remove legacy comment.
9360 2019-06-10 Martin Liska <mliska@suse.cz>
9362 * value-prof.c (dump_histogram_value): Print histogram values
9365 2019-06-10 Martin Liska <mliska@suse.cz>
9367 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
9368 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
9369 * ipa-profile.c (ipa_profile_generate_summary):
9370 Use get_most_common_single_value.
9371 * tree-profile.c (gimple_init_gcov_profiler):
9372 Instrument with __gcov_one_value_profiler_v2
9373 and __gcov_indirect_call_profiler_v4.
9374 * value-prof.c (dump_histogram_value):
9375 Print all values for HIST_TYPE_SINGLE_VALUE.
9376 (stream_out_histogram_value): Update assert for
9378 (stream_in_histogram_value): Set number of
9379 counters for HIST_TYPE_SINGLE_VALUE.
9380 (get_most_common_single_value): New.
9381 (gimple_divmod_fixed_value_transform):
9382 Use get_most_common_single_value.
9383 (gimple_ic_transform): Likewise.
9384 (gimple_stringops_transform): Likewise.
9385 (gimple_find_values_to_profile): Set number
9386 of counters for HIST_TYPE_SINGLE_VALUE.
9387 * value-prof.h (get_most_common_single_value): New.
9389 2019-06-10 Martin Liska <mliska@suse.cz>
9391 * hash-map.h: Pass default value to hash_table ctor.
9392 * hash-table.h: Add default value to call of a ctor.
9394 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
9396 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
9397 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
9399 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
9402 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
9403 Call pa_output_function_label.
9404 (TARGET_ASM_FUNCTION_PROLOGUE): define.
9405 * config/pa/pa-protos.h (pa_output_function_label): Declare.
9406 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
9408 (pa_linux_output_function_prologue): Declare.
9409 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
9410 (pa_output_function_label): New.
9411 (pa_output_function_prologue): Revise to use pa_output_function_label.
9412 (pa_linux_output_function_prologue): New.
9413 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
9415 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
9417 * tree-vrp.h (value_range_base::intersect): New.
9418 (value_range::intersect_helper): Move from here...
9419 (value_range_base::intersect_helper): ...to here.
9420 * tree-vrp.c (value_range::intersect_helper): Rename to...
9421 (value_range_base::intersect_helper): ...this, and rewrite to
9422 return a value instead of modifying THIS in place.
9423 Also, move equivalence handling...
9424 (value_range::intersect): ...here, while calling intersect_helper.
9425 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
9427 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
9429 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
9431 2019-06-07 Jakub Jelinek <jakub@redhat.com>
9433 * Makefile.in (genprogerr): Add condmd.
9434 (genprog): Remove it here.
9436 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
9438 * doc/invoke.texi (AMD GCN Options): Add gfx906.
9440 2019-06-07 Richard Biener <rguenther@suse.de>
9443 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
9444 that appear after user labels.
9446 2019-06-07 Martin Liska <mliska@suse.cz>
9448 * cselib.c (cselib_init): Disable hash table
9450 * hash-set.h: Pass new default argument to m_table.
9451 * hash-table.c: Add global variable with hash table
9453 * hash-table.h (Allocator>::hash_table): Add new argument
9455 (hashtab_chk_error): New.
9456 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
9457 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
9458 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
9460 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9462 * common.opt (flto-odr-type-merging): Ignore.
9463 * invoke.texi (-flto-odr-type-merging): Remove.
9464 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
9465 (can_be_vtable_hashed_p): Remove.
9466 (hash_odr_vtable): Remove.
9467 (odr_vtable_hasher::hash): Remove.
9468 (types_same_for_odr): Remove.
9469 (types_odr_comparable): Remove.
9470 (odr_vtable_hasher::equal): Remove.
9471 (odr_vtable_hash_type, odr_vtable_hash): Remove.
9472 (add_type_duplicate): Do not synchronize vtable and name hashtables.
9473 (get_odr_type): Do not use vtable hash.
9474 (dump_odr_type): Remove commented out code.
9475 (build_type_inheritance_graph): Do not allocate vtable hash.
9476 (rebuild_type_inheritance_graph): Do not delete vtable hash.
9477 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
9478 (odr_type_p): Likewise.
9479 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
9482 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9484 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
9485 immediately after same_types_for_tbaa_p returns -1 and continue
9486 looking for possible exact match; if matching types are arrays
9487 watch for partial overlaps.
9488 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
9489 (indirect_refs_may_alias_p): Do type based disambiguation first;
9492 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
9494 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
9496 2019-06-07 Martin Liska <mliska@suse.cz>
9498 * doc/invoke.texi: Remove param.
9499 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
9501 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
9502 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
9503 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
9504 * profile.c (instrument_values): Remove
9505 HIST_TYPE_INDIR_CALL_TOPN.
9506 * tree-profile.c (init_ic_make_global_vars):
9507 Always build __gcov_indirect_call only.
9508 (gimple_init_gcov_profiler): Remove usage
9509 of PARAM_INDIR_CALL_TOPN_PROFILE.
9510 (gimple_gen_ic_profiler): Likewise.
9511 * value-prof.c (dump_histogram_value): Likewise.
9512 (stream_in_histogram_value): Likewise.
9513 (gimple_indirect_call_to_profile): Likewise.
9514 (gimple_find_values_to_profile): Likewise.
9515 * value-prof.h (enum hist_type): Likewise.
9517 2019-06-07 Martin Liska <mliska@suse.cz>
9519 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
9522 2019-06-07 Martin Liska <mliska@suse.cz>
9524 PR tree-optimization/78902
9525 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
9526 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
9527 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9528 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9529 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
9530 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9531 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
9532 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
9533 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9534 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9535 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9536 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
9537 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
9539 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
9540 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
9541 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
9542 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9543 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9544 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
9545 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9546 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9547 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
9548 warn_unused_result attribute.
9549 (BUILT_IN_STRDUP): Likewise.
9550 (BUILT_IN_STRNDUP): Likewise.
9551 (BUILT_IN_ALLOCA): Likewise.
9552 (BUILT_IN_CALLOC): Likewise.
9553 (BUILT_IN_MALLOC): Likewise.
9554 (BUILT_IN_REALLOC): Likewise.
9556 2019-06-06 Jim Wilson <jimw@sifive.com>
9559 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
9560 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
9561 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
9563 2019-06-06 Martin Sebor <msebor@redhat.com>
9565 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
9566 (handle_builtin_malloc): Remove trailing spaces.
9567 (handle_builtin_memset): Same.
9568 (handle_builtin_memcmp): Same.
9569 (compute_string_length): Same.
9570 (determine_min_objsize): Same.
9571 (handle_builtin_string_cmp): Same.
9572 (handle_char_store): Same. Break up excessively long line.
9574 2019-06-06 Martin Jambor <mjambor@suse.cz>
9576 * tree-sra.c (build_reconstructed_reference): Drop the alignment
9579 2019-06-06 Martin Jambor <mjambor@suse.cz>
9581 * tree-sra.c (struct access): New field grp_same_access_path.
9582 (dump_access): Dump it.
9583 (build_reconstructed_reference): New function.
9584 (build_ref_for_model): Use it if possible.
9585 (path_comparable_for_same_access): New function.
9586 (same_access_path_p): Likewise.
9587 (sort_and_splice_var_accesses): Set the new flag.
9588 (analyze_access_subtree): Likewise.
9589 (propagate_subaccesses_across_link): Propagate zero value of the new
9590 flag down the access tree.
9592 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
9594 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
9595 * config/gcn/gcn.opt (gpu_type): Add gfx906.
9596 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
9597 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
9600 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9602 PR tree-optimization/90332
9603 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
9604 Handle VALS containing two vectors.
9605 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
9607 (@aarch64_combinez<mode>): ... This.
9608 (*aarch64_combinez_be<mode>): Rename to...
9609 (@aarch64_combinez_be<mode>): ... This.
9610 (vec_init<mode><Vhalf>): New define_expand.
9611 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
9613 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9615 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
9616 library functions only when not optimizing for size.
9617 (ashlsi3): Likewise.
9618 (ashrhi3): Likewise.
9619 (ashrsi3): Likewise.
9620 (lshrhi3): Likewise.
9621 (lshrsi3): Likewise.
9623 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
9625 PR rtl-optimization/88751
9626 * ira.c (ira): Use the number of the actually referenced registers
9627 when calculating the threshold.
9629 2019-06-06 Jakub Jelinek <jakub@redhat.com>
9631 * configure: Regenerate.
9633 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9635 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
9636 register if it is in memory, so the shift can be emulated with a rotate
9638 (ashrhi3): Likewise.
9639 (lshrhi3): Likewise.
9641 2019-06-06 Martin Liska <mliska@suse.cz>
9643 PR tree-optimization/87954
9644 * match.pd: Simplify mult where both arguments are 0 or 1.
9646 2019-06-06 Richard Biener <rguenther@suse.de>
9648 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
9649 put equivalences on UNDEFINED ranges.
9650 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9651 Make sure to drop defs of stmts added during simplification
9654 2019-06-06 Richard Biener <rguenther@suse.de>
9656 * tree-ssa-structalias.c: Include tree-cfg.h.
9657 (make_heapvar): Do not make heap vars artificial.
9658 (find_func_aliases_for_builtin_call): Handle stack allocation
9660 (find_func_aliases): Delay processing of simple enough returns
9662 (set_uids_in_ptset): Adjust.
9663 (find_what_var_points_to): Likewise.
9664 (solve_constraints): Do not dump points-to sets here.
9665 (compute_points_to_sets): Post-process return statements,
9666 amending the escaped solution. Dump points-to sets afterwards.
9667 (ipa_pta_execute): Dump points-to sets.
9669 2019-06-06 Martin Liska <mliska@suse.cz>
9672 * doc/install.texi: Fix HTML headers and
9673 titles for 'Installing GCC' pages.
9675 2019-06-06 Martin Liska <mliska@suse.cz>
9677 * ipa-icf-gimple.h (dump_message_1): Remove.
9678 (dump_message): Likewise.
9679 (return_false_with_message_1): Print also file.
9680 (return_false_with_msg): Likewise.
9681 (return_with_result): Likewise.
9682 (return_with_debug): Likewise.
9683 * ipa-icf.c (sem_function::equals_private): Remove call
9686 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9688 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
9689 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
9690 memory operand for it.
9691 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
9693 2019-06-05 Martin Sebor <msebor@redhat.com>
9695 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
9696 Adjust quoting and hyphenation.
9697 * convert.c (convert_to_real_1): Same.
9698 * gcc.c (driver_wrong_lang_callback): Same.
9699 (driver::handle_unrecognized_options): Same.
9700 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
9701 * opts-common.c (cmdline_handle_error): Same.
9702 (read_cmdline_option): Same.
9703 * opts-global.c (complain_wrong_lang): Same.
9704 (print_ignored_options): Same.
9705 (handle_common_deferred_options): Same.
9706 * pretty-print.h: Same.
9707 * print-rtl.c (debug_bb_n_slim): Same.
9708 * sched-rgn.c (make_pass_sched_fusion): Same.
9709 * tree-cfg.c (verify_gimple_assign_unary): Same.
9710 (verify_gimple_label): Same.
9711 * tree-ssa-operands.c (verify_ssa_operands): Same.
9712 * varasm.c (do_assemble_alias): Same.
9713 (assemble_alias): Same.
9715 2019-06-05 Richard Henderson <rth@twiddle.net>
9717 * config/alpha/alpha.c (direct_return): Move down after
9718 struct machine_function definition; use saved frame_size;
9720 (struct machine_function): Add sa_mask, sa_size, frame_size.
9721 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
9722 (alpha_compute_frame_layout): ... new function.
9723 (TARGET_COMPUTE_FRAME_LAYOUT): New.
9724 (alpha_initial_elimination_offset): Use saved sa_size.
9725 (alpha_vms_initial_elimination_offset): Likewise.
9726 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
9727 (alpha_expand_prologue): Use saved frame data. Merge integer
9728 and fp register save loops.
9729 (alpha_expand_epilogue): Likewise.
9730 (alpha_start_function): Use saved frame data.
9731 * config/alpha/alpha-protos.h (direct_return): Update.
9732 (alpha_sa_size): Remove.
9734 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
9736 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
9737 multiplication by a power-of-two value.
9738 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
9739 and turn the modulo operation into a masking operation.
9741 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9744 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
9745 with VOIDmode inner operands.
9747 2019-06-05 Richard Biener <rguenther@suse.de>
9750 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9751 turn an expression graph into a tree.
9753 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9755 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
9757 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
9758 treat it like explicit monotonic schedule modifier.
9759 (expand_omp_for): Initialize has_lastprivate_conditional.
9760 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
9763 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
9764 references, lookup in in hash map MEM_REF operand instead of the
9766 (lower_omp_1): When looking for lastprivate conditional assignments,
9767 handle MEM_REFs with REFERENCE_TYPE operands.
9769 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
9770 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
9771 and references a VLA. Handle references to non-VLAs if is_simd
9772 all privatization clauses like reductions.
9773 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
9774 If omp_is_reference, use always omp simd arrays and set
9775 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
9776 fails, emit reference initialization.
9778 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9781 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
9782 _mm_mask_fpclass_sd_mask): New intrinsics.
9783 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
9784 * config/i386/i386-builtin.def
9785 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
9787 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
9788 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
9789 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
9790 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
9791 case QI_FTYPE_V2SF_INT): Ditto.
9792 * config/i386/sse.md
9793 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
9794 Extended to insnstructions with mask operands.
9796 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9798 * config/rs6000/constraints.md (define_register_constraint "wp"):
9800 (define_register_constraint "wq"): Delete.
9801 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9802 (rs6000_init_hard_regno_mode_ok): Adjust.
9803 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9804 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
9805 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
9806 (define_mode_attr VSa): Delete.
9807 (define_mode_attr VSisa): New.
9808 (rest of file): Adjust.
9809 * doc/md.texi (Machine Constraints): Adjust.
9811 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9813 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
9814 (define_attr "enabled"): Handle those new isa values.
9816 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9818 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
9819 (define_mode_attr VSr5): Delete.
9820 (define_mode_attr VStype_sqrt): Delete.
9821 (define_mode_iterator VSX_SPDP): Delete.
9822 (define_mode_attr VS_spdp_res): Delete.
9823 (define_mode_attr VS_spdp_insn): Delete.
9824 (define_mode_attr VS_spdp_type): Delete.
9825 (*vsx_sqrt<mode>2): Adjust.
9826 (vsx_<VS_spdp_insn>): Delete, split to...
9827 (vsx_xscvdpsp): ... this. New. And...
9828 (vsx_xvcvspdp): ... this. New. And...
9829 (vsx_xvcvdpsp): ... this. New.
9831 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9833 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
9835 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
9836 (rest of file): Adjust.
9838 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9840 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
9841 (vsx_extract_<mode>_var): Ditto.
9843 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9845 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
9848 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9850 * config/rs6000/constraints.md (define_register_constraint "ww"):
9852 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9853 (rs6000_init_hard_regno_mode_ok): Adjust.
9854 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9855 RS6000_CONSTRAINT_ww.
9856 * config/rs6000/rs6000.md: Adjust.
9857 * config/rs6000/vsx.md: Adjust.
9858 * doc/md.texi (Machine Constraints): Adjust.
9860 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9862 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
9863 (define_mode_attr sd): New.
9864 (define_mode_attr s): New.
9865 (define_mode_attr Ftrad): Delete.
9866 (define_mode_attr Fvsx): Delete.
9867 (define_mode_attr Fs): Delete.
9868 (rest of file): Use the new mode attributes.
9869 * config.rs6000/vsx.md: Use the new mode attributes.
9871 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9873 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
9876 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9878 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
9879 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
9880 used with VSX_B, VSX_D, or VSX_F, with just "wa".
9882 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
9885 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
9886 C++ with strict ANSI requirements.
9888 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
9890 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
9891 computations when step is 1.
9893 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9895 * config/rs6000/constraints.md (define_register_constraint "wf"):
9897 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9898 (rs6000_init_hard_regno_mode_ok): Adjust.
9899 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9900 RS6000_CONSTRAINT_wf.
9901 * config/rs6000/rs6000.md: Adjust.
9902 * config/rs6000/vsx.md: Adjust.
9903 * doc/md.texi (Machine Constraints): Adjust.
9905 2019-06-04 Andrew Pinski <apinski@marvell.com>
9907 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
9910 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9912 * config/rs6000/constraints.md (define_register_constraint "wd"):
9914 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9915 (rs6000_init_hard_regno_mode_ok): Adjust.
9916 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9917 RS6000_CONSTRAINT_wd.
9918 * config/rs6000/rs6000.md: Adjust.
9919 * config/rs6000/vsx.md: Adjust.
9920 * doc/md.texi (Machine Constraints): Adjust.
9922 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9924 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
9925 (rest of file): Adjust.
9927 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9929 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
9930 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
9931 (vsx_splat_<mode>_reg): Adjust.
9933 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9935 * config/rs6000/constraints.md (define_register_constraint "ws"):
9937 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9938 (rs6000_init_hard_regno_mode_ok): Adjust.
9939 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9940 RS6000_CONSTRAINT_ws.
9941 * config/rs6000/rs6000.md: Adjust.
9942 * config/rs6000/vsx.md: Adjust.
9943 * doc/md.texi (Machine Constraints): Adjust.
9945 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9947 * config/rs6000/constraints.md (define_register_constraint "wv"):
9949 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9950 (rs6000_init_hard_regno_mode_ok): Adjust.
9951 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9952 RS6000_CONSTRAINT_wv.
9953 * config/rs6000/rs6000.md: Adjust.
9954 * config/rs6000/vsx.md: Adjust.
9955 * doc/md.texi (Machine Constraints): Adjust.
9957 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9959 * config/rs6000/constraints.md (define_register_constraint "wi"):
9961 (define_register_constraint "wt"): Delete.
9962 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9963 (rs6000_init_hard_regno_mode_ok): Adjust.
9964 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9965 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
9966 * config/rs6000/rs6000.md: Adjust.
9967 * config/rs6000/vsx.md: Adjust.
9968 * doc/md.texi (Machine Constraints): Adjust.
9970 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
9972 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
9974 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
9975 default_elf_asm_output_external.
9977 2019-06-04 Martin Liska <mliska@suse.cz>
9979 * ipa-icf.c (INCLUDE_LIST): Remove.
9980 (sem_item_optimizer::execute): Remove call to init_wpa.
9981 * ipa-icf.h (init_wpa): Remove.
9983 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9985 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
9986 conditional on combined for simd.
9987 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
9989 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
9990 constructs, don't remove lastprivate_conditional_map, but instead set
9991 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
9992 to parent construct temporaries.
9993 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
9994 like !ctx->lastprivate_conditional_map.
9995 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
9996 use up->outer context instead of up.
9997 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
9998 gimple_omp_for_combined_p.
9999 (expand_omp_for_static_nochunk): Likewise.
10000 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10001 probably moved over into expand_omp_for_generic rather than being copied
10004 2019-06-04 Martin Liska <mliska@suse.cz>
10006 * value-prof.c (dump_histogram_value): Fix typo.
10007 (gimple_mod_subtract_transform): Likewise.
10009 2019-06-04 Richard Biener <rguenther@suse.de>
10011 PR middle-end/90726
10012 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10013 (tree_contains_chrecs): Likewise.
10014 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10015 exponential behaivor from ...
10016 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10018 (expression_expensive_p): Avoid exponential behavior and compute
10019 expanded size, rejecting any expansion.
10020 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10021 (idx_contains_abnormal_ssa_name_p): Likewise.
10022 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10023 (contains_abnormal_ssa_name_p): Simplify and use
10024 walk_tree_without_duplicates.
10026 2019-06-04 Richard Biener <rguenther@suse.de>
10028 PR tree-optimization/90738
10030 2019-06-03 Richard Biener <rguenther@suse.de>
10032 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10033 full reference tree and record in ref->ref.
10034 (vn_reference_lookup_3): Pass in original ref to
10035 ao_ref_init_from_vn_reference.
10036 (vn_reference_lookup): Likewise.
10037 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10038 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10039 Handle non-decl bases in the original reference.
10041 2019-06-04 Martin Liska <mliska@suse.cz>
10043 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10044 number of references.
10045 (sem_item_optimizer::do_congruence_step):
10046 (sem_item_optimizer::worklist_push): Dump how references
10048 (sem_item_optimizer::worklist_pop): Use heap.
10049 (sem_item_optimizer::process_cong_reduction): Likewise.
10050 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10052 2019-06-04 Martin Liska <mliska@suse.cz>
10054 * ipa-icf.h (struct sem_usage_pair_hash): New.
10055 (sem_usage_pair_hash::hash): Likewise.
10056 (sem_usage_pair_hash::equal): Likewise.
10057 (struct sem_usage_hash): Likewise.
10058 * ipa-icf.c (sem_item::sem_item): Initialize
10059 referenced_by_count.
10060 (sem_item::add_reference): Register a reference
10061 in ref_map and not in target->usages.
10062 (sem_item::setup): Remove initialization of
10064 (sem_item::~sem_item): Remove usage of dead vectors.
10065 (sem_item::dump): Remove dump of references.
10066 (sem_item_optimizer::sem_item_optimizer): Initialize
10068 (sem_item_optimizer::read_section): Remove useless
10070 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10071 (sem_item_optimizer::build_graph): Pass m_references
10072 to ::add_reference.
10073 (sem_item_optimizer::verify_classes): Remove usage of dead
10075 (sem_item_optimizer::traverse_congruence_split): Return true
10076 when a class is split.
10077 (sem_item_optimizer::do_congruence_step_for_index): Use
10078 hash_map for look up of (sem_item *, index). That brings
10079 significant speed up.
10080 (sem_item_optimizer::do_congruence_step): Return true
10081 when a split is done.
10082 (congruence_class::is_class_used): Use referenced_by_count.
10084 2019-06-04 Alan Modra <amodra@gmail.com>
10087 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10090 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10092 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10093 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10094 (rs6000_secondary_reload_simple_move): Adjust.
10095 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10096 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10097 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10100 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10101 (floatunssi<mode>2_lfiwzx): Adjust.
10102 (fix_trunc<mode>si2_stfiwx): Adjust.
10103 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10104 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10105 (mfpgpr): Mark as deprecated.
10106 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10107 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10108 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10110 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10112 * config/rs6000/constraints.md (define_register_constraint "wg"):
10114 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10115 RS6000_CONSTRAINT_wg.
10116 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10117 (rs6000_init_hard_regno_mode_ok): Adjust.
10118 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10119 Delete "wg" alternatives.
10120 * doc/md.texi (Machine Constraints): Adjust.
10122 2019-06-03 Alan Modra <amodra@gmail.com>
10124 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10125 (get_uncond_jump_length): Assert length less than INT_MAX and
10128 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10130 PR middle-end/64242
10131 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10133 (expand_builtin_nonlocal_goto): Likewise.
10135 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10137 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10138 (aarch64_asm_output_external): Declare.
10139 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10140 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10141 (aarch64_asm_output_alias): New.
10142 (aarch64_asm_output_external): New.
10143 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10144 (ASM_OUTPUT_EXTERNAL): Define.
10146 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10147 * tree-vrp.h (value_range_base::nonzero_p): New.
10148 (value_range_base::set_nonnull): Rename to...
10149 (value_range_base::set_nonzero): ...this.
10150 (value_range_base::set_null): Rename to...
10151 (value_range_base::set_zero): ...this.
10152 (value_range::set_nonnull): Remove.
10153 (value_range::set_null): Remove.
10154 * tree-vrp.c (range_is_null): Remove.
10155 (range_is_nonnull): Remove.
10156 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10157 instead of range_is_*null.
10158 (extract_range_from_unary_expr): Same.
10159 (value_range_base::set_nonnull): Rename to...
10160 (value_range_base::set_nonzero): ...this.
10161 (value_range::set_nonnull): Remove.
10162 (value_range_base::set_null): Rename to...
10163 (value_range_base::set_zero): ...this.
10164 (value_range::set_null): Remove.
10165 (extract_range_from_binary_expr): Rename set_*null uses to
10167 (extract_range_from_unary_expr): Same.
10168 (union_helper): Same.
10169 * vr-values.c (get_value_range): Use set_*zero instead of
10171 (vr_values::extract_range_from_binary_expr): Same.
10172 (vr_values::extract_range_basic): Same.
10174 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10177 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10179 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10181 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10182 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10184 (aarch64_<su>abd<mode>_3): ... This.
10185 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10187 2019-06-03 Richard Biener <rguenther@suse.de>
10189 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10190 full reference tree and record in ref->ref.
10191 (vn_reference_lookup_3): Pass in original ref to
10192 ao_ref_init_from_vn_reference.
10193 (vn_reference_lookup): Likewise.
10194 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10195 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10196 Handle non-decl bases in the original reference.
10198 2019-06-03 Martin Liska <mliska@suse.cz>
10200 * doc/generic.texi: Remove Java Trees.
10202 2019-06-03 Martin Liska <mliska@suse.cz>
10204 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10205 returns 0 when operands are equal.
10207 2019-06-03 Richard Biener <rguenther@suse.de>
10209 PR tree-optimization/90716
10210 * tree-loop-distribution.c (destroy_loop): Process blocks in
10213 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10216 * vector-builder.h (vector_builder::count_dups): New method.
10217 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10219 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10220 (vec_init<mode><Vel>): New pattern.
10221 * config/aarch64/aarch64.c (emit_insr): New function.
10222 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10223 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10224 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10225 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10227 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10229 PR tree-optimization/90681
10230 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10231 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10232 special case for SLP, but fail on non-groupped loads.
10234 2019-06-03 Martin Liska <mliska@suse.cz>
10236 * cfg.c (debug): Use TDF_DETAILS for debug and
10237 print edge info only once.
10239 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10242 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10244 2019-06-01 Martin Sebor <msebor@redhat.com>
10246 PR middle-end/90694
10247 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10249 2019-05-31 Jan Hubicka <jh@suse.cz>
10251 * alias.c: Include ipa-utils.h.
10252 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10253 * ipa-devirt.c (prevailing_odr_type): New.
10254 * ipa-utils.h (previaling_odr_type): Declare.
10256 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10257 Hongtao Liu <hongtao.liu@intel.com>
10260 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10261 NOTE_INSN_DELETED_LABEL check.
10263 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10264 Robert Suchanek <robert.suchanek@mips.com>
10266 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10267 and 3rd operands of the fmadd/fmsub/maddv builtin.
10269 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10271 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10272 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10273 on OMP_SIMD if not nested inside of worksharing loop that also has
10274 lastprivate conditional clause for the same decl.
10275 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10276 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10278 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10280 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10282 (lower_lastprivate_clauses): Likewise.
10283 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10284 calling lower_rec_input_clauses.
10285 (lower_omp_for): Likewise.
10286 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10287 clause on simd construct.
10288 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10289 OMP_CLAUSE__CONDTEMP_ clause is present.
10291 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10294 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10297 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10298 TEX_D32, TEX_D64 or TEX_D128.
10300 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10302 * match.pd (~(vec?cst1:cst2)): New transformation.
10304 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10306 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10307 ((size_t)(A /[ex] B) CMP C): New transformation.
10309 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10311 * doc/md.texi: Document define_insn_and_rewrite.
10312 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10313 * gensupport.c (queue_elem): Update comment.
10314 (replace_operands_with_dups): New function.
10315 (gen_rewrite_sequence): Likewise.
10316 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10317 * read-rtl.c (apply_subst_iterator): Likewise.
10318 (add_condition_to_rtx, named_rtx_p): Likewise.
10319 (rtx_reader::read_rtx_operand): Likewise.
10320 * config/aarch64/aarch64-sve.md
10321 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10322 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10323 define_insn_and_rewrite.
10324 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
10325 Remove separate define_split.
10327 2019-05-31 Jan Hubicka <jh@suse.cz>
10329 * tree-ssa-alias.c (type_has_components_p): New function.
10330 (aliasing_component_refs_p): Use it.
10332 2019-05-31 Martin Liska <mliska@suse.cz>
10334 * gdbhooks.py: Add const_tree to TreePrinter.
10336 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
10339 * common.opt (feliminate-unused-debug-symbols): Enable by default.
10340 * doc/invoke.texi (Debugging Options): Document new default of
10341 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
10343 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10345 PR tree-optimization/90671
10346 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
10347 template_block used to be empty on the first call, don't use
10348 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
10349 seq with bb_seq and set it with set_bb_seq.
10351 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
10353 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
10355 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10356 Michael Meissner <meissner@linux.ibm.com>
10358 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
10359 (prefixed_mem_operand): Likewise.
10360 (non_prefixed_mem_operand): Likewise.
10361 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
10363 * config/rs6000/rs6000.c (print_operand_address): Handle
10364 PC-relative addresses.
10365 (mode_supports_prefixed_address_p): New function.
10366 (rs6000_prefixed_address): New function.
10367 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
10368 (SYMBOL_REF_PCREL_P): Likewise.
10370 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10372 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
10373 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
10374 (gimplify_omp_for): If worksharing loop with lastprivate conditional
10375 is nested inside of parallel region, add _condtemp_ clause to both.
10376 * tree-nested.c (convert_nonlocal_omp_clauses,
10377 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
10379 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
10381 * omp-general.c (omp_extract_for_data): Compute it.
10382 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
10383 (lower_rec_input_clauses): Likewise.
10384 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
10385 clause is already present, just add one further one after it.
10386 (lower_lastprivate_clauses): Handle cond_ptr with array type.
10387 (lower_send_shared_vars): Clear _condtemp_ vars.
10388 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
10389 or section or taskgroup.
10390 * omp-expand.c (determine_parallel_type): Disallow combining only if
10391 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
10392 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
10393 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10394 expand_omp_for_static_chunk, expand_omp_for): Use
10395 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
10396 determine if a special set of API routines are needed and if condtemp
10397 needs to be initialized, while always initialize cond_var if
10398 fd->lastprivate_conditional is non-zero.
10400 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10401 Michael Meissner <meissner@linux.ibm.com>
10403 * config/rs6000/constraints.md (eI): New constraint.
10404 * config/rs6000/predicates.md (cint34_operand): New predicate.
10405 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
10406 (SIGNED_34BIT_OFFSET_P): Likewise.
10407 * doc/md.texi (eI): Document constraint.
10409 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
10411 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
10413 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10414 Michael Meissner <meissner@linux.ibm.com>
10416 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
10417 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
10418 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
10419 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
10420 (OTHER_FUTURE_MASKS): Likewise.
10421 (POWERPC_MASKS): Likewise.
10422 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
10423 specified without -mprefixed-addr or -mcpu=future. Error if
10424 -mprefixed-addr is specified without -mcpu=future.
10425 (rs6000_opt_masks): Add entry for prefixed-addr.
10426 * rs6000.opt (mprefixed-addr): New option.
10428 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
10430 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
10431 cfun->is_thunk check.
10433 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10435 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
10438 2019-05-30 Martin Liska <mliska@suse.cz>
10440 * gdbinit.in: Fix 'ptc' command. Add trt
10441 that prints TREE_TYPE($).
10443 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
10444 Alan Modra <amodra@gmail.com>
10446 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
10448 (rs6000_indirect_call_template_1): ...and here.
10449 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
10450 plt16_ha, plt16_lo, mtctr indirect calls. Use
10451 rs6000_pltseq_enum.
10452 (rs6000_decl_ok_for_sibcall): New function.
10453 (rs6000_function_ok_for_sibcall): Refactor.
10454 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
10455 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
10456 when pcrel. Reorganize.
10457 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
10458 * rs6000.h (rs6000_pltseq_enum): New enum.
10459 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
10460 (*pltseq_tocsave): Use rs6000_pltseq_enum.
10461 (*pltseq_plt16_ha): Likewise.
10462 (*pltseq_plt16_lo): Likewise.
10463 (*pltseq_mtctr): Likewise.
10464 (*pltseq_plt_pcrel): New insn.
10465 (*call_local_aix): Handle @notoc calls.
10466 (*call_value_local_aix): Likewise.
10467 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
10468 (*call_value_nonlocal_aix): Likewise.
10469 (*call_indirect_pcrel): New insn.
10470 (*call_value_indirect_pcrel): Likewise.
10472 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
10474 * config/i386/sse.md (*save_multiple<mode>): Rename from
10475 save_multiple<mode>.
10476 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
10477 (*restore_multiple_and_return<mode>): Rename from
10478 restore_multiple_and_return<mode>.
10479 (*restore_multiple_leave_return<mode>): Rename from
10480 restore_multiple_leave_return<mode>.
10482 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
10484 * config.gcc (rx-*-linux*): New target.
10485 * config/rx/elf.opt: New file.
10486 * config/rx/linux.h: Likewise.
10487 * config/rx/t-linux: Likewise.
10488 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
10490 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
10491 (ASM_APP_OFF): Likewise.
10492 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
10495 2019-05-29 Jan Hubicka <jh@suse.cz>
10497 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
10498 variants are pointer equivalent.
10500 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10502 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
10503 * config/aarch64/aarch64-sve2.md: New file.
10504 (<u>avg<mode>3_floor): New pattern.
10505 (<u>avg<mode>3_ceil): Likewise.
10506 (*<sur>h<addsub><mode>): Likewise.
10507 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
10508 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
10510 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10513 * optc-save-gen.awk: In cl_optimization_print, use correct condition
10514 for var_opt_string printing. In cl_optimization_print_diff, print
10515 (null) instead of invoking undefined behavior if one of the
10516 var_opt_string pointers is NULL and use && instead of first || in the
10517 guarding condition. For var_target_other options, handle const char *
10518 target variables similarly to const char * optimize node variables.
10520 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
10522 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
10523 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
10524 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
10525 Add autib1716 and pacib1716 initialisation.
10526 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
10527 for autib1716 and pacib1716.
10528 * config/aarch64/aarch64-protos.h (aarch64_key_type,
10529 aarch64_post_cfi_startproc): Define.
10530 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
10531 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
10532 aarch64_handle_pac_ret_protection): Set default sign key to A.
10533 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
10534 aarch64_expand_prologue): Add check for b-key.
10535 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
10536 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
10537 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
10538 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
10539 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
10540 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
10541 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10542 * config/aarch64/aarch64.md (do_return): Add check for b-key.
10543 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
10544 pauth_hint_num_a with pauth_hint_num.
10545 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
10546 pauth_hint_num_a with pauth_hint_num.
10547 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
10548 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
10549 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10550 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
10551 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
10552 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
10553 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
10554 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10555 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
10556 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
10557 UNSPEC_AUTIA1716 respectively.
10558 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
10559 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
10560 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
10561 * doc/invoke.texi (-mbranch-protection): Add b-key type.
10562 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
10563 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
10565 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10567 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
10568 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
10569 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
10570 explicit clause on combined parallel into implicit shared clause.
10571 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
10572 and firstprivate if the decl has one too from combined parallel to
10573 the worksharing construct.
10575 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
10576 Michael Meissner <meissner@linux.ibm.com>
10578 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
10580 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
10582 * rtl.h (LABEL_REF_P): New #define.
10584 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
10586 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
10588 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10590 * internal-fn.c: Marked mask_load_direct as vectorizable.
10591 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
10592 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
10593 combined even if masks different with allow_slp_p param.
10594 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
10595 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
10596 dissolve SLP-only vectorizable groups when SLP has been discarded.
10597 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
10598 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
10600 (vect_build_slp_tree_1): Fixed comment typo.
10601 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
10602 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
10603 loads for SLP only.
10604 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
10606 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
10608 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10610 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
10611 Remove obsolete use_thunk reference.
10612 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10613 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10614 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10615 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10616 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10617 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10618 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10619 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10620 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10622 2019-05-28 Nathan Sidwell <nathan@acm.org>
10624 * tree.h (IDENTIFIER_ANON_P): New.
10625 (anon_aggrname_format, anon_aggname_p): Don't declare.
10626 (make_anon_name): Declare.
10627 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
10628 (hash_tree): Likewise.
10629 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
10630 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
10631 (anon_cnt, make_anon_name): New.
10633 2019-05-28 Martin Liska <mliska@suse.cz>
10636 * opts-global.c (decode_options): Print help for all
10637 help_option_arguments.
10638 * opts.c (print_help): Add new argument.
10639 (common_handle_option): Remember all values into
10640 help_option_arguments.
10641 * opts.h (print_help): Add new argument.
10643 2019-05-28 Martin Liska <mliska@suse.cz>
10646 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
10647 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
10648 (func_checker::compare_bb): Call compare_loops.
10650 2019-05-27 Jakub Jelinek <jakub@redhat.com>
10652 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10653 on sections construct.
10654 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
10656 (lower_omp_sections): Handle lastprivate conditional.
10657 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
10658 lastprivate_conditional_map.
10659 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
10661 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
10662 critical, taskgroup and section regions when looking for a region
10663 with non-NULL lastprivate_conditional_map.
10665 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10667 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
10668 (*ix86_gen_sub3): Ditto.
10669 (*ix86_gen_sub3_carry): Ditto.
10670 (*ix86_gen_one_cmpl2): Ditto.
10671 (*ix86_gen_andsp): Ditto.
10672 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
10673 (gen_and2_insn): New static function.
10674 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
10675 Use gen_add3_insn instead of ix86_gen_add3.
10676 (ix86_expand_split_stack_prologue): Use gen_add2_insn
10677 instead of ix86_gen_add3.
10678 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
10679 Use gen_sub3_insn instead of ix86_gen_sub3.
10680 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
10681 instead of ix86_gen_add3.
10682 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
10683 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
10684 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
10685 * config/i386/i386-options.c (ix86_option_override_internal):
10686 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
10687 ix86_gen_one_cmpl2 and ix86_gen_andsp.
10689 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
10691 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
10692 and DW_OP_GNU_const_index opcodes.
10694 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10696 * config/i386/i386.h (STACK_SIZE_MODE): Define.
10698 2019-05-27 Richard Biener <rguenther@suse.de>
10700 PR tree-optimization/90637
10701 * tree-ssa-sink.c (statement_sink_location): Honor the
10702 computed sink location for single-uses.
10704 2019-05-27 Richard Biener <rguenther@suse.de>
10706 PR middle-end/90610
10707 * match.pd (vec_perm): Avoid clobbering op0 when not generating
10710 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10712 * config/i386/i386.md (@sub<mode>3_carry): Rename
10713 from sub<mode>3_carry.
10714 (@leave_<mode>): New expander.
10715 (*leave): Rename from leave.
10716 (*leave_rex64): Rename from leave_rex64.
10717 (@monitorx_<mode>): Rename from monitorx_<mode>.
10718 (@clzero_<mode>): Rename from clzero_<mode>.
10719 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
10720 from sse3_monitor_<mode>.
10721 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
10722 (*ix86_gen_leave): Ditto.
10723 (*ix86_gen_monitor): Ditto.
10724 (*ix86_gen_monitorx): Ditto.
10725 (*ix86_gen_clzero): Ditto.
10726 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
10727 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
10728 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
10729 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
10730 Use gen_sse3_monitor instead of ix86_gen_monitor.
10731 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
10732 instead of ix86_gen_monitorx.
10733 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
10734 instead of ix86_gen_clzero.
10735 * config/i386/i386-options.c (ix86_option_override_internal):
10736 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
10737 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
10739 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10741 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
10742 Rename from tls_global_dynamic_64_<mode>.
10743 (@tls_local_dynamic_base_64_<mode>): Rename from
10744 tls_local_dynamic_base_64_<mode>.
10745 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
10746 Remove indirect function.
10747 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
10748 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
10749 instead of ix86_gen_tls_global_dynamic_64.
10750 Use gen_tls_local_dynamic_base_64 instead of
10751 ix86_gen_tls_local_dynamic_base_64.
10752 * config/i386/i386-options.c (ix86_option_override_internal):
10753 Do not initialize ix86_gen_tls_global_dynamic_64 and
10754 ix86_gen_tls_local_dynamic_base_64.
10756 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10758 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
10759 Rename from pro_epilogue_adjust_stack_<mode>_add.
10760 (@pro_epilogue_adjust_stack_sub_<mode>)
10761 Rename from pro_epilogue_adjust_stack_<mode>_sub.
10762 (@allocate_stack_worker_probe_<mode>):
10763 Rename from allocate_stack_worker_probe_<mode>.
10764 (allocate_stack): Use gen_allocate_stack_worker_probe.
10765 (probe_stack): Use gen_probe_stack_1.
10766 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
10767 (@adjust_stack_and_probe_<mode>): Rename from
10768 adjust_stack_and_probe<mode>.
10769 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
10770 (stack_protect_set): Use gen_stack_protect_set_1.
10771 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
10772 (stack_protect_test): Use gen_stack_protect_test_1.
10773 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
10774 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
10775 Remove indirect function.
10776 (*ix86_gen_adjust_stack_and_probe): Ditto.
10777 (*ix86_gen_probe_stack_range): Ditto.
10778 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
10779 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
10780 (ix86_adjust_stack_and_probe_stack_clash): Use
10781 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
10782 (ix86_adjust_stack_and_probe): Ditto.
10783 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
10784 of ix86_gen_probe_stack_range.
10785 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
10786 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
10787 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
10788 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
10789 CODE_FOR_stack_protect_test_{si,di}.
10790 * config/i386/i386-options.c (ix86_option_override_internal):
10791 Do not initialize ix86_gen_allocate_stack_worker,
10792 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10794 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
10796 * doc/invoke.texi (Link Options): Many editorial changes around
10799 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10801 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
10802 pre-Solaris 11 referene and most Studio compiler details.
10804 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
10807 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
10808 DImode to SImode in floating-point registers on 64-bit target.
10809 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
10810 register_operand in xmpyu patterns.
10812 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10814 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
10815 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
10816 OMP_CLAUSE__REDUCTEMP_.
10817 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10818 OMP_CLAUSE__CONDTEMP_.
10819 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
10820 * tree-pretty-print.c (dump_omp_clause): Likewise.
10821 * tree-nested.c (convert_nonlocal_omp_clauses,
10822 convert_local_omp_clauses): Likewise.
10823 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
10824 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
10825 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
10827 (gimplify_omp_for): Warn and disable conditional modifier from
10828 lastprivate on loop iterators.
10829 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
10831 * omp-general.c (omp_extract_for_data): Initialize it.
10832 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
10834 (delete_omp_context): Delete it.
10835 (lower_lastprivate_conditional_clauses): New function.
10836 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
10837 handle lastprivate conditional clauses.
10838 (lower_reduction_clauses): Add CLIST argument, emit it into
10839 the critical section if any.
10840 (lower_omp_sections): Adjust lower_lastprivate_clauses and
10841 lower_reduction_clauses callers.
10842 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
10843 to lower_lastprivate_clauses.
10844 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
10845 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
10846 clist into a critical section if not emitted there already by
10847 lower_reduction_clauses.
10848 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
10850 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
10851 conditional variables.
10852 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
10854 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10855 expand_omp_for_static_chunk): Handle lastprivate conditional.
10856 (expand_omp_for): Handle fd.lastprivate_conditional like
10859 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10861 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
10862 kernel does not exit cleanly.
10863 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
10865 2019-05-24 Jason Merrill <jason@redhat.com>
10868 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
10870 2019-05-24 Richard Biener <rguenther@suse.de>
10873 * tree-loop-distribution.c (struct partition): Add location
10875 (partition_alloc): Initialize all fields.
10876 (generate_memset_builtin): Use the location recorded in the
10877 partition for the generated call.
10878 (generate_memcpy_builtin): Likewise.
10879 (classify_partition): Record the location of a single store
10880 as location for the partition.
10882 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10884 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
10887 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
10890 * common/config/aarch64/aarch64-common.c
10891 (aarch64_rewrite_selected_cpu): Change local temporary variable
10892 type from unsigned long to uint64_t.
10893 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
10894 aarch64_get_extension_string_for_isa_flags): Change declaration to
10895 match new definition by replacing unsigned long with uint64_t.
10897 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10900 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
10901 gen_attr_type just once instead of 4-7 times. Formatting fixes.
10902 Handle stack_protect_test_<mode> codegen similarly to corresponding
10905 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
10907 * config/i386/darwin.h: Reject -mfentry*.
10908 * doc/sourcebuild.texi: Document mfentry target support.
10910 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10912 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
10913 Rename to rs6000_global_entry_point_prologue_needed_p. Return
10914 false for PC-relative functions.
10915 (rs6000_output_function_prologue): Change called function name to
10916 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
10917 name,1" for PC-relative functions.
10918 (rs6000_elf_declare_function_name): Change called function name to
10919 rs6000_global_entry_point_prologue_needed_p.
10921 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
10924 * config/i386/i386.c (gen_rtx_cost):
10925 Use ix86_tune_cost instead of ix86_cost.
10927 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10928 Michael Meissner <meissner@linux.ibm.com>
10929 Segher Boessenkool <segher@kernel.crashing.org>
10931 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
10933 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
10934 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
10935 (rs6000_fndecl_pcrel_p): Likewise.
10936 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
10937 error if -mpcrel is requested without -mcpu=future.
10938 (rs6000_opt_masks): Add entry for pcrel.
10939 (rs6000_fndecl_pcrel_p): New function.
10940 (rs6000_pcrel_p): Likewise.
10941 * config/rs6000/rs6000.opt (mpcrel): New option.
10942 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
10944 2019-05-23 Jan Hubicka <jh@suse.cz>
10945 Martin Liska <mliska@suse.cz>
10947 PR tree-optimization/90576
10948 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
10950 (aliasing_component_refs_p): Fix three way size compare conditional;
10951 give up earlier in case we can not decide on equivalence.
10953 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10954 Michael Meissner <meissner@linux.ibm.com>
10955 Segher Boessenkool <segher@kernel.crashing.org>
10957 * config.gcc: Add future cpu.
10958 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
10959 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
10961 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
10962 (RS6000_CPU): New instantiation for future cpu.
10963 * config/rs6000/rs6000-opts.h (enum processor_type): Add
10965 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
10966 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
10967 * config/rs6000/rs6000-tables.opt: Regenerate.
10968 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
10969 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
10970 (rs6000_machine_from_flags): Handle future cpu.
10971 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
10972 PROCESSOR_POWER9 for now.
10973 (rs6000_adjust_cost): Likewise.
10974 (rs6000_issue_rate): Likewise.
10975 (rs6000_register_move_cost): Likewise.
10976 (rs6000_opt_masks): Add entry for future.
10977 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
10978 (MASK_FUTURE): New #define.
10979 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
10980 * config/rs6000/rs6000.opt (mfuture): New target option.
10981 * doc/invoke.texi (mcpu): Add future cpu.
10983 2019-05-23 Martin Liska <mliska@suse.cz>
10986 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
10987 operation points to a temporary (pointed via tree_to_wide_ref)
10988 that is out of scope after the &.
10990 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
10993 * doc/extend.texi (Function Names): Add missing word.
10995 2019-05-23 Richard Biener <rguenther@suse.de>
10997 PR tree-optimization/88440
10998 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11000 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11002 (generate_memcpy_builtin): Likewise.
11003 (distribute_loop): Pass in whether to only distribute patterns.
11004 (prepare_perfect_loop_nest): Also allow size optimization.
11005 (pass_loop_distribution::execute): When optimizing a loop
11006 nest for size allow pattern replacement.
11008 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11011 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11014 2019-05-23 Martin Liska <mliska@suse.cz>
11017 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11018 expression similarly to gimplify_decl_expr.
11020 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11022 * cse.c (cse_dump_path): s/dump_file/f.
11024 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11027 * diagnostic-format-json.cc: Include "selftest.h".
11028 (json_from_expanded_location): Only add "file" key for non-NULL
11030 (json_from_location_range): Don't add "start" and "finish"
11031 children if they are UNKNOWN_LOCATION.
11032 (selftest::test_unknown_location): New selftest.
11033 (selftest::test_bad_endpoints): New selftest.
11034 (selftest::diagnostic_format_json_cc_tests): New function.
11035 * json.cc (json::object::get): New function.
11036 (selftest::test_object_get): New selftest.
11037 (selftest::json_cc_tests): Call it.
11038 * json.h (json::object::get): New decl.
11039 * selftest-run-tests.c (selftest::run_tests): Call
11040 selftest::diagnostic_format_json_cc_tests.
11041 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11044 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11045 Andrew Stubbs <amd@codesourcery.com>
11047 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11048 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11049 (kernel): Rename to...
11050 (main_kernel): ... this.
11051 (load_image): Load _init_array and _fini_array kernels.
11052 (run): Add argument for kernel to run.
11053 (main): Run init_array_kernel before main_kernel, and
11054 fini_array_kernel after.
11055 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11056 amdgpu_hsa_kernel attribute on functions.
11057 (gcn_disable_constructors): Delete.
11058 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11059 * config/gcn/crt0.c (size_t): Define.
11060 (_init_array, _fini_array): New.
11061 (__preinit_array_start, __preinit_array_end,
11062 __init_array_start, __init_array_end,
11063 __fini_array_start, __fini_array_end): Declare weak references.
11065 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11067 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11069 2019-05-22 Jason Merrill <jason@redhat.com>
11071 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11073 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11076 * config/i386/i386-options.c (ix86_init_machine_status): Set
11077 stack_frame_required to true.
11078 * config/i386/i386.c (ix86_get_frame_size): New function.
11079 (ix86_frame_pointer_required): Replace get_frame_size with
11080 ix86_get_frame_size.
11081 (ix86_compute_frame_layout): Likewise.
11082 (ix86_find_max_used_stack_alignment): Changed to void. Set
11083 stack_frame_required.
11084 (ix86_finalize_stack_frame_flags): Always call
11085 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11086 ix86_get_frame_size.
11087 * config/i386/i386.h (machine_function): Add stack_frame_required.
11089 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11091 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11093 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11095 * common/config/aarch64/aarch64-common.c
11096 (struct aarch64_option_extension, struct processor_name_to_arch,
11097 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11098 aarch64_contains_opt,
11099 aarch64_get_extension_string_for_isa_flags): Change type of
11100 variables storing flags to uint64_t.
11101 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11102 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11103 * config/aarch64/aarch64.c (struct processor,
11104 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11105 aarch64_validate_march, aarch64_override_options,
11106 aarch64_option_print, aarch64_handle_attr_isa_flags,
11107 aarch64_declare_function_name, aarch64_start_file): Make flag
11108 variables uint64_t.
11109 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11110 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11111 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11112 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11113 * config/aarch64/driver-aarch64.c
11114 (struct aarch64_arch_extension, struct aarch64_core_data,
11115 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11116 flag variables uint64_t.
11117 * doc/invoke.texi: Add documentation for new arguments.
11119 2019-05-22 Richard Biener <rguenther@suse.de>
11121 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11123 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11125 2019-05-22 Martin Liska <mliska@suse.cz>
11128 * doc/extend.texi: Document the change.
11130 2019-05-22 Richard Biener <rguenther@suse.de>
11132 PR tree-optimization/90450
11133 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11134 (mem_ref_hasher::equal): Check it.
11135 (mem_ref_alloc): Initialize it.
11136 (gather_mem_refs_stmt): Set it.
11138 2019-05-22 Richard Biener <rguenther@suse.de>
11140 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11142 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11145 2019-05-22 Alan Modra <amodra@gmail.com>
11147 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11148 (ASM_CPU_SPEC): Conditionally add -many.
11149 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11150 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11151 (rs6000_file_start): ..extracted from here, and modified to
11153 (rs6000_output_function_prologue): Emit .machine as necessary.
11155 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11157 PR middle-end/90553
11158 * ira-lives.c (process_bb_node_lives): Consider defs
11159 for a call insn to be die before the call, not after.
11161 * function.c (assign_parm_setup_block): Raise alignment of
11162 stacked parameter only for STRICT_ALIGNMENT targets.
11164 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11166 * config/rs6000/constraints.md (define_register_constraint "wz"):
11168 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11169 RS6000_CONSTRAINT_wz.
11170 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11171 (rs6000_init_hard_regno_mode_ok): Adjust.
11172 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11173 * doc/md.texi (Machine Constraints): Adjust.
11175 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11177 * config/rs6000/constraints.md (define_register_constraint "wl"):
11179 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11180 RS6000_CONSTRAINT_wl.
11181 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11182 (rs6000_init_hard_regno_mode_ok): Adjust.
11183 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11184 * doc/md.texi (Machine Constraints): Adjust.
11186 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11188 * config/rs6000/constraints.md (define_register_constraint "wm"):
11190 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11191 RS6000_CONSTRAINT_wm.
11192 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11193 (rs6000_init_hard_regno_mode_ok): Adjust.
11194 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11195 * doc/md.texi (Machine Constraints): Adjust.
11197 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11199 * config/rs6000/constraints.md (define_register_constraint "wk"):
11201 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11202 RS6000_CONSTRAINT_wk.
11203 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11204 (rs6000_init_hard_regno_mode_ok): Adjust.
11205 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11206 * doc/md.texi (Machine Constraints): Adjust.
11208 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11210 * config/rs6000/constraints.md (define_register_constraint "wj"):
11212 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11213 RS6000_CONSTRAINT_wj.
11214 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11215 (rs6000_init_hard_regno_mode_ok): Adjust.
11216 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11218 * config/rs6000/vsx.md: Ditto.
11219 * doc/md.texi (Machine Constraints): Adjust.
11221 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11223 * config/rs6000/constraints.md (define_register_constraint "wh"):
11225 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11226 RS6000_CONSTRAINT_wh.
11227 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11228 (rs6000_init_hard_regno_mode_ok): Adjust.
11229 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11230 * doc/md.texi (Machine Constraints): Adjust.
11232 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11235 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11236 Avoid calling gen_lowpart with CONST operand.
11238 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11240 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11241 field template_last_to_copy.
11242 (ssa_create_duplicates): Set it, and use it. Attempt to
11243 preserve more debug stmts.
11245 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11247 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11248 (signbit<mode>2): New expander
11250 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11253 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11254 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11256 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11258 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11259 %ebx and %ecx bafore calling cpuid with leaf 1 or
11260 non-constant leaf argument.
11262 2019-05-21 Alan Modra <amodra@gmail.com>
11265 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11266 power9 direct move cost.
11268 2019-05-21 Richard Biener <rguenther@suse.de>
11270 PR middle-end/90510
11271 * fold-const.c (fold_read_from_vector): New function.
11272 * fold-const.h (fold_read_from_vector): Declare.
11273 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11274 single-element insert permutations. Canonicalize selector
11275 further and fix issue with last commit.
11277 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11279 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11280 parameter with default value false to declaration.
11281 (split_edges_for_insertion): New inline function. Wrapper for
11282 split_critical_edges with for_edge_insertion_p = true.
11283 * tree-cfg.c (split_critical_edges): Don't split non-critical
11284 edges if for_edge_insertion_p is false. Fix whitespace.
11285 * tree-ssa-pre.c (pass_pre::execute): Call
11286 split_edges_for_insertion instead of split_critical_edges.
11287 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11288 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11289 (pass_data_sink_code): Update function name in the comment.
11291 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11293 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11294 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11295 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11296 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11299 2019-05-21 Martin Liska <mliska@suse.cz>
11301 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11303 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11304 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11306 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11308 (rs6000_function_arg): Likewise.
11309 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11310 (rs6000_expand_ternop_builtin): Use interval syntax.
11311 (get_element_number): Likewise.
11312 (altivec_expand_builtin): Likewise.
11313 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11315 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11319 * function.h (struct function): Add calls_eh_return member.
11320 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11321 gimplifying __builtin_eh_return call.
11322 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11324 (expand_call_inline): Or in src_cfun->calls_eh_return into
11325 dst_cfun->calls_eh_return.
11326 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
11327 cfun->calls_eh_return.
11328 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
11329 * lto-streamer-out.c (output_struct_function_base): Write
11332 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
11334 PR rtl-optimization/43147
11335 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
11336 IX86_BUILTIN_SHUFPD.
11338 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11340 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
11341 (refs_may_alias_p_1): ... here; update stats.
11342 (refs_may_alias_p): Do not update stats here.
11344 2019-05-20 Richard Biener <rguenther@suse.de>
11346 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
11347 doesn't produce pointers.
11348 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
11349 the first operand points to.
11351 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11353 * tree-ssa-alias.c (compare_sizes): New function.
11354 (sompare_type_sizes): New function
11355 (aliasing_component_refs_p): Use it.
11356 (indirect_ref_may_alias_decl_p): Likewise.
11358 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11360 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
11362 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11364 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
11365 (LIBLSAN_EARLY_SPEC): Likewise.
11366 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
11368 2019-05-20 Martin Liska <mliska@suse.cz>
11370 * config/i386/i386.c (ix86_libc_has_fast_function):
11371 Add ATTRIBUTE_UNUSED for the argument.
11373 2019-05-20 Richard Biener <rguenther@suse.de>
11375 * gimple-match-head.c: Include vec-perm-indices.h.
11376 * generic-match-head.c: Likewise.
11377 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
11379 * fold-const.c (fold_vec_perm): Export.
11380 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
11381 (match.pd): ...here.
11383 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11385 * cfgloop.h (struct loop): Add simdlen member.
11386 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
11387 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
11388 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
11389 as new argument to autovectorize_vector_sizes target hook. If
11390 loop->simdlen, pick up vector size where the vectorization factor
11391 is equal to loop->simd, and if there is none, fall back to the first
11393 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
11395 * omp-low.c (omp_clause_aligned_alignment): Likewise.
11396 * omp-general.c (omp_max_vf): Likewise.
11397 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
11398 * tree-vect-slp.c (vect_slp_bb): Likewise.
11399 * target.def (autovectorize_vector_sizes): Add ALL argument and
11401 * doc/tm.texi: Adjust documentation.
11402 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
11403 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
11404 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
11406 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
11407 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
11408 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
11409 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
11410 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
11411 preferred vector size is not 512-bit or 256-bit, just put those
11412 unpreferred ones last.
11414 2019-05-20 Martin Liska <mliska@suse.cz>
11416 * targhooks.c (default_libc_has_fast_function): New function.
11417 * targhooks.h (default_libc_has_fast_function): Likewise.
11419 2019-05-20 Martin Liska <mliska@suse.cz>
11421 PR middle-end/90263
11422 * builtins.c (expand_builtin_memory_copy_args): When having a
11423 target with fast mempcpy implementation do now use memcpy.
11424 * config/i386/i386.c (ix86_libc_has_fast_function): New.
11425 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
11426 * doc/tm.texi: Likewise.
11427 * doc/tm.texi.in: Likewise.
11429 * expr.c (emit_block_move_hints): Add 2 new arguments.
11430 * expr.h (emit_block_move_hints): Bail out when libcall
11431 to memcpy would be used.
11433 2019-05-20 Martin Liska <mliska@suse.cz>
11435 * profile-count.c: Add vertical spacing in order
11436 to separate functions.
11437 * profile-count.h: Likewise.
11439 2019-05-20 Martin Liska <mliska@suse.cz>
11441 * profile-count.h: Do not use full qualified
11443 * profile-count.c (profile_count::to_frequency): Likewise.
11445 2019-05-20 Martin Liska <mliska@suse.cz>
11447 * profile-count.h (enum profile_quality): Use capital letters
11448 for enum value names. Use the adjusted names.
11449 * profile-count.c: Use the adjusted names.
11451 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11453 * config/rs6000/constraints.md (define_register_constraint "wH"):
11455 (define_register_constraint "wI"): Delete.
11456 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11457 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
11458 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11459 (rs6000_init_hard_regno_mode_ok): Adjust.
11460 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
11461 resp. "d", or with "wa" as appropriate, all with "p8v".
11462 * config/rs6000/vsx.md: Ditto.
11463 * doc/md.texi (Machine Constraints): Adjust.
11465 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11467 * config/rs6000/constraints.md (define_register_constraint "wy"):
11469 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11470 RS6000_CONSTRAINT_wy.
11471 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11472 (rs6000_init_hard_regno_mode_ok): Adjust.
11473 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
11474 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
11475 (define_mode_attr Fisa): New.
11476 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
11477 * doc/md.texi (Machine Constraints): Adjust.
11479 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11481 * config/rs6000/constraints.md (define_register_constraint "wu"):
11483 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11484 RS6000_CONSTRAINT_wu.
11485 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11486 (rs6000_init_hard_regno_mode_ok): Adjust.
11487 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
11489 (define_mode_attr Fa): Delete.
11490 * config/rs6000/vsx.md: Ditto.
11491 * doc/md.texi (Machine Constraints): Adjust.
11493 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11495 * config/rs6000/constraints.md (define_register_constraint "wJ"):
11497 (define_register_constraint "wK"): Delete.
11498 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11499 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
11500 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11501 (rs6000_init_hard_regno_mode_ok): Adjust.
11502 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
11503 Replace "wK" constraint by "wH" with "p9v".
11504 * config/rs6000/vsx.md: Ditto.
11505 * doc/md.texi (Machine Constraints): Adjust.
11507 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11509 * config/rs6000/constraints.md (define_register_constraint "wb"):
11511 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11512 RS6000_CONSTRAINT_wb.
11513 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11514 (rs6000_init_hard_regno_mode_ok): Adjust.
11515 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
11516 * config/rs6000/vsx.md: Ditto.
11517 * doc/md.texi (Machine Constraints): Adjust.
11519 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11521 * config/rs6000/constraints.md (define_register_constraint "wo"):
11523 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11524 RS6000_CONSTRAINT_wo.
11525 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11526 (rs6000_init_hard_regno_mode_ok): Adjust.
11527 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
11528 * config/rs6000/altivec.md: Ditto.
11529 * doc/md.texi (Machine Constraints): Adjust.
11531 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11533 * config/darwin-c.c (darwin_register_objc_includes): Do not
11534 prepend the sysroot when building gnu-runtime header search
11537 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11539 * config/darwin.c (darwin_file_end): Use switch_to_section ()
11540 instead of direct output of the asm.
11542 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11544 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
11545 argument to be type bool (was int before).
11546 (rs6000_emit_epilogue): Simplify some code. Declare some variables
11547 at first use. Use type bool for some variables. Fix a theoretical
11548 eh_return bug for svr4.
11550 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11552 * config/rs6000/rs6000.md (isa): New attribute.
11553 (enabled): New attribute.
11555 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
11557 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
11558 assemble_start_function and assemble_end_function.
11560 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
11562 PR middle-end/89433
11563 * omp-general.c (oacc_verify_routine_clauses): Change formal
11564 parameters. Add checking if already marked with an OpenACC
11565 'routine' directive. Adjust all users.
11567 PR middle-end/89433
11568 * omp-general.c (oacc_build_routine_dims): Move some of its
11570 (oacc_verify_routine_clauses): ... this new function.
11571 * omp-general.h (oacc_verify_routine_clauses): New prototype.
11573 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11575 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
11576 formating of picbase labels to match other ports.
11578 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11580 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
11581 in the generated code.
11583 2019-05-16 Martin Sebor <msebor@redhat.com>
11585 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
11586 identifiers, keywords, operators, and types in diagnostics. Correct
11587 quoting, spelling, and sentence capitalization issues.
11588 (expand_builtin_atomic_is_lock_free): Same.
11589 (fold_builtin_next_arg): Same.
11590 * cfgexpand.c (expand_one_var): Same.
11591 (tree_conflicts_with_clobbers_p): Same.
11592 (expand_asm_stmt): Same.
11593 (verify_loop_structure): Same.
11594 * cgraphunit.c (process_function_and_variable_attributes): Same.
11595 * collect-utils.c (collect_execute): Same.
11596 * collect2.c (maybe_run_lto_and_relink): Same.
11597 (is_lto_object_file): Same.
11598 (scan_prog_file): Same.
11599 * convert.c (convert_to_real_1): Same.
11600 * dwarf2out.c (dwarf2out_begin_prologue): Same.
11601 * except.c (verify_eh_tree): Same.
11602 * gcc.c (execute): Same.
11603 (eval_spec_function): Same.
11604 (run_attempt): Same.
11605 (driver::set_up_specs): Same.
11606 (compare_debug_auxbase_opt_spec_function): Same.
11607 * gcov-tool.c (unlink_gcda_file): Same.
11609 (do_rewrite): Same.
11610 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
11611 * gimplify.c (gimplify_asm_expr): Same.
11612 (gimplify_adjust_omp_clauses): Same.
11613 * hsa-gen.c (gen_hsa_addr_insns): Same.
11614 (gen_hsa_insns_for_load): Same.
11615 (gen_hsa_cmp_insn_from_gimple): Same.
11616 (gen_hsa_insns_for_operation_assignment): Same.
11617 (gen_get_level): Same.
11618 (gen_hsa_alloca): Same.
11619 (omp_simple_builtin::generate): Same.
11620 (gen_hsa_atomic_for_builtin): Same.
11621 (gen_hsa_insns_for_call): Same.
11622 * input.c (dump_location_info): Same.
11623 * ipa-devirt.c (compare_virtual_tables): Same.
11624 * ira.c (ira_setup_eliminable_regset): Same.
11625 * lra-assigns.c (lra_assign): Same.
11626 * lra-constraints.c (lra_constraints): Same.
11627 * lto-streamer-in.c (lto_input_mode_table): Same.
11628 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
11629 (merge_and_complain): Same.
11630 (compile_offload_image): Same.
11631 (compile_images_for_offload_targets): Same.
11632 (debug_objcopy): Same.
11635 * opts.c (print_specific_help): Same.
11636 (parse_no_sanitize_attribute): Same.
11637 (print_help): Same.
11638 (handle_param): Same.
11639 * plugin.c (add_new_plugin): Same.
11640 (parse_plugin_arg_opt): Same.
11641 (try_init_one_plugin): Same.
11642 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
11643 operators, and types in diagnostics. Correct quoting and spelling
11645 * read-rtl-function.c (parse_edge_flag_token): Same.
11646 (function_reader::parse_enum_value): Same.
11647 * reg-stack.c (check_asm_stack_operands): Same.
11648 * regcprop.c (validate_value_data): Same.
11649 * sched-rgn.c (make_pass_sched_fusion): Same.
11650 * stmt.c (check_unique_operand_names): Same.
11651 * targhooks.c (default_target_option_pragma_parse): Same.
11652 * tlink.c (recompile_files): Same.
11653 * toplev.c (process_options): Same.
11654 (do_compile): Same.
11655 * trans-mem.c (diagnose_tm_1): Same.
11656 (ipa_tm_scan_irr_block): Same.
11657 (ipa_tm_diagnose_transaction): Same.
11658 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
11659 format a tree code name in a diagnostic.
11660 (verify_types_in_gimple_min_lval): Same.
11661 (verify_types_in_gimple_reference): Same.
11662 (verify_gimple_call): Same.
11663 (verify_gimple_assign_unary): Same.
11664 (verify_gimple_assign_binary): Same.
11665 (verify_gimple_assign_ternary): Same.
11666 (verify_gimple_assign_single): Same.
11667 (verify_gimple_switch): Same.
11668 (verify_gimple_label): Same.
11669 (verify_gimple_phi): Same.
11670 (verify_gimple_in_seq): Same.
11671 (verify_eh_throw_stmt_node): Same.
11672 (collect_subblocks): Same.
11673 (gimple_verify_flow_info): Same.
11674 (do_warn_unused_result): Same.
11675 * tree-inline.c (expand_call_inline): Same.
11676 * tree-into-ssa.c (update_ssa): Same.
11677 * tree.c (tree_int_cst_elt_check_failed): Same.
11678 (tree_vec_elt_check_failed): Same.
11679 (omp_clause_operand_check_failed): Same.
11680 (verify_type_variant): Same.
11681 (verify_type): Same.
11682 * value-prof.c (verify_histograms): Same.
11683 * varasm.c (assemble_start_function): Same.
11685 2019-05-16 Martin Sebor <msebor@redhat.com>
11687 * config/i386/i386-expand.c (get_element_number): Quote keywords
11688 and other internal names in diagnostics. Adjust other diagnostic
11689 formatting issues noted by -Wformat-diag.
11690 * config/i386/i386-features.c
11691 (ix86_mangle_function_version_assembler_name): Same.
11692 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
11693 * config/i386/i386.c (ix86_function_type_abi): Same.
11694 (ix86_function_ms_hook_prologue): Same.
11695 (classify_argument): Same.
11696 (ix86_expand_prologue): Same.
11697 (ix86_md_asm_adjust): Same.
11698 (ix86_memmodel_check): Same.
11700 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11702 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
11703 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
11706 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
11709 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
11710 intrinsics without SSE/SSE2/SSSE3.
11711 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
11713 (*mmx_uavgv8qi3): Likewise.
11715 2019-05-17 Richard Biener <rguenther@suse.de>
11717 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
11718 VEC_PERM_EXPR as __VEC_PERM with -gimple.
11720 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
11722 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
11723 vec_sldw insn pattern.
11725 2019-05-17 Richard Biener <rguenther@suse.de>
11727 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
11729 2019-05-17 Martin Liska <mliska@suse.cz>
11732 * toplev.c (output_stack_usage): With LTO and sanitizer it
11733 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
11734 has no file location.
11736 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11739 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
11740 sz0 is equal to sz1, instead return false in that case.
11742 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
11743 has non-constant expression, force sctx.lane and use two
11744 argument IFN_GOMP_SIMD_LANE instead of single argument.
11745 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
11746 two argument IFN_GOMP_SIMD_LANE without lhs.
11747 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
11749 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
11751 (LOOP_REQUIRES_VERSIONING): Or in
11752 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
11753 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11755 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
11756 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
11757 from simd if clause if needed.
11759 2019-05-16 Richard Biener <rguenther@suse.de>
11761 * tree-affine.c (expr_to_aff_combination): New function split
11763 (tree_to_aff_combination): ... here.
11764 (aff_combination_expand): Avoid building a GENERIC tree.
11766 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
11768 * cgraphunit.c (cgraph_node::expand_thunk): Remove
11769 assemble_start_function and assemble_end_function calls.
11770 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
11771 assemble_start_function and assemble_end_function.
11772 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
11773 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
11774 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
11775 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
11776 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
11777 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
11778 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
11779 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
11780 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11781 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11782 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11783 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
11785 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
11786 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
11787 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
11788 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
11789 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11790 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11791 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
11792 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
11793 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11794 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11795 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11796 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11797 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
11798 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
11800 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11801 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11802 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
11804 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
11806 * tree-ssa-alias.c (alias_stats): Add
11807 aliasing_component_refs_p_may_alias and
11808 aliasing_component_refs_p_no_alias.
11809 (dump_alias_stats): Print aliasing_component_refs_p stats.
11810 (aliasing_component_refs_p): Update stats.
11812 2019-05-16 Martin Liska <mliska@suse.cz>
11815 * multiple_target.c (expand_target_clones): Do not allow
11816 target_clones being used with a symbol that is an alias.
11818 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
11820 PR tree-optimization/90394
11821 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
11822 positives rather than ICE for cases where (code2 == NE_EXPR
11823 && code1 == BIT_AND_EXPR).
11825 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11828 * tree-core.h (struct tree_decl_common): Document
11829 decl_nonshareable_flag for PARM_DECLs.
11830 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
11831 * calls.c (expand_call): Don't try tail call if caller
11832 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
11833 passed on the stack and callee needs to pass any arguments on the
11835 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11836 else if instead of series of mutually exclusive ifs. Handle
11837 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
11838 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
11840 * lto-streamer.h (LTO_major_version): Bump to 9.
11842 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
11844 PR tree-optimization/90106
11845 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
11846 new parameter as new internal function call, also move it to new
11848 (use_internal_fn): Pass internal function call to
11849 shrink_wrap_one_built_in_call_with_conds.
11851 2019-05-15 Jakub Jelinek <jakub@redhat.com>
11853 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
11855 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
11856 safelen_int and set loop->dont_vectorize.
11858 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11861 * config/i386/i386-builtin.def: Enable MMX intrinsics with
11863 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11865 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
11866 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
11867 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
11870 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11873 * config/i386/mmx.md (*vec_dupv2sf): Changed to
11874 define_insn_and_split to support SSE emulation.
11875 (*vec_extractv2sf_0): Likewise.
11876 (*vec_extractv2sf_1): Likewise.
11877 (*vec_extractv2si_0): Likewise.
11878 (*vec_extractv2si_1): Likewise.
11879 (*vec_extractv2si_zext_mem): Likewise.
11880 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
11881 (vec_extractv2sf_1 splitter): Likewise.
11882 (vec_extractv2sfsf): Likewise.
11883 (vec_setv2si): Likewise.
11884 (vec_extractv2si_1 splitter): Likewise.
11885 (vec_extractv2sisi): Likewise.
11886 (vec_setv4hi): Likewise.
11887 (vec_extractv4hihi): Likewise.
11888 (vec_setv8qi): Likewise.
11889 (vec_extractv8qiqi): Likewise.
11890 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11891 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
11892 (vec_extractv2sisi): Likewise.
11893 (vec_extractv4hihi): Likewise.
11894 (vec_extractv8qiqi): Likewise.
11895 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11896 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
11897 (vec_initv2sisi): Likewise.
11898 (vec_initv4hihi): Likewise.
11899 (vec_initv8qiqi): Likewise.
11900 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
11901 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
11902 (vec_setv4hi): Likewise.
11903 (vec_setv8qi): Likewise.
11905 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11908 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
11909 TARGET_MMX_WITH_SSE.
11910 (MMXMODE:*mov<mode>_internal): Likewise.
11911 (MMXMODE:movmisalign<mode>): Likewise.
11913 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
11916 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
11917 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
11918 (sse2_cvtpd2pi): Ditto.
11919 (sse2_cvttpd2pi): Ditto.
11920 (*vec_concatv2sf_sse4_1): Ditto.
11921 (*vec_concatv2sf_sse): Ditto.
11922 (*vec_concatv2si_sse4_1): Ditto.
11923 (*vec_concatv2si): Ditto.
11924 (*vec_concatv4si_0): Ditto.
11925 (*vec_concatv2di_0): Ditto.
11927 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11930 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
11932 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11935 * config/i386/sse.md (ssse3_palignrdi): Changed to
11936 define_insn_and_split to support SSE emulation.
11938 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11941 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
11943 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11946 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
11947 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
11950 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11953 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
11954 or TARGET_MMX_WITH_SSE.
11955 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
11957 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11960 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
11962 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11965 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
11966 Changed to define_insn_and_split to support SSE emulation.
11968 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11971 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
11972 Changed to define_insn_and_split to support SSE emulation.
11974 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11977 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
11978 (*mmx_<emms>): This.
11979 (mmx_<emms>): New expander.
11981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11984 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
11986 (*sse2_umulv1siv1di3): Add SSE2 emulation.
11988 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11991 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
11993 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11996 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
11998 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12001 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12002 TARGET_MMX_WITH_SSE.
12003 (*mmx_uavgv4hi3): Add SSE emulation.
12005 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12008 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12009 and TARGET_MMX_WITH_SSE.
12010 (*mmx_uavgv8qi3): Add SSE emulation.
12012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12015 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12016 maskmovdqu for __MMX_WITH_SSE__.
12018 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12021 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12022 TARGET_MMX and TARGET_MMX_WITH_SSE.
12023 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12025 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12028 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12029 define_insn_and_split to support SSE emulation.
12031 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12034 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12035 and TARGET_MMX_WITH_SSE.
12036 (mmx_<code>v8qi3): Likewise.
12037 (smaxmin:<code>v4hi3): New.
12038 (umaxmin:<code>v8qi3): Likewise.
12039 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12040 (umaxmin:*mmx_<code>v8qi3): Likewise.
12042 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12045 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12046 TARGET_MMX_WITH_SSE.
12047 (*mmx_pinsrw): Add SSE emulation.
12049 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12052 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12054 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12057 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12058 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12061 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12064 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12065 (sse_cvttps2pi): Likewise.
12067 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12070 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12071 TARGET_MMX_WITH_SSE.
12072 (mmx_pshufw_1): Add SSE emulation.
12073 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12074 TARGET_MMX_WITH_SSE to support SSE emulation.
12076 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12079 * config/i386/constraints.md (Yw): New constraint.
12080 * config/i386/mmx.md (*vec_dupv2si): Changed to
12081 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12082 support SSE emulation.
12084 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12087 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12088 TARGET_MMX_WITH_SSE.
12089 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12091 (mmx_gt<mode>3): Likewise.
12093 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12096 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12097 TARGET_MMX_WITH_SSE. Add SSE support.
12099 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12102 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12103 TARGET_MMX_WITH_SSE.
12104 (any_logic:<code><mode>3): New.
12105 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12108 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12111 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12112 TARGET_MMX_WITH_SSE. Add SSE emulation.
12113 (mmx_<shift_insn><mode>3): Likewise.
12114 (ashr<mode>3): New.
12115 (<shift_insn><mode>3): Likewise.
12117 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12120 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12121 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12123 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12126 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12127 TARGET_MMX_WITH_SSE.
12128 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12134 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12135 TARGET_MMX_WITH_SSE.
12137 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12140 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12143 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12144 (plusminus:mmx_<plusminus_insn><mode>3): Check
12145 TARGET_MMX_WITH_SSE.
12146 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12147 (<plusminus_insn><mode>3): New.
12148 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12149 (*mmx_<plusminus_insn><mode>3): Likewise.
12151 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12154 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12155 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12157 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12158 define_insn_and_split to support SSE emulation.
12159 (mmx_punpcklbw): Likewise.
12160 (mmx_punpckhwd): Likewise.
12161 (mmx_punpcklwd): Likewise.
12162 (mmx_punpckhdq): Likewise.
12163 (mmx_punpckldq): Likewise.
12165 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12166 Uros Bizjak <ubizjak@gmail.com>
12169 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12171 (ix86_split_mmx_pack): Likewise.
12172 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12174 (ix86_split_mmx_pack): Likewise.
12175 * config/i386/i386.md (mmx_isa): New.
12176 (enabled): Also check mmx_isa.
12177 * config/i386/mmx.md (any_s_truncate): New code iterator.
12178 (s_trunsuffix): New code attr.
12179 (mmx_packsswb): Removed.
12180 (mmx_packssdw): Likewise.
12181 (mmx_packuswb): Likewise.
12182 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12183 MMX packsswb/packuswb with SSE2.
12184 (mmx_packssdw): Likewise.
12185 * config/i386/predicates.md (register_mmxmem_operand): New.
12187 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12190 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12191 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12192 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12193 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12194 (ix86_vector_mode_supported_p): Likewise.
12195 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12197 2019-05-15 Martin Liska <mliska@suse.cz>
12199 PR middle-end/90478
12200 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12201 Check for overflow.
12203 2019-05-15 Richard Biener <rguenther@suse.de>
12205 * tree-into-ssa.c (pass_build_ssa::execute): Run
12206 update_address_taken before going into SSA.
12208 2019-05-15 Richard Biener <rguenther@suse.de>
12210 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12211 as __BIT_FIELD_REF with type with -gimple.
12213 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12215 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12216 semantically equivalent branches (left over after prior refactorings).
12218 2019-05-15 Richard Biener <rguenther@suse.de>
12220 PR tree-optimization/88828
12221 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12224 2019-05-14 Richard Biener <rguenther@suse.de>
12226 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12227 as __VIEW_CONVERT with -gimple.
12229 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12232 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12235 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12237 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12238 define_split to become a define_insn_and_split.
12240 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12242 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12244 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12245 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12246 (sibcall_epilogue): Adjust.
12247 (epilogue): Adjust.
12249 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12251 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12252 to unsupported ones.
12253 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12254 * config.host: Likewise.
12255 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12256 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12257 __svr4__]: Remove "brand" fallback.
12258 [!KSTAT_DATA_STRING]: Remove.
12259 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12261 (comdat_group): Likewise.
12262 (set_have_as_tls): Likewise.
12263 (gcc_cv_target_dl_iterate_phdr): Likewise.
12264 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12265 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12266 * configure: Regenerate.
12267 * doc/install.texi: Simplify Solaris target triplets.
12268 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12269 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12270 Remove Solaris 10 references.
12271 Remove obsolete Solaris bug reference.
12272 (Specific, sparc-sun-solaris2.10): Remove.
12274 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12276 * config/i386/i386.md (any_div): New code iterator.
12277 (paired_mod): New code attribute.
12278 (sgnprefix): Handle DIV and UDIV RTXes.
12280 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12281 and udivmod<mode>4 patterns using any_div code iterator.
12282 (divmod splitters): Macroize splitters using any_div code iterator.
12283 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12284 (*udivmodsi4_pow2_zext_2): Ditto.
12285 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12286 and *udivmod<mode>4_noext patterns using any_div code iterator.
12287 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12288 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12289 patterns using any_div code iterator.
12290 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12291 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12292 patterns using any_div code iterator.
12293 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12294 udivmodhiqi3 patterns using any_extend code iterator.
12296 2019-05-14 Richard Biener <rguenther@suse.de>
12297 H.J. Lu <hongjiu.lu@intel.com>
12299 PR tree-optimization/88828
12300 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12301 permuting in a single non-constant element not extracted
12304 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12306 * internal-fn.def (SIGNBIT): New.
12307 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12309 (signbitv4sf2): Likewise.
12311 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12314 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12315 next insn when the SRC reg is dead.
12317 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12319 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12320 (alloc_cand_and_find_basis): Ditto.
12321 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12322 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12323 (create_add_imm_cand, slsr_process_cast): Ditto.
12324 (slsr_process_copy, replace_mult_candidate): Ditto.
12325 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
12326 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
12327 (pass_strength_reduction::execute): Init the first NULL element.
12329 2019-05-13 Nathan Sidwell <nathan@acm.org>
12331 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
12332 (run_attempt): Reformat line break.
12334 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
12337 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
12338 data registers in sibcall epilogues.
12339 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12341 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
12344 * configure.ac (--enable-frame-pointer):
12345 Disable by default for cygwin and mingw.
12346 * configure: Regenerate.
12348 2019-05-13 Nathan Sidwell <nathan@acm.org>
12350 * dwarf2out.c (breakout_comdat_types): Move comment to correct
12352 (const_ok_for_output_1): Balance parens around #if/#else/#endif
12353 (gen_member_die): Move abstract origin check earlier. Only VARs
12354 can be static_inline_p. Simplify splicing control flow.
12356 2019-05-13 Richard Biener <rguenther@suse.de>
12358 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
12360 (vect_build_slp_tree_1): Likewise.
12362 2019-05-13 Richard Biener <rguenther@suse.de>
12364 PR tree-optimization/90402
12365 * tree-if-conv.c (tree_if_conversion): Value number only
12366 the loop body by making the latch an exit of the region
12368 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
12370 (do_rpo_vn): Deal with multiple edges into the entry block
12371 that are not backedges inside the region by skipping PHIs
12372 of the entry block.
12374 2019-05-13 Richard Biener <rguenther@suse.de>
12376 PR tree-optimization/90316
12377 * tree-ssa-pre.c (insert_aux): Fold into ...
12378 (insert): ... this function. Use a RPO walk to reduce the
12379 number of required iterations.
12381 2019-05-13 Martin Liska <mliska@suse.cz>
12383 PR tree-optimization/90416
12384 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
12385 string instead of passing the second part as va_arg argument.
12387 2019-05-13 Martin Liska <mliska@suse.cz>
12389 PR gcov-profile/90380
12390 * gcov.c (handle_cycle): Do not support zero cycle count,
12391 it should not be possible.
12392 (path_contains_zero_cycle_arc): New function.
12393 (circuit): Ignore zero cycle arc counts.
12395 2019-05-13 Martin Liska <mliska@suse.cz>
12397 PR gcov-profile/90380
12398 * gcov.c (enum loop_type): Remove the enum and
12400 (handle_cycle): Assert that we should not reach
12402 (circuit): Use loop_found instead of a tri-state loop_type.
12403 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
12406 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12409 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
12410 (ix86_output_indirect_branch_via_reg): Use output mechanism
12411 accounting for __USER_LABEL_PREFIX__.
12412 (ix86_output_indirect_branch_via_push): Likewise.
12413 (ix86_output_function_return): Likewise.
12414 (ix86_output_indirect_function_return): Likewise.
12416 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
12418 * doc/md.texi: Document use of code attributes in rtx patterns.
12419 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
12420 * read-rtl.c (find_code): Split out search loops into...
12421 (maybe_find_code): ...this new function.
12422 (check_code_iterator): Make the error message more informative.
12423 (check_code_attribute): New function.
12424 (rtx_reader::rtx_alloc_for_name): Likewise.
12425 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
12426 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
12427 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
12428 <max_opp> directly as an rtx code instead of via a match_operator.
12429 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
12430 (<su>abd<mode>_3): Update accordingly.
12432 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12434 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
12435 is given, print the state of the EH "save world" computation for
12438 2019-05-11 Jakub Jelinek <jakub@redhat.com>
12441 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
12442 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12444 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
12446 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
12447 Use pinsrd for TARGET_SSE4_1.
12448 * config/i386/sse.md (movdi_to_sse): Ditto.
12450 2019-05-10 Richard Biener <rguenther@suse.de>
12452 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
12453 (do_rpo_vn): Initialize next_value_id.
12455 2019-05-10 Martin Liska <mliska@suse.cz>
12457 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12460 2019-05-10 Jakub Jelinek <jakub@redhat.com>
12462 PR tree-optimization/90385
12463 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
12464 arguments of the exit phis.
12467 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
12468 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
12470 (copy_tree_body_r): Likewise.
12471 (copy_fn): Set id.do_not_fold to true.
12473 2019-05-10 Martin Liska <mliska@suse.cz>
12475 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
12476 Reapply changes from r269790.
12478 2019-05-10 Martin Liska <mliska@suse.cz>
12480 PR middle-end/90340
12481 * doc/invoke.texi: New params.
12482 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
12483 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
12484 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12486 * tree-switch-conversion.h (struct jump_table_cluster):
12489 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
12491 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
12493 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
12495 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
12497 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
12499 PR rtl-optimization/88879
12500 * sel-sched.c (sel_target_adjust_priority): Remove assert.
12502 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
12505 * config/arm/arm.c (callee_saved_reg_p): Move before
12506 thumb_find_work_register.
12507 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
12508 thumb_find_work_register. Only call df_get_live_out once.
12509 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
12510 (thumb_find_work_register): Use
12511 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
12512 algorithms to locate a spare call clobbered reg.
12514 2019-05-09 Martin Liska <mliska@suse.cz>
12516 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
12517 and MAX_EXPR in GIMPLE FE format.
12519 2019-05-09 Martin Liska <mliska@suse.cz>
12521 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
12522 * gimple-pretty-print.c (dump_gimple_bb_header):
12524 (pp_cfg_jump): Dump edge probability.
12525 * profile-count.c (profile_quality_as_string): Simplify
12526 with a static array.
12527 (parse_profile_quality): New function.
12528 (profile_count::dump): Simplify with a static array.
12529 (profile_count::from_gcov_type): Add new argument.
12530 * profile-count.h (parse_profile_quality): Likewise.
12531 * predict.h (set_hot_bb_threshold): New.
12532 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12534 * predict.c (get_hot_bb_threshold): Set from the new param.
12535 (set_hot_bb_threshold): New.
12537 2019-05-09 Richard Biener <rguenther@suse.de>
12539 PR tree-optimization/90395
12540 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
12541 rewrite vector stores that throw internally.
12543 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
12545 * cif-code.def (CHKP): Remove.
12548 * configure.ac (--enable-frame-pointer): Disable by default for
12550 * configure: Regenerate.
12552 2019-05-09 Alan Modra <amodra@gmail.com>
12555 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
12556 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
12557 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
12558 cost for general <-> vsx when direct moves are available.
12559 Cost union classes at minimal cost for any reg in the class.
12560 Correct calculation for moves between vsx, float, and altivec.
12561 Don't return a low cost for moves between special regs. Don't
12562 use hard coded register numbers.
12563 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
12564 (rs6000_ira_change_pseudo_allocno_class): New function.
12565 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
12566 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
12568 (movsi_internal1): Don't disparage vector alternatives.
12569 (mov<mode>_internal): Likewise, excepting alternative that
12571 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
12572 we <- b alternative.
12574 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12577 PR tree-optimization/89060
12578 * tree-ssa-live.h (live_vars_map): New typedef.
12579 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
12580 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
12581 (struct compute_live_vars_data): New type.
12582 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
12583 live_vars_at_stmt, destroy_live_vars): New functions.
12584 * tree-tailcall.c: Include tree-ssa-live.h.
12585 (live_vars, live_vars_vec): New global variables.
12586 (find_tail_calls): Perform variable life analysis before punting.
12587 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
12588 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
12590 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
12591 Perform variable life analysis to select variables that really need
12593 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
12594 instead set id->eh_landing_pad_dest and assert it is the same.
12595 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
12597 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
12598 Richard Earnshaw <rearnsha@arm.com>
12601 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
12603 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
12604 (thumb1_compute_save_core_reg_mask): Don't force a spare work
12605 register if both the epilogue and prologue can use call-clobbered
12607 (thumb1_unexpanded_epilogue): Use
12608 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
12609 picking temporaries for restoring high regs to match that of the
12610 prologue where possible.
12611 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
12612 the list of work registers. Detect if the return address is still live
12613 at the end of the prologue and avoid using it for a work register if so.
12614 If the return address is not live, add LR to the list of pushable regs
12615 after the first pass.
12617 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12619 PR tree-optimization/90078
12620 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
12621 (INFTY): Increase the value for infinite cost.
12622 (struct comp_cost): Promote type of members to int64_t.
12623 (infinite_cost): Don't set complexity in initialization.
12624 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
12625 overflows to infinite_cost.
12626 (adjust_setup_cost): Promote type of parameter and cost computation
12628 (struct ainc_cost_data, struct iv_ca): Promote type of member to
12630 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
12631 cost computation to int64_t.
12632 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
12633 int64_t's format specifier in dump.
12635 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12637 PR tree-optimization/90240
12638 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
12639 with respect to scaling factor pre-computed for each basic block.
12640 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
12641 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
12642 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
12643 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
12644 live range for array of loop's basic blocks. Cleanup aux field of
12645 loop's basic blocks.
12647 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12649 PR tree-optimization/90356
12650 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
12652 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
12654 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
12655 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
12656 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
12657 (ix86_handle_option): Handle -mavx512bf16.
12658 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
12660 * config/i386/avx512bf16vlintrin.h: New.
12661 * config/i386/avx512bf16intrin.h: New.
12662 * config/i386/cpuid.h (bit_AVX512BF16): New.
12663 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
12664 * config/i386/i386-builtin-types.def: Add new types.
12665 * config/i386/i386-builtin.def: Add new builtins.
12666 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12668 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
12669 (ix86_option_override_internal): Handle BF16.
12670 (ix86_valid_target_attribute_inner_p): Ditto.
12671 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
12672 * config/i386/i386-builtin.c (enum processor_features): Add
12674 (static const _isa_names_table isa_names_table): Ditto.
12675 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
12676 (PTA_AVX512BF16): Ditto.
12677 * config/i386/i386.opt: Add -mavx512bf16.
12678 * config/i386/immintrin.h: Include avx512bf16intrin.h
12679 and avx512bf16vlintrin.h.
12680 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
12681 avx512f_cvtneps2bf16_<mode><mask_name>,
12682 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
12683 * config/i386/subst.md (mask_half): Add new subst.
12684 * doc/invoke.texi: Document -mavx512bf16.
12686 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12688 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
12689 Delete declaration.
12690 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
12691 (rs6000_debug_legitimize_reload_address): Delete.
12692 (rs6000_legitimize_reload_address_ptr): Delete.
12693 (rs6000_option_override_internal): Adjust.
12694 (mem_operand_gpr): Adjust comment.
12695 (legitimate_lo_sum_address_p): Ditto.
12696 (rs6000_legitimize_reload_address): Delete.
12697 (rs6000_debug_legitimize_reload_address): Delete.
12698 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
12700 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
12703 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12704 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
12705 to compute vector element selector for both constant and variable
12708 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12710 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
12711 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
12712 ashrdi3_cvt using SWI48 mode iterator.
12714 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12716 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
12717 (aarch64_<su>abd<mode>_3): Likewise.
12718 (*aarch64_<su>abd<mode>_3): New define_insn.
12719 (<sur>sad<vsi2qi>): New define_expand.
12720 * config/aarch64/iterators.md: Added MAX_OPP attribute.
12721 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
12722 (build_vect_cond_expr): Likewise.
12724 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12726 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
12727 clobbers outside of accessible_reg_set.
12728 * config/i386/i386.c (ix86_conditional_register_usage):
12729 Disable register sets by clearing corresponding bits in
12730 accessible_reg_set. Do not set corresponding bits in fixed_regs,
12731 call_used_regs and don't clear corresponding reg_names array members.
12733 2019-05-07 Richard Biener <rguenther@suse.de>
12735 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
12736 not specified still compute a comp_vectype for invariant
12739 2019-05-07 Richard Biener <rguenther@suse.de>
12741 PR tree-optimization/90316
12742 * tree-ssa-pre.c (translate_vuse_through_block): When
12743 same_valid is NULL do not bother to search for a virtual
12745 (phi_translate_1): When operands changed we cannot keep
12746 the same value-number so do not bother to ask whether
12747 that's possible from translate_vuse_through_block.
12749 2019-05-07 Martin Liska <mliska@suse.cz>
12751 * bitmap.c (bitmap_register): Come up with
12752 alloc_descriptor_max_uid and assign it for
12754 (register_overhead): Use get_descriptor as
12756 (release_overhead): New.
12757 (bitmap_elem_to_freelist): Call it.
12758 (bitmap_elt_clear_from): Likewise.
12759 (bitmap_obstack_free): Likewise.
12760 (bitmap_move): Sensitively release memory.
12761 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
12762 (bitmap_initialize): Initialize alloc_descriptor to zero.
12763 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
12765 2019-05-07 Richard Biener <rguenther@suse.de>
12767 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
12768 we build a SLP node. Remove max_size and limiting.
12769 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
12771 2019-05-07 Richard Biener <rguenther@suse.de>
12773 PR tree-optimization/90316
12774 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
12775 limit by reference.
12776 (walk_non_aliased_vuses): Take walking limit argument.
12777 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
12778 walking if it is reached instead of just counting.
12779 (get_continuation_for_phi): Likewise.
12780 (walk_non_aliased_vuses): Likewise, instead of leaving counter
12781 limiting to the callback.
12782 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
12783 (vn_reference_lookup_3): Likewise.
12784 (vn_reference_lookup_pieces): Likewise.
12785 (vn_reference_lookup): Likewise.
12786 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
12787 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
12788 (avail_exprs_stack::lookup_avail_expr): Likewise.
12790 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
12792 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
12793 for comparaible types in the second direction even if first one
12794 hits incomparable type.
12796 2019-05-07 Richard Biener <rguenther@suse.de>
12799 * lto-wrapper.c (debug_objcopy): Use the original filename
12800 including archive offset for the filename used for -save-temps.
12802 2019-05-07 Li Jia He <helijia@linux.ibm.com>
12804 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
12807 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
12808 Hongtao Liu <hongtao.liu@intel.com>
12812 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
12813 Modified, original implementation isn't correct.
12815 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12817 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
12818 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
12819 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
12820 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
12821 (FRAME_POINTER_REGNUM): Change numbering.
12822 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
12823 (alt_reg_names): Adjust.
12824 (rs6000_conditional_register_usage): Don't mark hard register 64 as
12826 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12827 (DWARF_FRAME_REGISTERS): Delete.
12828 (DWARF2_FRAME_REG_OUT): Fix whitespace.
12829 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12831 (REG_ALLOC_ORDER): Adjust.
12832 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
12833 (REG_CLASS_CONTENTS): Adjust.
12834 (RETURN_ADDR_RTX): Change comment.
12835 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
12837 (REGISTER_NAMES): Adjust.
12838 (ADDITIONAL_REGISTER_NAMES): Adjust.
12839 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12841 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12843 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
12845 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12846 (DWARF_FRAME_REGISTERS): Adjust.
12847 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12849 (REG_ALLOC_ORDER): Adjust.
12850 (enum reg_class): Delete SPR_REGS.
12851 (REG_CLASS_NAMES): Delete SPR_REGS.
12852 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
12853 (REGISTER_NAMES): Adjust.
12854 (ADDITIONAL_REGISTER_NAMES): Adjust.
12855 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12856 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
12857 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
12858 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
12859 (htm_spr_regno): Delete.
12860 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
12862 (rs6000_dbx_register_number): Adjust.
12864 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12866 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
12868 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12870 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
12871 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
12873 2019-05-06 Jakub Jelinek <jakub@redhat.com>
12875 PR tree-optimization/88709
12876 PR tree-optimization/90271
12877 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
12878 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
12879 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
12881 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
12882 of the store merging group is larger than
12883 PARAM_STORE_MERGING_MAX_SIZE parameter.
12884 (split_group): Add bzero_first argument. If set, always emit first
12885 the first store which must be = {} of the whole area and then for the
12886 rest of the stores consider all zero bytes as paddings.
12887 (imm_store_chain_info::output_merged_store): Check if first store
12888 is = {} of the whole area and if yes, determine which setting of
12889 bzero_first for split_group gives smaller number of stores. Adjust
12890 split_group callers.
12891 (lhs_valid_for_store_merging_p): Allow decls.
12892 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
12894 (pass_store_merging::process_store): Likewise.
12896 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
12899 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12900 handling of V1TImode.
12902 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
12905 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
12906 and enable_frame_pointer ...
12907 * configure.ac: ... here. Update help strings for
12908 --enable-frame-pointer.
12909 * configure: Regenerate.
12910 * config/i386/i386-options.c (ix86_option_override_internal): Remove
12911 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
12912 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
12913 (USE_X86_64_FRAME_POINTER): Ditto.
12915 2019-05-06 Martin Liska <mliska@suse.cz>
12917 * config.gcc: Append to target_gtfiles and fix indentation.
12919 2019-05-06 Richard Biener <rguenther@suse.de>
12921 PR tree-optimization/90358
12922 * tree-vect-stmts.c (get_group_load_store_type): Properly
12923 detect unused upper half of load.
12924 (vectorizable_load): Likewise.
12926 2019-05-06 Richard Biener <rguenther@suse.de>
12928 PR tree-optimization/88828
12929 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
12930 (simplify_vector_constructor): ...here. Handle constants in
12933 2019-05-06 Richard Biener <rguenther@suse.de>
12935 PR tree-optimization/90328
12936 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
12937 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
12938 is valid in the loop nest before using it.
12939 (initialize_data_dependence_relation): Adjust.
12940 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
12941 loop as loop-nest to dr_may_alias_p.
12943 2019-05-06 Richard Biener <rguenther@suse.de>
12945 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
12947 2019-05-06 Richard Biener <rguenther@suse.de>
12949 PR tree-optimization/90316
12950 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
12951 compute target on demand.
12952 (get_continuation_for_phi): Remove code walking stmts to
12953 get to a target virtual operand which could end up being
12956 2019-05-06 Martin Liska <mliska@suse.cz>
12959 * config/i386/i386-options.c (ix86_option_override_internal): Error only
12960 when -mabi is selected to a non-default version.
12962 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
12963 Martin Liska <mliska@suse.cz>
12965 * Makefile.in: Add lto-dump.texi.
12966 * cgraph.h: Add new functions get_visibility_string and
12967 get_symtab_type_string.
12968 * doc/gcc.texi: Include lto-dump section.
12969 * doc/lto-dump.texi: New file.
12970 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
12971 (parse_dump_option): Factor out this function.
12972 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
12973 (parse_dump_option): Export the function.
12974 * symtab.c (symtab_node::get_visibility_string): New function.
12975 (symtab_node::get_symtab_type_string): Likewise.
12977 2019-05-06 Martin Liska <mliska@suse.cz>
12979 * config/i386/i386-builtins.c: New file.
12980 * config/i386/i386-builtins.h: New file.
12981 * config/i386/i386-expand.c: New file.
12982 * config/i386/i386-expand.h: New file.
12983 * config/i386/i386-features.c: New file.
12984 * config/i386/i386-features.h: New file.
12985 * config/i386/i386-options.c: New file.
12986 * config/i386/i386-options.h: New file.
12987 * config.gcc: Add new files into extra_objs and
12989 * config/i386/i386.c: Split content of the file
12990 into newly introduced files.
12991 * config/i386/i386.h: Declare common variables
12993 * config/i386/t-i386: Define dependencies for new files.
12995 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
12998 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
12999 Restrict 'all' variant to 32-bit configurations.
13000 (unaligned_loadhiu): Likewise.
13001 (unaligned_storehi): Likewise.
13002 (unaligned_storesi): Likewise.
13003 (unaligned_loadhis): Disable when compiling for thumb1.
13005 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13007 PR tree-optimization/90269
13008 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13011 2019-05-03 Martin Liska <mliska@suse.cz>
13013 * hash-map.h: Add is_empty function.
13014 * hash-set.h: Likewise.
13015 * hash-table.h: Likewise.
13016 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13017 elements () == 0 (and similar usages).
13018 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13019 * gimplify.c (gimplify_bind_expr): Likewise.
13020 (gimplify_switch_expr): Likewise.
13021 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13022 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13023 * postreload-gcse.c (dump_hash_table): Likewise.
13024 (gcse_after_reload_main): Likewise.
13025 * predict.c (combine_predictions_for_bb): Likewise.
13026 * tree-parloops.c (reduction_phi): Likewise.
13027 (separate_decls_in_region): Likewise.
13028 (transform_to_exit_first_loop): Likewise.
13029 (gen_parallel_loop): Likewise.
13030 (gather_scalar_reductions): Likewise.
13031 (try_create_reduction_list): Likewise.
13032 * var-tracking.c (dump_vars): Likewise.
13033 (emit_notes_for_changes): Likewise.
13034 (vt_emit_notes): Likewise.
13036 2019-05-03 Richard Biener <rguenther@suse.de>
13038 PR tree-optimization/90316
13039 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13042 2019-05-03 Richard Biener <rguenther@suse.de>
13044 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13045 peeling for gaps by loading only lower halves of vectors
13047 (vectorizable_load): Likewise.
13049 2019-05-03 Richard Biener <rguenther@suse.de>
13051 PR middle-end/89518
13052 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13054 2019-05-03 Richard Biener <rguenther@suse.de>
13056 PR middle-end/87314
13057 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13058 Handle STRING_CST vs DECL or STRING_CST.
13060 2019-05-03 Richard Biener <rguenther@suse.de>
13062 PR tree-optimization/88963
13063 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13064 vector loads feeding only BIT_FIELD_REFs to component
13065 loads. Rewrite stores fed by CONSTRUCTORs to component
13068 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13070 * opts.h (finish_options): Remove lang_mask argument.
13071 (print_help, help_option_argument): Declare.
13072 * opts.c (print_help): Remove forward declaration, no longer static.
13073 (finish_options): Remove lang_mask argument, don't call print_help
13075 * opts-global.c (decode_options): Adjust finish_option caller, call
13078 PR tree-optimization/90303
13079 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13080 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13082 2019-05-03 Richard Biener <rguenther@suse.de>
13084 PR tree-optimization/89698
13085 * gimple-fold.c (canonicalize_constructor_val): Early out
13086 for constants, handle unfolded INTEGER_CSTs as they appear in
13087 C++ virtual table ctors.
13089 2019-05-03 Richard Biener <rguenther@suse.de>
13091 * passes.c (execute_function_todo): Remove dead code.
13093 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13095 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13096 the internal register number, for any "real" register.
13098 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13100 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13101 correct numbers for TFHAR, TFIAR, TEXASR.
13103 2019-05-02 Richard Biener <rguenther@suse.de>
13105 PR tree-optimization/89653
13106 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13107 update-address-taken before the pass.
13108 * passes.def (pass_tree_loop_init): Put comment before it.
13110 2019-05-02 Richard Biener <rguenther@suse.de>
13112 PR tree-optimization/89509
13113 * tree-ssa-structalias.c (compute_dependence_clique): Look
13114 at the first subvar when determining whether it is restrict.
13116 2019-05-02 Richard Biener <rguenther@suse.de>
13118 PR tree-optimization/90273
13119 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13120 useless debug stmts.
13122 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13124 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13126 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13128 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13129 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13130 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13131 (vectorizable_reduction): Use the functions above to vectorize in a
13132 fully masked loop codes that don't have a conditional internal
13135 2019-05-02 Martin Liska <mliska@suse.cz>
13137 * cgraphclones.c: Call valid_attribute_p with 1 for
13139 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13140 it's for target attribute.
13141 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13142 Add new boolean argument.
13143 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13145 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13146 to ix86_valid_target_attribute_inner_p.
13147 (ix86_valid_target_attribute_p): Pass flags argument to
13148 ix86_valid_target_attribute_inner_p.
13149 (get_builtin_code_for_version): Use 0 as it's target attribute.
13151 2019-05-02 Martin Liska <mliska@suse.cz>
13153 * gcc.c (process_command): Add dummy file only
13155 * opts-global.c (decode_options): Pass lang_mask.
13156 * opts.c (print_help): New function.
13157 (finish_options): Print --help if help_option_argument
13159 (common_handle_option): Factor out content of OPT__help_
13161 * opts.h (finish_options): Add new argument.
13163 2019-05-02 Martin Liska <mliska@suse.cz>
13166 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13167 With -minline-all-stringops use inline expansion using 4B loop.
13168 * doc/invoke.texi: Document the change of
13169 -minline-all-stringops.
13171 2019-05-01 Jeff Law <law@redhat.com>
13173 PR tree-optimization/88797
13174 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13175 PHI feeds a conditional on the RHS of an assignment.
13177 2019-04-30 Andrew Waterman <andrew@sifive.com>
13178 Jim Wilson <jimw@sifive.com>
13180 * config/riscv/constraints.md (L): New.
13181 * config/riscv/predicates.md (lui_operand): New.
13182 (sfb_alu_operand): New.
13183 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13184 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13185 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13186 * config/riscv/risc.md (type): Add sfb_alu.
13187 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13188 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13189 (branch_zero<mode>): Delete.
13190 (mov<mode>cc): New.
13191 (mov<GPR:mode><X:mode>cc): Likewise.
13192 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13194 2019-04-30 Nathan Sidwell <nathan@acm.org>
13196 * tree.h (MARK_TS_EXP): New.
13198 2019-04-30 Martin Liska <mliska@suse.cz>
13200 * opts.c (enable_warning_as_error): Provide hints
13201 for unknown options.
13203 2019-04-30 Martin Liska <mliska@suse.cz>
13206 * doc/invoke.texi: Add missing dash for gas-locview-support
13207 and gno-as-locview-support.
13209 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13212 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13213 whitespace at the start of target attribute string.
13215 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13218 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13219 Define __ARM_FEATURE_ATOMICS.
13221 2019-04-30 Martin Liska <mliska@suse.cz>
13223 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13224 into built_in_function enum. Remove code for endp == 2 and
13225 use BUILT_IN_* constants.
13226 (gimple_fold_builtin): Call the function with fcode.
13228 2019-04-30 Martin Liska <mliska@suse.cz>
13230 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13231 DECL_FUNCTION_CODE into ix86_builtins enum before
13232 the switch statement.
13234 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13236 PR tree-optimization/89475
13237 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13240 2019-04-30 Martin Liska <mliska@suse.cz>
13242 PR translation/90274
13243 * opts.c (print_filtered_help): Wrap string in _(...).
13245 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13247 PR tree-optimization/90240
13249 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13251 PR tree-optimization/90078
13252 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13253 checks for infinite_cost overflow.
13255 2019-04-29 Jeff Law <law@redhat.com>
13257 * passes.def: Move -Wrestrict pass after copy propagation.
13259 2019-04-29 Maya Rashish <coypu@sdf.org>
13261 * config.gcc (default_gnu_indirect_function): Default to yes
13262 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13263 sparc*-*-netbsd*, x86_64-*-netbsd*.
13265 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13267 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13268 where cond2 is NE_EXPR.
13269 (is_value_included_in): Update comment.
13271 2019-04-29 Richard Biener <rguenther@suse.de>
13273 PR tree-optimization/90278
13274 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13275 EH on comparison simplification.
13277 2019-04-29 Jason Merrill <jason@redhat.com>
13279 PR c++/82081 - tail call optimization breaks noexcept
13280 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13281 nothrow function to a might-throw function into a tail call.
13283 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13285 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13286 (DDR_INNER_LOOP): Likewise.
13287 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13288 (initialize_data_dependence_relation): Likewise.
13289 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13291 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13293 PR rtl-optimization/90257
13294 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13298 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13302 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13305 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13308 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13310 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13312 2019-04-29 Richard Biener <rguenther@suse.de>
13314 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13317 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13319 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13320 varasm.h, and netbsd-protos.h.
13322 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13325 * config/i386/i386-protos.h (ix86_data_alignment): Change
13326 the second argument type to unsigned int.
13327 * config/i386/i386.c (ix86_data_alignment): Change "align"
13328 argument type to unsigned int.
13330 2019-04-27 Martin Liska <mliska@suse.cz>
13332 PR middle-end/90258
13333 * opt-suggestions.c (option_proposer::build_option_suggestions):
13334 When get_valid_option_values returns empty values, add the
13335 misspelling candidate.
13337 2019-04-26 Jim Wilson <jimw@sifive.com>
13339 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
13341 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
13342 Pass orig_mode to riscv_build_integer.
13343 (riscv_split_integer): Pass mode to riscv_move_integer.
13344 (riscv_legitimize_const_move): Likewise.
13345 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
13346 promoted_mode. Replace force_reg call with code to load constant into
13347 promoted reg and then subreg it for the store.
13348 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
13349 riscv_move_integer.
13351 2018-04-26 Eugene Sharygin <eush@ispras.ru>
13353 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
13356 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
13358 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
13359 commentary about the encoding of precision.
13361 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
13363 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
13364 * config/i386/t-freebsd64: New file.
13365 * config.gcc: Add the t-freebsd64 for multilib support.
13367 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
13369 * doc/extend.texi (vector_size): Add missing comma after @xref.
13371 2019-04-25 Jakub Jelinek <jakub@redhat.com>
13373 * BASE-VER: Set to 10.0.0.
13375 2019-04-25 Richard Biener <rguenther@suse.de>
13377 PR middle-end/89765
13378 * gimplify.c (gimplify_expr): Avoid turning a lvalue
13379 VIEW_CONVERT_EXPR into one operating on an rvalue.
13381 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
13384 * config/i386/i386.c (feature_priority): Moved to file scope.
13385 (processor_features): Likewise.
13386 (processor_model): Likewise.
13387 (_arch_names_table): Likewise.
13388 (arch_names_table): Likewise.
13389 (_feature_list): Removed.
13390 (feature_list): Likewise.
13391 (_isa_names_table): Moved to file scope. Add priority.
13392 (isa_names_table): Likewise.
13393 (get_builtin_code_for_version): Replace feature_list with
13394 isa_names_table. Update error message for P_ZERO priority.
13396 2019-04-25 Richard Biener <rguenther@suse.de>
13398 * tree-pass.h (make_pass_phi_only_cprop): Remove.
13399 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
13401 2019-04-24 Jeff Law <law@redhat.com>
13403 PR tree-optimization/90037
13404 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
13405 * passes.def: Replace all instance of phi-only cprop with the
13406 lattice propagator. Move propagation pass from after erroneous
13407 path isolation to before erroneous path isolation.
13408 * tree-ssa-phionlycprop.c: Remove.
13410 2019-04-24 Richard Biener <rguenther@suse.de>
13412 PR middle-end/90213
13413 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
13414 by size and BITS_PER_UNIT on poly-wide-ints.
13416 2019-04-25 Richard Biener <rguenther@suse.de>
13418 PR middle-end/90194
13419 * match.pd: Add pattern to simplify view-conversion of an
13422 2019-04-24 Clement Chigot <clement.chigot@atos.net>
13424 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
13425 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
13426 for Go on 32 bit AIX.
13427 * config/rs6000/aix72.h: Likewise.
13429 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13432 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
13433 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
13435 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
13438 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
13439 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
13440 for restored hard frame pointer.
13441 (s390_sched_dependencies_evaluation): Implement new target hook.
13442 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
13444 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
13446 * config/arc/arc-options.def: Fix typos and spelling mistakes.
13447 * config/arc/arc.c (arc_init): Cleanup warning message.
13448 (arc_override_options): Likewise.
13450 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13453 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
13454 a register if both if_true and if_false are MEMs.
13456 PR tree-optimization/90208
13457 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
13458 after labels of new_bb, not before them.
13460 PR tree-optimization/90211
13461 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
13462 which are not SSA_NAMEs.
13464 2018-04-23 Sudakshina Das <sudi.das@arm.com>
13466 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
13468 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
13470 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13472 PR rtl-optimization/87979
13473 * modulo-sched.c (sms_schedule): Start ii value "mii" should
13476 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13478 PR rtl-optimization/84032
13479 * modulo-sched.c (ps_insn_find_column): Change condition so that
13480 branch will always be the last insn in a row inside partial
13483 2019-04-23 Richard Biener <rguenther@suse.de>
13486 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
13487 dest_single_pred_p argument.
13488 (remove_forwarder_block): Adjust.
13489 (remove_forwarder_block_with_phi): Likewise.
13491 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13492 Bernd Edlinger <bernd.edlinger@hotmail.de>
13493 Jakub Jelinek <jakub@redhat.com>
13496 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
13497 if used with general-regs-only.
13498 (arm_conditional_register_usage): Don't add non-general regs if
13500 (arm_valid_target_attribute_rec): Handle general-regs-only.
13501 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
13503 (TARGET_HARD_FLOAT_SUB): Define.
13504 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
13505 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
13506 (TARGET_REALLY_IWMMXT2): Likewise.
13507 * config/arm/arm.opt: Add -mgeneral-regs-only.
13508 * doc/extend.texi: Document ARM general-regs-only target.
13509 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
13511 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13513 PR tree-optimization/90078
13514 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13515 checks for infinite_cost overflow.
13517 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13519 PR tree-optimization/90021
13520 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
13521 and check univariate against it.
13522 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
13523 * tree-data-ref.c (add_other_self_distances): Pass new argument.
13525 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13529 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13532 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13535 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13537 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13539 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
13541 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
13542 names using operand format, rather than hard-wired.
13543 (speculation_barrier): Likewise.
13545 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
13547 PR tree-optimization/88055
13548 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
13549 (gen_one_condition): Use it if !HONOR_NANS.
13551 2019-04-19 Jakub Jelinek <jakub@redhat.com>
13553 PR middle-end/90139
13554 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
13555 assign_temp instead of gen_reg_rtx.
13557 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
13559 PR translation/90118
13560 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13561 Add missing space before %<.
13563 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
13565 PR rtl-optimization/87871
13566 * ira-lives.c (make_object_dead): Don't add conflicts to
13567 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
13569 2019-04-18 Martin Sebor <msebor@redhat.com>
13571 PR middle-end/89797
13572 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
13573 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
13574 assuming type size fits in SHWI.
13576 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
13579 * ipa-inline.c (flatten_function): New parameter UPDATE.
13580 (ipa_inline, early_inliner): Use it.
13582 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13584 * fold-const.c (int_const_binop): Return early on failure.
13586 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13588 PR middle-end/85164
13589 * combine.c (force_int_to_mode): Cast the argument rather than
13590 the result of known_alignment.
13591 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
13593 2019-04-18 Richard Biener <rguenther@suse.de>
13596 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
13598 (remove_forwarder_block): ... here.
13599 (remove_forwarder_block_with_phi): Also move debug stmts here.
13601 2019-04-18 Jakub Jelinek <jakub@redhat.com>
13603 PR translation/79183
13604 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
13605 inform where appropriate.
13607 2019-04-18 Richard Biener <rguenther@suse.de>
13609 * tree.c (get_qualified_type): Put found type variants at the
13610 head of the variant list.
13612 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13614 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
13616 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
13619 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
13620 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
13621 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
13622 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
13623 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
13625 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
13627 * ira-conflicts.c (print_allocno_conflicts): Always print something,
13628 even for allocno's with no conflicts.
13629 (print_conflicts): Print an extra newline.
13631 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13633 * auto-inc-dec.c (attempt_change): Set the alignment of the
13634 temporary memory to that of the original.
13636 2019-04-17 Joao Moreira <jmoreira@suse.de>
13638 * targhooks.c (default_print_patchable_function_entry): Emit
13639 __patchable_function_entries section with writable flags to allow
13640 relocation resolution.
13642 2019-04-17 Jonny Grant <jg@jguk.org>
13644 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
13646 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13648 PR middle-end/90095
13649 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
13650 on lowpart SUBREGs.
13652 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
13654 * config/arc/arc.c (arc_init): Format diagnostic string.
13655 (arc_override_options): Likewise.
13656 (check_if_valid_regno_const): Likewise.
13657 (arc_reorg): Likewise.
13659 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13662 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
13664 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
13666 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
13667 (*movdi_update1): Use Pmode.
13668 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
13669 (movdi_<mode>_update_stack): Rename to ...
13670 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
13672 (*movsi_update1): Use Pmode.
13673 (*movsi_update2): Use Pmode.
13674 (movsi_update): Rename to ...
13675 (movsi_<mode>_update): ... this. Use Pmode.
13676 (movsi_update_stack): Fix condition.
13677 (*movhi_update1): Use Pmode. Fix argument to
13678 avoiding_indexed_address_p.
13679 (*movhi_update2): Ditto.
13680 (*movhi_update3): Ditto.
13681 (*movhi_update4): Ditto.
13682 (*movqi_update1): Ditto.
13683 (*movqi_update2): Ditto.
13684 (*movqi_update3): Ditto.
13685 (*movsf_update1, *movdf_update1): Merge, rename to...
13686 (*mov<mode>_update1): This. Use Pmode. Fix argument to
13687 avoiding_indexed_address_p. Add "size" attribute.
13688 (*movsf_update2, *movdf_update2): Merge, rename to...
13689 (*mov<mode>_update2): This. Ditto.
13690 (*movsf_update3): Use Pmode. Fix argument to
13691 avoiding_indexed_address_p.
13692 (*movsf_update4): Ditto.
13693 (allocate_stack): Simplify condition. Adjust pattern names.
13695 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13698 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
13699 whitespace at the start of target attribute string.
13701 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
13704 * config/rs6000/power9.md: Add store forwarding bypass.
13706 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
13709 * valtrack.c (dead_debug_insert_temp): Reset debug references
13710 to the return value of a call being removed.
13712 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13714 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
13715 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
13716 implement target hook.
13717 (arc_memory_move_cost): New function.
13718 (TARGET_REGISTER_MOVE_COST): Define.
13719 (TARGET_MEMORY_MOVE_COST): Likewise.
13720 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
13721 (MEMORY_MOVE_COST): Likewise.
13723 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13725 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
13726 (sibcall_value_insn): Likewise.
13727 * config/arc/constraints.md (Rs5): Remove.
13729 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13731 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
13732 for last two fake registers.
13733 (arc_conditional_register_usage): Make sure fake frame and arg
13734 pointer regs are in general regs class.
13735 (FRAME_POINTER_MASK): Remove.
13736 (RETURN_ADDR_MASK): Remove.
13737 (arc_must_save_register): Use hard frame regnum.
13738 (frame_restore_reg): Use hard_frame_pointer_rtx.
13739 (arc_save_callee_saves): Likewise.
13740 (arc_restore_callee_saves): Likewise.
13741 (arc_save_callee_enter): Likewise.
13742 (arc_restore_callee_leave): Likewise.
13743 (arc_save_callee_milli): Likewise.
13744 (arc_eh_return_address_location): Likewise.
13745 (arc_check_multi): Use hard frame regnum.
13746 (arc_can_eliminate): Likewise.
13747 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
13748 for register allocator.
13749 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
13750 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
13751 (FRAME_POINTER_REGNUM): Change it to a fake register.
13752 (HARD_FRAME_POINTER_REGNUM): Defined.
13753 (ARG_POINTER_REGNUM): Change it to a new fake register.
13754 (ELIMINABLE_REGS): Update.
13755 (REGISTER_NAMES): Update names.
13756 * config/arc/arc.md (LP_START): Remove.
13757 (LP_END): Likewise.
13758 (shift_si3_loop): Update pattern.
13760 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13762 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
13763 to avoid delay slot scheduling.
13764 (arc_must_save_register): Don't save SP.
13765 * config/arc/arc.md (stack_tie): Remove.
13766 (UNSPEC_ARC_STKTIE): Likewise.
13768 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
13769 Shiva Chen <shiva0217@gmail.com>
13771 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
13772 code gen with large shift amount.
13774 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
13776 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
13779 2019-04-16 Jakub Jelinek <jakub@redhat.com>
13782 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
13783 print -m64/-mx32/-m32 if it is true.
13784 (ix86_debug_options, ix86_function_specific_print): Pass true as
13785 ADD_ABI_P to ix86_target_string.
13786 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
13787 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
13788 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
13790 PR rtl-optimization/90082
13791 * dce.c (can_delete_call): New function.
13792 (deletable_insn_p, mark_insn): Use it.
13794 PR tree-optimization/90090
13795 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
13797 (is_division_by_square): Likewise. Formatting fix.
13799 2019-04-16 Richard Biener <rguenther@suse.de>
13801 PR tree-optimization/56049
13802 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
13803 equality check if alias-set zero will prevail.
13805 2019-04-15 Jeff Law <law@redhat.com>
13807 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
13808 size and alignment as unsigned.
13810 2019-04-15 Richard Biener <rguenther@suse.de>
13813 * tree-loop-distribution.c (destroy_loop): Preserve correct
13816 2019-04-15 Richard Biener <rguenther@suse.de>
13818 PR tree-optimization/90071
13819 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
13820 abnormal operands from def stmts.
13822 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
13824 PR rtl-optimization/89794
13825 * combine.c (count_auto_inc): New function.
13826 (try_combine): Count how many auto_inc expressions there were in the
13827 original instructions. Ensure we have the same number in the new
13828 instructions. Remove the code that tried to ensure auto_inc side
13829 effects on i1 and i0 are not lost.
13831 2019-04-15 Richard Biener <rguenther@suse.de>
13834 * tree.h (auto_var_p): Declare.
13835 * tree.c (auto_var_p): New function, split out from ...
13836 (auto_var_in_fn_p): ... here.
13837 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
13839 (new_var_info): Initialize it.
13840 (set_uids_in_ptset): Also set the shadow variable uid if required.
13841 (ipa_pta_execute): Postprocess points-to solutions assigning
13842 shadow variable uids for locals that may reach their containing
13843 function recursively.
13844 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
13845 assert but instead check whether the points-to solution is
13848 2019-04-15 Martin Jambor <mjambor@suse.cz>
13851 * cgraph.c (clone_of_p): Loop over clone chain for each step in
13854 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13856 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
13858 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13859 Kito Cheng <kito.cheng@gmail.com>
13860 Shiva Chen <shiva0217@gmail.com>
13862 * config/nds32/nds32-md-auxiliary.c
13863 (nds32_legitimize_pic_address): Use new PIC pattern.
13864 (nds32_legitimize_tls_address): Use new TLS pattern.
13865 (nds32_output_symrel): New.
13866 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
13867 (nds32_alloc_relax_group_id): Ditto.
13868 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
13869 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
13871 (nds32_group_tls_insn): Ditto.
13872 (nds32_group_float_insns): Ditto.
13873 * config/nds32/nds32.md (tls_le): New.
13876 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
13878 * configure: Add nds32 target for dwarf2 debug_line checking.
13879 * configure.ac: Regenerated.
13881 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
13884 * ipa-devirt.c (skip_in_fields_list_p): New.
13885 (odr_types_equivalent_p): Use it.
13887 2019-04-13 Jakub Jelinek <jakub@redhat.com>
13890 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
13891 instead of strncmp when checking for thumb and arm. Formatting fixes.
13893 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
13895 * doc/install.texi: Document --with-target-system-zlib.
13897 2019-04-12 Martin Sebor <msebor@redhat.com>
13903 * targhooks.c (default_vector_alignment): Avoid assuming
13904 argument fits in SHWI.
13905 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
13906 a shift expression.
13907 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
13909 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13911 PR rtl-optimization/89965
13912 * dce.c: Include rtl-iter.h.
13913 (struct check_argument_load_data): New type.
13914 (check_argument_load): New function.
13915 (find_call_stack_args): Check for loads from stack slots still tracked
13916 in sp_bytes and punt if any is found.
13918 * config/mips/loongson-mmiintrin.h: Fix up #error message.
13920 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
13922 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
13923 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
13925 2019-04-12 Martin Liska <mliska@suse.cz>
13927 PR middle-end/89970
13928 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
13930 (separate_attrs): Handle multiple 'default's.
13931 (expand_target_clones): Rework error handling code.
13933 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
13936 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
13937 mode of vector rather than mode of destination for move instruction.
13938 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
13939 Use QI inner mode with V16QI vector mode.
13941 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13944 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
13945 "invalid %%t operand" in output_operand_lossage message.
13947 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
13949 * config/s390/predicates.md (permute_pattern_operand): New
13951 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
13952 operand for the permute pattern.
13953 ("*vec_perm<mode>"): New insn definition.
13954 ("bswap<mode>"): Generate the permute pattern operand in the
13955 expander and perform the operand reloads for pre arch13 level
13957 ("*bswap<mode>_emu"): Rename to ...
13958 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
13959 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
13960 Add the USE operand for the permute pattern.
13961 ("*vec_set_bswap_vec<mode>"): Likewise.
13963 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13966 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
13967 and gcc_unreachable if it fails, just call tree_to_uhwi which
13968 verifies that too. Test TREE_CHAIN instead of list_length > 1.
13969 Start warning message with a lower-case letter. Formatting fixes.
13971 PR rtl-optimization/90026
13972 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
13973 successors, look for BARRIERs inside of the whole BB_FOOTER chain
13974 rather than just at the start of it. If e->src BB_FOOTER is not NULL
13975 in cfglayout mode, use emit_barrier_after_bb.
13977 2018-04-11 Steve Ellcey <sellcey@marvell.com>
13979 PR rtl-optimization/87763
13980 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
13983 2019-04-11 Tom de Vries <tdevries@suse.de>
13985 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
13986 max macro using statement expression.
13988 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
13990 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
13991 * xcoffout.c (xcoff_private_rodata_section_name): Define.
13992 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
13993 read_only_private_data_section using xcoff_private_rodata_section_name.
13994 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
13996 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
13999 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14001 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14003 PR rtl-optimization/89965
14004 * dce.c (sp_based_mem_offset): New function.
14005 (find_call_stack_args): Use sp_based_mem_offset.
14007 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14009 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14011 2019-04-11 Richard Biener <rguenther@suse.de>
14013 PR tree-optimization/90020
14014 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14015 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14016 * tree-ssa-pre.c (compute_avail): Use it to not put
14017 possibly trapping references after a call that might not
14018 return into EXP_GEN.
14019 * gcse.c (compute_hash_table_work): Do not elide
14020 marking a block containing a call if the call might not
14023 2019-04-11 Richard Biener <rguenther@suse.de>
14025 PR tree-optimization/90018
14026 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14027 Test both SLP and interleaving variants.
14029 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14031 * config/s390/8561.md: New file.
14032 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14033 Add arch13 cpu model.
14034 * config/s390/s390-opts.h (enum processor_type): Likewise.
14035 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14036 (s390_get_unit_mask): Likewise.
14037 (s390_is_fpd): Likewise.
14038 (s390_is_fxd): Likewise.
14039 * config/s390/s390.h (s390_tune_attr): Likewise.
14040 * config/s390/s390.md: Include arch13 pipeline description.
14041 * config/s390/s390.opt: Add arch13.
14043 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14045 PR rtl-optimization/87763
14046 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14048 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14050 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14052 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14053 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14054 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14055 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14057 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14059 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14060 "Although" in -fipa-icf documentation.
14062 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14063 of using multiple -g options.
14065 2019-04-10 Martin Liska <mliska@suse.cz>
14067 PR gcov-profile/89959
14068 * doc/gcov.texi: Make documentation of -x option
14071 2019-04-10 Richard Biener <rguenther@suse.de>
14073 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14075 (DR_GROUP_SAME_DR_STMT): Remove.
14076 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14077 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14078 replace with assert.
14079 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14080 (vect_record_grouped_load_vectors): Remove unreachable code.
14082 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14085 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14086 obsolete reference to N.
14088 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14090 PR middle-end/90025
14091 * expr.c (store_expr): Set properly size on the MEM passed to
14095 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14096 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14097 translation is needed, and when translation is needed, only append
14098 ... if the string length is hostsz or more bytes long. Avoid using
14101 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14104 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14105 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14107 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14108 differences directly.
14109 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14111 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14113 PR translation/90011
14114 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14116 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14118 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14119 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14120 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14121 trailing space from -gsplit-dwarf diagnostics.
14123 PR tree-optimization/89998
14124 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14125 instead of integer_type_node if possible, don't add ranges if return
14126 type is not compatible with int.
14127 * gimple-fold.c (gimple_fold_builtin_sprintf,
14128 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14131 2019-04-09 Martin Liska <mliska@suse.cz>
14133 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14134 * doc/install.texi: Document the new config.
14136 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14138 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14139 use gimple_expr_type for load and store calls. Skip over the
14140 condition argument in a conditional internal function.
14141 Protect use of TREE_INT_CST_LOW.
14143 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14146 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14147 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14148 trailing period from it too.
14150 2019-04-08 wu yuan <wuyuan5@huawei.com>
14152 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14153 * config/aarch64/aarch64.md : Add "tsv110.md"
14154 * config/aarch64/tsv110.md: New file.
14156 2019-04-08 Richard Biener <rguenther@suse.de>
14158 PR tree-optimization/90006
14159 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14162 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14165 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14167 (fma_root_node): Likewise.
14168 (func_fma_steering): Likewise.
14170 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14172 PR rtl-optimization/89865
14173 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14175 PR rtl-optimization/89865
14176 * config/i386/i386.md
14177 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14178 numbers not to clash with the additional operands[4].
14179 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14180 with extra register copy in the middle.
14182 2019-04-08 Martin Liska <mliska@suse.cz>
14184 PR gcov-profile/89961
14185 * doc/gcov.texi: Document data_file.
14186 * gcov.c (generate_results): Add data_info into JSON output.
14188 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14190 PR tree-optimization/89725
14191 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14192 loop's chrec as invariant symbol.
14193 * tree-chrec.h (chrec_contains_symbols): New parameter.
14194 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14195 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14196 function of loops not in DDR's loop_nest.
14197 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14199 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14202 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14205 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14208 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14209 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14211 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14213 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14214 targetm.fixed_condition_code_regs.
14216 2019-04-05 Richard Biener <rguenther@suse.de>
14220 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14221 debug bind stmts but reset them if they are not valid at the
14224 2019-04-05 Martin Liska <mliska@suse.cz>
14226 PR translation/89936
14227 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14228 order to wrap keywords or arguments.
14229 * collect2.c (main): Likewise.
14230 (scan_prog_file): Likewise.
14231 (scan_libraries): Likewise.
14232 * common/config/riscv/riscv-common.c
14233 (riscv_subset_list::parsing_subset_version): Likewise.
14234 (riscv_subset_list::parse_std_ext): Likewise.
14235 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14237 * config/arm/arm.c (arm_option_override): Likewise.
14238 * config/cris/cris.c (cris_print_operand): Likewise.
14239 * config/darwin-c.c (darwin_pragma_options): Likewise.
14240 (darwin_pragma_unused): Likewise.
14241 (darwin_pragma_ms_struct): Likewise.
14242 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14243 * config/i386/i386.c (print_reg): Likewise.
14244 (ix86_print_operand): Likewise.
14245 * config/i386/xm-djgpp.h: Likewise.
14246 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14247 * config/m32c/m32c.c (m32c_option_override): Likewise.
14248 * config/msp430/msp430.c (msp430_option_override): Likewise.
14249 * config/nds32/nds32.c (nds32_option_override): Likewise.
14250 * config/nvptx/mkoffload.c (main): Likewise.
14251 * config/rx/rx.c (rx_print_operand): Likewise.
14252 (valid_psw_flag): Likewise.
14253 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14254 (vms_pragma_nomember_alignment): Likewise.
14255 (vms_pragma_extern_model): Likewise.
14256 * lto-wrapper.c (compile_offload_image): Likewise.
14257 * omp-offload.c (oacc_parse_default_dims): Likewise.
14258 * symtab.c (symtab_node::verify_base): Likewise.
14259 * tlink.c (recompile_files): Likewise.
14260 (start_tweaking): Likewise.
14261 * tree-profile.c (parse_profile_filter): Likewise.
14263 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14265 PR tree-optimization/89956
14266 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14267 multiple negates of the same value.
14269 2019-04-04 Martin Sebor <msebor@redhat.com>
14271 PR middle-end/89957
14272 PR middle-end/89911
14273 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14274 have the same precision since the function crashes otherwise.
14275 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14276 has non-zero arguments.
14278 2019-04-04 Martin Sebor <msebor@redhat.com>
14280 PR middle-end/89934
14281 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14282 out if the number of arguments is less than expected.
14284 2019-04-04 Jeff Law <law@redhat.com>
14286 PR rtl-optimization/89399
14287 * ree.c (combine_set_extension): Use single_set rather than
14288 digging into PATTERN for items on the candidate list.
14289 (combine_reaching_defs): Likewise.
14291 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14293 PR rtl-optimization/46590
14294 * loop-invariant.c (find_defs): Move df_remove_problem and
14295 df_process_deferred_rescans to move_invariants.
14296 Move df_live_add_problem and df_live_set_all_dirty calls
14297 to move_invariants.
14298 (move_invariants): Likewise.
14299 (move_loop_invariants): Likewise, making the df_live calls
14300 conditional on -O. Remove the problem again if we added it
14303 2019-04-03 qing zhao <qing.zhao@oracle.com>
14305 PR tree-optimization/89730
14306 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14307 -flive-patching=inline-only-static.
14308 (can_inline_edge_by_limits_p): Add the checking for
14309 -flive-patching=inline-only-static and grant always_inline
14310 even when -flive-patching=inline-only-static is specified.
14312 2019-04-03 Jeff Law <law@redhat.com>
14314 PR rtl-optimization/81025
14315 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14317 2019-04-03 Richard Biener <rguenther@suse.de>
14319 PR tree-optimization/84101
14320 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14321 regs.h for hard_regno_nregs.
14322 (cfun_returns): New helper.
14323 (vect_model_store_cost): When vectorizing a store to a decl
14324 we return and the function ABI returns in a multi-reg location
14325 account for the possible spilling that will happen.
14327 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
14329 * config/s390/s390.c (s390_legitimate_address_p): Reject long
14330 displacement addresses for vector mode operands.
14332 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
14334 * config/arc/arc.c (GMASK_LEN): Define.
14335 (arc_restore_callee_saves): Restore first blink when
14338 2019-04-03 Sudakshina Das <sudi.das@arm.com>
14340 * doc/extend.texi: Add deprecated comment on sign-return-address
14341 function attribute and add mbranch-protection.
14342 * doc/invoke.texi: Add bti to the options for mbranch-protection.
14344 2019-04-03 Richard Biener <rguenther@suse.de>
14347 * lto-wrapper.c (run_gcc): Avoid implicit rules making
14348 the all target phony.
14350 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
14354 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14355 Return false for variable DImode shifts.
14356 (dimode_scalar_chain::compute_convert_gain): Do not handle
14357 register count operand in variable DImode shifts.
14358 (dimode_scalar_chain::make_vector_copies): Remove support to copy
14359 count argument of a variable shift instruction to a vector register.
14360 (dimode_scalar_chain::convert_reg): Remove support to convert
14361 count argument of a variable shift instruction.
14363 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14365 PR rtl-optimization/84206
14366 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
14367 iterating over loop headers.
14369 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14371 PR rtl-optimization/85876
14372 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
14373 beyond the original fence.
14375 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
14377 * config.gcc: Mark spu* targets as deprecated/obsolete.
14379 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14381 * config/s390/s390-builtin-types.def: New builtin function type
14382 definitions. Remove unused types.
14383 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
14384 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
14385 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
14386 overloaded builtins.
14387 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
14388 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
14389 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
14390 (vec_double, vec_signed, vec_unsigned): Define to use the new
14391 overloaded builtins.
14392 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
14395 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14397 * config/s390/s390-builtin-types.def: New builtin function type
14399 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
14400 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
14401 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
14402 (s390_vstrszh, s390_vstrszf): New low-level builtins.
14403 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
14404 constant definitions.
14405 * config/s390/vecintrin.h (vec_search_string_cc)
14406 (vec_search_string_until_zero_cc): New builtin name definitions.
14407 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
14409 ("vec_vstrs<mode>"): New insn definition.
14411 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14413 * config/s390/s390-builtin-types.def: Add new builtin function
14415 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
14416 New overloaded builtins.
14417 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
14419 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
14420 (UNSPEC_VEC_SLDBYTE): ... this.
14421 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
14422 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
14424 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
14425 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
14426 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
14428 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14430 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
14431 New insn definition.
14432 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
14433 * config/s390/vector.md (V_HW_HSD): ... here.
14435 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14437 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
14438 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
14439 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
14440 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
14441 New insn definitions.
14443 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14445 * config/s390/s390-builtin-types.def: Add new builtin function type.
14446 * config/s390/s390-builtins.def: Add overloaded builtin
14447 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
14448 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
14449 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
14450 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
14451 ("eltswap<mode>"): New expander.
14452 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
14455 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14457 * config/s390/s390-builtin-types.def: Add new builtin function types.
14458 * config/s390/s390-builtins.def: Add overloaded builtin
14459 s390_vec_revb. Add low-level builtins for vlbr and vstbr
14461 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
14462 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
14463 ("bswap<mode>"): New expander.
14464 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
14466 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14468 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
14469 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
14470 vector builtin version number in __VEC__.
14472 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14474 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
14476 (SFSI): New mode attribute.
14477 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
14478 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
14480 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
14481 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
14482 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
14483 ("floatsi<mode>2"): Add wcefb instruction.
14485 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14487 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
14488 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
14490 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
14491 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
14492 support 32 bit fp-int conversions. Rename to ...
14493 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14494 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14495 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
14496 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
14499 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14501 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
14502 if-then-else constructs if we can use the select instruction.
14503 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
14505 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14507 * config/s390/s390.md ("*popcountdi_arch13_cc")
14508 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
14510 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
14511 Append _z196 to make it ...
14512 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
14513 ("popcounthi2_z196"): ... this.
14514 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
14515 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
14517 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14519 * config/s390/s390.c (s390_canonicalize_comparison): Convert
14520 certain compares for arch13 in order to make use of the condition
14521 code result produced by the new instructions.
14522 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
14523 nxrk, and nxgrk instruction patterns.
14524 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
14525 (inv_no): Add new code iterator together with some attributes.
14526 ("*andc_split_<mode>"): Disable splitter for arch13.
14527 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
14528 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
14529 ("*<ANDOR:bitops_name>c<GPR:mode>")
14530 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
14531 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
14532 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
14533 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
14535 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14537 * common/config/s390/s390-common.c (processor_flags_table): New
14539 * config.gcc: Support arch13 with the --with-arch= configure flag.
14540 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14541 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
14542 * config/s390/s390.c (s390_get_sched_attrmask)
14543 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
14544 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
14545 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
14546 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
14547 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
14549 * config/s390/s390.opt: Support arch13 as processor type in
14550 command line options.
14552 2019-04-02 Martin Liska <mliska@suse.cz>
14554 PR translation/89912
14555 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
14556 Fix param description of graphite-max-arrays-per-scop.
14558 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
14560 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
14561 (ASAN_CC1_SPEC): Use it in 64-bit mode.
14562 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
14564 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14566 PR rtl-optimization/85412
14567 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
14568 sel_sched_region_1, not after.
14570 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14572 PR rtl-optimization/86928
14573 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
14574 compute_live if necessary.
14575 (sel_redirect_edge_and_branch): Likewise.
14577 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
14579 PR rtl-optimization/89865
14580 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
14581 register if it is a part of small class.
14583 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14585 PR rtl-optimization/87273
14586 * sel-sched-ir.c (merge_fences): Remove assert.
14588 2019-04-01 Richard Biener <rguenther@suse.de>
14590 PR tree-optimization/46590
14591 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
14592 (dom_walker::m_reachability): Add in place of...
14593 (dom_walker::m_skip_unreachable_blocks): ...this.
14594 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
14595 Move complex initialization ...
14596 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
14597 lazily and initialize edge flags on each invocation.
14598 (dom_walker::bb_reachable): Use m_reachability.
14600 2019-04-01 Martin Liska <mliska@suse.cz>
14603 * opt-suggestions.c (option_proposer::build_option_suggestions):
14604 Add variant without any argument in order to provide better
14607 2019-04-01 Richard Biener <rguenther@suse.de>
14610 * gimple.c: Include langhooks.h.
14611 (gimple_get_alias_set): Treat enumeral types as the underlying
14614 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14615 Eric Botcazou <ebotcazou@adacore.com>
14617 PR rtl-optimization/89862
14618 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
14619 that operates on the full registers for WORD_REGISTER_OPERATIONS
14622 2019-03-29 Jim Wilson <jimw@sifive.com>
14624 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
14625 Clear MASK_RVC and then set if C subset supported.
14627 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14630 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
14631 non-addressable complit into its initializer if it is volatile.
14633 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
14635 * opts-common.c (integral_argument): Set errno properly in one case.
14637 2019-03-29 Martin Liska <mliska@suse.cz>
14639 * doc/invoke.texi: Remove -Wchkp from documentation.
14641 2019-03-29 Martin Liska <mliska@suse.cz>
14643 * dbgcnt.c (print_limit_reach): New function.
14646 2019-03-29 Martin Liska <mliska@suse.cz>
14648 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
14649 (dbg_cnt_process_opt): Parse first tokens aas
14650 dbg_cnt_process_single_pair is also using strtok.
14652 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14654 PR rtl-optimization/87485
14655 * function.c (expand_function_end): Move stack_protect_epilogue
14656 before loading of return value into hard register(s).
14658 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14660 PR middle-end/89621
14661 * tree-inline.h (struct copy_body_data): Add
14662 dont_remap_vla_if_no_change flag.
14663 * tree-inline.c (remap_type_3, remap_type_2): New functions.
14664 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
14665 and remap_type_2 returns false.
14666 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
14667 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
14668 only from where it is copied to nested contexts.
14670 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14673 * config/i386/i386.md (RMW operation with LEA peephole):
14674 Use LEAMODE mode attribute instead of SWI mode iterator for
14677 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14680 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
14681 Also process XEXP (src, 0) of a shift insn.
14683 2019-03-28 David Malcolm <dmalcolm@redhat.com>
14685 PR middle-end/89725
14686 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
14687 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
14689 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14691 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
14693 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
14694 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
14695 immediately after first one with df_analyze in between, but rather
14696 process all bbs, queueing ones that need second pass in a worklist,
14697 df_analyze, process queued debug insn changes and if second pass is
14698 needed, process bbs from worklist, df_analyze, process queued debug
14701 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
14702 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
14703 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
14705 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
14708 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
14711 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
14714 * config/i386/i386.c (ix86_function_value_1): Call the newly added
14715 function for 32-bit MS_ABI.
14716 (function_value_ms_32): New function.
14718 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
14720 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
14721 (movdi): Call gen_movdi_symbol_save_scc.
14722 (gen_movdi_symbol_save_scc): New insn and split.
14724 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
14726 PR rtl-optimization/89313
14727 * function.c (matching_constraint_num): New static function.
14728 (match_asm_constraints_1): Use it. Fixup white space and comment.
14729 Don't replace inputs with non-matching constraints which conflict
14730 with early clobber outputs.
14732 2019-03-27 Jeff Law <law@redhat.com>
14734 PR rtl-optimization/87761
14735 PR rtl-optimization/89826
14736 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
14738 (pass_cprop_hardreg::execute): Call df_analyze after adding the
14739 note problem to get REG_DEAD/REG_UNUSED notes updated.
14741 2019-03-27 Richard Biener <rguenther@suse.de>
14743 PR tree-optimization/89463
14744 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
14745 queue edges to remove.
14746 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
14747 dead stmts. Delay edge removal until PHIs are removed to
14748 make debug-stmt creation not confused by seemingly degenerate
14751 2019-03-27 Alan Modra <amodra@gmail.com>
14753 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
14755 * config/rs6000/darwin.h: Likewise.
14756 * config/rs6000/rs6000.c: Likewise.
14758 2019-03-27 Alan Modra <amodra@gmail.com>
14760 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
14761 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
14763 2019-03-26 Andrew Waterman <andrew@sifive.com>
14764 Jim Wilson <jimw@sifive.com>
14766 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
14767 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
14768 (generic_idivdi, generic_fmul_single, generic_fmul_double)
14769 (generic_fdiv, generic_fsqrt): Add check for generic tune.
14770 (generic_alu): Add auipc to type list.
14771 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
14772 (riscv_microarchitecture): Declare.
14773 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
14774 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
14776 (riscv_microarchitecture): New.
14777 (sifive_7_tune_info): New.
14778 (riscv_cpu_info_table): Add microarchitecture value for rocket and
14779 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
14781 (riscv_store_data_bypass_p): New.
14782 (riscv_option_override): Set riscv_microarchitecture from
14783 cpu->microarchitecture.
14784 * config/riscv/riscv.md: Include sifive-7.md.
14787 (auipc<mode>): Change type to auipc.
14788 (restore_stack_nonlocal): New.
14789 * config/riscv/sifive-7.md: New.
14790 * doc/invoke.texi (RISC-V Options): Update mtune docs.
14792 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
14795 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
14796 Also process XEXP (src, 0) of a shift insn.
14798 2019-03-26 Richard Biener <rguenther@suse.de>
14800 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
14801 (copy_debug_stmt): Likewise.
14802 (expand_call_inline): Likewise.
14803 (copy_bb): Avoid redundant lookup & set of gimple_block.
14804 * gimple-low.c (lower_gimple_return): Likewise.
14805 (lower_builtin_setjmp): Likewise.
14807 2019-03-26 Jakub Jelinek <jakub@redhat.com>
14809 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
14810 is constant 0, turn into static const data member initialized to false.
14811 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
14812 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
14814 2019-03-26 Jason Merrill <jason@redhat.com>
14815 Jakub Jelinek <jakub@redhat.com>
14817 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
14819 (mem_alloc_description::release_object_overhead): Fix comment typos.
14820 * hash-table.h (hash_table::~hash_table): Call
14821 release_instance_overhead only if m_entries is non-NULL, otherwise
14822 call unregister_descriptor.
14824 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
14826 PR tree-optimization/81740
14827 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14828 In case of outer loop vectorization, check for backward dependence
14829 at the inner loop if outer loop dependence is reversed.
14831 2019-03-26 Alan Modra <amodra@gmail.com>
14833 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
14834 rs6000_vector_mem init. Correct wI and wJ comment.
14836 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
14838 PR rtl-optimization/88347
14839 PR rtl-optimization/88423
14840 * sched-deps.c (sched_analyze_insn): Take into account that for
14841 tablejumps the barrier appears after a label and a jump_table_data.
14843 2019-03-25 Martin Sebor <msebor@redhat.com>
14846 * c-common.c (check_user_alignment): Rename local. Correct maximum
14847 alignment in diagnostic. Avoid assuming argument fits in SHWI,
14848 convert it to UHWI when it fits.
14850 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
14853 * dwarf2out.c (premark_used_variables): New function.
14854 (prune_unused_types_walk): Do not mark not premarked external
14856 (prune_unused_types): Call premark_used_variables.
14858 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
14860 PR rtl-optimization/89676
14861 * lra-constraints.c (curr_insn_transform): Do match reload for
14862 early clobbers when the match was successful only for different
14865 2019-03-25 Martin Sebor <msebor@redhat.com>
14867 * doc/extend.texi (Common Type Attributes): Document vector_size.
14868 (Common Variable Attributes): Mention size constraint. Correct
14870 (Vector Extensions): Use @dfn when defining bas type. Clarify
14871 base type and size constraints.
14873 2019-03-25 Richard Biener <rguenther@suse.de>
14875 PR tree-optimization/89789
14876 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
14877 changes from non-undefined back to undefined.
14879 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
14881 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
14882 heap string and a gc string, but since this variable is unknown to
14883 ggc the gc string might get reused and corrupted. Fixed by always
14884 using a heap string.
14886 2019-03-25 Richard Biener <rguenther@suse.de>
14888 PR tree-optimization/89779
14889 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
14890 to remove IV defs, delay actual removal.
14891 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
14892 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
14893 very end, properly also reset loop control IV information.
14895 2019-03-25 Richard Biener <rguenther@suse.de>
14897 PR tree-optimization/89802
14898 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
14899 move EH data to folded stmt.
14901 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14903 * config/s390/s390-builtin-types.def: Remove few unused types and
14904 fix sort order for others.
14906 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14908 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
14909 expected and found types with -mdebug during builtin matching.
14911 2019-03-25 Richard Biener <rguenther@suse.de>
14913 PR middle-end/89790
14914 * fold-const.c (operand_equal_p): Revert last change with
14917 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
14919 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
14920 notes for the result of the __tls_get_addr calls.
14921 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
14923 2019-03-24 Jeff Law <law@redhat.com>
14925 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
14927 PR rtl-optimization/87761
14928 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
14929 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
14931 (pass_cprop_hardreg::execute): Add df note problem and defer insn
14932 rescans. Reprocess blocks as needed, calling df_analyze before
14933 reprocessing. Always call df_analyze before fixing up debug bind
14936 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
14938 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
14941 2019-03-22 Andrew Pinski <apinski@marvell.com>
14943 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
14944 attrribute for uxtw.
14946 2019-03-26 Jeff Law <law@redhat.com>
14948 PR rtl-optimization/87761
14949 * config/mips/mips-protos.h (mips_split_move): Add new argument.
14950 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
14951 (mips_split_move): Accept new INSN argument. Try to forward SRC
14952 into the next instruction.
14953 (mips_split_move_insn): Pass INSN through to mips_split_move.
14955 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
14957 PR rtl-optimization/89676
14958 * lra-constraints.c (curr_insn_transform): Do match reload for
14959 early clobbers even if the match was successful.
14961 2019-03-22 Jakub Jelinek <jakub@redhat.com>
14964 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
14966 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
14968 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
14970 2019-03-22 Jakub Jelinek <jakub@redhat.com>
14972 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
14973 <avx512>_fmsub_<mode>_mask3<round_name>,
14974 <avx512>_fnmadd_<mode>_mask3<round_name>,
14975 <avx512>_fnmsub_<mode>_mask3<round_name>,
14976 avx512f_vmfmadd_<mode>_mask3<round_name>,
14977 avx512f_vmfmsub_<mode>_mask3<round_name>,
14978 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
14979 instead of register_operand and %v instead of v for match_operand 1.
14980 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
14981 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
14982 <round_nimm_predicate> instead of register_operand and %v instead of v
14983 for match_operand 1.
14985 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
14986 <avx512>_fmadd_<mode>_mask3<round_name>,
14987 <avx512>_fmsub_<mode>_mask<round_name>,
14988 <avx512>_fmsub_<mode>_mask3<round_name>,
14989 <avx512>_fnmadd_<mode>_mask<round_name>,
14990 <avx512>_fnmadd_<mode>_mask3<round_name>,
14991 <avx512>_fnmsub_<mode>_mask<round_name>,
14992 <avx512>_fnmsub_<mode>_mask3<round_name>,
14993 <avx512>_fmaddsub_<mode>_mask<round_name>,
14994 <avx512>_fmaddsub_<mode>_mask3<round_name>,
14995 <avx512>_fmsubadd_<mode>_mask<round_name>,
14996 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
14997 <round_nimm_predicate> instead of nonimmediate_operand.
14998 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
14999 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15000 Use register_operand instead of <round_nimm_predicate> for the
15001 operand that needs to match output.
15002 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15003 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15004 Likewise. Formatting fixes.
15007 * config/i386/i386.c (enum ix86_builtins): Remove
15008 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15009 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15010 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15011 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15012 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15013 __builtin_ia32_vfmsubss3_mask3): New builtins.
15014 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15015 avx512f_vmfmadd_<mode>_mask3<round_name>,
15016 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15017 *avx512f_vmfmsub_<mode>_mask<round_name>,
15018 avx512f_vmfmsub_<mode>_mask3<round_name>,
15019 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15020 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15021 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15022 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15023 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15024 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15025 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15026 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15027 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15028 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15029 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15030 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15031 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15032 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15033 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15034 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15035 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15036 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15037 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15038 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15039 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15040 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15041 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15042 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15043 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15044 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15045 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15046 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15048 2019-03-21 Martin Sebor <msebor@redhat.com>
15050 PR tree-optimization/89350
15051 * builtins.c (compute_objsize): Also ignore offsets whose upper
15053 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15054 (builtin_memref::builtin_memref): Initialize new member.
15055 Allow EXPR to be null.
15056 (builtin_memref::extend_offset_range): Replace local with a member.
15057 Avoid assuming pointer offsets are unsigned.
15058 (builtin_memref::set_base_and_offset): Determine base object
15059 before computing offset range.
15060 (builtin_access::builtin_access): Handle memset.
15061 (builtin_access::generic_overlap): Replace local with a member.
15062 (builtin_access::strcat_overlap): Same.
15063 (builtin_access::overlap): Same.
15064 (maybe_diag_overlap): Same.
15065 (maybe_diag_access_bounds): Same.
15066 (wrestrict_dom_walker::check_call): Handle memset.
15067 (check_bounds_or_overlap): Same.
15069 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15070 Jakub Jelinek <jakub@redhat.com>
15073 * tree.c (fld_type_variant, fld_incomplete_type_of,
15074 fld_process_array_type): Call fld->pset.add and don't call
15075 add_tree_to_fld_list if it returns true.
15076 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15077 non-marked types from TYPE_NEXT_VARIANT list.
15078 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15080 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15082 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15083 to false, if true, don't alloc_entries during construction, but defer
15084 it to the first method that needs m_entries allocated.
15085 (hash_table::hash_table, hash_table::~hash_table,
15086 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15087 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15088 hash_table::clear_slot, hash_table::traverse_noresize,
15089 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15090 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15092 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15093 NO_INSERT instead of find_with_hash.
15094 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15095 hash_set::m_table): Add Lazy to template params of hash_table.
15096 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15097 * attribs.c (test_attribute_exclusions): Likewise.
15098 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15099 hash_set. Add tests for hash_set with Lazy = true.
15101 2019-03-21 Richard Biener <rguenther@suse.de>
15103 PR tree-optimization/89779
15104 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15105 checks with respect to released SSA names now having error_mark_node
15107 * fold-const.c (operand_equal_p): Likewise.
15109 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15112 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15114 (s390_optimize_register_info): Use global_not_special_regno_p to
15115 check for global regs.
15117 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15120 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15121 update this_alternative nor this_alternative_set.
15123 2019-03-19 Jim Wilson <jimw@sifive.com>
15126 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15127 align, size, offset. Use them to handle a BLKmode reference. Update
15129 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15131 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15133 PR rtl-optimization/89768
15134 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15135 instead of GEN_INT.
15136 (unroll_loop_runtime_iterations): Likewise.
15138 2019-03-19 Martin Sebor <msebor@redhat.com>
15140 PR tree-optimization/89644
15141 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15142 rather than endptr as an indicator of nul-termination.
15144 PR tree-optimization/89644
15145 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15146 arrays in determining sequence sizes in strncpy and stpncpy.
15148 2019-03-19 Martin Liska <mliska@suse.cz>
15150 PR middle-end/89737
15151 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15152 unlikely_edges if there's an edge that belongs to both these sets.
15154 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15157 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15158 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15159 go via a stack temporary.
15161 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15164 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15165 instead of gen_rtx_SUBREG.
15166 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15168 2019-03-19 Richard Biener <rguenther@suse.de>
15171 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15173 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15177 * tree.c (free_lang_data_in_decl): Do not free context of C++
15180 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15183 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15184 subs for the first alternative except when operands[3] is 1.
15187 * gimplify.c (gimplify_asm_expr): For output argument with
15188 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15191 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15193 PR rtl-optimization/89753
15194 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15195 explicit unrolling factor even more robust.
15197 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15200 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15201 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15202 signed zeros, do another copysign after the compensation.
15204 2019-03-18 Martin Sebor <msebor@redhat.com>
15206 PR tree-optimization/89720
15207 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15208 more conservatively, the same as anti-range.
15210 2019-03-18 Richard Biener <rguenther@suse.de>
15212 PR middle-end/88945
15213 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15214 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15215 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15216 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15218 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15220 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15221 Extend queue to 1024 entries.
15222 Add "consumed" field.
15223 (gomp_print_output): Remove print_index parameter.
15224 Add final parameter.
15225 Change limit to unsigned.
15226 Use consumed field to implement circular buffer.
15227 Detect interrupted print in final pass.
15228 Flush output at the end.
15229 (run): Update gomp_print_output usage.
15230 (main): Initialize kernargs->output_data.consumed.
15232 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15234 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15235 calculation of the minimum number of scalar iterations for
15236 fully-predicated loops.
15238 2019-03-18 Martin Jambor <mjambor@suse.cz>
15240 PR tree-optimization/89546
15241 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15242 any propagation to its children took place.
15244 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15247 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15248 parameter, and make use of it.
15249 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15251 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15253 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15254 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15255 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15256 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15257 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15258 match what the ops is doing.
15259 (push_multi_fp_blink): Likewise.
15260 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15261 compiling for size and elf target.
15262 (arc_save_callee_enter): Adjust note to match what enter/leave
15265 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15267 * config/arc/arc.md (tst_movb): Fix constraint.
15269 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15271 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15273 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15275 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15276 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15277 reg_alloc_order references.
15278 (size_alloc_order): Define.
15279 (arc_adjust_reg_alloc_order): New function.
15280 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15282 (ADJUST_REG_ALLOC_ORDER): Define.
15283 (HONOR_REG_ALLOC_ORDER): Likewise.
15285 2019-03-18 Richard Biener <rguenther@suse.de>
15288 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15289 loads and stores a bit more.
15291 2019-03-18 Richard Biener <rguenther@suse.de>
15294 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15295 load pessimization to stores as well.
15297 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15299 PR middle-end/86979
15300 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15301 successor, use NULL as its av set.
15303 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15305 PR rtl-optimization/89721
15306 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15308 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15311 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15312 When handling vec_extract, use modular arithmetic to allow
15313 constant selectors greater than vector length.
15314 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15315 V1TImode vectors to have constant selector values greater than 0.
15316 Use modular arithmetic to compute vector index.
15317 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15318 index for in-memory vectors. Correct code generation for
15319 in-register vectors.
15320 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15323 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
15327 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
15330 2019-03-15 Jakub Jelinek <jakub@redhat.com>
15333 * tree.c (inchash::add_expr): Strip any location wrappers.
15334 * fold-const.c (operand_equal_p): Move stripping of location wrapper
15335 after hash verification.
15338 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
15339 SIGN_EXTEND and ZERO_EXTEND.
15341 2019-03-14 Jason Merrill <jason@redhat.com>
15342 Jakub Jelinek <jakub@redhat.com>
15344 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
15345 than if is_empty (*slot).
15346 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
15347 existing elt and for elt removal.
15348 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
15349 of already removed elt.
15351 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
15354 * config/i386/i386.c (remove_partial_avx_dependency): Handle
15355 REG_EH_REGION note.
15357 2019-03-14 Martin Liska <mliska@suse.cz>
15360 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
15362 2019-03-14 Richard Biener <rguenther@suse.de>
15365 * config/i386/i386.c (make_resolver_func): Properly set
15366 DECL_CONTEXT on the RESULT_DECL.
15367 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
15369 2019-03-14 Richard Biener <rguenther@suse.de>
15371 * gimple-pretty-print.c: Include cfgloop.h.
15372 (dump_gimple_phi): Adjust.
15373 (dump_gimple_bb_header): Dump loop header for GIMPLE.
15374 (pp_cfg_jump): Adjust.
15375 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
15376 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
15377 (lower_phi_internal_fn): Remove.
15378 (verify_gimple_call): Remove IFN_PHI special-casing.
15379 (dump_function_to_file): Dump IL state.
15380 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
15381 done to deal with PHI nodes being present in non-SSA state.
15383 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15386 * multiple_target.c (create_dispatcher_calls): Change
15387 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
15388 In the node->iterate_referring loop, push *ref rather than ref, call
15389 ref->remove_reference () and always pass 0 to iterate_referring.
15391 PR rtl-optimization/89679
15392 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
15393 would contain a paradoxical SUBREG.
15395 2019-03-14 Richard Biener <rguenther@suse.de>
15397 PR tree-optimization/89710
15398 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
15401 2019-03-14 Martin Liska <mliska@suse.cz>
15403 * coverage.c (coverage_begin_function): Stream also
15405 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
15406 documentation about function declaration location.
15407 * gcov-dump.c (tag_function): Print whole range
15408 of function declaration.
15409 * gcov.c (struct function_info): Add end_column field.
15410 (function_info::function_info): Initialize it.
15411 (output_json_intermediate_file): Output {start,end}_column
15413 (read_graph_file): Read end_column.
15415 2019-03-14 Richard Biener <rguenther@suse.de>
15417 PR middle-end/89698
15418 * fold-const.c (operand_equal_p): For INDIRECT_REF check
15419 that the access types are similar.
15421 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15423 PR tree-optimization/89703
15424 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
15425 aren't compatible also with builtin_decl_explicit. Check pure
15426 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
15427 and BUILT_IN_STPNCPY{,_CHK}.
15429 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
15432 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
15433 addr32 prefix to VSIB address for X32.
15434 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
15436 (*avx512pf_gatherpf<mode>df_mask): Likewise.
15437 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
15438 (*avx512pf_scatterpf<mode>df_mask): Likewise.
15439 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
15440 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
15441 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
15442 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
15443 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
15444 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
15445 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
15446 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
15447 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
15448 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
15449 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
15450 (*avx512f_scatterdi<mode>): Likewise.
15452 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
15455 * lra-constraints.c (inherit_in_ebb): Update
15456 potential_reload_hard_regs along with live_hard_regs.
15458 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15461 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
15463 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
15465 2019-03-13 Martin Sebor <msebor@redhat.com>
15467 PR tree-optimization/89662
15468 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
15471 2019-03-13 Richard Biener <rguenther@suse.de>
15473 PR middle-end/89677
15474 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
15475 throw FP expressions at tree-affine.
15477 2019-03-14 Richard Biener <rguenther@suse.de>
15479 * tree-pretty-print.c (dump_generic_node): For -gimple properly
15480 dump negative integer constants using _Literal (type) -num.
15482 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15484 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
15485 nonlocal_value member.
15487 PR middle-end/88588
15488 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
15489 (ipa_simd_modify_function_body): Handle PHIs.
15491 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15493 * config/s390/s390.c (s390_option_override_internal): Use more
15494 aggressive inlining parameters.
15496 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15498 * config/s390/3906.md: New file.
15499 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15500 (LONGRUNNING_THRESHOLD): Remove.
15501 (MAX_SCHED_MIX_SCORE): Decrease.
15502 (MAX_SCHED_MIX_DISTANCE): Decrease.
15503 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
15504 (struct s390_sched_state): New struct to hold scheduling state.
15505 (S390_SCHED_STATE_NORMAL): Remove.
15506 (S390_SCHED_STATE_CRACKED): Remove.
15507 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
15508 (s390_get_sched_attrmask): Use new attribute.
15509 (s390_get_unit_mask): Use new units.
15510 (s390_is_fpd): New function.
15511 (s390_is_fxd): New function.
15512 (s390_is_longrunning): New function.
15513 (s390_sched_score): Use new functions.
15514 (s390_sched_reorder): Likewise.
15515 (s390_sched_variable_issue): Rework and use new functions.
15516 (s390_sched_init): Use new functions.
15517 * config/s390/s390.h (s390_tune_attr): Add z14.
15518 * config/s390/s390.md: Add z14.
15520 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15522 * config/s390/2964.md: Update pipeline description.
15523 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15524 (LONGRUNNING_THRESHOLD): Remove.
15525 (LATENCY_FACTOR): Remove.
15526 (s390_get_unit_mask): Add unit.
15527 (s390_sched_score): Use fxd/fpd.
15528 (s390_sched_variable_issue): Use fxd/fpd.
15530 2019-03-12 Martin Liska <mliska@suse.cz>
15532 * config/i386/i386.c: Reword an error message.
15534 2019-03-12 Martin Jambor <mjambor@suse.cz>
15536 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
15537 terminate with newline.
15539 2019-03-12 Jakub Jelinek <jakub@redhat.com>
15542 * config/s390/s390.md (tabort): Use %wd instead of
15543 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
15544 letters and periods.
15545 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
15546 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
15549 PR middle-end/89663
15550 * builtins.c (expand_builtin_int_roundingfn,
15551 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
15552 gcc_unreachable if validate_arglist fails.
15554 2019-03-12 Richard Biener <rguenther@suse.de>
15556 PR tree-optimization/89664
15557 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
15558 free the occurance tree after the early out.
15560 2019-03-11 Jakub Jelinek <jakub@redhat.com>
15562 PR middle-end/89655
15564 * vr-values.c (vr_values::update_value_range): If
15565 old_vr->varying_p (), don't update it, make new_vr also VARYING
15568 2019-03-11 Martin Liska <mliska@suse.cz>
15570 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15571 Fix double string quoting.
15573 2019-03-11 Martin Liska <mliska@suse.cz>
15575 * collect-utils.c (collect_wait): Wrap apostrophes
15576 in gcc internal format with %'.
15577 * collect2.c (main): Likewise.
15578 (scan_prog_file): Likewise.
15579 (scan_libraries): Likewise.
15580 * config/i386/i386.c (ix86_expand_call): Likewise.
15581 (ix86_handle_interrupt_attribute): Likewise.
15582 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15583 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
15584 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
15585 * lto-wrapper.c (find_crtoffloadtable): Likewise.
15586 * symtab.c (symtab_node::verify_base): Likewise.
15587 * tree-cfg.c (verify_gimple_label): Likewise.
15588 * tree.c (verify_type_variant): Likewise.
15590 2019-03-11 Martin Liska <mliska@suse.cz>
15592 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
15593 in a string format message and fix GNU coding style.
15594 (expand_builtin_set_thread_pointer): Likewise.
15595 * common/config/aarch64/aarch64-common.c
15596 (aarch64_rewrite_selected_cpu): Likewise.
15597 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
15598 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
15599 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
15600 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
15601 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
15602 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
15603 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
15604 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
15605 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
15606 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
15608 * common/config/riscv/riscv-common.c
15609 (riscv_subset_list::parsing_subset_version): Likewise.
15610 (riscv_subset_list::parse_std_ext): Likewise.
15611 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
15612 (riscv_subset_list::parse): Likewise.
15613 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
15614 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
15615 (aarch64_override_options_internal): Likewise.
15616 (aarch64_validate_mcpu): Likewise.
15617 (aarch64_validate_march): Likewise.
15618 (aarch64_validate_mtune): Likewise.
15619 (aarch64_override_options): Likewise.
15620 * config/alpha/alpha.c (alpha_option_override): Likewise.
15621 * config/arc/arc.c (arc_init): Likewise.
15622 (parse_mrgf_banked_regs_option): Likewise.
15623 (arc_override_options): Likewise.
15624 (arc_expand_builtin_aligned): Likewise.
15625 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
15626 (arm_expand_builtin): Likewise.
15627 * config/arm/arm.c (arm_option_check_internal): Likewise.
15628 (arm_configure_build_target): Likewise.
15629 (arm_option_override): Likewise.
15630 (arm_options_perform_arch_sanity_checks): Likewise.
15631 (arm_handle_cmse_nonsecure_entry): Likewise.
15632 (arm_handle_cmse_nonsecure_call): Likewise.
15633 (arm_tls_referenced_p): Likewise.
15634 (thumb1_expand_prologue): Likewise.
15635 * config/avr/avr.c (avr_option_override): Likewise.
15636 * config/bfin/bfin.c (bfin_option_override): Likewise.
15637 * config/c6x/c6x.c (c6x_option_override): Likewise.
15638 * config/cr16/cr16.c (cr16_override_options): Likewise.
15639 * config/cris/cris.c (cris_option_override): Likewise.
15640 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
15641 * config/darwin-c.c (macosx_version_as_macro): Likewise.
15642 * config/darwin.c (darwin_override_options): Likewise.
15643 * config/frv/frv.c (frv_expand_builtin): Likewise.
15644 * config/h8300/h8300.c (h8300_option_override): Likewise.
15645 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
15646 (ix86_option_override_internal): Likewise.
15647 (warn_once_call_ms2sysv_xlogues): Likewise.
15648 (ix86_expand_prologue): Likewise.
15649 (split_stack_prologue_scratch_regno): Likewise.
15650 (ix86_warn_parameter_passing_abi): Likewise.
15651 * config/ia64/ia64.c (fix_range): Likewise.
15652 * config/m68k/m68k.c (m68k_option_override): Likewise.
15653 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
15654 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
15655 (mips_set_compression_mode): Likewise.
15656 * config/mmix/mmix.c (mmix_option_override): Likewise.
15657 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
15658 * config/msp430/msp430.c (msp430_option_override): Likewise.
15659 * config/nds32/nds32.c (nds32_option_override): Likewise.
15660 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
15661 (nios2_option_override): Likewise.
15662 (nios2_expand_custom_builtin): Likewise.
15663 * config/nvptx/mkoffload.c (main): Likewise.
15664 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
15665 * config/pa/pa.c (fix_range): Likewise.
15666 (pa_option_override): Likewise.
15667 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
15668 (riscv_option_override): Likewise.
15669 * config/rl78/rl78.c (rl78_option_override): Likewise.
15670 * config/rs6000/aix61.h: Likewise.
15671 * config/rs6000/aix71.h: Likewise.
15672 * config/rs6000/aix72.h: Likewise.
15673 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
15674 * config/rs6000/freebsd64.h: Likewise.
15675 * config/rs6000/linux64.h: Likewise.
15676 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
15677 (rs6000_expand_zeroop_builtin): Likewise.
15678 (rs6000_expand_mtfsb_builtin): Likewise.
15679 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
15680 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
15681 (rs6000_invalid_builtin): Likewise.
15682 (rs6000_expand_split_stack_prologue): Likewise.
15683 * config/rs6000/rtems.h: Likewise.
15684 * config/rx/rx.c (valid_psw_flag): Likewise.
15685 (rx_expand_builtin): Likewise.
15686 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15687 * config/s390/s390.c (s390_expand_builtin): Likewise.
15688 (s390_function_profiler): Likewise.
15689 (s390_option_override_internal): Likewise.
15690 (s390_option_override): Likewise.
15691 * config/sh/sh.c (sh_option_override): Likewise.
15692 (sh_builtin_saveregs): Likewise.
15693 (sh_fix_range): Likewise.
15694 * config/sh/vxworks.h: Likewise.
15695 * config/sparc/sparc.c (sparc_option_override): Likewise.
15696 * config/spu/spu.c (spu_option_override): Likewise.
15697 (fix_range): Likewise.
15698 * config/visium/visium.c (visium_option_override): Likewise.
15699 (visium_handle_interrupt_attr): Likewise.
15700 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
15701 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
15702 (dbg_cnt_process_opt): Likewise.
15703 * dwarf2out.c (output_dwarf_version): Likewise.
15704 * except.c (expand_eh_return): Likewise.
15705 * gcc.c (defined): Likewise.
15706 (driver_handle_option): Likewise.
15707 (process_command): Likewise.
15708 (compare_files): Likewise.
15709 (driver::prepare_infiles): Likewise.
15710 (driver::do_spec_on_infiles): Likewise.
15711 (driver::maybe_run_linker): Likewise.
15712 * omp-offload.c (oacc_parse_default_dims): Likewise.
15713 * opts-global.c (handle_common_deferred_options): Likewise.
15714 * opts.c (parse_sanitizer_options): Likewise.
15715 (common_handle_option): Likewise.
15716 (enable_warning_as_error): Likewise.
15717 * passes.c (enable_disable_pass): Likewise.
15718 * plugin.c (parse_plugin_arg_opt): Likewise.
15719 (default_plugin_dir_name): Likewise.
15720 * targhooks.c (default_expand_builtin_saveregs): Likewise.
15721 (default_pch_valid_p): Likewise.
15722 * toplev.c (init_asm_output): Likewise.
15723 (process_options): Likewise.
15724 (toplev::run_self_tests): Likewise.
15725 * tree-cfg.c (verify_gimple_call): Likewise.
15726 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
15727 (tree_inlinable_function_p): Likewise.
15728 * var-tracking.c (vt_find_locations): Likewise.
15730 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
15732 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
15733 only on the else branch.
15735 2019-03-11 Martin Liska <mliska@suse.cz>
15737 * gcov.c (output_intermediate_json_line): Print function
15739 (output_json_intermediate_file): Add new argument.
15740 * doc/gcov.texi: Document the change.
15742 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
15744 PR rtl-optimization/89588
15745 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15746 explicit unrolling factor more robust.
15748 2019-03-11 Richard Biener <rguenther@suse.de>
15750 PR tree-optimization/89649
15751 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
15752 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
15753 on the prolog and epilog loops.
15754 (vect_loop_versioning): Return copy of loop.
15755 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
15756 on the non-vectorized version of the loop.
15758 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
15761 * config/i386/sse.md (*vec_extractv2di_0_sse):
15762 Add (=r,x) alternative and corresponding splitter.
15764 2019-03-10 Martin Jambor <mjambor@suse.cz>
15766 PR tree-optimization/85762
15767 PR tree-optimization/87008
15768 PR tree-optimization/85459
15769 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
15770 it points to if there is a type changing MEM_REF. Adjust all callers.
15771 (build_accesses_from_assign): Disable total scalarization if
15772 contains_vce_or_bfcref_p returns true through the new parameter, for
15775 2019-03-09 Jakub Jelinek <jakub@redhat.com>
15778 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
15779 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
15782 * common.opt (fdiagnostics-show-labels,
15783 fdiagnostics-show-line-numbers, fdiagnostics-format=,
15784 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
15785 gas-locview-support, ginline-points, ginternal-reset-location-views):
15786 Terminate description text with a dot.
15787 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
15788 * config/mcore/mcore.opt (m210, m340): Likewise.
15789 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
15790 mnops=): Start description text with a capital letter.
15791 * config/arc/arc.opt (msize-level=): Likewise.
15792 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
15793 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
15794 mnewlib): Likewise.
15795 * config/ft32/ft32.opt (msim): Likewise.
15796 (mft32b, mcompress): Likewise. Terminate description text with a dot.
15797 (mnodiv, mnopm): Terminate description text with a dot.
15798 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
15800 * config/i386/i386.opt (prefer_vector_width, instrument_return):
15802 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
15805 PR rtl-optimization/89634
15806 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
15807 are modified in BB_END (e->src) instruction.
15809 2019-03-08 David Malcolm <dmalcolm@redhat.com>
15812 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
15813 messages more amenable to translation, and improve wording.
15815 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
15817 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
15818 ud- and du-chains between phases.
15820 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
15823 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
15824 instead of POLY_INT_CST.
15826 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
15828 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
15831 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
15836 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
15837 (_mm_storeu_si64): Ditto.
15839 2019-03-08 Martin Liska <mliska@suse.cz>
15842 * config/i386/i386.c (ix86_option_override_internal): Disable
15843 jump tables when retpolines are used.
15845 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
15848 * ipa-split.c (execute_split_functions): Do not split
15849 'noinline' or 'section' function.
15851 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15854 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
15855 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
15856 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
15859 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15860 from diagnostics. Formatting fixes.
15863 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
15864 warn_odr diagnostics.
15867 * lra-constraints.c (process_alt_operands): Avoid one space before
15868 " at the end of line and another after " on another line in a string
15870 * attribs.c (handle_dll_attribute): Likewise.
15871 * config/avr/avr-devices.c (avr_texinfo): Likewise.
15873 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
15874 warning_at or inform messages in G_() if there is no ?:.
15876 PR tree-optimization/89550
15877 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
15878 returned true. Formatting fixes.
15879 (expand_builtin_strnlen): Formatting fixes.
15880 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
15881 if warning_at returned true.
15882 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
15884 2019-03-08 Richard Biener <rguenther@suse.de>
15886 PR middle-end/89578
15887 * cfgloop.h (struct loop): Add owned_clique field.
15888 * cfgloopmanip.c (copy_loop_info): Copy it.
15889 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
15891 * tree-inline.c (copy_loops): Remap owned_clique.
15892 * lto-streamer-in.c (input_cfg): Stream owned_clique.
15893 * lto-streamer-out.c (output_cfg): Likewise.
15895 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15898 * config/darwin.c: Include intl.h.
15899 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
15900 composing the message out of two separate parts.
15902 2019-03-07 Jakub Jelinek <jakub@redhat.com>
15905 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
15906 doesn't start with a capital letter and doesn't end with a dot.
15907 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
15908 with a capital letter.
15909 (ix86_mangle_function_version_assembler_name): Likewise.
15910 (ix86_generate_version_dispatcher_body): Likewise.
15911 (fold_builtin_cpu): Likewise.
15912 (get_builtin_code_for_version): Likewise. Remove extraneous space.
15913 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
15914 translators, wrap full type name in %qs.
15916 PR translation/79999
15917 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
15918 depend clause with source (or sink) modifier.
15919 * omp-expand.c (expand_omp_ordered_sink): Likewise.
15922 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
15923 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
15924 (avx512f_load<mode>_mask): New define_expand.
15925 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
15926 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
15927 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
15928 __builtin_ia32_movess_mask): New builtins.
15929 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
15930 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
15931 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
15932 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
15934 2019-03-07 Martin Jambor <mjambor@suse.cz>
15937 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
15938 for extern inline functions.
15940 2019-03-07 Martin Jambor <mjambor@suse.cz>
15943 * cgraph.h (cgraph_node): New inline method former_thunk_p.
15944 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
15945 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
15946 have multiple callees. At the end check if declarations match as
15947 opposed to cgraph_nodes.
15949 2019-03-07 Martin Liska <mliska@suse.cz>
15951 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
15952 which is equivalent to searching for this in clones chain.
15953 * symtab.c (symtab_node::verify_base): Similarly compare ASM
15954 names with a neighbour and special case first node in a chain.
15956 2019-01-25 Jason Merrill <jason@redhat.com>
15958 PR c++/80916 - spurious "static but not defined" warning.
15959 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
15960 for an internal symbol with DECL_EXTERNAL.
15962 2019-04-07 Richard Biener <rguenther@suse.de>
15964 PR middle-end/89618
15965 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
15966 * tree-inline.c (copy_loops): Simplify.
15968 2019-03-07 Martin Liska <mliska@suse.cz>
15970 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
15972 2019-03-07 Richard Biener <rguenther@suse.de>
15974 PR tree-optimization/89595
15975 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
15976 stmt iterator as reference, take boolean output parameter to
15977 indicate whether the stmt was removed and thus the iterator
15979 (dom_opt_dom_walker::before_dom_children): Re-iterate over
15980 stmts created by folding.
15982 2019-03-07 Jakub Jelinek <jakub@redhat.com>
15985 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
15988 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
15990 PR rtl-optimization/88845
15991 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
15993 * lra.c (remove_scratches_1): New function.
15994 (remove_scratches): Use it.
15995 (lra_emit_move): Likewise.
15997 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
15999 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16000 unaligned_access variable.
16001 * config/arc/arc.c (arc_override_options): Set unaligned access
16002 default on for HS CPUs.
16003 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16005 2019-03-06 Martin Liska <mliska@suse.cz>
16007 PR gcov-profile/89577
16008 * doc/gcov.texi: Prefer to use --coverage.
16009 * doc/sourcebuild.texi: Likewise.
16011 2019-03-02 Jason Merrill <jason@redhat.com>
16013 PR c++/86485 - -Wmaybe-unused with empty class ?:
16014 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16016 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16019 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16022 PR middle-end/89590
16023 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16024 exactly one argument.
16026 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16027 Richard Sandiford <richard.sandiford@arm.com>
16029 PR tree-optimization/89570
16030 * match.pd (vec_cond into cond_op simplification): Don't use
16031 get_conditional_internal_fn, use as_internal_fn (cond_op).
16033 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16036 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16037 to decide when to split off a non-zero offset from a symbol.
16038 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16039 in function symbols.
16041 2019-03-05 Richard Biener <rguenther@suse.de>
16043 PR tree-optimization/89594
16044 * tree-if-conv.c (pass_if_conversion::execute): Handle
16045 case where .LOOP_VECTORIZED_FUNCTION was removed.
16047 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16050 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16051 instead alloca it only when needed with the needed size.
16053 PR tree-optimization/89570
16054 * match.pd (vec_cond into cond_op simplification): Guard with
16055 vectorized_internal_fn_supported_p test and #if GIMPLE.
16057 PR tree-optimization/89566
16058 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16059 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16060 Punt if get_user_idx_format succeeds, but idx_format argument is
16061 not provided or doesn't have pointer type, or if idx_args is above
16062 number of provided arguments.
16064 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16066 PR tree-optimization/89437
16067 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16069 2019-03-04 Richard Biener <rguenther@suse.de>
16071 PR middle-end/89572
16072 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16075 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16077 PR tree-optimization/89487
16078 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16079 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16080 (distribute_loop): Don't do runtime alias check if there is non-
16081 addressable data reference.
16082 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16083 is a register variable.
16085 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16088 * config/arm/arm.md (cmpsi2_addneg): Use
16089 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16090 If operands[2] is 0 or INT_MIN, force use of subs.
16091 (*compare_scc splitter): Use gen_int_mode.
16092 (*negscc): Likewise.
16093 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16095 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16096 Monk Chiang <sh.chiang04@gmail.com>
16098 * common/config/riscv/riscv-common.c: Include sstream.
16099 (riscv_subset_list::to_string): New.
16100 (riscv_arch_str): Likewise.
16101 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16102 * config.in: Regen.
16103 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16104 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16105 (riscv_emit_attribute): New.
16106 (riscv_file_start): Emit attribute if needed.
16107 (riscv_option_override): Init riscv_emit_attribute_p.
16108 * config/riscv/riscv.opt (mriscv-attribute): New option.
16109 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16110 * configure: Regen.
16111 * doc/install.texi: Document --with-riscv-attribute.
16112 * doc/invoke.texi: Document -mriscv-attribute.
16114 * common/config/riscv/riscv-common.c:
16115 Include config/riscv/riscv-protos.h.
16116 (INCLUDE_STRING): Defined.
16117 (RISCV_DONT_CARE_VERSION): Defined.
16118 (riscv_subset_t): Declare.
16119 (riscv_subset_t::riscv_subset_t): New.
16120 (riscv_subset_list): Declare.
16121 (riscv_subset_list::riscv_subset_list): New.
16122 (riscv_subset_list::~riscv_subset_list): Likewise.
16123 (riscv_subset_list::parsing_subset_version): Likewise.
16124 (riscv_subset_list::parse_std_ext): Likewise.
16125 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16126 (riscv_subset_list::add): Likewise.
16127 (riscv_subset_list::lookup): Likewise.
16128 (riscv_subset_list::xlen): Likewise.
16129 (riscv_subset_list::parse): Likewise.
16130 (riscv_supported_std_ext): Likewise.
16131 (current_subset_list): Likewise.
16132 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16135 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16137 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16138 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16139 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16141 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16143 PR rtl-optimization/85899
16144 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16145 fallthru edges leading to the exit block.
16147 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16150 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16151 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16153 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16155 PR tree-optimization/89535
16156 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16157 for each operand. Calculate the fallback choice for mask operands
16158 and pass it to vect_get_vec_def_for_operand.
16160 2019-03-01 Richard Biener <rguenther@suse.de>
16162 PR middle-end/89541
16163 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16164 get virtual operands.
16165 (get_expr_operands): Handle CONST_DECL like other decls.
16167 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16169 PR middle-end/89503
16170 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16171 on DECL_P and EXPR_P.
16173 2019-03-01 Richard Biener <rguenther@suse.de>
16175 PR middle-end/89497
16176 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16177 argument, defaulted to zero.
16178 * passes.c (execute_function_todo): Pass down SSA update flags
16179 to cleanup_tree_cfg.
16180 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16181 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16183 (cleanup_tree_cfg): Get and pass down SSA update flags.
16185 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16188 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16189 early_lto_debug argument.
16191 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16193 PR tree-optimization/89536
16194 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16195 only whether bit #0 of the value is 0 instead of the entire value.
16197 2019-02-28 Marek Polacek <polacek@redhat.com>
16199 PR c++/87068 - missing diagnostic with fallthrough statement.
16200 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16201 at the end of a seq, save its location to walk_stmt_info.
16202 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16205 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16208 * tree.c (find_atomic_core_type): Move ahead in file.
16209 (check_base_type): Correctly compare alignments of atomic types.
16211 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16214 * config/i386/i386.c (get_builtin_code_for_version): Identify
16215 Westmere from PCLMUL, instead of AES.
16217 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16220 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16221 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16224 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16227 * config/aarch64/aarch64-option-extensions.def: Document it.
16228 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16231 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16234 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16235 builtins if they don't have a single scalar floating point argument.
16238 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16240 PR rtl-optimization/89490
16241 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16242 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16243 block section is not mergeable.
16245 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16248 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16249 old define_insn to ...
16250 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16251 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16252 Rename old define_insn to ...
16253 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16254 (thumb2_casesi_internal_pic): New define_expand. Rename old
16256 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16257 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16258 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16260 2019-02-27 Richard Biener <rguenther@suse.de>
16263 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16265 2019-02-27 Richard Biener <rguenther@suse.de>
16267 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16270 2019-02-27 Richard Biener <rguenther@suse.de>
16273 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16274 parameter, prefix section name with .gnu.debuglto_ if true.
16275 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16276 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16278 2019-02-27 Richard Biener <rguenther@suse.de>
16281 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16282 rather than on use_debug_types, doing what output_die does.
16283 (value_format): Likewise.
16285 2019-02-27 Martin Jambor <mjambor@suse.cz>
16286 Martin Sebor <msebor@redhat.com>
16288 * doc/invoke.texi (Warning Options): Reword description of
16289 -Wno-absolute-value.
16291 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16293 PR tree-optimization/89280
16294 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16295 builtin_setjmp_setup_bb): New functions.
16296 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16297 When visiting __builtin_setjmp_setup block, queue in special
16298 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16299 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16300 from visited after the loop if they don't have any visited successor
16303 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16305 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16307 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16309 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16312 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16313 with types other than sizetype/ssizetype.
16315 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16317 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16318 (enum sparc_processor_type): ...this.
16319 (enum sparc_code_model_type): New enumeration type.
16320 (enum sparc_memory_model_type): Tweak comments.
16321 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16323 (mcmodel): Use sparc_code_model enumeration and variable.
16324 (sparc_code_model): New enumeration.
16325 (mdebug): Add Undocumented marker.
16326 * config/sparc/sparc.h (enum cmodel): Delete.
16327 (sparc_cmodel): Likewise.
16328 (TARGET_CM_MEDLOW): Adjust to above renaming.
16329 (TARGET_CM_MEDMID): Likewise.
16330 (TARGET_CM_MEDANY): Likewise.
16331 (TARGET_CM_EMBMEDANY): Likewise.
16332 * config/sparc/sparc.c (sparc_cmodel): Delete.
16333 (sparc_option_override): Remove string/value mapping support for the
16334 code model. Move code and memory model support to after the handling
16335 of target flags. Do private machine setup last.
16336 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
16337 (sparc_legitimize_reload_address): Likewise.
16338 (sparc_output_mi_thunk): Likewise.
16339 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
16341 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16343 PR tree-optimization/89500
16344 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
16345 (handle_builtin_strlen): Remove noncst_bound variable. Always
16346 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
16347 cst if the first cst bytes starting at x are known to be non-zero,
16348 even if the string is not zero terminated. Don't try to modify
16349 *si for strnlen. Update strlen_to_stridx only for strlen or if
16350 we can prove strnlen returns the same value as strlen would.
16352 2019-02-26 Martin Liska <mliska@suse.cz>
16354 * alloc-pool.h (struct pool_usage): Remove extra
16356 * bitmap.h (struct bitmap_usage): Likewise.
16357 * ggc-common.c (struct ggc_usage): Likewise.
16358 * mem-stats.h (struct mem_usage): Likewise.
16359 (mem_alloc_description::dump): Print dash lines
16360 here and repeat header at the end of a table report.
16361 It's then more readable.
16362 * tree-phinodes.c (phinodes_print_statistics): Make
16363 horizontal alignment.
16364 * tree-ssanames.c (ssanames_print_statistics): Likewise.
16365 * vec.c (struct vec_usage): Remove extra print_dash_line.
16366 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
16368 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
16370 * doc/extend.texi (__builtin_object_size):
16371 Use @pxref instead of @xref inside parenthesis.
16372 (__builtin_has_attribute): Add missing comma after @xref.
16373 (__builtin_object_size): Ditto.
16374 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
16376 2019-02-26 Jeff Law <law@redhat.com>
16378 PR rtl-optimization/87761
16379 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
16380 detect obviously dead insns and delete them.
16382 2019-02-26 Richard Biener <rguenther@suse.de>
16384 PR tree-optimization/89505
16385 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
16386 to handle restrict pointed-to vars with multiple subvars
16389 2019-02-26 Richard Biener <rguenther@suse.de>
16391 PR tree-optimization/89489
16392 * tree-parloops.c (create_loop_fn): Copy over last_clique.
16394 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16396 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
16397 and move around comment.
16398 <BIT_AND_EXPR>: Likewise.
16399 <BIT_NOT_EXPR>: Add specific handling for boolean types.
16401 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16404 * config/i386/i386.c (remove_partial_avx_dependency): Call
16405 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
16406 after changing possibly many instructions to use that pseudo. Fix up
16407 insertion of v4sf_const0 setter at the start of bb.
16409 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16412 * doc/extend.texi (Variadic Pointer Args): New section.
16414 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16415 Martin Sebor <msebor@gmail.com>
16417 * common.opt (Wattribute-alias): Likewise.
16418 * doc/invoke.texi (Option Summary): List general form of
16419 -Wattribute-alias=. List positive form of -Wmissing-attributes.
16420 (-Wmissing-attributes): Invert entry, rewrite and correct default.
16421 Add cross-references.
16422 (-Wattribute-alias): Rewrite and correct default. Mention
16423 considered attributes (same as for -Wmissing-attributes).
16425 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
16427 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
16428 (_mm_cvtpd_ps): Likewise.
16429 (_mm_cvttpd_epi32): Likewise.
16432 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
16433 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
16436 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
16438 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16441 * common/config/aarch64/aarch64-common.c
16442 (struct aarch64_option_extension): Add is_synthetic.
16443 (all_extensions): Use it.
16444 (TARGET_OPTION_INIT_STRUCT): Define hook.
16445 (struct gcc_targetm_common): Moved to end.
16446 (all_extensions_by_on): New.
16447 (opt_ext_cmp, typedef opt_ext): New.
16448 (aarch64_option_init_struct): New.
16449 (aarch64_contains_opt): New.
16450 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
16451 * config/aarch64/aarch64-option-extensions.def
16452 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
16453 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
16454 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
16455 Set is_synthetic to false.
16456 (crypto): Set is_synthetic to true.
16457 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
16460 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16462 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16463 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
16464 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16465 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
16466 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
16467 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
16468 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
16469 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
16471 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
16472 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16473 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
16474 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
16475 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
16476 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
16477 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
16478 vfmlsl_laneq_high_f16): ... To this.
16479 * config/arm/neon.md: Update comments.
16481 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16483 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16484 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
16485 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16486 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
16487 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
16488 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
16489 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
16490 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
16492 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
16493 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16494 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
16495 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
16496 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
16497 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
16498 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
16499 vfmlslq_laneq_high_f16): ... To this.
16501 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
16503 PR rtl-optimization/86096
16504 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
16505 comparing mw_order values.
16507 2019-02-25 Jakub Jelinek <jakub@redhat.com>
16510 * config/arm/arm.md (*subsi3_carryin_const): Use
16511 arm_neg_immediate_operand predicate instead of
16512 arm_not_immediate_operand, "L" constraint instead of "K" and
16513 print it using %n2 instead of %B2.
16514 (*subsi3_carryin_const0): New define_insn.
16515 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
16516 instead of arm_not_operand and "I" constraint instead of "K" and
16517 print it using %n3 instead of %B2. Instead of using match_dup 2 add
16518 another match_operand and in the condition check that it is negation
16520 (*subsi3_carryin_compare_const0): New define_ins.
16521 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
16522 *subsi3_carryin_const.
16523 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
16524 split into *subsi3_carryin_compare_const0 if the highpart is zero.
16527 * config/arm.vfp.md (*negdf2_vfp): Use
16528 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
16529 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
16531 2019-02-24 Jakub Jelinek <jakub@redhat.com>
16533 PR rtl-optimization/89445
16534 * simplify-rtx.c (simplify_ternary_operation): Don't use
16535 simplify_merge_mask on operands that may trap.
16536 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
16537 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
16538 second operand is CONST_VECTOR, check if any element could be zero.
16539 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
16540 their operands can trap.
16542 2019-02-23 Martin Sebor <msebor@redhat.com>
16544 * gimple-ssa-sprintf.c (target_strtol): Rename...
16545 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
16546 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
16547 check for range error.
16549 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
16552 * opts-common.c (prune_options): Also prune joined switches
16553 with Negative and RejectNegative.
16554 * config/i386/i386.opt (march=): Add Negative(march=).
16555 (mtune=): Add Negative(mtune=).
16556 * doc/options.texi: Document Negative used together with Joined
16557 and RejectNegative.
16559 2019-02-22 Martin Sebor <msebor@redhat.com>
16561 * doc/extend.texi (Other Builtins): Add
16562 __builtin_is_constant_evaluated.
16564 2019-02-22 Richard Biener <rguenther@suse.de>
16566 PR tree-optimization/87609
16567 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
16569 2019-02-22 Jeff Law <law@redhat.com>
16571 PR rtl-optimization/87761
16572 * config/mips/mips.md: Add new combiner pattern to recognize
16573 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
16575 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
16578 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
16579 destination register in peepholes generating patterns for ADDS/SUBS.
16580 (add<mode>3_compare0,
16581 *addsi3_compare0_uxtw, add<mode>3_compareC,
16582 add<mode>3_compareV_imm, add<mode>3_compareV,
16583 *adds_<optab><ALLX:mode>_<GPI:mode>,
16584 *subs_<optab><ALLX:mode>_<GPI:mode>,
16585 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
16586 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
16587 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
16588 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
16589 sub<mode>3_compare1): Allow stack pointer for source register.
16590 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
16592 2019-02-22 Martin Sebor <msebor@redhat.com>
16594 PR tree-optimization/88993
16595 PR tree-optimization/88853
16596 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
16598 (sprintf_dom_walker::call_info::is_string_func): New helper.
16599 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
16600 for formatted string functions.
16601 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
16603 2019-02-22 Martin Sebor <msebor@redhat.com>
16606 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
16607 unreachable subexpressions.
16609 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
16610 Hongtao Liu <hongtao.liu@intel.com>
16611 Sunil K Pandey <sunil.k.pandey@intel.com>
16614 * config/i386/i386-passes.def: Add
16615 pass_remove_partial_avx_dependency.
16616 * config/i386/i386-protos.h
16617 (make_pass_remove_partial_avx_dependency): New.
16618 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
16620 (pass_data_remove_partial_avx_dependency): New.
16621 (pass_remove_partial_avx_dependency): Likewise.
16622 (make_pass_remove_partial_avx_dependency): Likewise.
16623 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
16624 (*extendsfdf2): Add avx_partial_xmm_update.
16625 (truncdfsf2): Likewise.
16626 (*float<SWI48:mode><MODEF:mode>2): Likewise.
16627 (SF/DF conversion splitters): Disabled for TARGET_AVX.
16629 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
16631 PR middle-end/85598
16632 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
16635 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
16638 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
16639 (PTA_SKYLAKE): Add PTA_AES.
16640 (PTA_GOLDMONT): Likewise.
16642 2019-02-22 Sudakshina Das <sudi.das@arm.com>
16644 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
16645 instruction if enabled.
16646 (aarch64_override_options): Remove reference to return address key.
16648 2019-02-22 Richard Biener <rguenther@suse.de>
16650 PR tree-optimization/89440
16651 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16652 not necessary assert.
16654 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
16657 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
16658 (oacc_replace_fn_attrib_attr): ... this new function.
16659 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
16660 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
16662 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16664 * config/arm/arm-cpus.in (ares): Rename to...
16665 (neoverse-n1): ... This. Add ares as alias.
16666 * config/arm/arm-tables.opt: Regenerate.
16667 * config/arm/arm-tune.md: Likewise.
16668 * doc/invoke.txt (ARM Options): Document neoverse-n1.
16670 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16672 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
16673 * config/aarch64/aarch64-tune.md: Regenerate.
16674 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
16676 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16678 * config/aarch64/aarch64.c (ares_tunings): Rename to...
16679 (neoversen1_tunings): ... This.
16680 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
16681 (neoverse-n1): New CPU.
16682 * config/aarch64/aarch64-tune.md: Regenerate.
16683 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
16685 2019-02-22 Richard Biener <rguenther@suse.de>
16687 PR middle-end/87609
16688 * cfghooks.h (dependence_hash): New typedef.
16689 (struct copy_bb_data): New type.
16690 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
16691 (duplicate_block): Likewise.
16692 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
16693 (copy_bbs): Create and pass down copy_bb_data.
16694 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
16695 (rtl_duplicate_bb): Likewise.
16696 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
16697 remap dependence info.
16699 2019-02-22 Richard Biener <rguenther@suse.de>
16701 PR tree-optimization/87609
16702 * tree-core.h (tree_base): Document special clique values.
16703 * tree-inline.c (remap_dependence_clique): Do not use the
16704 special clique value of one.
16705 (maybe_set_dependence_info): Use clique one.
16706 (clear_dependence_clique): New callback.
16707 (compute_dependence_clique): Clear clique one from all refs
16708 before assigning it (again).
16710 2019-02-21 Martin Sebor <msebor@redhat.com>
16712 * doc/extend.texi (__clear_cache): Correct signature.
16714 2019-02-21 Ian Lance Taylor <iant@golang.org>
16717 * varasm.c (decode_addr_const): Call lookup_constant_def rather
16718 than output_constant_def.
16719 (add_constant_to_table): New static function.
16720 (output_constant_def): Call add_constant_to_table.
16721 (tree_output_constant_def): Likewise.
16723 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16726 * builtins.c (fold_builtin_arith_overflow): If first two args are
16727 INTEGER_CSTs, set intres and ovfres to constants rather than calls
16730 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
16733 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
16734 error for -mindirect-branch/-mfunction-return with incompatible
16737 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16740 * constraints.md (q): Remove.
16741 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
16744 2019-02-21 Martin Jambor <mjambor@suse.cz>
16747 * omp-general.c (omp_extract_for_data): Removed a duplicate call
16748 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
16749 (omp_adjust_for_condition): ...here. Added necessary parameters.
16750 * omp-general.h (omp_adjust_for_condition): Updated declaration.
16751 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
16752 proper values to new parameters of omp_adjust_for_condition.
16754 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16756 PR middle-end/89412
16757 * expr.c (expand_assignment): If result is a MEM, use change_address
16758 instead of simplify_gen_subreg.
16760 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16761 David Malcolm <dmalcolm@redhat.com>
16763 PR middle-end/89091
16764 * fold-const.c (decode_field_reference): Return NULL_TREE if
16765 lang_hooks.types.type_for_size returns NULL. Check it before
16766 overwriting *exp_. Use return NULL_TREE instead of return 0.
16768 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16770 PR middle-end/88074
16771 PR middle-end/89415
16772 * toplev.c (do_compile): Double the emin/emax exponents to workaround
16775 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
16778 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
16779 TARGET_SSE in addition to TARGET_SSE_MATH.
16781 (ix86_excess_precision): Ditto.
16782 (ix86_float_exceptions_rounding_supported_p): Ditto.
16783 (use_rsqrt_p): Ditto.
16784 * config/i386/sse.md (rsqrt<mode>2): Ditto.
16786 2019-02-20 David Malcolm <dmalcolm@redhat.com>
16789 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
16790 linenum_arith_t when determining if two adjacent line spans are
16791 close enough to merge.
16792 (diagnostic_show_locus): Use linenum_arith_t when iterating over
16793 lines within each line_span.
16795 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
16798 * lra-constraints.c(uses_hard_regs_p): Fix handling of
16799 paradoxical SUBREGS.
16801 2019-02-20 Li Jia He <helijia@linux.ibm.com>
16804 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
16805 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
16806 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
16809 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
16811 * config/gcn/gcn.c (print_operand): Fix typo.
16813 2019-02-19 Richard Biener <rguenther@suse.de>
16815 PR middle-end/88074
16816 * toplev.c (do_compile): Initialize mpfr's exponent range
16817 based on available float modes.
16819 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
16821 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
16822 as long as the epilogue isn't completed.
16824 2019-02-18 Martin Sebor <msebor@redhat.com>
16826 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
16827 __has_cpp_attribute, and __has_include.
16829 2019-02-18 Martin Sebor <msebor@redhat.com>
16831 * doc/invoke.texi (-Wreturn-type): Correct and expand.
16833 2019-02-18 Martin Sebor <msebor@redhat.com>
16835 PR middle-end/89294
16836 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
16838 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
16840 2019-02-18 Richard Biener <rguenther@suse.de>
16842 PR tree-optimization/89296
16843 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
16844 of no-warning flag to cases that might emit the bogus warning.
16846 2019-02-18 Jakub Jelinek <jakub@redhat.com>
16849 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
16851 * config/arm/vfp.md (*movdi_vfp): Likewise.
16852 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
16853 "q" constraint for operands[0].
16856 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
16857 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
16858 pattern in a temporary buffer.
16859 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
16860 than 64-operands[2].
16863 * config/s390/s390.c (s390_indirect_branch_attrvalue,
16864 s390_indirect_branch_settings): Define unconditionally.
16865 (s390_set_current_function): Likewise, but guard the whole body except
16866 the s390_indirect_branch_settings call with
16867 #if S390_USE_TARGET_ATTRIBUTE.
16868 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
16870 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
16871 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
16872 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
16873 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
16874 HOST_WIDE_INT_1U instead of 1ULL.
16875 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
16876 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
16877 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
16878 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
16880 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
16883 2019-02-18 Martin Jambor <mjambor@suse.cz>
16885 PR tree-optimization/89209
16886 * tree-sra.c (create_access_replacement): New optional parameter
16887 reg_tree. Use it as a type if non-NULL and access type is not of
16889 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
16890 to create_access_replacement.
16891 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
16892 Check lacc is non-NULL before attempting to re-create it on the RHS.
16894 2019-02-18 Martin Liska <mliska@suse.cz>
16897 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
16899 (symbol_table::free_edge): Recycle m_summary_id.
16900 * cgraph.h (get_summary_id): New.
16901 (symbol_table::release_symbol): Set m_summary_id to -1
16903 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
16904 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
16905 function_summary to fast_function_summary.
16906 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
16907 * ipa-pure-const.c (class funct_state_summary_t):
16908 Switch from function_summary to fast_function_summary.
16909 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
16910 (class ipa_ref_opt_summary_t): Switch from function_summary
16911 to fast_function_summary.
16912 * symbol-summary.h (class function_summary_base): New class
16913 that is created from base of former function_summary.
16914 (function_summary_base::unregister_hooks): New.
16915 (class function_summary): Inherit from function_summary_base.
16916 (class call_summary_base): New class
16917 that is created from base of former call_summary.
16918 (class call_summary): Inherit from call_summary_base.
16919 (struct is_same): New.
16920 (class fast_function_summary): New summary class.
16921 (class fast_call_summary): New summary class.
16922 * vec.h (vec_safe_grow_cleared): New function.
16924 2019-02-18 Martin Liska <mliska@suse.cz>
16926 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
16927 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
16928 * doc/tm.texi: Document new target hook.
16929 * doc/tm.texi.in: Likewise.
16930 * target.def: Add new target macro.
16931 * gcc.c (find_fortran_preinclude_file): Do not search multilib
16934 2019-02-17 Alan Modra <amodra@gmail.com>
16937 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
16938 output reg on add insn.
16939 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
16941 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16944 * config/i386/sse.md (ssedoublemode): Remove V4HI.
16945 (PMULHRSW): Likewise.
16946 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
16948 (ssse3_pmulhrswv4hi3): New expander.
16950 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16952 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
16953 MMX. Add isa attribute.
16955 2019-02-16 Jakub Jelinek <jakub@redhat.com>
16957 PR rtl-optimization/66152
16958 * builtins.h (c_readstr): Declare.
16959 * builtins.c (c_readstr): Remove forward declaration. Add
16960 null_terminated_p argument, if false, read all bytes from the
16961 string instead of stopping after '\0'.
16962 * expr.c (string_cst_read_str): New function.
16963 (store_expr): Use string_cst_read_str instead of
16964 builtin_strncpy_read_str. Try to store by pieces the whole
16965 exp_len first, and only if that fails, split it up into
16966 store by pieces followed by clear_storage. Formatting fix.
16968 * config/i386/i386.md (*movqi_internal): Remove static from
16969 buf variable. Use output_asm_insn (buf, operands); return "";
16970 instead of return buf;.
16971 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
16972 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
16973 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
16975 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16977 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
16978 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
16979 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
16980 (CC1_SPEC): Likewise.
16981 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
16983 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16985 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
16986 the base address on 64-bit strict-alignment platforms.
16988 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
16990 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
16992 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
16994 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
16996 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
16998 PR rtl-optimization/88308
16999 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17000 on copied instruction.
17002 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17004 * final.c (insn_current_reference_address): Replace test on JUMP_P
17005 with test on jump_to_label_p.
17006 * config/visium/visium-passes.def: New file.
17007 * config/visium/t-visium (PASSES_EXTRA): Define.
17008 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17009 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17010 (TRAMPOLINE_ALIGNMENT): Define.
17011 * config/visium/visium.c (visium_option_override): Do not register
17012 the machine-specific reorg pass here.
17013 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17015 (output_branch): Adjust threshold for long branch instruction.
17016 * config/visium/visium.md (cpu): Move around.
17017 (length): Adjust for the GR6.
17019 2019-02-15 Richard Biener <rguenther@suse.de>
17020 Jakub Jelinek <jakub@redhat.com>
17022 PR tree-optimization/89278
17023 * tree-loop-distribution.c: Include tree-eh.h.
17024 (generate_memset_builtin, generate_memcpy_builtin): Call
17025 rewrite_to_non_trapping_overflow on builtin->size before passing it
17026 to force_gimple_operand_gsi.
17028 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17031 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17033 * opth-gen.awk: Likewise.
17035 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17037 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17038 Enable MMX, SSE and SSE2 by default.
17039 * config/i386/i386.c (ix86_option_override_internal): Do not
17040 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17042 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17044 PR rtl-optimization/89354
17045 * combine.c (make_extraction): Punt if extraction_mode is narrower
17048 2019-02-14 Maya Rashish <coypu@sdf.org>
17050 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17051 * config/netbsd-d.c: New file.
17052 * config/t-netbsd: Add netbsd-d.o
17054 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17056 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17057 affects_type_identity to true for aarch64_vector_pcs.
17058 (aarch64_comp_type_attributes): New function.
17059 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17061 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17064 * config/arm/iterators.md (ANY64): Add V4HF.
17066 2019-02-14 Martin Liska <mliska@suse.cz>
17068 PR rtl-optimization/89242
17069 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17070 process a transformation.
17072 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17074 PR tree-optimization/89314
17075 * fold-const.c (fold_binary_loc): Cast strlen argument to
17076 const char * before dereferencing it. Formatting fixes.
17078 PR middle-end/89284
17079 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17081 2019-02-13 Ian Lance Taylor <iant@golang.org>
17083 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17084 and set current index for other optimizations.
17086 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17088 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17089 nonimmediate_operand as operand 2 predicate.
17090 (vec_set<VF2_512_256:mode>_0): Ditto.
17091 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17092 (*vec_concatv2si): Remove alternative 2.
17093 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17094 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17095 (vec_concatv2di): Split alternatives 4,5,6 to ...
17096 (*vec_concatv2di_0) ... new pattern.
17098 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17101 * config/arm/arm.c (ldm_stm_operation_p) Set
17102 addr_reg_in_reglist correctly for first register.
17103 (load_multiple_sequence): Remove dead base check.
17104 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17106 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17109 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17110 Expose as @aarch64_pred_mov.
17111 * config/aarch64/aarch64.c (aarch64_classify_address):
17112 Use expand_insn which legitimizes operands.
17114 2019-02-13 Martin Liska <mliska@suse.cz>
17116 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17117 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17118 and pointer_offset fields.
17119 (initialize_argument_information): Remove usage of dead
17121 * cgraph.h (struct cgraph_thunk_info): Remove
17122 add_pointer_bounds_args.
17123 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17125 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17127 * config/i386/i386.c (ix86_function_arg_advance): Remove
17129 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17130 (def_builtin): Remove usage of dead fields.
17131 (ix86_add_new_builtins): Likewise.
17132 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17133 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17134 (sem_function::init): Likewise.
17135 (sem_variable::merge): Likewise.
17136 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17137 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17138 * lto-cgraph.c (lto_output_node): Likewise.
17139 (lto_output_varpool_node): Likewise.
17140 (input_node): Likewise.
17141 (input_varpool_node): Likewise.
17142 * lto-streamer-out.c (lto_output): Likewise.
17143 * tree-inline.c (expand_call_inline): Remove usage of
17145 * tree-inline.h (struct copy_body_data): Likewise.
17146 * varpool.c (varpool_node::dump): Likewise.
17148 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17150 PR middle-end/89303
17151 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17152 into pt->vars_contains_escaped_heap instead of setting
17153 pt->vars_contains_escaped_heap to it.
17155 PR middle-end/89281
17156 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17157 INTVAL (size), compare it to GET_MODE_MASK instead of
17158 1 << GET_MODE_BITSIZE.
17161 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17162 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17165 2019-02-13 Martin Liska <mliska@suse.cz>
17168 * cfgrtl.c (remove_barriers_from_footer): New function.
17169 (try_redirect_by_replacing_jump): Use it.
17170 (cfg_layout_redirect_edge_and_branch): Likewise.
17172 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17174 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17175 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17176 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17177 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17178 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17179 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17181 * config/rs6000/rs6000.c (builtin_function_type)
17182 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17183 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17184 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17185 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17186 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17188 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17190 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17191 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17193 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17196 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17197 268678 and revision 268657.
17198 (*movti_internal): Likewise.
17200 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17203 * config/s390/s390.c (s390_decompose_address): Update comment.
17204 (s390_check_qrst_address): Reject invalid address forms after
17207 2019-02-12 Martin Liska <mliska@suse.cz>
17210 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17211 we need default values of funct_state for a function that
17214 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17216 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17217 the object to pick the size of stores on strict-alignment platforms.
17219 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17220 (*movdi_insn_sp32): Likewise.
17221 (*movdi_insn_sp64): Likewise.
17223 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17226 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17227 types that needs constructiong.
17228 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17230 2019-02-12 Richard Biener <rguenther@suse.de>
17232 PR tree-optimization/89253
17233 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17234 duplicate the loop.
17236 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17239 * input.c (selftest::test_line_offset_overflow): New selftest.
17240 (selftest::input_c_tests): Call it.
17242 2019-02-11 Martin Sebor <msebor@redhat.com>
17244 PR tree-optimization/88771
17245 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17246 when -Wstringop-overflow is set.
17247 (builtin_memref::builtin_memref): Adjust excessive upper bound
17248 only when lower bound is not excessive.
17249 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17250 -Wstringop-ovefflow.
17251 (maybe_diag_offset_bounds): Rename...
17252 (maybe_diag_access_bounds): ...to this.
17253 (check_bounds_or_overlap): Adjust for name change above.
17255 2019-02-11 Martin Sebor <msebor@redhat.com>
17258 * builtins.c (max_object_size): Move from here...
17259 * builtins.h (max_object_size): ...and here...
17260 * tree.c (max_object_size): ...to here...
17261 * tree.h (max_object_size): ...and here.
17263 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17265 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17266 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17267 for correct semantics.
17269 2019-02-11 Alan Modra <amodra@gmail.com>
17271 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17272 -mlongcall and -mpltseq.
17273 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17274 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17275 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17276 * config/rs6000/sysv4.opt (mpltseq): New option.
17277 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17278 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17279 support is lacking. Don't allow -mpltseq with -mbss-plt.
17280 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17281 -mpltseq given for ELFv1.
17282 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17283 Only use UNSPEC_PLTSEQ for inline PLT calls.
17284 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17285 use UNSPEC_PLTSEQ for inline PLT calls.
17286 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17287 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17288 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17289 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17290 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17291 (pltseq_mtctr_<mode>): Likewise.
17293 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17295 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17297 * configure: Regenerate.
17299 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17302 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17305 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17307 * function.c (assign_parm_setup_block): Use the stored
17308 size, not the passed size, when allocating stack-space,
17309 also for a parameter with alignment larger than
17310 MAX_SUPPORTED_STACK_ALIGNMENT.
17312 2019-02-11 Martin Liska <mliska@suse.cz>
17315 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17316 * ipa-inline.c (inline_small_functions): Likewise.
17317 * ipa-pure-const.c (propagate_pure_const): Likewise.
17318 (propagate_nothrow): Likewise.
17319 * ipa-reference.c (propagate): Likewise.
17320 * ipa-utils.c (struct searchc_env): Remove unused field.
17321 (searchc): Always search across AVAIL_INTERPOSABLE.
17322 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17323 the only called IPA pure const can properly not propagate
17324 across interposable boundary.
17325 * ipa-utils.h (ipa_reduced_postorder): Remove param.
17327 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
17329 * config/nds32/nds32.md (call_internal, call_value_internal,
17330 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
17332 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17334 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
17337 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
17339 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
17342 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17344 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
17346 2019-02-10 Jakub Jelinek <jakub@redhat.com>
17348 PR tree-optimization/89268
17349 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
17350 if preds is non-NULL.
17352 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17355 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
17358 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17360 * config/nds32/nds32.md (trap): New pattern.
17362 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17364 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
17367 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17369 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
17372 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17374 * ipa-visibility.c (localize_node): Also do not localize
17375 LDPR_PREVAILING_DEF_IRONLY_EXP.
17377 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17380 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
17381 instead of type_with_linkage.
17383 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17386 * params.def (uninlined-function-insns, uninlined-function-time,
17387 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
17388 bound so we don't get overflows.
17390 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
17392 * config/rs6000/rs6000-string.c (expand_compare_loop,
17393 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
17396 2019-02-09 Jakub Jelinek <jakub@redhat.com>
17398 PR middle-end/89246
17399 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17400 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
17401 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
17403 2019-02-09 Alan Modra <amodra@gmail.com>
17406 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
17407 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
17410 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
17412 PR middle-end/88560
17413 * lra-constraints.c (process_alt_operands): Don't increase reject
17414 for memory when offset memory is required.
17416 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
17418 * config/s390/vector.md: Implement vector copysign.
17420 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17422 * expr.c (expand_constructor): Correct indentations.
17424 2019-02-08 Richard Biener <rguenther@suse.de>
17426 PR tree-optimization/89247
17427 * tree-if-conv.c: Include tree-cfgcleanup.h.
17428 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
17429 (tree_if_conversion): Pass through predicate vector.
17430 (pass_if_conversion::execute): Do CFG cleanup and SSA update
17431 inline, see if any if-converted loops we refrece in
17432 LOOP_VECTORIZED calls vanished and fixup.
17433 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
17435 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
17437 * config/s390/constraints.md (jdd): New constraint.
17439 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17442 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
17443 upper 16 vector registers without TARGET_AVX512VL.
17444 (*movti_internal): Likewise.
17446 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17448 PR rtl-optimization/89234
17449 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
17450 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
17451 (copy_reg_eh_region_note_backward): Likewise.
17453 2019-02-08 Richard Biener <rguenther@suse.de>
17455 PR middle-end/89223
17456 * tree-data-ref.c (initialize_matrix_A): Fail if constant
17457 doesn't fit in HWI.
17458 (analyze_subscript_affine_affine): Handle failure from
17459 initialize_matrix_A.
17461 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17463 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
17466 2019-02-07 David Malcolm <dmalcolm@redhat.com>
17468 PR tree-optimization/86637
17469 PR tree-optimization/89235
17470 * tree-vect-loop.c (optimize_mask_stores): Add an
17471 auto_purge_vect_location sentinel to ensure that vect_location is
17473 * tree-vectorizer.c
17474 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
17475 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
17476 to ensure that vect_location is purged on exit.
17477 (pass_slp_vectorize::execute): Likewise, replacing the manual
17479 * tree-vectorizer.h (class auto_purge_vect_location): New class.
17481 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17483 * config/aarch64/iterators.md (max_opp): New code_attr.
17484 (USMAX): New code iterator.
17485 * config/aarch64/predicates.md (aarch64_smin): New predicate.
17486 (aarch64_smax): Likewise.
17487 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
17488 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
17491 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
17494 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
17495 for TARGET_AVX512VL.
17496 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
17498 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
17500 * config/s390/s390-builtin-types.def: Add new types.
17501 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
17502 (s390_vec_xlw4): Make the memory operand into a const pointer.
17503 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
17505 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
17506 a new vector type with the alignment of the scalar memory operand.
17508 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
17509 Jakub Jelinek <jakub@redhat.com>
17512 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
17513 arm_count_ldrdstrd_insns): New declarations.
17514 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
17516 (valid_operands_ldrd_strd): New function.
17517 (arm_count_ldrdstrd_insns): New function.
17518 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
17519 sets instead of single DImode set and define new insns to match this.
17521 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17523 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
17524 Make it a C initializer.
17526 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17529 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
17531 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17533 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
17534 Use neon_dot<q> for type.
17535 (neon_<sup>dot_lane<vsi2qi>): Likewise.
17537 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17539 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
17540 Use neon_dot<q> for type.
17541 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
17542 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
17544 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
17546 PR rtl-optimization/89225
17547 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
17550 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
17552 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
17553 after restoring registers saved to allocate the frame on Windows.
17555 2019-02-06 Richard Biener <rguenther@suse.de>
17557 PR tree-optimization/89182
17558 * graphite.h (cached_scalar_evolution_in_region): Declare.
17559 * graphite.c (struct seir_cache_key): New.
17560 (struct sese_scev_hash): Likewise.
17561 (seir_cache): New global.
17562 (cached_scalar_evolution_in_region): New function.
17563 (graphite_transform_loops): Allocate and release seir_cache.
17564 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
17565 cached_scalar_evolution_in_region.
17566 * graphite-scop-detection.c (scop_detection::can_represent_loop):
17568 (scop_detection::graphite_can_represent_expr: Use
17569 cached_scalar_evolution_in_region.
17570 (scop_detection::stmt_simple_for_scop_p): Likewise.
17571 (find_params_in_bb): Likewise.
17572 (gather_bbs::before_dom_children): Likewise.
17573 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
17574 (add_loop_constraints): Likewise.
17576 2019-02-06 Jakub Jelinek <jakub@redhat.com>
17578 PR middle-end/89210
17579 * fold-const-call.c (fold_const_vec_convert): Pass true as last
17580 operand to new_unary_operation only if both element types are integral
17581 and it isn't a widening conversion. Return NULL_TREE if
17582 new_unary_operation failed.
17584 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
17587 * config/s390/s390.md: Remove load and test FP splitter.
17589 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17592 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
17593 expand_compare_loop, expand_block_compare_gpr,
17594 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
17595 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
17596 #include "profile-count.h" and "predict.h" for types and functions
17597 needed to work with REG_BR_PROB notes.
17599 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17602 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
17603 for the long branch case.
17605 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17608 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
17609 can throw, non-call exceptions are enabled and we can't delete
17610 dead exceptions or alter cfg. Set must_clean if
17611 delete_insn_and_edges returns true, don't set it blindly for calls.
17612 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
17614 PR rtl-optimization/89195
17615 * combine.c (make_extraction): For MEMs, don't extract bytes outside
17616 of the original MEM.
17618 2019-02-05 Martin Liska <mliska@suse.cz>
17620 PR gcov-profile/89000
17621 * gcov.c (function_summary): Remove argument.
17622 (file_summary): New function.
17623 (print_usage): Replace tabs with spaces.
17624 (generate_results): Use new function file_summary.
17626 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17629 * optabs.c (prepare_cmp_insn): Pass x and y to
17630 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
17632 2019-02-05 Richard Biener <rguenther@suse.de>
17634 PR middle-end/89150
17635 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
17636 (struct bitmap_element): Drop chain_prev so we properly recurse on
17637 the prev member, supporting tree views.
17638 (struct bitmap_head): GTY skip the obstack member.
17640 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
17643 * doc/extend.texi (Vector Extensions): Add an example of using vector
17644 types together with x86 intrinsics.
17646 2019-02-04 Alan Modra <amodra@gmail.com>
17648 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
17649 str[] size to 160, and comment.
17651 2019-02-04 Alan Modra <amodra@gmail.com>
17653 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
17654 (rs6000_pltseq_template): Guard output of TLS markers with
17655 TARGET_TLS_MARKERS.
17656 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
17657 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
17658 to use inline PLT sequences.
17659 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17660 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17661 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
17663 2019-02-04 Martin Liska <mliska@suse.cz>
17666 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
17667 out when ipa_fn_summaries does not contain entry for callee.
17669 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
17671 * config/sparc/sparc.h: Remove superfluous blank lines.
17672 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
17673 (got_register_rtx): ...this.
17674 (sparc_got): Adjust to above renaming.
17675 (sparc_tls_got): Likewise.
17676 (sparc_delegitimize_address): Likewise.
17677 (sparc_output_mi_thunk): Likewise.
17678 (sparc_init_pic_reg): Likewise.
17679 (save_local_or_in_reg_p): Fix test on the GOT register.
17680 (USE_HIDDEN_LINKONCE): Move around.
17681 (get_pc_thunk_name): Likewise.
17682 (gen_load_pcrel_sym): Likewise.
17683 (load_got_register): Likewise.
17685 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
17687 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
17688 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
17690 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17692 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
17693 into consideration.
17695 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17697 * config.gcc (with_nds32_lib, glibc):
17698 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
17699 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
17700 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
17702 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
17705 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
17706 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
17707 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
17708 (*rcpsf2_sse): Ditto.
17709 (*rsqrtsf2_sse): Ditto.
17710 (sse4_1_round<mode<2): Ditto.
17712 2019-02-03 Richard Biener <rguenther@suse.de>
17715 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
17718 2019-02-02 Jakub Jelinek <jakub@redhat.com>
17720 PR middle-end/87887
17721 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17722 Punt with warning on aggregate return or argument types. Ignore
17723 type/mode checking for uniform arguments.
17725 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
17727 * combine.c (try_combine): Do not print "Can't combine" messages unless
17728 printing failed combination attempts.
17730 2019-02-01 Martin Jambor <mjambor@suse.cz>
17733 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
17734 segment and global segment variables before making them static.
17736 2019-02-01 Martin Jambor <mjambor@suse.cz>
17738 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
17739 missed optimization dump with dump_enabled_p.
17741 2019-02-01 Richard Biener <rguenther@suse.de>
17743 PR middle-end/88597
17744 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
17745 the instantiate cache.
17746 (instantiate_scev_binary): Elide second operand procesing
17747 if equal to the first.
17748 * tree-chrec.c (chrec_contains_symbols): Add visited set.
17749 (chrec_contains_undetermined): Likewise.
17750 (tree_contains_chrecs): Likewise.
17752 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
17754 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
17756 2019-02-01 Jakub Jelinek <jakub@redhat.com>
17758 PR tree-optimization/89143
17759 * wide-int-range.h (wide_int_range_absu): Declare.
17760 * wide-int-range.cc (wide_int_range_absu): New function.
17761 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
17763 PR tree-optimization/88107
17764 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
17765 instead of assertion that eh_region_outermost is non-NULL, if it
17766 is NULL, set *ALL to true and return NULL.
17767 (move_sese_region_to_fn): Adjust caller, if all is set, call
17768 duplicate_eh_regions with NULL region.
17770 2019-02-01 Richard Biener <rguenth@suse.de>
17772 PR rtl-optimization/88593
17773 * mode-switching.c (optimize_mode_switching): Free dominators before
17774 calling cleanup_cfg.
17776 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
17778 PR tree-optimization/88932
17779 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
17781 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17783 PR middle-end/89137
17784 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
17785 bogus clang warning.
17787 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
17790 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
17791 alternative to avoid partial SSE register stall for TARGET_AVX.
17792 (truncdfsf2): Ditto.
17793 (sse4_1_round<mode>2): Ditto.
17795 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
17797 PR tree-optimization/89008
17798 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
17799 process anything of the form X * 0.
17801 2019-01-31 Richard Biener <rguenther@suse.de>
17803 PR tree-optimization/89135
17804 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
17805 with abnormal preds.
17807 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17810 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
17811 always_inline callees into no_sanitize_address callers.
17813 2019-01-31 Richard Biener <rguenther@suse.de>
17815 PR rtl-optimization/89115
17816 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
17818 2019-01-30 Martin Sebor <msebor@redhat.com>
17821 * doc/extend.texi (cast to a union): Correct and expand.
17823 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
17825 PR rtl-optimization/87246
17826 * lra-constraints.c (simplify_operand_subreg): Reload memory
17827 in subreg if the address became invalid.
17829 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
17832 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
17833 Disable for little-endian.
17835 2019-01-30 Richard Biener <rguenther@suse.de>
17837 PR rtl-optimization/89115
17838 * opts.c (default_options_optimization): Reduce
17839 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
17840 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
17843 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17845 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
17846 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
17847 type of vector element when vec_extract is implemented by direct
17850 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
17852 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
17854 2019-01-30 Richard Biener <rguenther@suse.de>
17856 PR tree-optimization/89111
17857 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
17858 canonicalization to appropriately sized access types.
17860 2019-01-30 Jakub Jelinek <jakub@redhat.com>
17863 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
17864 for arguments to functions that are TU-local and shouldn't be
17865 referenced by assembly.
17867 2019-01-30 Ulrich Drepper <drepper@redhat.com>
17869 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
17872 2019-01-29 Martin Sebor <msebor@redhat.com>
17875 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
17877 2019-01-29 Jakub Jelinek <jakub@redhat.com>
17881 * omp-simd-clone.c (simd_clone_clauses_extract)
17882 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
17883 OMP_CLAUSE_ALIGNED_ALIGNMENT.
17885 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
17887 * config.gcc: Force .init_array for ARC.
17889 2019-01-29 Richard Biener <rguenther@suse.de>
17892 * dwarf2out.c (collect_skeleton_dies): New helper.
17893 (copy_decls_for_unworthy_types): Call it.
17894 (build_abbrev_table): Assert we do not try to replace
17895 DW_AT_signature refs with local refs.
17897 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17899 PR middle-end/89002
17900 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
17901 for lastprivate/linear IV, push gimplify context around gimplify_assign
17902 and, if it needed any temporaries, pop it into a gimple bind around the
17905 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17907 * common.opt (-Wattribute-alias): Remove "no-" from name.
17908 Make -Wattribute-alias command line option and
17909 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
17911 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17914 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
17915 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
17917 (bmi2): Add missing @opindex.
17918 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
17919 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
17920 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
17921 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
17922 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
17923 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
17924 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
17925 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
17926 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
17927 xsavec, xsaveopt and xsaves options.
17929 2019-01-28 Richard Biener <rguenther@suse.de>
17932 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
17935 2019-01-28 Richard Biener <rguenther@suse.de>
17937 PR tree-optimization/88739
17938 * tree-cfg.c (verify_types_in_gimple_reference): Verify
17939 BIT_FIELD_REFs only are applied to mode-precision operands
17940 when they are integral.
17941 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
17942 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
17943 BIT_FIELD_REFs of non-mode-precision integral operands.
17945 2019-01-27 Jakub Jelinek <jakub@redhat.com>
17948 * config/i386/sse.md
17949 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
17950 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
17951 first constants in pairs are multiples of 2. Formatting fixes.
17952 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
17953 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
17954 first constants in each quadruple are multiples of 4. Formatting fixes.
17956 2019-01-26 Martin Jambor <mjambor@suse.cz>
17959 * tree-inline.c: Include tree-cfgcleanup.h.
17960 (delete_unreachable_blocks_update_callgraph): Move...
17961 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
17962 ...here, make externally visible, make second argument bool, adjust
17964 * tree-cfgcleanup.c: Include cgraph.h.
17965 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
17967 * ipa-prop.c: Include tree-cfgcleanup.h.
17968 (ipcp_transform_function): Call
17969 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
17971 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
17973 PR rtl-optimization/88846
17974 * ira.c (process_set_for_memref_referenced_p): New.
17975 (memref_referenced_p): Add new param. Use
17976 process_set_for_memref_referenced_p. Add new switch cases.
17977 (memref_used_between_p): Pass new arg to memref_referenced_p.
17979 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
17982 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
17983 argument ABI_BREAK. Set to true if the calculated alignment has
17984 changed in gcc-9. Check bit-fields for their base type alignment.
17985 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
17986 (aarch64_function_arg_boundary): Likewise.
17987 (aarch64_gimplify_va_arg_expr): Likewise.
17989 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
17991 PR middle-end/89037
17992 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
17993 instead of accessing TREE_INT_CST_ELT directly.
17995 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
17997 * doc/sourcebuild.texi (Environment attributes): Add fenv and
17998 fenv_exceptions description.
18000 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18002 PR rtl-optimization/87763
18003 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18004 Allow SUBREG when matching CC_NZmode compare.
18006 2019-01-25 Richard Biener <rguenther@suse.de>
18008 PR tree-optimization/89049
18009 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18010 Look at the pattern stmt to determine if the stmt is vectorized.
18012 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18014 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18015 (pred_mov<mode>): Handle all-register forms using both a new
18016 alternative and a split.
18018 2019-01-25 Richard Biener <rguenther@suse.de>
18020 PR tree-optimization/86865
18021 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18022 Reject non-do-while loops.
18024 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18026 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18027 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18028 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18029 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18030 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18031 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18032 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18033 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18034 vlogical_operand, gpc_reg_operand, int_reg_operand,
18035 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18036 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18037 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18038 (save_world_operation, restore_world_operation, lmw_operation,
18039 stmw_operation): Use MEM_P and REG_P.
18040 (tie_operand): Use MEM_P.
18041 (vrsave_operation, crsave_operation): Use REG_P.
18042 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18043 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18044 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18045 (call_operand): Use HARD_REGISTER_P.
18046 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18048 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18049 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18050 quad_aligned_load_p, replace_swapped_aligned_store,
18051 recombine_lvx_pattern, replace_swapped_aligned_load,
18052 recombine_stvx_pattern): Use MEM_P.
18053 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18054 Use MEM_P and SYMBOL_REF_P.
18055 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18056 (insn_is_swappable_p): Use REG_P and MEM_P.
18057 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18058 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18060 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18061 Use CONST_DOUBLE_P.
18062 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18064 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18065 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18066 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18067 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18069 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18070 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18071 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18072 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18073 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18074 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18075 rs6000_split_logical_di): Use CONST_INT_P.
18076 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18077 REG_P and SYMBOL_REF_P.
18078 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18079 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18080 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18081 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18082 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18083 (small_data_operand, print_operand_address): Use CONST_INT_P and
18085 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18086 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18087 Use HARD_REGISTER_NUM_P.
18088 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18089 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18090 SUBREG_P and SYMBOL_REF_P.
18091 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18092 and HARD_REGISTER_NUM_P.
18093 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18095 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18096 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18098 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18099 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18100 find_addr_reg): Use REG_P.
18101 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18102 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18103 (offsettable_ok_by_alignment, constant_pool_expr_p,
18104 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18105 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18106 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18107 rs6000_assemble_integer, create_TOC_reference,
18108 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18109 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18110 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18111 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18112 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18113 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18114 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18115 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18116 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18117 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18118 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18119 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18120 and cbranch<mode>4): Use CONST_INT_P.
18121 (multiple define_splits): Use REG_P and SUBREG_P.
18122 (define_expands call, call_value): Use MEM_P.
18123 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18124 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18125 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18126 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18127 and HARD_REGISTER_NUM_P.
18128 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18130 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18132 PR rtl-optimization/88948
18133 * rtl.h (prepare_copy_insn): New prototype.
18134 * gcse.c (prepare_copy_insn): New function, split out from
18135 process_insert_insn.
18136 (process_insert_insn): Use prepare_copy_insn.
18137 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18138 instead of gen_move_insn.
18140 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18143 * config/i386/i386.c (ix86_pic_register_p): Return true for
18144 UNSPEC_SET_GOT too.
18146 PR tree-optimization/88964
18147 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18148 punt if HONOR_SNANS (chrec).
18150 PR middle-end/89015
18151 * tree-nested.c (convert_nonlocal_reference_stmt,
18152 convert_local_reference_stmt, convert_tramp_reference_stmt,
18153 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18154 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18155 or GIMPLE_OMP_TASK.
18157 PR tree-optimization/89027
18158 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18159 for "omp simd array" variables.
18161 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18164 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18165 force the alignment of m_val.
18167 2019-01-24 Richard Biener <rguenther@suse.de>
18170 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18171 When in "legacy" debug mode make sure to reset self-origins.
18173 2019-01-24 Martin Liska <mliska@suse.cz>
18175 PR gcov-profile/88994
18176 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18177 result will be always smaller or equal to the original.
18178 * gcov.c (mangle_name): Fix else branch where we should
18179 also copy to PTR and shift the pointer.
18181 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18183 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18184 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18186 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18188 * common/config/i386/i386-common.c
18189 (OPTION_MASK_ISA_ENQCMD_SET,
18190 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18191 (ix86_handle_option): Handle -menqcmd.
18192 * config.gcc (enqcmdintrin.h): New header file.
18193 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18194 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18196 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18198 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18199 __builtin_ia32_enqcmds): New builtins.
18200 * config/i386/i386-c.c (__ENQCMD__): New macro.
18201 * config/i386/i386-option.c (ix86_target_string): Add
18203 (ix86_valid_target_attribute_inner_p): Likewise.
18204 * config/i386/i386-expand.c
18205 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18206 IX86_BUILTIN_ENQCMDS.
18207 * config/i386/i386.h (TARGET_ENQCMD): New.
18208 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18209 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18210 (movdir64b_<mode>): Parameterize to enable share expansion code
18211 with ENQCMD in function ix86_expand_builtin.
18212 * config/i386/i386.opt: Add -menqcmd.
18213 * config/i386/immintrin.h: Include enqcmdintrin.h.
18214 * config/i386/enqcmdintrin.h: New intrinsic file.
18215 * doc/invoke.texi: Add -menqcmd.
18217 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18218 Steve Ellcey <sellcey@marvell.com>
18221 * recog.c (address_operand): Return false on wrong mode for address.
18222 (constrain_operands): Check for mode with 'p' constraint.
18224 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18227 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18228 Disparage MMX alternative.
18229 (sse2_cvtpd2pi): Ditto.
18230 (sse2_cvttpd2pi): Ditto.
18232 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18235 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18236 use-after-free of the result of
18237 aarch64_get_extension_string_for_isa_flags.
18239 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18242 * doc/extend.texi: Document break and continue behavior in
18243 statement expressions.
18245 2019-01-23 Richard Biener <rguenther@suse.de>
18247 PR tree-optimization/89008
18248 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18249 not leave another stray operand.
18251 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18253 * BASE-VER: Bump to 9.0.1.
18255 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18257 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18258 thunk that returns by reference, use the type of the return object
18259 of the thunk instead of that of the alias to build the dereference.
18261 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18263 * config/arc/atomic.md: Add operand to DMB instruction.
18265 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18267 PR tree-optimization/88964
18268 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18269 build_zero_cst instead of build_int_cst. Return false for loop
18270 invariants which honor signed zeros.
18272 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18274 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18276 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18279 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18280 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18281 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18283 PR middle-end/88968
18284 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18285 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18288 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18289 Disable for little endian.
18291 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18294 * config/arm/arm.c (arm_needs_double_word_align): Check
18295 DECL_BIT_FIELD_TYPE.
18297 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18298 H.J. Lu <hongjiu.lu@intel.com>
18301 * config/i386/i386-builtin.def: Add mask2 to all builtin
18302 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18304 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18305 (BDESC_FIRST): Likewise.
18306 (define_builtin): Add an argument for mask2. Updated to handle
18307 both ix86_isa_flags and ix86_isa_flags2.
18308 (define_builtin_const): Likewise.
18309 (define_builtin_pure): Likewise.
18310 (define_builtin2): Deleted.
18311 (define_builtin_const2): Likewise.
18312 (builtin_description): Add a member, mask2.
18313 (bdesc_*): Add mask2 to builtin initializations.
18314 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18315 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18317 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18319 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18322 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18325 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18328 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
18329 alignment is dominated by a bitfield with 64-bit aligned base type.
18330 (arm_function_arg): Emit a warning if the alignment has changed since
18331 earlier GCC releases.
18332 (arm_function_arg_boundary): Likewise.
18333 (arm_setup_incoming_varargs): Likewise.
18335 2019-01-22 Richard Biener <rguenther@suse.de>
18337 PR tree-optimization/88862
18338 * graphite-scop-detection.c
18339 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
18341 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
18343 * doc/extend.tex (AMD GCN Function Attributes): New section.
18344 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
18345 * doc/invoke.texi (AMD GCN Options): New section.
18346 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
18348 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
18350 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
18351 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
18353 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18355 PR tree-optimization/88044
18356 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
18357 is false in the first iteration, but !every_iteration, return false
18358 instead of true with niter->niter zero.
18360 PR rtl-optimization/88904
18361 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
18362 any nonequal registers before processing BB_END (b).
18365 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
18367 (expand_binop_directly, expand_doubleword_clz,
18368 expand_doubleword_popcount, expand_ctz, expand_ffs,
18369 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
18371 PR rtl-optimization/49429
18373 PR rtl-optimization/86334
18375 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
18376 addressable from here...
18377 (emit_block_op_via_libcall): ... to here.
18379 2019-01-22 Richard Biener <rguenther@suse.de>
18381 * tree-vect-loop.c (vect_analyze_loop_operations): Use
18382 auto_vec for cost vector to fix memleak.
18383 (vectorize_fold_left_reduction): Properly gather SLP defs.
18384 (vectorizable_comparison): Do not swap operands to properly
18387 2019-01-22 Alan Modra <amodra@gmail.com>
18390 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
18391 stays a reg. Allow a const_int.
18392 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
18393 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
18394 (IS_NOMARK_TLSGETADDR): Define.
18395 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
18396 (rs6000_output_tlsargs): New function.
18397 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
18398 __tls_get_addr call takes an arg.
18399 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
18400 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
18402 (call_value_nonlocal_sysv): ..or here, delete split.
18403 (tls_gdld_nomark): Delete.
18404 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
18405 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
18406 (call_value_nonlocal_sysv): Likewise.
18407 (call_value_nonlocal_sysv_secure): Likewise.
18408 (call_value_nonlocal_aix): Likewise.
18409 (call_value_indirect_aix): Likewise.
18410 (call_value_indirect_elfv2): Likewise.
18411 (call_value_local32, call_value_local64): Disable for no-mark tls.
18412 (call_value_local_aix): Likewise.
18414 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
18417 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
18418 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
18420 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
18422 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
18423 string contents as hash_map keys.
18425 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
18428 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
18429 for rvalue context. Handle rvalues correctly. Use min_align_of_type
18430 instead of TYPE_ALIGN.
18431 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
18432 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
18433 pointer from TYPE_STUB_DECL.
18435 2019-01-21 Richard Biener <rguenther@suse.de>
18437 PR tree-optimization/88934
18438 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
18439 at the possibly non-constant operand.
18440 (vect_get_constant_vectors): Adjust.
18442 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
18445 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
18446 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
18447 instead of _X86INTRIN_H_INCLUDED.
18448 * onfig/i386/clwbintrin.h: Likewise.
18449 * config/i386/pkuintrin.h: Likewise.
18450 * config/i386/prfchwintrin.h: Likewise.
18451 * config/i386/rdseedintrin.h: Likewise.
18452 * config/i386/wbnoinvdintrin.h: Likewise.
18453 * config/i386/xsavecintrin.h: Likewise.
18454 * config/i386/xsavesintrin.h: Likewise.
18455 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
18456 * config/i386/xsaveintrin.h: Likewise.
18457 * config/i386/xsaveoptintrin.h: Likewise.
18458 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
18459 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
18460 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
18461 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
18462 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
18463 * config/i386/immintrin.h: Here.
18465 2019-01-20 Martin Jambor <mjambor@suse.cz>
18468 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
18469 with aa_walk_budget.
18470 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
18471 aa_walk_budget_p parameter.
18472 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
18473 walk. Updated all callers.
18474 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
18475 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
18477 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
18478 parameter info. Extract info from fbi. Pass fbi to recursive calls
18479 and to unmodified_parm.
18480 (phi_result_unknown_predicate): New parameter fbi, removed parameter
18481 info, updated call to will_be_nonconstant_expr_predicate.
18482 (param_change_prob): New parameter fbi, limit AA walking.
18483 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
18484 calls to various above functions.
18485 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
18486 parameter. Use it to limit AA walking.
18487 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
18488 fbi, limit AA walk.
18489 (detect_type_change): New parameter fbi, pass it on to
18490 detect_type_change_from_memory_writes.
18491 (detect_type_change_ssa): Likewise.
18492 (aa_overwalked): Removed.
18493 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
18494 accordingly, adjust to the neew AA limiting scheme.
18495 (parm_ref_data_preserved_p): Likewise.
18496 (ipa_compute_jump_functions_for_edge): Adjust call to
18498 (ipa_analyze_call_uses): Likewise.
18499 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
18500 (ipa_analyze_node): Initialize aa_walk_budget.
18501 (ipcp_transform_function): Likewise.
18502 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
18503 to get_dynamic_type.
18505 2019-01-19 Jakub Jelinek <jakub@redhat.com>
18507 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
18508 outside of #if CHECKING_P code.
18510 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
18512 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
18513 New function, split out from...
18514 (loop_versioning::analyze_stride): ...here.
18515 (loop_versioning::find_per_loop_multiplication): Use gassign.
18516 (loop_versioning::analyze_term_using_scevs): Return a success code.
18517 (loop_versioning::analyze_arbitrary_term): New function.
18518 (loop_versioning::analyze_address_fragment): Use
18519 analyze_arbitrary_term if all else fails.
18521 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
18524 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
18527 2019-01-18 Richard Biener <rguenther@suse.de>
18529 PR tree-optimization/88903
18530 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
18531 scalar stmts a SLP shift amount is composed of when detecting
18534 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
18537 * config/arm/arm-cpus.in (mp): New feature.
18538 (sec): New feature.
18539 (fgroup ARMv7ve): Add mp and sec features.
18540 (arch armv7-a): Add options to allow mp and sec extensions.
18541 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
18542 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
18543 extenstions to the base architecture.
18544 (cpu cortex-a8): Add sec extension to the base architecture.
18545 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
18546 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
18547 variants down to the base v7-a varaint.
18548 * config/arm/t-multilib (v7_a_arch_variants): New variable.
18549 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
18550 of permitted extensions for -march=armv7-a and for
18551 -mcpu=generic-armv7-a.
18553 2019-01-18 Martin Liska <mliska@suse.cz>
18555 * params.def: Fix comment.
18556 * tree-profile.c (gimple_init_gcov_profiler): Bump function
18558 (gimple_gen_ic_func_profiler): Likewise.
18560 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18562 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
18563 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
18564 and put in error checks for stack protector guard options.
18565 (aarch64_stack_protect_guard): New.
18566 (TARGET_STACK_PROTECT_GUARD): Define.
18567 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
18568 (reg_stack_protect_address<mode>): New.
18569 (stack_protect_set): Adjust for SSP_GLOBAL.
18570 (stack_protect_test): Likewise.
18571 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
18572 (-mstack-protector-guard): Likewise.
18573 (-mstack-protector-guard-offset): Likewise.
18575 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18577 PR tree-optimization/86214
18578 * tree-inline.h (struct copy_body_data): Add
18579 add_clobbers_to_eh_landing_pads member.
18580 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
18581 (copy_edges_for_bb): Call it if EH edge destination is <
18582 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
18583 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
18584 if flag_stack_reuse != SR_NONE and clear it afterwards.
18586 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
18589 * doc/install.texi (with-multilib-list): Document for aarch64.
18591 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18594 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
18595 (("..."))) with ("...").
18597 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18599 * doc/extend.texi (Built-in Functions for Memory Model Aware
18600 Atomic Operations): Document atomic fetch and nand.
18602 2019-01-18 Martin Liska <mliska@suse.cz>
18603 Richard Biener <rguenther@suse.de>
18605 PR middle-end/88587
18606 * cgraph.h (create_version_clone_with_body): Add new argument
18608 * cgraphclones.c (cgraph_node::create_version_clone): Add
18609 DECL_ATTRIBUTES to a newly created decl. And call
18610 valid_attribute_p so that proper cl_target_optimization_node
18611 is set for the newly created declaration.
18612 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
18614 (expand_target_clones): Do not call valid_attribute_p, it must
18616 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
18619 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18622 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
18623 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
18624 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
18626 2019-01-17 Martin Sebor <msebor@redhat.com>
18628 PR middle-end/88273
18629 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
18630 Handle anti-ranges the same as no range at all.
18632 2018-01-17 Steve Ellcey <sellcey@cavium.com>
18634 * config/aarch64/aarch64.c (cgraph.h): New include.
18635 (intl.h): New include.
18636 (supported_simd_type): New function.
18637 (currently_supported_simd_type): Ditto.
18638 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
18639 (aarch64_simd_clone_adjust): Ditto.
18640 (aarch64_simd_clone_usable): Ditto.
18641 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
18642 (TARGET_SIMD_CLONE_ADJUST): Ditto.
18643 (TARGET_SIMD_CLONE_USABLE): Ditto.
18644 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
18645 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
18648 2019-01-17 Martin Sebor <msebor@redhat.com>
18650 PR tree-optimization/88800
18651 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
18652 NO_WARNING bit here. Avoid folding out-of-bounds calls.
18653 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
18654 redundant argument. Add new argument and issue diagnostics under
18655 its control. Detect out-of-bounds access even with warnings
18657 (check_bounds_or_overlap): Change return type. Add argument.
18658 (wrestrict_dom_walker::check_call): Adjust.
18659 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
18660 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
18661 check_bounds_or_overlap's return value.
18662 (handle_builtin_stxncpy): Same.
18663 (handle_builtin_strcat): Same.
18665 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18666 Kwok Cheung Yeung <kcy@codesourcery.com>
18667 Julian Brown <julian@codesourcery.com>
18668 Tom de Vries <tom@codesourcery.com>
18670 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
18672 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18674 * doc/sourcebuild.texi: Document dg-require-effective-target
18675 llvm_binutils and offload_gcn.
18677 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18678 Kwok Cheung Yeung <kcy@codesourcery.com>
18679 Julian Brown <julian@codesourcery.com>
18680 Tom de Vries <tom@codesourcery.com>
18682 * doc/sourcebuild.texi: Document dg-required-effective-target
18685 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18686 Kwok Cheung Yeung <kcy@codesourcery.com>
18687 Julian Brown <julian@codesourcery.com>
18688 Tom de Vries <tom@codesourcery.com>
18689 Jan Hubicka <hubicka@ucw.cz>
18690 Martin Jambor <mjambor@suse.cz>
18692 * config.gcc: Add amdgcn*-*-amdhsa configuration.
18693 * configure.ac: Check for dlopen.
18694 * configure: Regenerate.
18696 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18697 Kwok Cheung Yeung <kcy@codesourcery.com>
18698 Julian Brown <julian@codesourcery.com>
18699 Tom de Vries <tom@codesourcery.com>
18700 Jan Hubicka <hubicka@ucw.cz>
18701 Martin Jambor <mjambor@suse.cz>
18703 * common/config/gcn/gcn-common.c: New file.
18704 * config/gcn/driver-gcn.c: New file.
18705 * config/gcn/gcn-builtins.def: New file.
18706 * config/gcn/gcn-hsa.h: New file.
18707 * config/gcn/gcn-modes.def: New file.
18708 * config/gcn/gcn-opts.h: New file.
18709 * config/gcn/gcn-passes.def: New file.
18710 * config/gcn/gcn-protos.h: New file.
18711 * config/gcn/gcn-run.c: New file.
18712 * config/gcn/gcn-tree.c: New file.
18713 * config/gcn/gcn.c: New file.
18714 * config/gcn/gcn.h: New file.
18715 * config/gcn/gcn.opt: New file.
18716 * config/gcn/t-gcn-hsa: New file.
18718 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18719 Kwok Cheung Yeung <kcy@codesourcery.com>
18720 Julian Brown <julian@codesourcery.com>
18721 Tom de Vries <tom@codesourcery.com>
18722 Jan Hubicka <hubicka@ucw.cz>
18723 Martin Jambor <mjambor@suse.cz>
18725 * config/gcn/constraints.md: New file.
18726 * config/gcn/gcn-valu.md: New file.
18727 * config/gcn/gcn.md: New file.
18728 * config/gcn/predicates.md: New file.
18730 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
18732 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
18733 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
18734 (stmt_uses_0_or_null_in_undefined_way): Likewise.
18735 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
18737 2019-01-17 Tamar Christina <tamar.christina@arm.com>
18740 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
18741 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
18742 it and document registers.
18744 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18746 * config/aarch64/aarch64.c (ares_tunings): Define.
18747 * config/aarch64/aarch64-cores.def (ares): Use the above.
18749 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18753 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
18755 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
18756 (_mm512_fixupimm_round_pd): Update parameters and builtin.
18757 (_mm512_maskz_fixupimm_round_pd): Ditto.
18758 (_mm512_fixupimm_round_ps): Ditto.
18759 (_mm512_maskz_fixupimm_round_ps): Ditto.
18760 (_mm_fixupimm_round_sd): Ditto.
18761 (_mm_maskz_fixupimm_round_sd): Ditto.
18762 (_mm_fixupimm_round_ss): Ditto.
18763 (_mm_maskz_fixupimm_round_ss): Ditto.
18764 (_mm512_fixupimm_pd): Ditto.
18765 (_mm512_maskz_fixupimm_pd): Ditto.
18766 (_mm512_fixupimm_ps): Ditto.
18767 (_mm512_maskz_fixupimm_ps): Ditto.
18768 (_mm_fixupimm_sd): Ditto.
18769 (_mm_maskz_fixupimm_sd): Ditto.
18770 (_mm_fixupimm_ss): Ditto.
18771 (_mm_maskz_fixupimm_ss): Ditto.
18772 (_mm512_mask_fixupimm_round_pd): Update builtin.
18773 (_mm512_mask_fixupimm_round_ps): Ditto.
18774 (_mm_mask_fixupimm_round_sd): Ditto.
18775 (_mm_mask_fixupimm_round_ss): Ditto.
18776 (_mm512_mask_fixupimm_pd): Ditto.
18777 (_mm512_mask_fixupimm_ps): Ditto.
18778 (_mm_mask_fixupimm_sd): Ditto.
18779 (_mm_mask_fixupimm_ss): Ditto.
18780 * config/i386/avx512vlintrin.h:
18781 (_mm256_fixupimm_pd): Update parameters and builtin.
18782 (_mm256_maskz_fixupimm_pd): Ditto.
18783 (_mm256_fixupimm_ps): Ditto.
18784 (_mm256_maskz_fixupimm_ps): Ditto.
18785 (_mm_fixupimm_pd): Ditto.
18786 (_mm_maskz_fixupimm_pd): Ditto.
18787 (_mm_fixupimm_ps): Ditto.
18788 (_mm_maskz_fixupimm_ps): Ditto.
18789 (_mm256_mask_fixupimm_pd): Update builtin.
18790 (_mm256_mask_fixupimm_ps): Ditto.
18791 (_mm_mask_fixupimm_pd): Ditto.
18792 (_mm_mask_fixupimm_ps): Ditto.
18793 * config/i386/i386-builtin-types.def: Add new types and remove
18795 * config/i386/i386-builtin.def: Update builtin definitions.
18796 * config/i386/i386.c: Handle new builtin types and remove useless ones.
18797 * config/i386/sse.md: Update VFIXUPIMM* patterns.
18798 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18799 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18800 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
18801 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18802 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18803 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
18804 * config/i386/subst.md:
18805 (round_saeonly_sd_mask_operand4): Add new subst_attr.
18806 (round_saeonly_sd_mask_op4): Ditto.
18807 (round_saeonly_expand_operand5): Ditto.
18808 (round_saeonly_expand): Update.
18810 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18814 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
18816 * config/i386/sse.md: Combine VFIXUPIMM* patterns
18817 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18818 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18819 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
18820 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18821 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18822 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
18824 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18828 2018-12-15 Jakub Jelinek <jakub@redhat.com>
18831 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
18832 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
18833 instead of UNSPEC_FIXUPIMM.
18835 2019-01-17 Richard Biener <rguenther@suse.de>
18838 * dwarf2out.c (want_pubnames): Never generate pubnames sections
18839 and friends for the LTO part of debug info.
18841 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18843 PR tree-optimization/86214
18844 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
18847 PR rtl-optimization/88870
18848 * dce.c (deletable_insn_p): Never delete const/pure calls that can
18849 throw if we can't alter the cfg or delete dead exceptions.
18850 (mark_insn): Don't call find_call_stack_args for such calls.
18852 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
18854 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
18855 prototypes for vec_st.
18856 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
18857 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
18858 mainly on signed/unsigned long long and double.
18860 2019-01-16 David Malcolm <dmalcolm@redhat.com>
18863 * combine.c (delete_noop_moves): Convert to "bool" return,
18864 returning true if any edges are eliminated.
18865 (combine_instructions): Also return true if delete_noop_moves
18868 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18870 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
18871 correct max nunits for endian swap.
18872 (aarch64_expand_fcmla_builtin): Correct subreg code.
18873 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18874 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
18877 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
18879 * config/alpha/alpha.c (alpha_gimplify_va_arg):
18880 Handle split indirect COMPLEX_TYPE arguments.
18882 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
18885 * config/aarch64/aarch64-modes.def: Add comment about how the carry
18886 bit is set by add and compare.
18887 (CC_ADC): New CC_MODE.
18888 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
18889 to cache the code and mode of X. Adjust the shape of a CC_Cmode
18890 comparison. Add detection for CC_ADCmode.
18891 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
18893 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
18894 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
18895 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
18896 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
18897 to eliminate the need for zero-extending the operands.
18898 (add<mode>3_compareC_imm): Delete. Merge into ...
18899 (add<mode>3_compareC): ... this. Restructure the comparison to
18900 eliminate the need for zero-extending the operands.
18901 (add<mode>3_carryin): Use LTU for the overflow detection.
18902 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
18903 Reexpress comparison for overflow.
18904 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
18905 (add<mode>3_carryinC): Likewise.
18906 (add<mode>3_carryinV): Use LTU for carry between partials.
18907 * config/aarch64/predicates.md (aarch64_carry_operation): Update
18908 handling of CC_Cmode and add CC_ADCmode.
18909 (aarch64_borrow_operation): Likewise.
18911 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18913 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
18914 Remove patternmode.
18915 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
18916 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18917 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
18918 Remove endianness conversion.
18920 2019-01-16 Martin Liska <mliska@suse.cz>
18922 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
18924 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
18926 * gcc.c (add_sysrooted_hdrs_prefix): New function.
18927 (path_prefix_reset): Move up in the source file.
18928 (find_fortran_preinclude_file): Make complex search for the
18929 fortran header files.
18931 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
18933 * godump.c (go_output_typedef): When outputting a typedef, refer
18934 to the underlying type by its name and not its structure.
18936 2019-01-15 David Malcolm <dmalcolm@redhat.com>
18939 * tree.c (build_function_type): Assert that arg_types is not
18942 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
18944 PR inline-asm/52813
18945 * doc/extend.texi: Document that listing the stack pointer in the
18946 clobber list of an asm is a deprecated feature.
18947 * common.opt (Wdeprecated): Moved from c-family/c.opt.
18948 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
18949 warning instead of an error for clobbers of the stack pointer.
18950 Add a note explaining why.
18952 2019-01-15 Richard Biener <rguenther@suse.de>
18955 * dwarf2out.c (gen_member_die): Do not generate inheritance
18958 2019-01-15 Richard Biener <rguenther@suse.de>
18960 PR tree-optimization/88855
18961 * tree-if-conv.c (combine_blocks): Collect
18962 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
18964 2019-01-15 Tom de Vries <tdevries@suse.de>
18967 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
18968 lhs == NULL_TREE for gang-level reduction.
18970 2019-01-15 Richard Biener <rguenther@suse.de>
18971 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18974 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
18975 return true if SSA_NAME is already marked in visited bitmap.
18976 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
18978 2019-01-15 Jakub Jelinek <jakub@redhat.com>
18980 PR tree-optimization/88775
18981 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
18982 equal == 0 equality pointer comparisons some more if compared in
18983 integral types and either one points to an automatic var and the
18984 other to a global, or we can prove at least one points to the middle
18985 or both point to start or both point to end.
18987 2019-01-14 Andi Kleen <ak@linux.intel.com>
18989 * Makefile.in: Lower autofdo sampling rate by 10x.
18990 * Makefile.tpl: Dito.
18992 2019-01-14 Tom Honermann <tom@honermann.net>
18994 * defaults.h: Define CHAR8_TYPE.
18996 2019-01-14 Martin Sebor <msebor@redhat.com>
18999 * doc/extend.texi (Darwin Format Checks): Clarify.
19001 2019-01-14 Richard Biener <rguenther@suse.de>
19003 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19004 whether we are in (simplify ...) or (match ...) context.
19006 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19008 PR rtl-optimization/88796
19009 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19010 * cfgexpand.c (stack_protect_prologue): Initialize
19011 crtl->stack_protect_guard_decl.
19012 * function.c (stack_protect_epilogue): Use it instead of calling
19013 targetm.stack_protect_guard again.
19014 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19015 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19016 crtl->stack_protect_guard_decl.
19017 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19018 on the returned MEM_EXPR.
19020 2019-01-12 Tom de Vries <tdevries@suse.de>
19022 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19023 vector length using -fopenacc-dim.
19025 2019-01-12 Tom de Vries <tdevries@suse.de>
19027 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19028 lengths into account.
19030 2019-01-12 Svante Signell <svante.signell@gmail.com>
19032 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19033 (TARGET_CAN_SPLIT_STACK): Define.
19034 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19036 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19038 * params.def (inline-unit-growth): Set to 40.
19040 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19042 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19044 2019-01-12 Tom de Vries <tdevries@suse.de>
19046 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19047 region calling vector-partitionable routine, set default_vector_length
19050 2019-01-12 Tom de Vries <tdevries@suse.de>
19052 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19053 variable default_vector_length.
19055 2019-01-12 Tom de Vries <tdevries@suse.de>
19057 PR middle-end/88703
19058 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19059 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19062 2019-01-12 Tom de Vries <tdevries@suse.de>
19064 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19065 (nvptx_goacc_validate_dims): Add used parameter.
19066 * doc/tm.texi: Regenerate.
19067 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19068 argument to call to targetm.goacc.validate_dims.
19069 (default_goacc_validate_dims): Add used
19071 * target.def (validate_dims): Add used parameter in DEFHOOK.
19072 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19074 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19076 PR middle-end/85956
19078 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19080 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19081 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19082 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19083 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19085 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19087 PR rtl-optimization/87305
19089 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19090 for little endian pseudos used as paradoxical subreg.
19092 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19094 PR tree-optimization/88693
19095 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19096 for STRING_CSTs that don't contain any NUL characters in the first
19097 TREE_STRING_LENGTH bytes.
19099 2019-01-11 Alan Modra <amodra@gmail.com>
19103 * genattrtab.c (min_fn): Don't translate values.
19104 (min_attr_value): Return INT_MAX when the value can't be calculated.
19105 Return minimum among any values that can be calculated.
19106 (max_attr_value): Adjust.
19108 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19110 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19112 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19114 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19115 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19116 (aarch64_return_call_with_max_clobbers): New function.
19117 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19118 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19120 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19121 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19122 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19123 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19124 * cselib.c (cselib_process_insn): Add argument to
19125 targetm.hard_regno_call_part_clobbered call.
19126 * ira-conflicts.c (ira_build_conflicts): Ditto.
19127 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19128 * lra-constraints.c (inherit_reload_reg): Ditto.
19129 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19130 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19131 argument. Call targetm.return_call_with_max_clobbers.
19132 Add argument to targetm.hard_regno_call_part_clobbered call.
19133 (calls_have_same_clobbers_p): New function.
19134 (process_bb_lives): Add call_insn and last_call_insn variables.
19135 Pass call_insn to check_pseudos_live_through_calls.
19136 Modify if stmt to check targetm.return_call_with_max_clobbers.
19137 Update setting of flush variable.
19138 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19140 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19141 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19142 targetm.hard_regno_call_part_clobbered call.
19143 * reginfo.c (choose_hard_reg_mode): Ditto.
19144 * regrename.c (check_new_reg_p): Ditto.
19145 * reload.c (find_equiv_reg): Ditto.
19146 * reload1.c (emit_reload_insns): Ditto.
19147 * sched-deps.c (deps_analyze_insn): Ditto.
19148 * sel-sched.c (init_regs_for_mode): Ditto.
19149 (mark_unavailable_hard_regs): Ditto.
19150 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19151 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19152 (return_call_with_max_clobbers): New target function.
19153 * doc/tm.texi: Regenerate.
19154 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19155 * hooks.c (hook_bool_uint_mode_false): Change to
19156 hook_bool_insn_uint_mode_false.
19157 * hooks.h (hook_bool_uint_mode_false): Ditto.
19159 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19161 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19162 (aarch64_remove_extra_call_preserved_regs): New function.
19163 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19164 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19165 * doc/tm.texi: Regenerate.
19166 * final.c (get_call_reg_set_usage): Call new hook.
19167 * target.def (remove_extra_call_preserved_regs): New hook.
19168 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19169 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19171 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19174 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19175 inside of pass_combine_1 dump rather than pass_profile_1.
19177 2019-01-11 Tom de Vries <tdevries@suse.de>
19179 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19180 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19181 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19182 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19185 2019-01-11 Tom de Vries <tdevries@suse.de>
19187 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19189 2019-01-11 Jan Beulich <jbeulich@suse.com>
19191 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19192 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19193 sse2_cvtsi2sd): Add {l}.
19194 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19197 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19200 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19202 (*float<floatunssuffix>v2div2sf2): New define_insn.
19203 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19204 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19205 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19206 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19207 match_operands with "const0_operand" "C".
19209 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19211 * config/aarch64/aarch64-builtins.c
19212 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19213 (aarch64_init_simd_builtins): ...Here
19215 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19217 PR rtl-optimization/87305
19219 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19220 allocation for big endian pseudos used as paradoxical subregs and
19221 spill them if it is wrong.
19222 * lra-constraints.c (lra_constraints): Add a comment.
19224 2019-01-10 Richard Biener <rguenther@suse.de>
19226 PR tree-optimization/88792
19227 * tree-ssa-pre.c (get_representative_for): Do not return a
19230 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19232 PR middle-end/84877
19234 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19235 (assign_parm_setup_block): Do the argument slot realignment here
19238 2019-01-10 Stefan Agner <stefan@agner.ch>
19241 * config/arm/arm.c (arm_option_override_internal): Force
19242 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19244 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19247 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19250 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19252 * config/arm/arm-builtins.c
19253 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19254 (MAC_LANE_PAIR_QUALIFIERS): New.
19255 (arm_expand_builtin_args): Use it.
19256 (arm_expand_builtin_1): Likewise.
19257 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19258 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19259 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19260 * config/arm/arm_neon.h:
19261 (vcadd_rot90_f16): New.
19262 (vcaddq_rot90_f16): New.
19263 (vcadd_rot270_f16): New.
19264 (vcaddq_rot270_f16): New.
19267 (vcmla_lane_f16): New.
19268 (vcmla_laneq_f16): New.
19269 (vcmlaq_lane_f16): New.
19270 (vcmlaq_laneq_f16): New.
19271 (vcmla_rot90_f16): New.
19272 (vcmlaq_rot90_f16): New.
19273 (vcmla_rot90_lane_f16): New.
19274 (vcmla_rot90_laneq_f16): New.
19275 (vcmlaq_rot90_lane_f16): New.
19276 (vcmlaq_rot90_laneq_f16): New.
19277 (vcmla_rot180_f16): New.
19278 (vcmlaq_rot180_f16): New.
19279 (vcmla_rot180_lane_f16): New.
19280 (vcmla_rot180_laneq_f16): New.
19281 (vcmlaq_rot180_lane_f16): New.
19282 (vcmlaq_rot180_laneq_f16): New.
19283 (vcmla_rot270_f16): New.
19284 (vcmlaq_rot270_f16): New.
19285 (vcmla_rot270_lane_f16): New.
19286 (vcmla_rot270_laneq_f16): New.
19287 (vcmlaq_rot270_lane_f16): New.
19288 (vcmlaq_rot270_laneq_f16): New.
19289 (vcadd_rot90_f32): New.
19290 (vcaddq_rot90_f32): New.
19291 (vcadd_rot270_f32): New.
19292 (vcaddq_rot270_f32): New.
19295 (vcmla_lane_f32): New.
19296 (vcmla_laneq_f32): New.
19297 (vcmlaq_lane_f32): New.
19298 (vcmlaq_laneq_f32): New.
19299 (vcmla_rot90_f32): New.
19300 (vcmlaq_rot90_f32): New.
19301 (vcmla_rot90_lane_f32): New.
19302 (vcmla_rot90_laneq_f32): New.
19303 (vcmlaq_rot90_lane_f32): New.
19304 (vcmlaq_rot90_laneq_f32): New.
19305 (vcmla_rot180_f32): New.
19306 (vcmlaq_rot180_f32): New.
19307 (vcmla_rot180_lane_f32): New.
19308 (vcmla_rot180_laneq_f32): New.
19309 (vcmlaq_rot180_lane_f32): New.
19310 (vcmlaq_rot180_laneq_f32): New.
19311 (vcmla_rot270_f32): New.
19312 (vcmlaq_rot270_f32): New.
19313 (vcmla_rot270_lane_f32): New.
19314 (vcmla_rot270_laneq_f32): New.
19315 (vcmlaq_rot270_lane_f32): New.
19316 (vcmlaq_rot270_laneq_f32): New.
19317 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19318 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19319 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19320 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19321 vcmlaq_lane270): New.
19322 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19323 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
19324 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
19325 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
19326 (arm_option_reconfigure_globals): Use them.
19327 * config/arm/iterators.md (VDF, VQ_HSF): New.
19328 (VCADD, VCMLA): New.
19329 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
19330 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
19332 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
19333 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
19335 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19337 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19338 Add qualifier_lane_pair_index.
19339 (emit-rtl.h): Include.
19340 (TYPES_QUADOP_LANE_PAIR): New.
19341 (aarch64_simd_expand_args): Use it.
19342 (aarch64_simd_expand_builtin): Likewise.
19343 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
19345 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
19346 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
19347 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
19348 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
19349 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
19350 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
19351 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
19352 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
19353 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
19354 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
19355 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
19356 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
19357 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
19358 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19359 Add __ARM_FEATURE_COMPLEX.
19360 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
19361 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
19362 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
19363 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19364 fcmlaq_lane270): New.
19365 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19366 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
19367 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
19368 * config/aarch64/arm_neon.h:
19369 (vcadd_rot90_f16): New.
19370 (vcaddq_rot90_f16): New.
19371 (vcadd_rot270_f16): New.
19372 (vcaddq_rot270_f16): New.
19375 (vcmla_lane_f16): New.
19376 (vcmla_laneq_f16): New.
19377 (vcmlaq_lane_f16): New.
19378 (vcmlaq_rot90_lane_f16): New.
19379 (vcmla_rot90_laneq_f16): New.
19380 (vcmla_rot90_lane_f16): New.
19381 (vcmlaq_rot90_f16): New.
19382 (vcmla_rot90_f16): New.
19383 (vcmlaq_laneq_f16): New.
19384 (vcmla_rot180_laneq_f16): New.
19385 (vcmla_rot180_lane_f16): New.
19386 (vcmlaq_rot180_f16): New.
19387 (vcmla_rot180_f16): New.
19388 (vcmlaq_rot90_laneq_f16): New.
19389 (vcmlaq_rot270_laneq_f16): New.
19390 (vcmlaq_rot270_lane_f16): New.
19391 (vcmla_rot270_laneq_f16): New.
19392 (vcmlaq_rot270_f16): New.
19393 (vcmla_rot270_f16): New.
19394 (vcmlaq_rot180_laneq_f16): New.
19395 (vcmlaq_rot180_lane_f16): New.
19396 (vcmla_rot270_lane_f16): New.
19397 (vcadd_rot90_f32): New.
19398 (vcaddq_rot90_f32): New.
19399 (vcaddq_rot90_f64): New.
19400 (vcadd_rot270_f32): New.
19401 (vcaddq_rot270_f32): New.
19402 (vcaddq_rot270_f64): New.
19406 (vcmla_lane_f32): New.
19407 (vcmla_laneq_f32): New.
19408 (vcmlaq_lane_f32): New.
19409 (vcmlaq_laneq_f32): New.
19410 (vcmla_rot90_f32): New.
19411 (vcmlaq_rot90_f32): New.
19412 (vcmlaq_rot90_f64): New.
19413 (vcmla_rot90_lane_f32): New.
19414 (vcmla_rot90_laneq_f32): New.
19415 (vcmlaq_rot90_lane_f32): New.
19416 (vcmlaq_rot90_laneq_f32): New.
19417 (vcmla_rot180_f32): New.
19418 (vcmlaq_rot180_f32): New.
19419 (vcmlaq_rot180_f64): New.
19420 (vcmla_rot180_lane_f32): New.
19421 (vcmla_rot180_laneq_f32): New.
19422 (vcmlaq_rot180_lane_f32): New.
19423 (vcmlaq_rot180_laneq_f32): New.
19424 (vcmla_rot270_f32): New.
19425 (vcmlaq_rot270_f32): New.
19426 (vcmlaq_rot270_f64): New.
19427 (vcmla_rot270_lane_f32): New.
19428 (vcmla_rot270_laneq_f32): New.
19429 (vcmlaq_rot270_lane_f32): New.
19430 (vcmlaq_rot270_laneq_f32): New.
19431 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
19432 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
19433 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
19434 (FCADD, FCMLA): New.
19436 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
19438 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19442 * config/pa/pa.c: Change "can not" to "cannot".
19443 * gimple-ssa-evrp-analyze.c: Likewise.
19444 * ipa-icf.c: Likewise.
19445 * ipa-polymorphic-call.c: Likewise.
19446 * ipa-pure-const.c: Likewise.
19447 * lra-constraints.c: Likewise.
19448 * lra-remat.c: Likewise.
19449 * reload1.c: Likewise.
19450 * reorg.c: Likewise.
19451 * tree-ssa-uninit.c: Likewise.
19453 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19457 * Makefile.in: Mechanically replace "can not" with "cannot".
19458 * alias.c: Likewise.
19459 * builtins.c: Likewise.
19460 * calls.c: Likewise.
19461 * cgraph.c: Likewise.
19462 * cgraph.h: Likewise.
19463 * cgraphclones.c: Likewise.
19464 * cgraphunit.c: Likewise.
19465 * combine-stack-adj.c: Likewise.
19466 * combine.c: Likewise.
19467 * common/config/i386/i386-common.c: Likewise.
19468 * config/aarch64/aarch64.c: Likewise.
19469 * config/alpha/sync.md: Likewise.
19470 * config/arc/arc.c: Likewise.
19471 * config/arc/predicates.md: Likewise.
19472 * config/arm/arm-c.c: Likewise.
19473 * config/arm/arm.c: Likewise.
19474 * config/arm/arm.h: Likewise.
19475 * config/arm/arm.md: Likewise.
19476 * config/arm/cortex-r4f.md: Likewise.
19477 * config/csky/csky.c: Likewise.
19478 * config/csky/csky.h: Likewise.
19479 * config/darwin-f.c: Likewise.
19480 * config/epiphany/epiphany.md: Likewise.
19481 * config/i386/i386.c: Likewise.
19482 * config/i386/sol2.h: Likewise.
19483 * config/m68k/m68k.c: Likewise.
19484 * config/mcore/mcore.h: Likewise.
19485 * config/microblaze/microblaze.md: Likewise.
19486 * config/mips/20kc.md: Likewise.
19487 * config/mips/sb1.md: Likewise.
19488 * config/nds32/nds32.c: Likewise.
19489 * config/nds32/predicates.md: Likewise.
19490 * config/pa/pa.c: Likewise.
19491 * config/rs6000/e300c2c3.md: Likewise.
19492 * config/rs6000/rs6000.c: Likewise.
19493 * config/s390/s390.h: Likewise.
19494 * config/sh/sh.c: Likewise.
19495 * config/sh/sh.md: Likewise.
19496 * config/spu/vmx2spu.h: Likewise.
19497 * cprop.c: Likewise.
19498 * dbxout.c: Likewise.
19499 * df-scan.c: Likewise.
19500 * doc/cfg.texi: Likewise.
19501 * doc/extend.texi: Likewise.
19502 * doc/fragments.texi: Likewise.
19503 * doc/gty.texi: Likewise.
19504 * doc/invoke.texi: Likewise.
19505 * doc/lto.texi: Likewise.
19506 * doc/md.texi: Likewise.
19507 * doc/objc.texi: Likewise.
19508 * doc/rtl.texi: Likewise.
19509 * doc/tm.texi: Likewise.
19511 * emit-rtl.c: Likewise.
19512 * emit-rtl.h: Likewise.
19513 * except.c: Likewise.
19514 * expmed.c: Likewise.
19515 * expr.c: Likewise.
19516 * fold-const.c: Likewise.
19517 * genautomata.c: Likewise.
19518 * gimple-fold.c: Likewise.
19519 * hard-reg-set.h: Likewise.
19520 * ifcvt.c: Likewise.
19521 * ipa-comdats.c: Likewise.
19522 * ipa-cp.c: Likewise.
19523 * ipa-devirt.c: Likewise.
19524 * ipa-fnsummary.c: Likewise.
19525 * ipa-icf.c: Likewise.
19526 * ipa-inline-transform.c: Likewise.
19527 * ipa-inline.c: Likewise.
19528 * ipa-polymorphic-call.c: Likewise.
19529 * ipa-profile.c: Likewise.
19530 * ipa-prop.c: Likewise.
19531 * ipa-pure-const.c: Likewise.
19532 * ipa-reference.c: Likewise.
19533 * ipa-split.c: Likewise.
19534 * ipa-visibility.c: Likewise.
19536 * ira-build.c: Likewise.
19537 * ira-color.c: Likewise.
19538 * ira-conflicts.c: Likewise.
19539 * ira-costs.c: Likewise.
19540 * ira-int.h: Likewise.
19541 * ira-lives.c: Likewise.
19544 * loop-invariant.c: Likewise.
19545 * loop-unroll.c: Likewise.
19546 * lower-subreg.c: Likewise.
19547 * lra-assigns.c: Likewise.
19548 * lra-constraints.c: Likewise.
19549 * lra-eliminations.c: Likewise.
19550 * lra-lives.c: Likewise.
19551 * lra-remat.c: Likewise.
19552 * lra-spills.c: Likewise.
19554 * lto-cgraph.c: Likewise.
19555 * lto-streamer-out.c: Likewise.
19556 * postreload-gcse.c: Likewise.
19557 * predict.c: Likewise.
19558 * profile-count.h: Likewise.
19559 * profile.c: Likewise.
19560 * recog.c: Likewise.
19562 * reload.c: Likewise.
19563 * reload1.c: Likewise.
19564 * reorg.c: Likewise.
19565 * resource.c: Likewise.
19566 * rtl.def: Likewise.
19568 * rtlanal.c: Likewise.
19569 * sched-deps.c: Likewise.
19570 * sched-ebb.c: Likewise.
19571 * sched-rgn.c: Likewise.
19572 * sel-sched-ir.c: Likewise.
19573 * sel-sched.c: Likewise.
19574 * shrink-wrap.c: Likewise.
19575 * simplify-rtx.c: Likewise.
19576 * symtab.c: Likewise.
19577 * target.def: Likewise.
19578 * toplev.c: Likewise.
19579 * tree-call-cdce.c: Likewise.
19580 * tree-cfg.c: Likewise.
19581 * tree-complex.c: Likewise.
19582 * tree-core.h: Likewise.
19583 * tree-eh.c: Likewise.
19584 * tree-inline.c: Likewise.
19585 * tree-loop-distribution.c: Likewise.
19586 * tree-nrv.c: Likewise.
19587 * tree-profile.c: Likewise.
19588 * tree-sra.c: Likewise.
19589 * tree-ssa-alias.c: Likewise.
19590 * tree-ssa-dce.c: Likewise.
19591 * tree-ssa-dom.c: Likewise.
19592 * tree-ssa-forwprop.c: Likewise.
19593 * tree-ssa-loop-im.c: Likewise.
19594 * tree-ssa-loop-ivcanon.c: Likewise.
19595 * tree-ssa-loop-ivopts.c: Likewise.
19596 * tree-ssa-loop-niter.c: Likewise.
19597 * tree-ssa-phionlycprop.c: Likewise.
19598 * tree-ssa-phiopt.c: Likewise.
19599 * tree-ssa-propagate.c: Likewise.
19600 * tree-ssa-threadedge.c: Likewise.
19601 * tree-ssa-threadupdate.c: Likewise.
19602 * tree-ssa-uninit.c: Likewise.
19603 * tree-ssanames.c: Likewise.
19604 * tree-streamer-out.c: Likewise.
19605 * tree.c: Likewise.
19606 * tree.h: Likewise.
19607 * vr-values.c: Likewise.
19609 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
19611 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
19612 (ix86_split_xorsign): Ditto.
19613 * config/i386/i386.c (ix86_expand_xorsign): New function.
19614 (ix86_split_xorsign): Ditto.
19615 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
19616 (xorsign<mode>3): New expander.
19617 (xorsign<mode>3_1): New insn_and_split pattern.
19618 * config/i386/sse.md (xorsign<mode>3): New expander.
19620 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19622 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
19623 (*tablejump_sp64): Likewise.
19624 (*tablejump<P:mode>): ...this.
19625 (*call_address_sp32): Merge into...
19626 (*call_address_sp64): Likewise.
19627 (*call_address<P:mode>): ...this.
19628 (*call_symbolic_sp32): Merge into...
19629 (*call_symbolic_sp64): Likewise.
19630 (*call_symbolic<P:mode>): ...this.
19631 (call_value): Remove constraint and add predicate.
19632 (*call_value_address_sp32): Merge into...
19633 (*call_value_address_sp64): Likewise.
19634 (*call_value_address<P:mode>): ...this.
19635 (*call_value_symbolic_sp32): Merge into...
19636 (*call_value_symbolic_sp64): Likewise.
19637 (*call_value_symbolic<P:mode>): ...this.
19638 (*sibcall_symbolic_sp32): Merge into...
19639 (*sibcall_symbolic_sp64): Likewise.
19640 (*sibcall_symbolic<P:mode>): ...this.
19641 (sibcall_value): Remove constraint and add predicate.
19642 (*sibcall_value_symbolic_sp32): Merge into...
19643 (*sibcall_value_symbolic_sp64): Likewise.
19644 (*sibcall_value_symbolic<P:mode>): ...this.
19645 (window_save): Minor tweak.
19646 (*branch_sp32): Merge into...
19647 (*branch_sp64): Likewise.
19648 (*branch<P:mode>): ...this.
19650 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19651 James Clarke <jrtc27@jrtc27.com>
19654 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
19655 consistently in TLS address generation and adjust code to the renaming
19656 of patterns. Mark calls to __tls_get_addr as const.
19657 * config/sparc/sparc.md (tgd_hi22): Turn into...
19658 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
19659 (tgd_lo10): Turn into...
19660 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
19661 (tgd_add32): Merge into...
19662 (tgd_add64): Likewise.
19663 (tgd_add<P:mode>): ...this and use Pmode throughout.
19664 (tldm_hi22): Turn into...
19665 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
19666 (tldm_lo10): Turn into...
19667 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
19668 (tldm_add32): Merge into...
19669 (tldm_add64): Likewise.
19670 (tldm_add<P:mode>): ...this and use Pmode throughout.
19671 (tldm_call32): Merge into...
19672 (tldm_call64): Likewise.
19673 (tldm_call<P:mode>): ...this and use Pmode throughout.
19674 (tldo_hix22): Turn into...
19675 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
19676 (tldo_lox10): Turn into...
19677 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
19678 (tldo_add32): Merge into...
19679 (tldo_add64): Likewise.
19680 (tldo_add<P:mode>): ...this and use Pmode throughout.
19681 (tie_hi22): Turn into...
19682 (tie_hi22<P:mode>): ...this and use Pmode throughout.
19683 (tie_lo10): Turn into...
19684 (tie_lo10<P:mode>): ...this and use Pmode throughout.
19685 (tie_ld64): Use DImode throughout.
19686 (tie_add32): Merge into...
19687 (tie_add64): Likewise.
19688 (tie_add<P:mode>): ...this and use Pmode throughout.
19689 (tle_hix22_sp32): Merge into...
19690 (tle_hix22_sp64): Likewise.
19691 (tle_hix22<P:mode>): ...this and use Pmode throughout.
19692 (tle_lox22_sp32): Merge into...
19693 (tle_lox22_sp64): Likewise.
19694 (tle_lox22<P:mode>): ...this and use Pmode throughout.
19695 (*tldo_ldub_sp32): Merge into...
19696 (*tldo_ldub_sp64): Likewise.
19697 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
19698 (*tldo_ldub1_sp32): Merge into...
19699 (*tldo_ldub1_sp64): Likewise.
19700 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
19701 (*tldo_ldub2_sp32): Merge into...
19702 (*tldo_ldub2_sp64): Likewise.
19703 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
19704 (*tldo_ldsb1_sp32): Merge into...
19705 (*tldo_ldsb1_sp64): Likewise.
19706 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
19707 (*tldo_ldsb2_sp32): Merge into...
19708 (*tldo_ldsb2_sp64): Likewise.
19709 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
19710 (*tldo_ldub3_sp64): Use DImode throughout.
19711 (*tldo_ldsb3_sp64): Likewise.
19712 (*tldo_lduh_sp32): Merge into...
19713 (*tldo_lduh_sp64): Likewise.
19714 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
19715 (*tldo_lduh1_sp32): Merge into...
19716 (*tldo_lduh1_sp64): Likewise.
19717 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
19718 (*tldo_ldsh1_sp32): Merge into...
19719 (*tldo_ldsh1_sp64): Likewise.
19720 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
19721 (*tldo_lduh2_sp64): Use DImode throughout.
19722 (*tldo_ldsh2_sp64): Likewise.
19723 (*tldo_lduw_sp32): Merge into...
19724 (*tldo_lduw_sp64): Likewise.
19725 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
19726 (*tldo_lduw1_sp64): Use DImode throughout.
19727 (*tldo_ldsw1_sp64): Likewise.
19728 (*tldo_ldx_sp64): Likewise.
19729 (*tldo_stb_sp32): Merge into...
19730 (*tldo_stb_sp64): Likewise.
19731 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
19732 (*tldo_sth_sp32): Merge into...
19733 (*tldo_sth_sp64): Likewise.
19734 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
19735 (*tldo_stw_sp32): Merge into...
19736 (*tldo_stw_sp64): Likewise.
19737 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
19738 (*tldo_stx_sp64): Use DImode throughout.
19740 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19742 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
19743 check configure option to set BTI and Return Address Signing.
19744 * configure.ac: Add --enable-standard-branch-protection and
19745 --disable-standard-branch-protection.
19746 * configure: Regenerated.
19747 * doc/install.texi: Document the same.
19749 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19750 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19752 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
19753 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
19754 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
19756 * config/aarch64/aarch64-bti-insert.c: New file.
19757 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
19759 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
19761 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
19762 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
19763 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
19764 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
19766 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19768 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
19769 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
19770 Disable bti for -mbranch-protection=none.
19771 (aarch64_handle_standard_branch_protection): Enable bti for
19772 -mbranch-protection=standard.
19773 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
19774 -mbranch-protection.
19775 (aarch64_bti_enabled): Check if bti is enabled.
19776 * config/aarch64/aarch64.opt: Declare target variable.
19777 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
19779 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19781 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
19782 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
19783 (aarch64_expand_epilogue): Likewise.
19784 (aarch64_output_mi_thunk): Likewise.
19785 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
19786 TAILCALL_ADDR_REGS to x16 and x17.
19787 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
19789 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19791 * config/aarch64/aarch64-option-extensions.def: Define
19792 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
19793 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
19794 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
19795 (AARCH64_FL_PREDRES): New.
19796 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
19797 AARCH64_FL_PREDRES by default.
19798 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
19800 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19802 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
19804 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
19805 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
19806 * doc/invoke.texi: Document ARMv8.5-A.
19808 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19810 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
19811 (xorsign<mode>3): Likewise.
19813 2019-01-09 Jelinek <jakub@redhat.com>
19815 PR middle-end/88758
19816 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
19817 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
19819 PR rtl-optimization/88331
19820 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
19821 not currently_expanding_to_rtl.
19823 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19825 * doc/invoke.texi (-Os): Remove trailing spaces.
19826 (-finline-functions): Remove reference to -O2.
19828 2019-01-08 Jakub Jelinek <jakub@redhat.com>
19830 PR rtl-optimization/79593
19831 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
19833 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
19834 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
19836 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
19839 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
19843 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
19844 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
19846 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
19849 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
19850 ix86_avx_u128_mode_entry.
19852 2019-01-08 Martin Liska <mliska@suse.cz>
19854 PR tree-optimization/88753
19855 * tree-switch-conversion.c (switch_conversion::build_one_array):
19856 Come up with local variable constructor. Convert first to
19857 type of constructor values.
19859 2019-01-08 Richard Biener <rguenther@suse.de>
19861 PR tree-optimization/86554
19862 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
19863 rpo_avail): Move earlier.
19864 (visit_nary_op): When value-numbering to expressions
19865 with different overflow behavior make sure there's an
19866 available expression on the path.
19868 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
19870 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
19871 aarch64_parse_branch_protection,
19872 struct aarch64_branch_protect_type,
19873 aarch64_handle_no_branch_protection,
19874 aarch64_handle_standard_branch_protection,
19875 aarch64_validate_mbranch_protection,
19876 aarch64_handle_pac_ret_protection,
19877 aarch64_handle_attr_branch_protection,
19878 accepted_branch_protection_string,
19879 aarch64_pac_ret_subtypes,
19880 aarch64_branch_protect_types,
19881 aarch64_handle_pac_ret_leaf): Define.
19882 (aarch64_override_options_after_change_1, aarch64_override_options):
19883 Add check for accepted_branch_protection_string.
19884 (aarch64_option_save): Save accepted_branch_protection_string.
19885 (aarch64_option_restore): Save accepted_branch_protection_string.
19886 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
19887 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
19888 msign-return-address.
19889 * doc/invoke.texi: Add mbranch-protection.
19891 2019-01-08 Alan Modra <amodra@gmail.com>
19894 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
19895 Delete "unknownp" parameter. Adjust callers. Handle
19896 CONST_INT, PLUS, MINUS, and MULT.
19897 (attr_value_aligned): Renamed from or_attr_value.
19898 (min_attr_value): Return INT_MIN for unhandled rtl case..
19899 (min_fn): ..and translate to INT_MAX here.
19900 (write_length_unit_log): Modify to cope without "unknown".
19901 (write_attr_value): Handle IF_THEN_ELSE.
19903 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19905 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
19906 optimization for masked stores.
19908 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19910 PR middle-end/88567
19911 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
19912 output vector directly to duplicate_and_interleave instead of
19913 going through a temporary. Postpone insertion of ctor_seq to
19914 the end of the loop.
19916 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
19919 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
19920 unsigned_p. Handle signed and unsigned overflow correction as
19922 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
19924 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
19926 (add<mode>3_compareV_imm): Make this callable for expanding.
19927 (subv<GPI:mode>4): Use register_operand for operand 1. Use
19928 aarch64_plus_operand for operand 2.
19929 (subv<GPI:mode>_insn): New insn pattern.
19930 (subv<GPI:mode>_imm): Likewise.
19931 (negv<GPI:mode>3): New expand pattern.
19932 (negv<GPI:mode>_insn): New insn pattern.
19933 (negv<GPI:mode>_cmp_only): Likewise.
19934 (cmpv<GPI:mode>_insn): Likewise.
19935 (subvti4): Use register_operand for operand 1. Update call to
19936 aarch64_expand_subvti.
19937 (usubvti4): Likewise.
19938 (negvti3): New expand pattern.
19939 (negdi_carryout): New insn pattern.
19940 (negvdi_carryinV): New insn pattern.
19941 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
19942 version the named version.
19943 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
19945 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
19947 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
19949 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
19950 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
19951 (sub<mode>3_carryinCV): Delete.
19952 (sub<GPI:mode>3_carryinV): New expand pattern.
19953 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
19955 2019-01-07 Richard Biener <rguenther@suse.de>
19957 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
19958 of tree_operand_hash.
19960 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19962 PR tree-optimization/88598
19963 * tree.h (single_nonzero_element): Declare.
19964 * tree.c (single_nonzero_element): New function.
19965 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
19966 if I is the only nonzero element of CST.
19968 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19970 PR tree-optimization/88598
19971 * tree.h (initializer_each_zero_or_onep): Declare.
19972 * tree.c (initializer_each_zero_or_onep): New function.
19973 (signed_or_unsigned_type_for): Handle float types too.
19974 (unsigned_type_for, signed_type_for): Update comments accordingly.
19975 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
19976 x & { 0 or -1, 0 or -1, ... }.
19978 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
19980 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
19981 with x86_64-pc-linux-gnu.
19983 2019-01-07 Tom de Vries <tdevries@suse.de>
19986 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
19988 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
19991 2019-01-07 Jakub Jelinek <jakub@redhat.com>
19993 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
19994 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
19995 TARGET_AVX512F as condition.
19998 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
19999 const_not_ok_for_debug_p target hook.
20000 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20001 on UNSPEC and subexpressions thereof if all subexpressions of the
20002 UNSPEC are CONSTANT_P.
20004 PR tree-optimization/88676
20005 * tree-ssa-phiopt.c (two_value_replacement): New function.
20006 (tree_ssa_phiopt_worker): Call it.
20009 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20010 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20013 * tree-vect-generic.c: Include insn-config.h and recog.h.
20014 (expand_vector_piecewise): Add defaulted ret_type argument,
20015 if non-NULL, use that in preference to type for the result type.
20016 (expand_vector_parallel): Formatting fix.
20017 (do_vec_conversion, do_vec_narrowing_conversion,
20018 expand_vector_conversion): New functions.
20019 (expand_vector_operations_1): Call expand_vector_conversion
20020 for VEC_CONVERT ifn calls.
20021 * internal-fn.def (VEC_CONVERT): New internal function.
20022 * internal-fn.c (expand_VEC_CONVERT): New function.
20023 * fold-const-call.c (fold_const_vec_convert): New function.
20024 (fold_const_call): Use it for CFN_VEC_CONVERT.
20025 * doc/extend.texi (__builtin_convertvector): Document.
20027 2019-01-07 Tom de Vries <tdevries@suse.de>
20029 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20030 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20031 vector_red_partition, vector_red_sym): New global variables.
20032 (nvptx_option_override): Initialize vector_red_sym.
20033 (nvptx_declare_function_name): Restore red_partition register.
20034 (nvptx_file_end): Emit code to declare the vector reduction variables.
20035 (nvptx_output_red_partition): New function.
20036 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20037 large vector reductions.
20038 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20039 (nvptx_init_builtins): Add VECTOR_ADDR.
20040 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20041 Handle nvptx_expand_shared_addr.
20042 (nvptx_get_shared_red_addr): Add vector argument and handle large
20044 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20046 (nvptx_goacc_reduction_init): Likewise.
20047 (nvptx_goacc_reduction_fini): Likewise.
20048 (nvptx_goacc_reduction_teardown): Likewise.
20049 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20050 init,fini,teardown}.
20051 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20052 (nvptx_set_current_function): Init vector_red_partition.
20053 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20054 (nvptx_red_partition): New insn.
20055 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20057 2019-01-07 Tom de Vries <tdevries@suse.de>
20060 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20063 2019-01-07 Tom de Vries <tdevries@suse.de>
20065 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20066 (nvptx_option_override): Init oacc_bcast_partition.
20067 (nvptx_init_oacc_workers): New function.
20068 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20069 (nvptx_needs_shared_bcast): New function.
20070 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20071 to propagate state.
20072 (nvptx_shared_propagate): Initialize vector bcast partition and
20073 synchronization state.
20074 (nvptx_single): Generalize to enable vectors to use shared-memory
20075 to propagate state.
20076 (nvptx_process_pars): Likewise.
20077 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20078 * config/nvptx/nvptx.h (struct machine_function): Add
20079 bcast_partition and sync_bar members.
20081 2019-01-07 Tom de Vries <tdevries@suse.de>
20083 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20084 (nvptx_apply_dim_limits): New function.
20085 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20088 2019-01-07 Tom de Vries <tdevries@suse.de>
20090 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20091 as late as possible.
20093 2019-01-07 Tom de Vries <tdevries@suse.de>
20095 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20096 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20097 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20098 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20099 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20101 2019-01-07 Tom de Vries <tdevries@suse.de>
20103 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20105 2019-01-07 Tom de Vries <tdevries@suse.de>
20107 * omp-offload.c (oacc_get_min_dim): New function.
20108 * omp-offload.h (oacc_get_min_dim): Declare.
20110 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20113 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20114 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20116 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20120 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20122 * ipa-inline.c (edge_badness): Use inlined_time instead of
20123 inline_summaries->get.
20125 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20127 * opts.c (enable_fdo_optimizations): Enable
20128 version-loops-for-strides, loop-interchange, unrol-and-jam
20129 and tree-loop-distribution.
20130 * invoke.texi: Document newly enabled options.
20132 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20134 * doc/invoke.texi (max-inline-insns-small): New parameters.
20135 * ipa-inline.c (want_early_inline_function_p): simplify.
20136 (want_inline_small_function_p): Fix pasto from previous patch;
20137 use max-inline-insns-small bound.
20138 * params.def (max-inline-insns-small): New param.
20139 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20140 variables correctly.
20142 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20144 * doc/invoke.texi: Document max-inline-insns-size,
20145 uninlined-function-insns, uninlined-function-time,
20146 uninlined-thunk-insns and uninlined-thunk-time.
20147 * params.def: Add max-inline-insns-size,
20148 uninlined-function-insns, uninlined-function-time,
20149 uninlined-thunk-insns and uninlined-thunk-time.
20150 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20152 * ipa-inline.c (can_inline_edge_by_limits_p,
20153 want_inline_small_function_p): Use new parameters.
20155 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20157 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20159 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20161 PR middle-end/82564
20163 * expr.c (expand_assignment): For calls returning VLA structures
20164 if to_rtx is not a MEM, force it into a stack temporary.
20167 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20168 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20169 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20170 subexpressions of both operands.
20171 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20172 subrtxes are CONSTANT_P.
20173 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20174 2018-11-09 changes.
20176 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20178 * params.def (hot-bb-count-ws-permille): Set to 990.
20180 2019-01-04 Martin Sebor <msebor@redhat.com>
20183 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20186 2019-01-04 Martin Sebor <msebor@redhat.com>
20189 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20191 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20193 * gdbinit.in: Turn off pagination for the skip commands, restore
20194 it to previous state afterwards.
20196 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20199 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20200 of GET_MODE (opN) as modes of the libcall arguments.
20202 2019-01-04 Jan Beulich <jbeulich@suse.com>
20204 * config/i386/sse.md
20205 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20206 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20207 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20208 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20209 avx512f_vmcmp<mode>3<round_saeonly_name>,
20210 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20211 avx512f_maskcmp<mode>3,
20212 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20213 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20214 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20215 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20216 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20217 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20218 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20219 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20220 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20221 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20222 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20223 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20224 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20225 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20226 avx512cd_maskb_vec_dup<mode>,
20227 avx512cd_maskw_vec_dup<mode>,
20228 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20229 avx512dq_vmfpclass<mode>,
20230 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20233 2019-01-03 Martin Sebor <msebor@redhat.com>
20235 PR tree-optimization/88659
20236 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20238 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20240 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20241 unaligned vsx and avoid lxvd2x/stxvd2x.
20242 (gen_lvx_v4si_move): New function.
20244 2019-01-03 Tom de Vries <tdevries@suse.de>
20246 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20247 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20249 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20251 2019-01-03 Tom de Vries <tdevries@suse.de>
20253 * config/nvptx/nvptx.c (struct offload_attrs): New.
20254 (populate_offload_attrs): New function. Factor mask extraction out of
20255 nvptx_reorg. Add extraction of dimensions.
20256 (nvptx_reorg): Use populate_offload_attrs.
20258 2019-01-03 Tom de Vries <tdevries@suse.de>
20260 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20261 cases for oacc_min_dims_p and routine_p. Add asserts for
20262 oacc_default_dims_p and offload_region_p.
20264 2019-01-03 Tom de Vries <tdevries@suse.de>
20266 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20267 factored out of ...
20268 (nvptx_goacc_validate_dims): ... here.
20270 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20272 PR tree-optimization/85574
20273 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20275 (struct ssa_equip_hash_traits): Declare.
20276 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20278 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20281 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20282 change it to qualified_type.
20284 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20286 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20287 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20289 2019-01-02 Martin Sebor <msebor@redhat.com>
20290 Jeff Law <law@redhat.com>
20292 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20293 (get_range_strlen_tree): Update appropriately.
20295 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20297 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20298 rather than set_range_info.
20299 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20300 maybe_set_strlen_range. Handle potentially boundary crossing
20301 cases more conservatively.
20302 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20303 Call set_strlen_range.
20304 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20306 PR middle-end/88663
20307 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20308 need the flexp argument.
20309 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20310 from calls to get_range_strlen. Update comments. Just update
20311 VAL for an unterminated const char array and let the reset of the
20312 code handle it normally. No longer try to set *flexp. Adjust
20314 (get_range_strlen): Update for the new get_range_strlen API.
20315 (get_maxval_strlen): Similarly.
20316 (gimple_fold_builtin_strlen): Handle update meaning of return value
20317 from get_range_strlen.
20318 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20319 get_range_strlen API.
20321 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20324 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
20325 false at WPA time when body was removed.
20327 2019-01-02 Martin Liska <mliska@suse.cz>
20329 PR tree-optimization/88650
20330 * predict.c (set_even_probabilities): Calculate probability
20331 remainer only when really used.
20333 2019-01-02 Richard Biener <rguenther@suse.de>
20335 PR middle-end/88651
20336 * tree-data-ref.c (analyze_subscript_affine_affine): Use
20337 widest_ints when mangling max_stmt_execution results.
20339 2019-01-02 Richard Biener <rguenther@suse.de>
20341 PR tree-optimization/88621
20342 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
20343 bitfields when canoncalizing.
20345 2019-01-02 Richard Biener <rguenther@suse.de>
20348 * config/i386/x86-tune-costs.h (intel_cost): Adjust
20349 cost of cheap SSE instruction.
20351 2019-01-02 Richard Biener <rguenther@suse.de>
20354 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
20355 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
20357 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
20358 set after UIDs before splitting them.
20360 2019-01-01 Martin Sebor <msebor@redhat.com>
20361 Jeff Law <law@redhat.com>
20363 * gimple-fold.c (get_range_strlen_tree): Record if the computed
20364 length is optimistic. If it is, then arrange to compute the
20365 conservative length as well.
20367 * gimple-fold.h (get_range_strlen): Update prototype.
20368 * builtins.c (check_access): Update call to get_range_strlen to use
20369 c_strlen_data pointer. Change various variable accesses to instead
20370 pull data from the c_strlen_data structure.
20371 (check_strncat_sizes, expand_builtin_strncat): Likewise.
20372 * calls.c (maybe_warn_nonstring_arg): Likewise.
20373 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
20374 minimum length if maximum lengh is unknown.
20375 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
20376 that used c_strlen, it's no longer needed. Restructure slightly.
20377 (format_string): Set unlikely range appropriately.
20378 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
20380 (get_range_strlen): Accept c_strlen_data pointer for external
20381 call sites as well. Pass through to call to internal get_range_strlen.
20382 Adjust minlen, maxlen and maxbound as needed.
20383 (get_maxval_strlen): Update comments.
20384 (gimple_fold_builtin_strlen): Update call to get_range_strlen
20385 to use c_strlen_data pointer. Change variable accesses to instead
20386 use c_strlen_data data members.
20388 * gimple-fold.c (get_range_strlen): Update prototype.
20389 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
20390 local variables. Use pdata to return information to caller.
20391 Update calls to get_range_strlen. Update pdata->maxbound.
20392 (get_range_strlen -- static version): Similarly.
20393 (get_range_strlen -- extern version): Update for internal
20394 get_range_strlen API change. Convert to external data format.
20395 (get_maxval_strlen): Similarly.
20397 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
20399 * coverage.c (get_coverage_counts): Use current_function_decl.
20400 * profile.c (read_thunk_profile): New function.
20401 (branch_prob): Add THUNK parameter.
20402 * tree-profile.c (tree_profiling): Handle thunks.
20403 * value-prof.c (init_node_map): Handle thunks.
20404 * value-prof.h (branch_prob): Upate prototype.
20405 (read_thunk_profile): Declare.
20407 2019-01-01 Jakub Jelinek <jakub@redhat.com>
20409 Update copyright years.
20411 * gcc.c (process_command): Update copyright notice dates.
20412 * gcov-dump.c (print_version): Ditto.
20413 * gcov.c (print_version): Ditto.
20414 * gcov-tool.c (print_version): Ditto.
20415 * gengtype.c (create_file): Ditto.
20416 * doc/cpp.texi: Bump @copying's copyright year.
20417 * doc/cppinternals.texi: Ditto.
20418 * doc/gcc.texi: Ditto.
20419 * doc/gccint.texi: Ditto.
20420 * doc/gcov.texi: Ditto.
20421 * doc/install.texi: Ditto.
20422 * doc/invoke.texi: Ditto.
20424 Copyright (C) 2019 Free Software Foundation, Inc.
20426 Copying and distribution of this file, with or without modification,
20427 are permitted in any medium without royalty provided the copyright
20428 notice and this notice are preserved.