1 2019-08-20 Richard Biener <rguenther@suse.de>
3 PR tree-optimization/37242
4 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
5 to (T)a + (T)b if we know that a + b does not overflow.
7 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
9 PR rtl-optimization/91347
10 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
11 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
13 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15 * calls.h (function_arg_info): Add a pass_by_reference field,
17 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
18 when applying pass-by-reference semantics.
19 (initialize_argument_information): Likewise.
20 (emit_library_call_value_1): Likewise.
21 * function.c (assign_parm_data_one): Remove passed_pointer field.
22 (assign_parm_find_data_types): Don't set it.
23 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
24 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
25 arg.pass_by_reference instead of passed_pointer.
27 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
29 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
30 into a single function_arg_info, updating its fields when we
31 apply pass-by-reference and promotion semantics. Use the
32 function_arg_info to track the mode rather than keeping it in
33 a separate local variable.
34 (initialize_argument_information): Likewise. Base the final
35 arg_to_skip on this new function_arg_info rather than creating
36 a new one from scratch.
38 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
40 * function.c (assign_parm_data_one): Replace passed_type,
41 promoted_mode and named_arg with a function_arg_info field.
42 (assign_parm_find_data_types): Remove local variables and
43 assign directly to "data". Make data->passed_mode shadow
44 data->arg.mode until promotion, then assign the promoted
45 mode to data->arg.mode.
46 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
47 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
48 (assign_parm_remove_parallels, assign_parm_setup_block_p)
49 (assign_parm_setup_block, assign_parm_setup_reg)
50 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
51 arg.mode instead of promoted_mode, arg.type instead of passed_type
52 and arg.named instead of named_arg. Use data->arg for
53 function_arg_info structures that had the field values passed_type,
54 promoted_mode and named_arg. Base other function_arg_infos on
55 data->arg, changing the necessary properties.
57 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
59 * calls.h (apply_pass_by_reference_rules): Declare.
60 * calls.c (apply_pass_by_reference_rules): New function.
61 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
62 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
63 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
64 * function.c (assign_parm_find_data_types): Likewise.
65 * var-tracking.c (prepare_call_arguments): Likewise.
67 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
69 * target.def (must_pass_in_stack): Take a function_arg_info instead
71 * doc/tm.texi: Regenerate.
72 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
73 instead of a mode and a type.
74 (must_pass_in_stack_var_size_or_pad): Likewise.
75 * calls.c (must_pass_in_stack_var_size): Likewise.
76 (must_pass_in_stack_var_size_or_pad): Likewise.
77 (initialize_argument_information): Update call to
78 targetm.calls.must_pass_in_stack.
79 (must_pass_va_arg_on_stack): Likewise.
80 * function.c (assign_parm_find_entry_rtl): Likewise.
81 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
82 * config/alpha/alpha.c (alpha_function_arg): Likewise.
83 (alpha_function_arg_advance): Likewise.
84 * config/cr16/cr16.c (cr16_function_arg): Likewise.
85 (cr16_function_arg_advance): Likewise.
86 * config/cris/cris.c (cris_pass_by_reference): Likewise.
87 (cris_arg_partial_bytes): Likewise.
88 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
89 * config/lm32/lm32.c (lm32_function_arg): Likewise.
90 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
91 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
92 * config/mips/mips.c (mips_pass_by_reference): Likewise.
93 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
94 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
95 * config/sh/sh.c (sh_pass_by_reference): Likewise.
96 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
97 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
98 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
99 instead of a mode and a type.
100 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
101 (fr30_num_arg_regs): Likewise.
102 (fr30_setup_incoming_varargs): Update calls accordingly.
103 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
104 (fr30_function_arg_advance): Likewise.
105 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
106 instead of a mode and a type.
107 * config/gcn/gcn.c (num_arg_regs): Likewise.
108 (gcn_function_arg, gcn_function_arg_advance): Update calls to
109 num_arg_regs and targetm.calls.must_pass_in_stack.
110 (gcn_arg_partial_bytes): Likewise.
111 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
112 function_arg_info instead of a mode and a type.
113 (classify_argument): Update call accordingly.
114 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
115 function_arg_info instead of a mode and a type.
116 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
118 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
119 (rs6000_parm_needs_stack): Update call accordingly.
120 (setup_incoming_varargs): Likewise.
122 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
124 * target.def (callee_copies): Take a function_arg_info instead
125 of a mode, type and named flag.
126 * doc/tm.texi: Regenerate.
127 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
128 instead of a mode, type and named flag.
129 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
130 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
131 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
132 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
133 instead of a mode, type and named flag.
134 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
135 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
136 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
137 * calls.h (reference_callee_copied): Take a function_arg_info
138 instead of a mode, type and named flag.
139 * calls.c (reference_callee_copied): Likewise.
140 (initialize_argument_information): Update call accordingly.
141 (emit_library_call_value_1): Likewise.
142 * function.c (gimplify_parameters): Likewise.
143 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
144 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
145 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
146 * config/c6x/c6x.c (c6x_callee_copies): Delete.
147 (TARGET_CALLEE_COPIES): Define to
148 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
149 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
150 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
151 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
152 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
153 instead of a mode, type and named flag.
154 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
155 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
156 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
157 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
158 * config/msp430/msp430.c (msp430_callee_copies): Delete.
159 (TARGET_CALLEE_COPIES): Define to
160 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
161 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
162 instead of a mode, type and named flag.
163 * config/sh/sh.c (sh_callee_copies): Likewise.
164 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
165 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
166 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
168 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
170 * target.def (function_arg_advance): Take a function_arg_info instead
171 of a mode, type and named flag.
172 * doc/tm.texi: Regenerate.
173 * targhooks.h (default_function_arg_advance): Take a function_arg_info
174 instead of a mode, type and named flag.
175 * targhooks.c (default_function_arg_advance): Likewise.
176 * calls.c (initialize_argument_information): Update call to
177 targetm.calls.function_arg_advance.
178 (emit_library_call_value_1): Likewise.
179 * dse.c (get_call_args): Likewise.
180 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
181 * function.c (assign_parms, gimplify_parameters): Likewise.
182 * var-tracking.c (prepare_call_arguments): Likewise.
183 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
184 function_arg_info instead of a mode, type and named flag.
185 (aarch64_setup_incoming_varargs): Update call accordingly.
186 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
187 function_arg_info instead of a mode, type and named flag.
188 (alpha_setup_incoming_varargs): Update call accordingly.
189 * config/arc/arc.c (arc_function_arg_advance): Take a
190 function_arg_info instead of a mode, type and named flag.
191 (arc_setup_incoming_varargs): Update call accordingly.
192 * config/arm/arm.c (arm_function_arg_advance): Take a
193 function_arg_info instead of a mode, type and named flag.
194 (cmse_func_args_or_return_in_stack): Update call accordingly.
195 (arm_function_ok_for_sibcall): Likewise.
196 (cmse_nonsecure_call_clear_caller_saved): Likewise.
197 * config/avr/avr.c (avr_function_arg_advance): Take a
198 function_arg_info instead of a mode, type and named flag.
199 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
200 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
201 (c6x_call_saved_register_used): Update call accordingly.
202 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
203 function_arg_info instead of a mode, type and named flag.
204 * config/cris/cris.c (cris_function_arg_advance): Likewise.
205 * config/csky/csky.c (csky_function_arg_advance): Likewise.
206 (csky_setup_incoming_varargs): Update call accordingly.
207 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
208 function_arg_info instead of a mode, type and named flag.
209 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
210 * config/frv/frv.c (frv_function_arg_advance): Likewise.
211 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
212 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
213 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
214 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
215 (ix86_setup_incoming_varargs): Update call accordingly.
216 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
217 function_arg_info instead of a mode, type and named flag.
218 (ia64_setup_incoming_varargs): Update call accordingly.
219 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
220 function_arg_info instead of a mode, type and named flag.
221 (iq2000_expand_prologue): Update call accordingly.
222 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
223 function_arg_info instead of a mode, type and named flag.
224 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
225 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
226 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
227 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
228 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
230 (microblaze_expand_prologue): Update call accordingly.
231 * config/mips/mips.c (mips_function_arg_advance): Take a
232 function_arg_info instead of a mode, type and named flag.
233 (mips_setup_incoming_varargs): Update call accordingly.
234 (mips_output_args_xfer): Likewise.
235 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
236 function_arg_info instead of a mode, type and named flag.
237 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
238 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
239 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
240 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
241 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
242 (nios2_setup_incoming_varargs): Update call accordingly.
243 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
244 function_arg_info instead of a mode, type and named flag.
245 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
246 * config/pa/pa.c (pa_function_arg_advance): Likewise.
247 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
248 * config/pru/pru.c (pru_function_arg_advance): Likewise.
249 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
250 (riscv_setup_incoming_varargs): Update call accordingly.
251 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
252 function_arg_info instead of a mode, type and named flag.
253 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
255 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
256 (rs6000_parm_needs_stack): Update call accordingly.
257 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
258 instead of a mode, type and named flag.
259 * config/s390/s390.c (s390_function_arg_advance): Likewise.
260 (s390_call_saved_register_used): Update call accordingly.
261 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
262 instead of a mode, type and named flag.
263 (sh_output_mi_thunk): Update call accordingly.
264 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
265 function_arg_info instead of a mode, type and named flag.
266 * config/spu/spu.c (spu_function_arg_advance): Likewise.
267 (spu_setup_incoming_varargs): Update call accordingly.
268 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
269 function_arg_info instead of a mode, type and named flag.
270 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
271 (tilegx_setup_incoming_varargs): Update call accordingly.
272 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
273 function_arg_info instead of a mode, type and named flag.
274 (tilegx_setup_incoming_varargs): Update call accordingly.
275 * config/v850/v850.c (v850_function_arg_advance): Take a
276 function_arg_info instead of a mode, type and named flag.
277 * config/vax/vax.c (vax_function_arg_advance): Likewise.
278 * config/visium/visium.c (visium_function_arg_advance): Likewise.
279 (visium_setup_incoming_varargs): Update call accordingly.
280 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
281 function_arg_info instead of a mode, type and named flag.
283 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
285 * target.def (function_arg, function_incoming_arg): Take a
286 function_arg_info instead of a mode, tree and named flag.
287 * doc/tm.texi: Regenerate.
288 * targhooks.h (default_function_arg): Take a function_arg_info
289 instead of a mode, tree and named flag.
290 (default_function_incoming_arg): Likewise.
291 * targhooks.c (default_function_arg): Likewise.
292 (default_function_incoming_arg): Likewise.
293 * calls.h (function_arg_info::end_marker_p): New function.
294 (function_arg_info::end_marker): Likewise.
295 * calls.c (prepare_call_address, initialize_argument_information)
296 (expand_call, emit_library_call_value_1): Update calls to
297 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
298 * dse.c: Include calls.h.
299 (get_call_args): Update call to targetm.calls.function_arg.
300 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
301 * var-tracking.c (prepare_call_arguments): Likewise.
302 * function.c (assign_parm_find_entry_rtl): Update call to
303 targetm.calls.function_incoming_arg.
304 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
305 function_arg_info instead of a mode, tree and named flag.
306 * config/alpha/alpha.c (alpha_function_arg): Likewise.
307 * config/arc/arc.c (arc_function_arg): Likewise.
308 * config/arm/arm.c (arm_function_arg): Likewise.
309 (cmse_func_args_or_return_in_stack): Update call accordingly.
310 (arm_function_ok_for_sibcall): Likewise.
311 (cmse_nonsecure_call_clear_caller_saved): Likewise.
312 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
313 instead of a mode, tree and named flag.
314 * config/bfin/bfin.c (bfin_function_arg): Likewise.
315 * config/c6x/c6x.c (c6x_function_arg): Likewise.
316 (c6x_call_saved_register_used): Update call accordingly.
317 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
318 instead of a mode, tree and named flag.
319 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
320 (cris_function_arg_1): Likewise.
321 * config/csky/csky.c (csky_function_arg): Likewise.
322 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
323 * config/fr30/fr30.c (fr30_function_arg): Likewise.
324 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
325 (frv_function_arg_1): Likewise.
326 * config/ft32/ft32.c (ft32_function_arg): Likewise.
327 * config/gcn/gcn.c (gcn_function_arg): Likewise.
328 * config/h8300/h8300.c (h8300_function_arg): Likewise.
329 * config/i386/i386.c (ix86_function_arg): Likewise.
330 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
331 (ia64_function_arg_1): Likewise.
332 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
333 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
335 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
336 instead of a mode, tree and named flag.
337 * config/m32c/m32c.c (m32c_function_arg): Likewise.
338 * config/m32r/m32r.c (m32r_function_arg): Likewise.
339 * config/m68k/m68k.c (m68k_function_arg): Likewise.
340 * config/mcore/mcore.c (mcore_function_arg): Likewise.
341 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
342 (microblaze_expand_prologue): Update call accordingly.
343 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
344 instead of a mode, tree and named flag.
345 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
346 (mmix_function_arg_1): Likewise.
347 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
348 * config/moxie/moxie.c (moxie_function_arg): Likewise.
349 * config/msp430/msp430.c (msp430_function_arg): Likewise.
350 * config/nds32/nds32.c (nds32_function_arg): Likewise.
351 * config/nios2/nios2.c (nios2_function_arg): Likewise.
352 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
353 (nvptx_function_incoming_arg): Likewise.
354 * config/or1k/or1k.c (or1k_function_arg): Likewise.
355 * config/pa/pa.c (pa_function_arg): Likewise.
356 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
357 * config/pru/pru.c (pru_function_arg): Likewise.
358 * config/riscv/riscv.c (riscv_function_arg): Likewise.
359 * config/rl78/rl78.c (rl78_function_arg): Likewise.
360 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
361 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
362 (rs6000_parm_needs_stack): Update call accordingly.
363 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
364 instead of a mode, tree and named flag.
365 * config/s390/s390.c (s390_function_arg): Likewise.
366 (s390_call_saved_register_used): Update call accordingly.
367 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
368 instead of a mode, tree and named flag.
369 (sh_output_mi_thunk): Update call accordingly.
370 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
371 (sparc_function_incoming_arg): Take a function_arg_info instead of
372 a mode, tree and named flag.
373 * config/spu/spu.c (spu_function_arg): Likewise.
374 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
375 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
376 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
377 * config/v850/v850.c (v850_function_arg): Likewise.
378 * config/vax/vax.c (vax_function_arg): Likewise.
379 * config/visium/visium.c (visium_function_arg): Likewise.
380 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
381 (xtensa_function_incoming_arg): Likewise.
383 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
385 * target.def (setup_incoming_varargs): Take a function_arg_info
386 instead of a mode and tree.
387 * doc/tm.texi: Regenerate.
388 * targhooks.h (default_setup_incoming_varargs): Take a
389 function_arg_info instead of a mode and tree.
390 * targhooks.c (default_setup_incoming_varargs): Likewise.
391 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
392 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
393 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
394 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
395 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
396 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
397 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
398 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
400 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
401 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
402 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
403 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
404 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
405 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
406 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
407 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
408 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
409 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
410 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
411 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
412 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
413 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
414 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
415 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
416 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
417 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
418 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
419 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
420 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
421 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
422 * function.c (assign_parms_setup_varargs): Update call to
423 targetm.calls.setup_incoming_varargs.
425 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
427 * target.def (pass_by_reference): Take a function_arg_info instead
428 of a mode, type and named flag.
429 * doc/tm.texi: Regenerate.
430 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
432 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
433 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
434 function_arg_info instead of a mode, type and named flag.
435 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
436 * calls.h (pass_by_reference): Take a function_arg_info instead of a
437 mode, type and named flag.
438 * calls.c (pass_by_reference): Likewise.
439 (pass_va_arg_by_reference): Update call accordingly.
440 (initialize_argument_information): Likewise.
441 (emit_library_call_value_1): Likewise.
442 * function.c (assign_parm_find_data_types): Likewise.
443 * var-tracking.c (prepare_call_arguments): Likewise.
444 * stor-layout.c: Include calls.h.
445 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
446 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
447 function_arg_info instead of a mode, type and named flag.
448 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
449 * config/arc/arc.c (arc_pass_by_reference): Likewise.
450 * config/arm/arm.c (arm_pass_by_reference): Likewise.
451 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
452 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
453 (c6x_call_saved_register_used): Update call to pass_by_reference.
454 * config/cris/cris.c (cris_pass_by_reference): Take a
455 function_arg_info instead of a mode, type and named flag.
456 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
457 function_arg_info instead of a mode, type and named flag.
458 (epiphany_arg_partial_bytes): Update call accordingly.
459 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
460 function_arg_info instead of a mode, type and named flag.
461 (ft32_arg_partial_bytes): Update call accordingly.
462 * config/i386/i386.c (ix86_pass_by_reference): Take a
463 function_arg_info instead of a mode, type and named flag.
464 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
465 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
466 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
467 (m32r_return_in_memory): Update call accordingly.
468 * config/mips/mips.c (mips_pass_by_reference): Take a
469 function_arg_info instead of a mode, type and named flag.
470 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
471 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
472 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
473 (moxie_arg_partial_bytes): Update call accordingly.
474 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
475 function_arg_info instead of a mode, type and named flag.
476 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
477 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
478 * config/pa/pa.c (pa_pass_by_reference): Likewise.
479 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
480 (riscv_return_in_memory): Update call accordingly.
481 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
482 function_arg_info instead of a mode, type and named flag.
483 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
484 (rs6000_parm_needs_stack): Update call to pass_by_reference.
485 * config/s390/s390.c (s390_pass_by_reference): Take a
486 function_arg_info instead of a mode, type and named flag.
487 (s390_call_saved_register_used): Update call accordingly.
488 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
489 instead of a mode, type and named flag.
490 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
491 * config/spu/spu.c (spu_pass_by_reference): Likewise.
492 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
493 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
494 * config/v850/v850.c (v850_pass_by_reference): Likewise.
495 * config/visium/visium.c (visium_pass_by_reference): Likewise.
497 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
499 * target.def (arg_partial_bytes): Take a function_arg_info instead
500 of a mode, type and named flag.
501 * doc/tm.texi: Regenerate.
502 * target.h (function_arg_info): Declare.
503 * calls.h (function_arg_info): New class.
504 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
505 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
506 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
507 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
508 * calls.c (initialize_argument_information): Update call to
509 targetm.calls.partial_bytes.
510 (emit_library_call_value_1): Likewise.
511 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
512 * function.c (assign_parm_find_entry_rtl): Likewise.
513 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
514 function_arg_info instead of a mode, type and named flag.
515 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
516 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
517 (cmse_func_args_or_return_in_stack): Update accordingly.
518 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
519 function_arg_info instead of a mode, type and named flag.
520 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
521 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
522 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
523 * config/fr30/fr30.c: Include calls.h.
524 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
526 * config/frv/frv.c: Include calls.h.
527 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
529 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
530 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
531 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
532 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
533 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
534 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
535 * config/microblaze/microblaze.c (function_arg_partial_bytes):
537 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
538 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
539 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
540 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
541 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
542 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
543 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
544 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
545 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
546 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
547 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
548 (rs6000_parm_needs_stack): Update call accordingly.
549 * config/sh/sh.c (sh_arg_partial_bytes): Take a
550 function_arg_info instead of a mode, type and named flag.
551 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
552 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
554 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
556 * calls.h (must_pass_va_arg_in_stack): Declare.
557 * calls.c (must_pass_va_arg_in_stack): New function.
558 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
559 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
560 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
562 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
564 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
566 * calls.h (pass_va_arg_by_reference): Declare.
567 * calls.c (pass_va_arg_by_reference): New function.
568 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
569 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
570 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
571 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
572 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
573 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
574 (mips_gimplify_va_arg_expr): Likewise.
575 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
576 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
577 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
578 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
579 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
580 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
581 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
582 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
583 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
584 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
585 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
587 2019-08-20 Richard Biener <rguenther@suse.de>
590 * config/i386/i386-features.c (general_scalar_chain::convert_op):
591 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
592 (convert_scalars_to_vector): Add timode_p parameter and use it
593 to guard TImode-only operation.
594 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
595 (pass_stv::execute): Pass down timode_p.
597 2019-08-20 Lili Cui <lili.cui@intel.com>
599 * common/config/i386/i386-common.c
600 (processor_names): Add tigerlake and cooperlake.
601 (processor_alias_table): Add tigerlake and cooperlake.
602 * config.gcc: Add -march=tigerlake and cooperlake.
603 * config/i386/driver-i386.c
604 (host_detect_local_cpu): Detect tigerlake and cooperlake.
605 Add "has_avx" to classify processor.
606 * config/i386/i386-builtins.c (processor_model) :
607 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
608 (arch_names_table): Add tigerlake and cooperlake.
609 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
610 and PROCESSOR_COOPERLAKE.
611 * config/i386/i386-c.c
612 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
613 * config/i386/i386-options.c
614 (m_TIGERLAKE) : Define.
615 (m_COOPERLAKE) : Ditto.
616 (m_CORE_AVX512): Ditto.
617 (processor_cost_table): Add cascadelake.
618 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
620 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
621 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
622 (PTA_MOVDIRI): Ditto.
623 (PTA_MOVDIR64B): Ditto.
624 (PTA_COOPERLAKE) : Ditto.
625 (PTA_TIGERLAKE) : Ditto.
626 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
627 * doc/extend.texi: Add tigerlake and cooperlake.
628 * doc/invoke.texi: Add tigerlake and cooperlake.
630 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
632 * doc/install.texi (Specific, alpha): Remove note to use
633 binutils 2.11.2 or later.
635 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
638 * function.c (assign_parm_find_stack_rtl): Use larger alignment
641 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
643 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
644 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
645 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
646 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
647 * config/aarch64/constraints.md (Dt): New constraint
648 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
650 2019-08-19 Richard Biener <rguenther@suse.de>
652 PR tree-optimization/91403
653 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
654 cases we can handle with tail-recursion...
655 (follow_ssa_edge_expr): ... here. Do so.
657 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
660 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
661 implemented for -fsanitize=kernel-address, and merge check logic
662 with -fsanitize=address.
664 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
666 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
667 for cpu and machine. Factor 64/32b builtins.
669 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
671 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
672 gone, point to sourceforge.net.
674 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
676 * doc/ux.texi (User Experience Guidelines): Update reference.
678 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
680 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
683 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
685 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
686 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
688 2019-08-16 Martin Sebor <msebor@redhat.com>
690 * tree.def (TYPE_SIZE): Clarify.
691 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
693 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
695 PR tree-optimization/91109
696 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
697 * lra.c (lra): Use lra_need_for_scratch_reg_p.
698 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
700 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
702 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
703 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
704 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
705 (uavg<mode>3_ceil): New expander.
706 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
707 mode iterator when creating CONST1_RTX.
708 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
709 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
710 mode iterator for const1_operand predicate.
712 2019-08-16 Richard Biener <rguenther@suse.de>
714 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
715 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
717 (follow_ssa_edge_in_condition_phi_branch): Likewise.
718 (analyze_evolution_in_loop): Likewise.
719 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
720 (follow_ssa_edge_expr): ... here. Refactor code.
722 2019-08-16 Richard Biener <rguenther@suse.de>
725 * config/i386/i386-features.c
726 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
728 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
731 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
732 only if subst_name matches curr_attr string.
734 2019-08-16 Richard Biener <rguenther@suse.de>
736 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
737 stmt at gsi_p, instead replace it with a NOP removed later.
738 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
739 that became dead because of that.
741 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
743 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
744 for which we can't represent a range.
745 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
747 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
748 Set VR_UNDEFINED if type is not supported.
749 * tree-ssanames.c (get_range_info): Pass type to set_varying.
750 * tree-vrp.c (value_range_base::check): Assert that a varying has
752 (value_range_base::equal_p): Early bail for undefines.
753 (value_range_base::set_varying): Accept a type.
754 (value_range::set_varying): Same.
755 (value_range_base::type): VARYING can have a type, while UNDEFINE
757 (value_range_base::dump): Print type for VARYING nodes.
758 (value_range_base::set): Add type to VARYING.
759 (extract_range_from_multiplicative_op): Pass type to set_varying.
760 (extract_range_from_binary_expr): Same.
761 (value_range_base::intersect_helper): Same.
762 (value_range_base::union_helper): Same.
763 (value_range_base::normalize_symbolics): Same.
764 (determine_value_range_1): Same.
765 * tree-vrp.h (class value_range_base): Add type to set_varying.
766 Add prototype for dump(void).
767 Add prototype for supports_type_p.
768 (class value_range): Add type to set_varying.
769 Add prototype for dump(void).
770 * vr-values.c (set_value_range_to_truthvalue): Pass type to
772 (vr_values::get_lattice_entry): Set varying even if propagation
774 Pass type to set_varying.
775 (vr_values::get_value_range): Remove vr_const_varying.
776 Reallocate the lattice if needed.
777 (vr_values::update_value_range): Pass type to set_varying.
778 (vr_values::extract_range_for_var_from_comparison_expr): Same.
779 (vr_values::extract_range_from_binary_expr): Same.
780 (vr_values::extract_range_from_unary_expr): Same.
781 (vr_values::extract_range_from_cond_expr): Same.
782 (vr_values::check_for_binary_op_overflow): Same.
783 (vr_values::extract_range_basic): Same.
784 (vr_values::extract_range_from_assignment): Same.
785 (vr_values::vr_values): Increase size of num_vr_values.
786 (vr_values::extract_range_from_phi_node): Pass type to
789 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
792 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
793 for costs of hard register moves.
794 (ix86_register_move_cost): Likewise.
795 * config/i386/i386.h (processor_costs): Move costs of hard
796 register moves to hard_register. Add int_load, int_store,
797 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
798 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
799 for costs of RTL expressions.
800 * config/i386/x86-tune-costs.h: Move costs of hard register
801 moves to hard_register. Duplicate int_load, int_store,
802 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
803 sse_load, sse_store for costs of RTL expressions.
805 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
807 * target.def (setup_incoming_vararg_bounds): Remove.
808 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
809 * doc/tm.texi: Regenerate.
810 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
811 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
812 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
813 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
815 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
817 MSP430: Fix lines over 80 characters long in
818 config/msp430/*.{c,h} files
820 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
822 (msp430_select_hwmult_lib): Split line more than 80 characters long.
823 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
824 redundant old comment.
825 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
826 Split line more than 80 characters long.
827 * config/msp430/msp430.c (msp430_option_override): Likewise.
828 (msp430_return_in_memory): Likewise.
829 (msp430_gimplify_va_arg_expr): Likewise.
830 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
831 (msp430_legitimate_constant): Likewise.
832 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
833 (msp430_attr): Likewise.
834 (msp430_data_attr): Likewise.
835 (msp430_start_function): Likewise.
836 (gen_prefix): Likewise.
837 (msp430_init_sections): Likewise.
838 (msp430_select_section): Likewise.
839 (msp430_function_section): Likewise.
840 (msp430_unique_section): Likewise.
841 (msp430_output_aligned_decl_common): Likewise.
842 (msp430_do_not_relax_short_jumps): Likewise.
843 (msp430_init_builtins): Likewise.
844 (msp430_expand_delay_cycles): Likewise.
845 (msp430_expand_prologue): Likewise.
846 (msp430_expand_epilogue): Likewise.
847 (msp430_expand_helper): Likewise.
848 (msp430_split_movsi): Likewise.
849 (msp430_print_operand): Likewise.
850 (msp430_return_addr_rtx): Likewise.
851 (msp430x_extendhisi): Likewise.
852 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
853 (ASM_SPEC): Likewise.
854 Remove very obvious comments.
855 (LIB_SPEC): Split line more than 80 characters long.
856 (EH_RETURN_HANDLER_RTX): Likewise.
857 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
859 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
861 MSP430: Fix whitespace errors and incorrect indentation in
862 config/msp430/*.{c,h} files
864 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
865 (msp430_select_hwmult_lib): Likewise.
866 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
867 (msp430_extract_mcu_data): Likewise.
868 (struct t_msp430_mcu_data): Likewise.
869 * config/msp430/msp430.c (struct machine_function): Remove whitespace
870 before left square bracket.
871 (msp430_option_override): Fix indentation.
872 (msp430_hard_regno_nregs_with_padding): Likewise.
873 (msp430_initial_elimination_offset): Likewise.
874 (msp430_special_register_convention_p): Remove whitespace before left
875 square bracket and after exclamation mark.
876 (msp430_evaluate_arg): Likewise.
877 (msp430_callee_copies): Fix indentation.
878 (msp430_gimplify_va_arg_expr): Likewise.
879 (msp430_function_arg_advance): Remove whitespace before left square
881 (reg_ok_for_addr): Likewise.
882 (msp430_preserve_reg_p): Likewise.
883 (msp430_compute_frame_info): Likewise.
884 (msp430_asm_output_addr_const_extra): Add space between function name
885 and open parenthesis.
886 (has_section_name): Fix indentation.
887 (msp430_attr): Remove trailing whitespace.
888 (msp430_section_attr): Likewise.
889 (msp430_data_attr): Likewise.
890 (struct msp430_attribute_table): Fix comment and whitespace.
891 (msp430_start_function): Remove whitespace before left square bracket.
892 Add space between function name and open parenthesis.
893 (msp430_select_section): Remove trailing whitespace.
894 (msp430_section_type_flags): Remove trailing whitespace.
895 (msp430_unique_section): Remove space before closing parenthesis.
896 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
897 (msp430_builtins): Remove whitespace before left square bracket.
898 (msp430_init_builtins): Fix indentation.
899 (msp430_expand_prologue): Remove whitespace before left square bracket.
900 Remove space before closing parenthesis.
901 (msp430_expand_epilogue): Remove whitespace before left square bracket.
902 (msp430_split_movsi): Remove space before closing parenthesis.
903 (helper_function_name_mappings): Fix indentation.
904 (msp430_use_f5_series_hwmult): Fix whitespace.
905 (use_32bit_hwmult): Likewise.
906 (msp430_no_hwmult): Likewise.
907 (msp430_output_labelref): Remove whitespace before left square bracket.
908 (msp430_print_operand_raw): Likewise.
909 (msp430_print_operand_addr): Likewise.
910 (msp430_print_operand): Add two spaces after '.' in comment.
911 Fix trailing whitespace.
912 (msp430x_extendhisi): Fix indentation.
913 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
915 (PC_REGNUM): Likewise.
916 (STACK_POINTER_REGNUM): Likewise.
917 (CC_REGNUM): Likewise.
919 2019-08-15 Richard Biener <rguenther@suse.de>
922 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
924 (general_scalar_chain::make_vector_copies): Use it.
926 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
928 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
930 2019-08-15 Martin Liska <mliska@suse.cz>
932 * tree-ssa-dce.c (propagate_necessity): We can't reach now
933 operators with no arguments.
934 (eliminate_unnecessary_stmts): Likewise here.
936 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
938 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
939 <case COMPARE>: Revert 2019-08-14 change.
940 (convertible_comparison_p): Revert 2019-08-14 change. Return false
941 for (TARGET_64BIT || mode != DImode).
943 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
945 * tree-vrp.c (value_range_base::set): Merge in code from
946 value_range_base::set_and_canonicalize.
947 Enforce canonicalization at set time.
948 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
949 (value_range_base::set_undefined): Inline call to set().
950 (value_range_base::set_varying): Same.
951 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
952 (vrp_val_max): New argument handle_pointers.
954 (ranges_from_anti_range): Same.
955 (extract_range_into_wide_ints): Use tree argument instead of sign
957 (extract_range_from_multiplicative_op): Take in tree type instead
958 of precision and sign. Adapt function for canonicalized ranges.
959 (extract_range_from_binary_expr): Pass type to
960 extract_range_from_multiplicative_op.
961 Adapt for canonicalized ranges.
962 (extract_range_from_unary_expr): Same.
963 (value_range_base::intersect_helper): Adjust for canonicalized
965 (value_range_base::union_helper): Same.
966 (value_range_base::normalize_symbolics): New.
967 * tree-vrp.h (class value_range_base): Remove
968 set_and_canonicalize.
969 New prototype for normalize_symbolics.
970 (class value_range): Remove set_and_canonicalize.
971 (vrp_val_min): Adjust prototype.
974 (vr_values::extract_range_for_var_from_comparison_expr): Call set
975 instead of set_and_canonicalize.
977 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
980 * tree-vect-stmts.c (vectorizable_call): Check that the function
981 is a BUILT_IN_MD function before passing it to
982 targetm.vectorize.builtin_md_vectorized_function.
984 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
986 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
987 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
988 (aarch64_select_early_remat_modes): Use it.
990 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
992 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
993 16 for SVE predicates even if they are fixed-length.
995 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
997 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
998 operand order match the MOV /Z alias.
1000 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1002 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
1003 the vector pattern as an aarch64_svpattern argument. Update the
1004 overloaded caller accordingly.
1005 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1006 (aarch64_output_sve_vector_inc_dec): Likewise.
1008 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1010 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1011 multiplication case, try to compute VG * (lowest set bit) directly
1012 rather than always basing the multiplication on VG. Use
1013 expand_mult for the multiplication if we can.
1015 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1017 * config/aarch64/aarch64-protos.h
1018 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1019 (aarch64_sve_inc_dec_immediate_p): Rename to...
1020 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1021 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1022 (aarch64_output_sve_scalar_inc_dec): Declare.
1023 (aarch64_output_sve_inc_dec_immediate): Rename to...
1024 (aarch64_output_sve_vector_inc_dec): ...this.
1025 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1026 (aarch64_output_sve_scalar_inc_dec): New functions.
1027 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1028 arguments. Only handle true ADDVL and ADDPL instructions;
1029 don't emit an INC or DEC.
1030 (aarch64_sve_inc_dec_immediate_p): Rename to...
1031 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1032 (aarch64_output_sve_inc_dec_immediate): Rename to...
1033 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1034 aarch64_sve_vector_inc_dec_immediate_p.
1035 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1036 (aarch64_sve_plus_immediate): New predicates.
1037 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1038 rather than aarch64_sve_addvl_addpl_immediate.
1039 (aarch64_sve_inc_dec_immediate): Rename to...
1040 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1041 aarch64_sve_vector_inc_dec_immediate_p.
1042 (aarch64_sve_add_operand): Update accordingly.
1043 * config/aarch64/constraints.md (Uai): New constraint.
1044 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1045 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1046 operand into a register if it satisfies aarch64_sve_plus_immediate.
1047 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1048 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1049 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1050 aarch64_output_sve_vector_inc_dec instead of
1051 aarch64_output_sve_inc_dec_immediate.
1053 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1055 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1056 (UNSPEC_REVW): New constants.
1057 (elem_bits): New mode attribute.
1058 (SVE_INT_UNARY): New int iterator.
1059 (optab): Handle UNSPEC_REV[BHW].
1060 (sve_int_op): New int attribute.
1061 (min_elem_bits): Handle VNx16QI and the predicate modes.
1062 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1063 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1064 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1065 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1066 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1067 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1068 unspecs based on the total width of the reversed data.
1069 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1070 reinterpret followed by a subreg on big-endian targets.
1072 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1073 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1075 * config/aarch64/aarch64-sve.md
1076 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1077 alternatives in which one of the inputs is in the same register
1080 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1082 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1083 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1085 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1087 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1088 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1090 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1091 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1093 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1094 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1095 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1097 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1098 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1100 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1101 Add an alternative that uses reversed shifts.
1103 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1105 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1108 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1110 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1111 a commutativity marker.
1113 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1114 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1116 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1117 (aarch64_prepare_sve_cond_int_fma): Declare.
1118 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1119 (aarch64_prepare_sve_int_fma): New functions.
1120 (aarch64_prepare_sve_cond_int_fma): Likewise.
1121 * config/aarch64/aarch64-sve.md
1122 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1123 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1124 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1125 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1126 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1127 (*madd<mode>): Rename to...
1128 (*fma<mode>4): ...this.
1129 (*msub<mode>): Rename to...
1130 (*fnma<mode>4): ...this.
1132 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1133 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1135 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1136 Print 2.0 naturally.
1137 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1138 * config/aarch64/predicates.md
1139 (aarch64_sve_float_negated_arith_immediate): New predicate,
1140 renamed from aarch64_sve_float_arith_with_sub_immediate.
1141 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1142 positive and negative constants.
1143 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1144 or an aarch64_sve_float_arith_with_sub_immediate.
1145 * config/aarch64/constraints.md (vsN): Use
1146 aarch64_sve_float_negated_arith_immediate.
1147 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1149 (sve_pred_fp_rhs2_immediate): New int attribute.
1150 * config/aarch64/aarch64-sve.md
1151 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1152 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1153 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1154 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1155 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1156 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1158 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1159 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1161 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1162 (*aarch64_cond_abd<SVE_F:mode>_3)
1163 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1165 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1166 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1168 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1169 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1171 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1172 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1174 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1175 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1176 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1177 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1179 * optabs.h (create_convert_operand_from): Expand comment.
1180 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1181 when mapping scalar rtxes to vector operands.
1182 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1183 ashiftrt and lshiftrt.
1184 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1185 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1186 (*cond_<optab><mode>_any_const): New patterns.
1188 2019-08-15 Martin Liska <mliska@suse.cz>
1191 * cgraph.c (cgraph_node::remove): When setting
1192 n->origin = NULL for all nested functions, reset
1195 2019-08-15 Martin Liska <mliska@suse.cz>
1197 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1200 2019-08-15 Martin Liska <mliska@suse.cz>
1203 * passes.c (order): Remove.
1204 (uid_hash_t): Likewise).
1205 (remove_cgraph_node_from_order): Remove from set
1206 of pointers (cgraph_node *).
1207 (insert_cgraph_node_to_order): New.
1208 (duplicate_cgraph_node_to_order): New.
1209 (do_per_function_toporder): Register all 3 cgraph hooks.
1210 Skip removed_nodes now as we know about all of them.
1212 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1214 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1215 <case E_V8QImode>: Use vector_set path for
1216 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1217 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1218 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1220 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1222 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1224 2019-08-14 Martin Sebor <msebor@redhat.com>
1226 PR tree-optimization/91294
1227 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1228 source length as exact.
1230 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1232 * doc/extend.texi: Add "noinit" attribute documentation.
1233 * doc/sourcebuild.texi: Add noinit effective target documentation.
1234 * varasm.c (default_section_type_flags): Add support for "noinit"
1236 (default_elf_select_section): Add support for "noinit" attribute.
1237 * config/msp430/msp430.c (msp430_attribute_table): Remove
1240 2019-08-14 Richard Biener <rguenther@suse.de>
1241 Uroš Bizjak <ubizjak@gmail.com>
1244 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1246 (scalar_chain::smode): New member.
1247 (scalar_chain::vmode): Likewise.
1248 (dimode_scalar_chain): Rename to...
1249 (general_scalar_chain): ... this.
1250 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1251 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1252 base with TImode and V1TImode.
1253 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1254 (general_scalar_chain::vector_const_cost): Adjust for SImode
1256 (general_scalar_chain::compute_convert_gain): Likewise. Add
1257 {S,U}{MIN,MAX} support.
1258 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1259 (general_scalar_chain::make_vector_copies): Likewise. Handle
1260 non-DImode chains appropriately.
1261 (general_scalar_chain::convert_reg): Likewise.
1262 (general_scalar_chain::convert_op): Likewise.
1263 (general_scalar_chain::convert_insn): Likewise. Add
1264 fatal_insn_not_found if the result is not recognized.
1265 (convertible_comparison_p): Pass in the scalar mode and use that.
1266 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1267 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1268 (scalar_to_vector_candidate_p): Remove by inlining into single
1270 (general_remove_non_convertible_regs): Rename from
1271 dimode_remove_non_convertible_regs.
1272 (remove_non_convertible_regs): Remove by inlining into single caller.
1273 (convert_scalars_to_vector): Handle SImode and DImode chains
1274 in addition to TImode chains.
1275 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1276 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1277 (*<maxmin>di3_doubleword): Likewise.
1279 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1280 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1282 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1283 (*cond_bic<mode>_any): New patterns.
1285 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1287 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1288 take the equivalent mask, as well as a bit count.
1289 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1290 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1291 (aarch64_sve_pred_and_operand): New predicates.
1292 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1294 * config/aarch64/aarch64-sve.md
1295 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1296 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1298 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1300 * config/aarch64/aarch64-sve.md
1301 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1302 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1305 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1306 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1308 * config/aarch64/aarch64-sve.md
1309 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1310 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1312 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1313 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1315 * config/aarch64/aarch64-sve.md
1316 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1317 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1319 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1321 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1322 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1325 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1326 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1328 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1330 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1331 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1333 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
1334 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
1335 (aarch64_print_operand): Add support for %I.
1336 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
1337 Bitcast floating-point constants to the corresponding integer constant.
1338 (aarch64_float_const_representable_p): Handle vectors as well
1340 (aarch64_expand_sve_vcond): Make sure that the operands are valid
1341 for the new vcond_mask_<mode><vpred> expander.
1342 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
1343 test aarch64_float_const_representable_p.
1344 (aarch64_sve_reg_or_dup_imm): New predicate.
1345 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
1346 gen_vcond_mask_<mode><vpred> instead of
1347 gen_aarch64_sve_dup<mode>_const.
1348 (vcond_mask_<mode><vpred>): Turn into a define_expand that
1349 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
1350 for operands 1 and 2 respectively. Force operand 2 into a
1351 register if operand 1 is a register. Fold old define_insn...
1352 (aarch64_sve_dup<mode>_const): ...and this define_insn...
1353 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
1354 floating-point constants that can be moved as integers. Add
1355 alternatives for MOV /M and FMOV /M.
1356 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
1357 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
1358 1 and 2 respectively.
1359 * config/aarch64/constraints.md (Ufc): Handle vectors as well
1361 (vss): New constraint.
1363 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1365 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
1366 (aarch64_sve_float_maxmin_operand): New predicates.
1367 * config/aarch64/constraints.md (vsB): New constraint.
1369 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
1370 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
1372 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
1373 Use aarch64_sve_float_maxmin_operand for operand 2.
1374 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
1375 Add alternatives for the constant forms.
1377 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1379 * config/aarch64/constraints.md (vsb): New constraint.
1380 (vsm): Generalize description.
1381 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
1383 (sve_imm_con): Handle smax, smin, umax and umin.
1384 (sve_imm_prefix): New code attribute.
1385 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
1386 (aarch64_sve_vsb_operand): New predicates.
1387 (aarch64_sve_mul_immediate): Rename to...
1388 (aarch64_sve_vsm_immediate): ...this.
1389 (aarch64_sve_mul_operand): Rename to...
1390 (aarch64_sve_vsm_operand): ...this.
1391 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
1392 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
1393 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
1394 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
1395 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
1396 add movprfx support for the immediate alternatives.
1397 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
1399 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
1402 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1404 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
1405 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
1406 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
1408 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1410 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
1411 (optab, sve_int_op): Handle them.
1412 * config/aarch64/aarch64-sve.md: Expand comment.
1414 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1416 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
1417 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
1418 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
1420 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1422 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
1423 (aarch64_expand_sve_const_pred_trn): New functions.
1424 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
1425 use the above functions when the parameter is true.
1426 (aarch64_expand_sve_const_pred): Update call accordingly.
1427 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
1429 (@aarch64_sve_<perm_insn><mode>): ...this.
1431 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1433 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
1435 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
1436 (aarch64_sve_emit_int_cmp): New functions.
1437 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
1438 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
1439 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
1440 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
1441 (UNSPEC_PRED_Z): New unspec.
1442 (set_clobber_cc_nzc): Delete.
1443 * config/aarch64/aarch64-sve.md: Add a block comment about
1445 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
1446 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
1447 the old pattern with that name. Use UNSPEC_PRED_Z instead of
1449 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
1450 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
1451 check for compatible predicates.
1452 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
1453 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
1454 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
1457 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1459 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
1460 * config/aarch64/aarch64-sve.md: Add a section describing it.
1461 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
1462 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
1463 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
1464 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
1465 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
1466 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
1467 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
1468 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
1469 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
1470 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
1471 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
1472 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
1473 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
1474 (aarch64_evpc_rev_local): Update accordingly.
1476 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1478 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
1480 (SVE_BHSI, SVE_SDI): Tweak comment.
1481 (SVE_HSDI): Likewise. Fix definition.
1482 (SVE_SDF): New mode iterator.
1483 (elem_bits): New mode attribute.
1484 (SVE_COND_FCVT): New int iterator.
1485 * config/aarch64/aarch64-sve.md
1486 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
1487 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
1488 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
1489 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1490 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
1491 ...these new patterns.
1492 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
1493 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
1494 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
1496 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
1497 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
1498 ...these new patterns.
1499 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
1500 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
1501 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
1502 ...this new pattern.
1503 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
1504 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
1505 ...this new pattern.
1506 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
1508 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1510 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
1511 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
1512 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
1514 (optab, su): Handle them.
1515 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
1516 * config/aarch64/aarch64-sve.md
1517 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
1518 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
1519 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
1520 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
1521 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
1522 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
1523 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
1524 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
1525 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
1527 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
1528 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
1529 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
1530 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
1531 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
1532 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
1533 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
1534 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
1535 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
1536 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
1537 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
1538 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
1539 of UNSPEC_FLOAT_CONVERT.
1540 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
1541 aarch64_sve_extend<mode><Vwide>2.
1543 2019-08-14 Richard Biener <rguenther@suse.de>
1546 * config/i386/i386-features.c
1547 (dimode_scalar_chain::compute_convert_gain): Compute and dump
1548 individual instruction gain. Fix reg-reg copy GRP cost. Use
1549 ix86_cost->sse_op for vector instruction costs.
1551 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1553 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
1554 (cmp_op): Handle it.
1555 (SVE_COND_FP_CMP): Rename to...
1556 (SVE_COND_FP_CMP_I0): ...this.
1557 (SVE_FP_CMP): Remove.
1558 * config/aarch64/aarch64-sve.md
1559 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
1560 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
1561 using unspecs to represent the comparison.
1562 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
1563 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
1565 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
1566 (aarch64_unspec_cond_code): Move after integer code. Handle
1568 (aarch64_emit_sve_predicated_cond): Replace with...
1569 (aarch64_emit_sve_fp_cond): ...this new function.
1570 (aarch64_emit_sve_or_conds): Replace with...
1571 (aarch64_emit_sve_or_fp_conds): ...this new function.
1572 (aarch64_emit_sve_inverted_cond): Replace with...
1573 (aarch64_emit_sve_invert_fp_cond): ...this new function.
1574 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
1576 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1578 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
1579 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
1580 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
1581 SVE_HSD instead of SVE_SD.
1583 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1584 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1586 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
1588 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
1590 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
1591 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
1592 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
1593 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
1594 (*div<SVE_F:mode>3): Generalize to...
1595 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
1597 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1598 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1600 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
1602 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
1604 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
1606 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
1608 * config/aarch64/aarch64-sve.md: Add a block comment about the
1609 handling of predicated FP operations.
1610 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
1611 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
1612 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1613 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
1614 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
1616 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
1617 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
1619 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
1620 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
1621 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
1622 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
1623 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
1624 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
1625 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
1626 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
1627 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
1628 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
1629 strictness operands. Use aarch64_sve_pred_dominates_p to check
1630 whether the predicate on the conditional operation is suitable
1631 for merging. Split patterns into the canonical equal-predicate form.
1632 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
1633 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
1635 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1636 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1638 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
1639 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
1640 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
1642 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
1643 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
1646 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1647 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1649 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
1650 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
1651 actually has, rather than relying on REG_EQUAL notes.
1652 Make the insn operand order match the SVE operand order.
1653 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
1654 the SVE operand order.
1656 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1658 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
1659 (aarch64_emit_set_immediate): Likewise.
1660 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
1661 (aarch64_pfalse_reg): Likewise.
1662 (aarch64_convert_sve_data_to_pred): New function.
1663 (aarch64_sve_move_pred_via_while): Take an optional target register
1664 and the required register mode.
1665 (aarch64_expand_sve_const_pred_1): New function.
1666 (aarch64_expand_sve_const_pred): Likewise.
1667 (aarch64_expand_mov_immediate): Build an all-true predicate
1668 if the significant bits of the immediate are all true. Use
1669 aarch64_expand_sve_const_pred for all compile-time predicate constants.
1670 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
1671 before register allocation.
1672 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
1673 a VNx16BI PTRUE when splitting the memory alternative.
1674 (vec_duplicate<mode>): Update accordingly.
1675 (*pred_cmp<cmp_op><mode>): Rename to...
1676 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
1678 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1680 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
1681 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
1682 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
1683 (UNSPEC_PTEST): New unspec.
1684 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
1685 * config/aarch64/iterators.md (data_bytes): New mode attribute.
1686 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
1687 * config/aarch64/aarch64-sve.md: Add a new section describing the
1688 handling of UNSPEC_PTEST.
1689 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
1690 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
1691 (ptest_ptrue<mode>): Replace with...
1692 (aarch64_ptest<mode>): ...this new pattern.
1693 (cbranch<mode>4): Update after above changes.
1694 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
1696 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
1697 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
1698 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
1700 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
1703 * builtins.c (builtin_with_linkage_p): New function.
1704 * builtins.h (builtin_with_linkage_p): New function.
1705 * symtab.c (write_symbol): Remove redundant assert.
1706 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
1707 Remove FIXME and use builtin_with_linkage_p.
1709 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1712 * tree-core.h (function_decl::function_code): Change type to
1714 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
1715 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
1716 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
1717 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
1719 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
1720 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
1721 (fndecl_built_in_p): Change the type of the "name" argument to
1723 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
1724 after check for DECL_BUILT_IN_CLASS.
1725 * cgraphclones.c (build_function_decl_skip_args): Use
1726 set_decl_built_in_function.
1727 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
1728 * ipa-split.c (split_function): Likewise.
1729 * langhooks.c (add_builtin_function_common): Likewise.
1730 * omp-simd-clone.c (simd_clone_create): Likewise.
1731 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
1732 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
1733 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
1735 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
1736 instead of DECL_FUNCTION_CODE.
1737 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
1738 instead of DECL_FUNCTION_CODE.
1739 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
1740 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
1741 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
1742 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
1743 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
1744 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
1745 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1746 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
1747 (alpha_gimple_fold_builtin): Likewise.
1748 * config/arc/arc.c (arc_expand_builtin): Likewise.
1749 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
1750 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
1751 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
1752 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
1753 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
1754 * config/frv/frv.c (frv_expand_builtin): Likewise.
1755 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
1756 (gcn_expand_builtin): Likewise.
1757 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
1758 (fold_builtin_cpu): Likewise.
1759 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
1760 * config/i386/i386.c (ix86_fold_builtin): Likewise.
1761 (ix86_gimple_fold_builtin): Likewise.
1762 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
1763 (ia64_expand_builtin): Likewise.
1764 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
1765 * config/mips/mips.c (mips_expand_builtin): Likewise.
1766 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
1767 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
1768 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
1769 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
1770 * config/pa/pa.c (pa_expand_builtin): Likewise.
1771 * config/pru/pru.c (pru_expand_builtin): Likewise.
1772 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
1773 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1775 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
1776 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
1777 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
1778 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
1779 (rs6000_builtin_reciprocal): Likewise.
1780 * config/rx/rx.c (rx_expand_builtin): Likewise.
1781 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
1782 * config/s390/s390.c (s390_expand_builtin): Likewise.
1783 * config/sh/sh.c (sh_expand_builtin): Likewise.
1784 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
1785 (sparc_fold_builtin): Likewise.
1786 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
1787 * config/spu/spu.c (spu_expand_builtin): Likewise.
1788 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
1789 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
1790 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
1791 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
1792 (xtensa_expand_builtin): Likewise.
1794 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1797 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
1798 before the DECL_FUNCTION_CODE.
1799 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
1800 to check for a BUILT_IN_ALLOCA call.
1801 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
1802 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
1803 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
1804 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1805 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
1806 for BUILT_IN_NORMAL functions.
1807 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
1808 test for BUILT_IN_TM_ABORT.
1809 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
1810 to check for a BUILT_IN_STACK_RESTORE call.
1811 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
1812 * tree-ssa-threadedge.c
1813 (record_temporary_equivalences_from_stmts_at_dest): Check for a
1814 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
1815 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
1816 test for a BUILT_IN_NORMAL call instead of a negative test for
1817 an internal function call.
1819 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1821 * tree.h (build_vector_a_then_b): Declare.
1822 * tree.c (build_vector_a_then_b): New function.
1823 * fold-const-call.c (fold_while_ult): Likewise.
1824 (fold_const_call): Use it to handle IFN_WHILE_ULT.
1825 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
1826 (aarch64_svpattern): New enum.
1827 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
1828 constants through aarch64_expand_mov_immediate.
1829 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
1830 than general_operand as the predicate for operand 1.
1831 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
1832 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
1834 (simd_immediate_info::simd_immediate_info): New overload that
1835 takes a scalar_int_mode and an svpattern.
1836 (simd_immediate_info::u): Add a "pattern" field.
1837 (svpattern_token): New function.
1838 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
1839 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
1840 (aarch64_sve_move_pred_via_while): New functions.
1841 (aarch64_expand_mov_immediate): Try using
1842 aarch64_sve_move_pred_via_while for predicates that contain N ones
1843 followed by M zeros but that do not correspond to a VLnnn pattern.
1844 (aarch64_sve_pred_valid_immediate): New function.
1845 (aarch64_simd_valid_immediate): Use it instead of dealing directly
1846 with PTRUE and PFALSE.
1847 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
1850 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
1852 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
1854 (darwin_override_options): Likewise.
1855 * config/darwin.h: Likewise.
1856 * config/darwin.opt: Likewise.
1857 * config/i386/i386.c (output_pic_addr_const): Likewise.
1858 * config/rs6000/darwin.h: Likewise.
1859 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
1860 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
1861 ... this TARGET_MACHO_SYMBOL_STUBS.
1862 (FUNCTION_PROFILER):Likewise.
1863 * config/i386/i386.h: Likewise.
1865 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
1867 * config/i386/i386-expand.c (ix86_expand_vector_extract)
1868 <case E_V2SImode>: Use vec_extr path for
1869 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1870 <case E_V8QImode>: Ditto.
1871 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
1872 Use SWI48 mode iterator. Use %k to output operand 0.
1873 (*mmx_pextrw): New insn pattern.
1874 (*mmx_pextrb): Ditto.
1875 (*mmx_pextrb_zext): Ditto.
1877 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
1879 * target.def (libc_has_function, libc_has_fast_function): Improve
1880 documentation strings.
1881 * doc/tm.texi: Regenerate.
1883 2019-08-13 Caroline Tice <cmtice@google.com>
1886 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
1887 vtv_end.o or vtv_end_preinit.o files if !static.
1889 2019-08-13 Olivier Hainque <hainque@adacore.com>
1891 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
1893 2019-08-13 Olivier Hainque <hainque@adacore.com>
1895 * rtlanal.c (tablejump_casesi_pattern): New function, to
1896 determine if a tablejump insn is a casesi dispatcher. Extracted
1897 from patch_jump_insn.
1898 * rtl.h (tablejump_casesi_pattern): Declare.
1899 * cfgrtl.c (patch_jump_insn): Use it.
1900 * dwarf2cfi.c (create_trace_edges): Use it.
1902 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1905 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
1906 operand is larger than a long int.
1908 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1910 * machmode.h (opt_mode::else_mode): New function.
1911 (opt_mode::else_blk): Use it.
1912 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
1913 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
1914 (aarch64_gen_stepped_int_parallel): Likewise.
1915 (aarch64_stepped_int_parallel_p): Likewise.
1916 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1918 * config/aarch64/aarch64.c
1919 (aarch64_expand_sve_widened_duplicate): Delete.
1920 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
1921 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
1922 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
1923 argument. Use early returns in the !CONST_INT_P handling.
1924 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
1925 than handling some inline.
1926 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
1928 (aarch64_simd_container_mode): ...here.
1929 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
1930 (aarch64_sve_ld1rq_operand_p): New functions.
1931 * config/aarch64/predicates.md (descending_int_parallel)
1932 (aarch64_sve_ld1rq_operand): New predicates.
1933 * config/aarch64/constraints.md (UtQ): New constraint.
1934 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
1935 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
1936 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
1937 (@aarch64_sve_reinterpret<mode>): New expander.
1938 (*aarch64_sve_reinterpret<mode>): New pattern.
1939 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
1940 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
1941 (*sve_ld1rq<Vesize>): Replace with...
1942 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
1944 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
1946 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
1949 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1951 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
1952 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
1953 (msp430_check_path_for_devices): New.
1954 (parse_devices_csv_1): New.
1955 (parse_devices_csv): New.
1956 (msp430_extract_mcu_data): Try to find devices.csv and search for the
1957 MCU data in devices.csv before using the hard-coded data.
1958 Warn if devices.csv isn't found and the MCU wasn't found in the
1959 hard-coded data either.
1960 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
1961 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
1962 Search for devices.csv on -I and -L paths.
1963 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
1964 msp430_set_driver_var.
1965 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
1967 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
1968 searched for devices.csv.
1969 (mwarn-devices-csv): Document option.
1971 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1973 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
1974 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
1975 Use a single Dn alternative instead of separate Dz and Dm
1976 alternatives. Use aarch64_output_sve_move_immediate.
1977 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
1979 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
1981 (aarch64_output_sve_mov_immediate): Handle predicate modes.
1982 (aarch64_output_ptrue): Delete.
1984 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
1986 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
1988 (simd_immediate_info::value, simd_immediate_info::step)
1989 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
1991 (simd_immediate_info::u): ...this new union.
1992 (simd_immediate_info::simd_immediate_info): Update accordingly.
1993 (aarch64_output_simd_mov_immediate): Likewise.
1994 (aarch64_output_sve_mov_immediate): Likewise.
1996 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1998 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
2000 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
2001 (msp430_select_cpu): New spec function.
2002 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
2004 * config/msp430/msp430-devices.c: New file.
2005 * config/msp430/msp430-devices.h: New file.
2006 * config/msp430/msp430.c: Remove msp430_mcu_data.
2007 (msp430_option_override): Use msp430_extract_mcu_data to extract
2009 (msp430_use_f5_series_hwmult): Likewise.
2010 (use_32bit_hwmult): Likewise.
2011 (msp430_no_hwmult): Likewise.
2012 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2014 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2016 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2017 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2018 Remove hard-coded MCU multilib data.
2020 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2022 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2023 based on the mode instead of testing properties of it.
2025 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2027 * doc/md.texi: Document the x and y constraints for AArch64.
2028 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2029 (FP_LO8_REGS): New reg_class.
2030 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2031 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2032 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2033 * config/aarch64/predicates.md (aarch64_simd_register): Use
2034 FP_REGNUM_P instead of checking the classes manually.
2035 * config/aarch64/constraints.md (y): New constraint.
2037 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2039 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2040 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2041 * config/aarch64/aarch64-simd.md
2042 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2043 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2044 from the asm template.
2045 * config/aarch64/aarch64-sve.md
2046 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2047 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2048 from the asm template.
2049 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2050 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2051 from the asm template.
2052 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2054 2019-08-13 Martin Liska <mliska@suse.cz>
2056 * value-prof.c (gimple_ic_transform): Add new line.
2057 Print details with MSG_NOTE.
2059 2019-08-13 Martin Liska <mliska@suse.cz>
2061 * doc/invoke.texi: Document automatic detection of jobserver.
2062 * lto-wrapper.c (run_gcc): Detect jobserver always.
2064 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2066 * config/i386/i386-expand.c (ix86_expand_vector_set)
2067 <case E_V2SImode>: Use vec_merge path for
2068 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2069 <case E_V8QImode>: Ditto.
2070 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2071 (*mmx_pinsrb): Ditto.
2073 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2077 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2078 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2079 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2080 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2081 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2083 2019-08-12 Richard Biener <rguenther@suse.de>
2086 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2089 2019-08-12 Richard Biener <rguenther@suse.de>
2092 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2093 lang_mask option, always use CL_DRIVER.
2094 (get_options_from_collect_gcc_options): Adjust.
2095 (find_and_merge_options): Likewise.
2096 (run_gcc): Likewise.
2098 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2100 * ipa-predicate.c (add_condition): Restore inverted test.
2102 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2104 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2105 (enum omp_clause_device_type_kind): New enum.
2106 (struct tree_omp_clause): Add subcode.device_type_kind.
2107 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2108 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2109 for device_type clause.
2110 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2111 * tree-pretty-print.c (dump_omp_clause): Likewise.
2114 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2117 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2119 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2120 handling spilled pseudos.
2122 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2125 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2126 to preserve the contents of the original insns.
2128 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2130 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2131 (addsi3_compare_op2): Likewise.
2133 2019-08-09 Martin Liska <mliska@suse.cz>
2135 * alias.c (alias_ptr_types_compatible_p): Strengten
2136 type comparison in LTO mode.
2138 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2141 * tree-tailcall.c (find_tail_calls): Reject calls that might
2142 read from an escaped RESULT_DECL.
2144 2019-08-09 Martin Liska <mliska@suse.cz>
2146 * doc/invoke.texi: Document the option value.
2147 * lto-wrapper.c (run_gcc): Set auto_parallel
2148 only with -flto=auto.
2150 2019-08-09 Martin Liska <mliska@suse.cz>
2152 * opts.c (common_handle_option): Error for an invalid argument
2155 2019-08-09 Martin Liska <mliska@suse.cz>
2157 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2158 use dump_printf to report optimization.
2159 (sem_variable::merge): Likwise.
2160 (sem_item_optimizer::merge_classes): Use dump_printf to report
2163 2019-08-09 Martin Liska <mliska@suse.cz>
2165 * value-prof.c (gimple_divmod_fixed_value_transform):
2166 Use dump_printf_loc.
2167 (gimple_mod_pow2_value_transform): Likewise.
2168 (gimple_mod_subtract_transform): Likewise.
2169 (init_node_map): Likewise.
2170 (gimple_ic_transform): Likewise.
2171 (gimple_stringops_transform): Likewise.
2173 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2175 * doc/extend.texi: Add const qualifier to ld intrinsics.
2177 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2179 * config/rs6000/dfp.md (D64_D128): Rename to ...
2180 (DDTD): ... this, throughout.
2181 (dfp_suffix): Rename to ...
2182 (q): ... this, throughout.
2184 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2186 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2187 (dfp_suffix): Ditto.
2188 (adddd3, addtd3): Merge to ...
2189 (add<mode>3 for D64_D128): ... this.
2190 (subdd3, subtd3): Merge to ...
2191 (sub<mode>3 for D64_D128): ... this.
2192 (muldd3, multd3): Merge to ...
2193 (mul<mode>3 for D64_D128): ... this.
2194 (divdd3, divtd3): Merge to ...
2195 (div<mode>3 for D64_D128): ... this.
2196 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2197 (*cmp<mode>_internal1 for D64_D128): ... this.
2198 (ftruncdd2, ftrunctd2): Merge to ...
2199 (ftrunc<mode>2 for D64_D128): ... this.
2200 (fixdddi2, fixtddi2): Merge to ...
2201 (fix<mode>di2 for D64_D128): ... this.
2203 2019-08-08 Jim Wilson <jimw@sifive.com>
2206 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2207 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2208 Pass into recursive call.
2209 (riscv_flatten_aggregate_argument): New arg. Pass to
2210 riscv_flatten_aggregate_field.
2211 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2212 riscv_flatten_aggregate_argument twice, with false and true as last
2213 arg. Process result twice. Compare results and warn if different.
2214 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2216 2019-08-08 Martin Liska <mliska@suse.cz>
2219 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2220 * lto-wrapper.c (jobserver_active_p): Likewise.
2222 2019-08-08 Martin Liska <mliska@suse.cz>
2224 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2225 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2226 (create_version_clone_with_body): Likewise.
2228 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2230 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2231 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2232 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2233 GOVD_EXPLICIT flags.
2234 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2235 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2236 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2237 call install_var_field with mask 11 instead of 3.
2238 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2239 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2241 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2243 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2244 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2246 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2248 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2249 MOVPRFX alternatives. Make the GPR alternatives more expensive
2252 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2254 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2255 Disparage the GPR alternative relative to the FPR one.
2256 Fix handling of 8-bit and 16-bit FPR values.
2258 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2260 * config/aarch64/iterators.md (BITWISEV): Delete.
2261 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2262 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2263 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2264 UNSPEC_FMINNMV, UNSPEC_FMINV.
2265 (bit_reduc_op): Delete.
2266 (sve_int_op): New int attribute.
2267 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2268 UNSPEC_FMINNMV, UNSPEC_FMINV.
2269 * config/aarch64/aarch64-sve.md
2270 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2271 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2272 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2273 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2274 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2275 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2277 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2278 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2279 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2280 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2281 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2284 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2286 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2287 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2288 (fms<mode>4, *fms<mode>4): Replace with...
2289 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2290 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2291 Use unspecs instead of rtx codes.
2292 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2293 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2295 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2297 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2299 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2300 * config/aarch64/aarch64-sve.md
2301 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2302 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2303 use a single unspec for the rhs.
2304 (*<su><maxmin><mode>3): Delete.
2305 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2307 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2309 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2310 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2311 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2312 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2313 (optab, sve_fp_op): Handle them.
2314 (SVE_FP_UNARY): Delete.
2315 (optab): Remove sqrt entry.
2316 (sve_fp_op): Remove neg, abs and sqrt entries.
2317 (SVE_COND_FP_UNARY): New int iterator.
2318 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2319 (*<frint_pattern><mode>2): Delete.
2320 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2321 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2322 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2323 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2325 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2327 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2329 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2331 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
2332 (UNSPEC_COND_FADD): ...this.
2333 (UNSPEC_COND_SUB): Rename to...
2334 (UNSPEC_COND_FSUB): ...this.
2335 (UNSPEC_COND_MUL): Rename to...
2336 (UNSPEC_COND_FMUL): ...this.
2337 (UNSPEC_COND_DIV): Rename to...
2338 (UNSPEC_COND_FDIV): ...this.
2339 (UNSPEC_COND_MAX): Rename to...
2340 (UNSPEC_COND_FMAXNM): ...this.
2341 (UNSPEC_COND_MIN): Rename to...
2342 (UNSPEC_COND_FMINNM): ...this.
2343 (UNSPEC_COND_LT): Rename to...
2344 (UNSPEC_COND_FCMLT): ...this.
2345 (UNSPEC_COND_LE): Rename to...
2346 (UNSPEC_COND_FCMLE): ...this.
2347 (UNSPEC_COND_EQ): Rename to...
2348 (UNSPEC_COND_FCMEQ): ...this.
2349 (UNSPEC_COND_NE): Rename to...
2350 (UNSPEC_COND_FCMNE): ...this.
2351 (UNSPEC_COND_GE): Rename to...
2352 (UNSPEC_COND_FCMGE): ...this.
2353 (UNSPEC_COND_GT): Rename to...
2354 (UNSPEC_COND_FCMGT): ...this.
2355 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
2356 (sve_fp_op_rev): Update accordingly.
2357 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
2359 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2361 * config/aarch64/aarch64-sve.md: Reorganize contents and add
2363 * config/aarch64/check-sve-md.awk: New file.
2364 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
2365 (insn-conditions.md): Depend on it.
2367 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
2370 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
2371 (*negsi2_cmpz_zext): Ditto.
2373 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2375 * config/aarch64/iterators.md (commutative): Remove.
2377 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
2380 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
2381 processing COLLECT_GCC_OPTIONS.
2382 (run_gcc): Likewise.
2384 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2386 PR tree-optimization/91109
2387 * lra-remat.c (update_scratch_ops): Remove assignment of the
2390 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2392 * data-streamer.h (streamer_write_poly_uint64): Declare.
2393 (streamer_read_poly_uint64): Likewise.
2394 * data-streamer-in.c (streamer_read_poly_uint64): New function.
2395 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
2396 * ipa-predicate.h (condition::size): Turn into a poly_int64.
2397 (add_condition): Take a poly_int64 size.
2398 * ipa-predicate.c (add_condition): Likewise.
2399 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
2400 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
2401 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
2402 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
2403 condition::size as a poly_int64.
2404 (unmodified_parm_1): Take a poly_int64 size pointer.
2405 (unmodified_parm): Likewise.
2406 (unmodified_parm_or_parm_agg_item): Likewise.
2407 (set_cond_stmt_execution_predicate): Update accordingly.
2408 (set_switch_stmt_execution_predicate): Likewise.
2409 (will_be_nonconstant_expr_predicate): Likewise.
2410 (will_be_nonconstant_predicate): Likewise.
2411 (inline_read_section): Stream condition::size as a poly_int.
2412 (ipa_fn_summary_write): Likewise.
2414 2019-08-07 Martin Liska <mliska@suse.cz>
2416 * fold-const.c (twoval_comparison_p): Replace int
2417 with bool as a return type.
2418 (simple_operand_p): Likewise.
2419 (operand_equal_p): Replace int with bool as a return type.
2420 * fold-const.h (operand_equal_p): Likewise.
2422 2019-08-07 Jakub Jelinek <jakub@redhat.com>
2424 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
2425 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
2426 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2427 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
2428 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
2429 * tree-pretty-print.c (dump_omp_clause): Likewise.
2430 * tree-nested.c (convert_nonlocal_omp_clauses,
2431 convert_local_omp_clauses): Likewise.
2432 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
2434 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
2435 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
2436 clause with array or reference to array types, no matter what type
2437 except for reference it has.
2439 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
2441 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
2443 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
2445 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
2446 (arch_canonicalize): Support rv32g and rv64g and fix error
2449 2019-08-06 Martin Liska <mliska@suse.cz>
2451 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
2452 and DECL_IS_OPERATOR_DELETE_P.
2454 2019-08-06 Jakub Jelinek <jakub@redhat.com>
2456 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
2457 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
2458 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
2459 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
2460 (gimplify_omp_for): Don't do C++ random access iterator clause
2461 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
2462 don't predetermine the artificial iterator in case of C++ random
2463 access iterators as lastprivate, but private. For OMP_LOOP, force
2464 bind expr around simd body and force for_pre_body before the
2465 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
2466 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
2467 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
2468 diff var of C++ random access iterators. Handle
2469 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
2470 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
2471 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
2472 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
2473 * omp-low.c (lower_rec_input_clauses): For
2474 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
2475 variables instead of default constructing them.
2476 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
2477 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
2478 is_taskloop_ctx check from the assert to the guarding condition.
2480 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
2482 * config/riscv/multilib-generator: (canonical_order): New.
2483 (arch_canonicalize): Dito.
2484 Apply arch_canonicalize for alts.
2486 2019-08-05 Martin Sebor <msebor@redhat.com>
2488 * doc/extend.texi (Common Variable Attributes): Document alias
2491 2019-08-05 Marek Polacek <polacek@redhat.com>
2493 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
2494 * doc/invoke.texi: Document -Wcomma-subscript.
2496 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2498 * tree-core.h (tree_function_decl): Make function_code an
2499 independent field. Group the remaining bitfields into bytes
2500 and move decl_type so that it contines to be at a byte boundary.
2501 Leave 12 bits for future expansion.
2503 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2505 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
2506 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
2507 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
2510 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
2512 * gimple.h (gimple_move_vops): Declare.
2513 * gimple.c (gimple_move_vops): New function
2514 * gimple-fold.c (replace_call_with_call_and_fold)
2515 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
2516 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
2517 (gimple_fold_call): Use it.
2518 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
2519 * tree-call-cdce.c (use_internal_fn): Likewise.
2520 * tree-if-conv.c (predicate_load_or_store): Likewise.
2521 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
2522 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
2523 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
2524 (update_call_from_tree): Likewise.
2525 * tree-vect-stmts.c (vectorizable_load): Likewise.
2526 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
2528 2019-08-05 Martin Liska <mliska@suse.cz>
2531 * tree-ssa-dce.c (propagate_necessity): Handle new operators
2533 (eliminate_unnecessary_stmts): Likewise.
2535 2019-08-05 Richard Biener <rguenther@suse.de>
2538 * fold-const.c (get_array_ctor_element_at_index): Create
2539 offset_ints according to the sign of the index type and treat
2540 that as signed if it is obviously so.
2542 2019-08-05 Jakub Jelinek <jakub@redhat.com>
2545 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
2546 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
2547 _mm256_storeu2_m128i): New function.
2549 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
2551 * config/riscv/riscv.c (riscv_promote_function_mode): New.
2552 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
2554 2019-08-05 Alan Modra <amodra@gmail.com>
2557 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
2558 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
2560 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
2562 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
2563 bug that was fixed in Tcl 8.6.1.
2565 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
2567 * config/rs6000/future.md: New file.
2568 * config/rs6000/rs6000.md: Include future.md.
2569 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
2571 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2573 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
2574 check to use targetm.slow_unaligned_access instead.
2576 * function.c (assign_param_data_one): Remove unused data members.
2578 2019-08-02 Steve Ellcey <sellcey@marvell.com>
2580 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
2581 build_distinct_type_copy.
2582 (simd_clone_adjust_argument_types): Ditto.
2583 (simd_clone_adjust): Call build_distinct_type_copy here.
2584 (expand_simd_clones): Ditto.
2586 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2589 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
2591 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
2593 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
2594 from 'const void *'.
2595 (sort_locs_in_loop_postorder_cmp): Likewise.
2597 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
2599 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
2600 (hot-bb-count-ws-permille): Likewise.
2601 (hot-bb-frequency-fraction): Likewise.
2602 (unlikely-bb-count-fraction): Likewise.
2603 * params.def (hot-bb-count-fraction): Rework description.
2604 (hot-bb-count-ws-permille): Likewise.
2605 (hot-bb-frequency-fraction): Likewise.
2606 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
2607 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
2609 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
2612 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
2615 2019-08-02 Richard Biener <rguenther@suse.de>
2617 * vec.h (vec::sort): Add gcc_qsort_r support.
2618 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
2619 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
2620 to gcc_qsort_r style callback.
2621 (sort_locs_in_loop_postorder_cmp): Likewise.
2622 (analyze_memory_references): Use gcc_sort_r interfaces.
2623 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
2625 2019-08-02 Martin Liska <mliska@suse.cz>
2628 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
2629 to detect working job server.
2630 (driver::detect_jobserver): Test whether jobserver
2631 is active from GCC driver. That will prevent situation where
2632 GCC is invoked from a LD plugin and the linker already uses
2633 file descriptors suggested by make. That leads to a wrong
2635 * gcc.h (driver): Add detect_jobserver.
2636 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
2637 not scanning for --jobserver-auth prefix.
2639 2019-08-02 Jakub Jelinek <jakub@redhat.com>
2641 PR tree-optimization/91201
2642 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
2643 V16QImode extraction without sse4.1 try to use V4SImode lowpart
2646 2019-08-01 Martin Sebor <msebor@redhat.com>
2649 * tree.c (type_initializer_zero_p): Define.
2650 * tree.h (type_initializer_zero_p): New function.
2652 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2654 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
2656 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
2658 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
2659 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
2660 * predict.c (maybe_hot_count_p): Likewise.
2661 (maybe_hot_bb_p): Tweak comment.
2662 (maybe_hot_edge_p): Likewise.
2663 (probably_never_executed): Likewise. Minor tweak.
2664 (probably_never_executed_bb_p): Likewise.
2665 (unlikely_executed_edge_p): Likewise.
2666 (probably_never_executed_edge_p): Likewise.
2667 (optimize_function_for_size_p): Likewise.
2668 (optimize_function_for_speed_p): Likewise.
2669 (function_optimization_type): Likewise.
2670 (optimize_bb_for_size_p): Likewise.
2671 (optimize_bb_for_speed_p): Likewise.
2672 (bb_optimization_type): Likewise.
2673 (optimize_edge_for_size_p): Likewise.
2674 (optimize_edge_for_speed_p): Likewise.
2675 (optimize_insn_for_size_p): Likewise.
2676 (optimize_insn_for_speed_p): Likewise.
2677 (optimize_loop_for_size_p): Likewise.
2678 (optimize_loop_for_speed_p): Likewise.
2679 (optimize_loop_nest_for_speed_p): Likewise.
2680 (optimize_loop_nest_for_size_p): Likewise.
2681 (predictable_edge_p): Likewise.
2682 (handle_missing_profiles): Minor tweak.
2684 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
2686 * config/rs6000/predicates.md (pcrel_external_address): Update
2689 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2692 * config/i386/mmx.md (usadv8qi): New expander.
2694 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
2697 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
2698 with reserved names that are in a system header.
2700 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
2702 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
2703 (*vec_extractv2si_0_zext_sse4): New insn pattern.
2704 (*vec_extractv2si_0_zext): Ditto.
2705 (*vec_extractv2si_1): Add (rm,x) alternative.
2706 (*vec_extractv2si_1_zext): New insn pattern.
2707 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
2710 2019-08-01 Richard Biener <rguenther@suse.de>
2712 * domwalk.c (bb_postorder): Remove static variable.
2713 (cmp_bb_postorder): Adjust.
2714 (sort_bbs_postorder): Adjust and use gcc_sort_r.
2715 (dom_walker::walk): Adjust.
2717 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
2719 * sort.cc (sort_r_ctx): New struct.
2720 (reorder23): Make templated on context type.
2722 (cmp1): Ditto. Adjust signature.
2725 [CHECKING_P] (cmp2to3): New static function. Use it...
2726 (gcc_qsort) [CHECKING_P]: ...here.
2727 (gcc_sort_r): New function.
2728 * system.h (sort_r_cmp_fn): New function typedef.
2729 (qsort_chk): Adjust signature.
2730 (gcc_sort_r): Declare.
2731 * vec.c (qsort_chk_error): Adjust.
2732 (qsort_chk): Adjust.
2734 2019-08-01 Richard Biener <rguenther@suse.de>
2736 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
2737 (compute_antic): Localize it here.
2739 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
2741 * common/config/riscv/riscv-common.c: Check -march string ends
2744 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
2746 * ipa-devirt.c (type_warning_cmp): Make static.
2747 (decl_warning_cmp): Ditto.
2749 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
2752 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
2753 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
2754 use of deleted rs6000_dejagnu_cpu_index variable.
2755 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
2756 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2757 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
2758 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
2759 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
2760 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
2762 2019-07-31 Richard Biener <rguenther@suse.de>
2764 PR tree-optimization/91280
2765 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2766 Decompose MEM_REF manually for offset handling.
2768 2019-07-31 Richard Biener <rguenther@suse.de>
2770 PR tree-optimization/91293
2771 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
2774 2019-07-31 Matt Thomas <matt@3am-software.com>
2775 Nick Hudson <nick@nthcliff.demon.co.uk>
2776 Matthew Green <mrg@eterna.com.au>
2777 Maya Rashish <coypu@sdf.org>
2779 * config.gcc (hppa*-*-netbsd*): New target.
2780 * config/pa/pa-netbsd.h: New file.
2781 * config/pa/pa32-netbsd.h: New file.
2783 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2785 PR tree-optimization/91201
2786 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
2788 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
2790 * config/gcn/gcn-valu.md
2791 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
2792 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
2793 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
2794 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
2795 struct ilist. Add nops for delayeduse insns.
2796 * config/gcn/gcn.md (delayeduse): New attribute.
2797 (*movbi): Remove s_waitcnt from stores.
2798 (*mov<mode>_insn): Likewise.
2799 (*movti_insn): Likewise. Add delayeduse attribute.
2800 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
2801 (atomic_store<mode>): Remove or adjust s_waitcnt.
2803 2019-07-31 Richard Biener <rguenther@suse.de>
2805 * vr-values.h (vr_values::swap_vr_value): New.
2806 (vr_values::free_value_range): likewise.
2807 * vr-values.c (vr_values::swap_vr_value): Implement.
2808 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
2809 Do not return a range or take a var.
2810 (evrp_range_analyzer::stack): Change back to recording a non-const
2812 * gimple-ssa-evrp-analyze.c
2813 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
2815 (evrp_range_analyzer::pop_to_marker): Adjust.
2816 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
2817 (evrp_range_analyzer::pop_value_range): Likewise. Free the
2818 no longer needed value-range.
2820 2019-07-31 Martin Liska <mliska@suse.cz>
2822 * tree-ssa-dce.c (propagate_necessity): Delete operator can
2823 have size and (or) alignment as 2nd and later arguments.
2824 Mark all of them as necessary.
2826 2019-07-31 Richard Biener <rguenther@suse.de>
2828 PR tree-optimization/91178
2829 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
2832 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2834 PR tree-optimization/91201
2835 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
2836 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
2838 (reduc_plus_scal_<mode>): Improve formatting by introducing
2841 2019-07-31 Sudakshina Das <sudi.das@arm.com>
2843 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
2844 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
2845 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
2846 (aarch64_init_tme_builtins): New.
2847 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
2848 (aarch64_expand_builtin_tme): New.
2849 (aarch64_expand_builtin): Handle TME builtins.
2850 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
2851 __ARM_FEATURE_TME when enabled.
2852 * config/aarch64/aarch64-option-extensions.def: Add "tme".
2853 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
2855 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
2856 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
2858 (tstart, ttest, tcommit, tcancel): New instructions.
2859 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
2860 (__tcancel, __ttest): New.
2861 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
2862 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
2863 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
2864 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
2865 * config/arm/types.md: Add new tme type attr.
2866 * doc/invoke.texi: Document "tme".
2868 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
2870 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
2871 warn_unused_result attribute.
2872 (cmse_check_address_range): Add warn_unused_result attribute.
2874 2019-07-31 Richard Biener <rguenther@suse.de>
2876 PR tree-optimization/91257
2877 * tree-vrp.c (union_ranges): Unify equality and less tests
2878 by using compare_values. Re-order cheap tests first.
2880 2019-07-31 Jakub Jelinek <jakub@redhat.com>
2883 * gimplify.c (gimplify_omp_for): If for class iterator on
2884 distribute parallel for there is no data sharing clause
2885 on inner_for_stmt, look for private clause on combined
2886 parallel too and if found, move it to inner_for_stmt.
2888 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
2890 * lra-int.h (lra_operand_data): Remove early_clobber field.
2891 (lra_insn_reg): Likewise.
2892 * lra.c (debug_operand_data): Update accordingly.
2893 (setup_operand_alternative): Likewise.
2894 (new_insn_reg): Likewise. Remove early_clobber parameter.
2895 (collect_non_operand_hard_regs): Update call accordingly.
2896 Don't assign to lra_insn_reg::early_clobber.
2897 (add_regs_to_insn_regno_info): Remove early_clobber parameter
2898 and update calls to new_insn_reg.
2899 (lra_update_insn_regno_info): Update calls accordingly.
2900 * lra-constraints.c (update_and_check_small_class_inputs): Take the
2901 alternative number as a parameter and test whether the operand
2902 is earlyclobbered in that particular alternative.
2903 (process_alt_operands): Update call accordingly. Use per-alternative
2904 checks for earyclobber here too.
2905 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
2906 against zero for IRA_UNKNOWN_ALT.
2908 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
2910 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
2912 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
2914 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
2915 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
2917 2019-07-30 Martin Liska <mliska@suse.cz>
2920 * cgraph.c (cgraph_edge::make_direct): Use
2921 edge->indirect_unknown_callee as edge->resolve_speculation can
2922 deallocate edge which is this pointer.
2924 2019-07-30 Richard Biener <rguenther@suse.de>
2926 PR tree-optimization/91257
2927 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
2929 2019-07-30 Martin Liska <mliska@suse.cz>
2931 * doc/invoke.texi: Document new behavior.
2932 * lto-wrapper.c (cpuset_popcount): New function
2933 is a copy of libgomp/config/linux/proc.c.
2934 (init_num_threads): Likewise.
2935 (run_gcc): Automatically detect core count for -flto.
2936 (jobserver_active_p): New function.
2938 2019-07-30 Richard Biener <rguenther@suse.de>
2940 PR tree-optimization/91257
2941 * bitmap.h (bitmap_ior_into_and_free): Declare.
2942 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
2943 whether to add the unliked element to the freelist.
2944 (bitmap_list_insert_element_after): Add defaulted param for
2945 an already allocated element.
2946 (bitmap_ior_into_and_free): New function.
2947 * tree-ssa-structalias.c (condense_visit): Reduce the
2948 ponts-to and edge bitmaps of the SCC members in a
2949 logarithmic fashion rather than all to one.
2951 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
2953 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
2954 parameter. When nonnull, make sure that the addition or subtraction
2955 has the same condition.
2956 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
2957 for CFN_COND_MUL too.
2959 2019-07-30 Richard Biener <rguenther@suse.de>
2961 PR tree-optimization/91291
2962 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
2965 2019-07-30 Jakub Jelinek <jakub@redhat.com>
2968 * omp-low.c (global_nonaddressable_vars): New variable.
2969 (use_pointer_for_field): For global decls, if they are non-addressable,
2970 remember it in the global_nonaddressable_vars bitmap, if they are
2971 addressable and in the global_nonaddressable_vars bitmap, ignore their
2972 TREE_ADDRESSABLE bit.
2973 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
2974 vars in global_nonaddressable_vars bitmap.
2975 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
2978 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
2979 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
2980 comparison to unsigned HOST_WIDE_INT before shifting it left.
2982 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
2984 * config/i386/i386.md (movstrict<mode>): Use register_operand
2985 predicate for operand 0. Add expander condition. Assert that
2986 operand 0 is a SUBREG RTX.
2987 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
2988 Update operand constraints and insn condition.
2989 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
2990 (zero_extendqihi2_and): Do not call gen_movstrictqi.
2991 (*setcc_qi_slp): Use register_operand predicate for operand 0.
2992 Update operand 0 constraints.
2993 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
2995 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2997 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
2998 when -m{code,data}-region are used without -mlarge.
2999 * config/msp430/msp430.c (msp430_option_override): Error when a
3000 non-default code or data region is used without -mlarge.
3001 (msp430_section_attr): Emit a warning and do not add upper/lower/either
3002 attributes when they are used without -mlarge.
3004 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3007 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3009 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3012 * wide-int.h (generic_wide_int::sext_elt): New function.
3013 * inchash.h (hash::add_wide_int): Use it instead of elt.
3015 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3017 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3019 * config/arm/arm.md (<crc_variant>): Rename to...
3020 (arm_<crc_variant>): ... This.
3021 (<cdp>): Rename to...
3022 (arm_<cdp>): ... This.
3023 (<ldc>): Rename to...
3024 (arm_<ldc>): ... This.
3025 (<stc>): Rename to...
3026 (arm_<stc>): ... This.
3027 (<mcr>): Rename to...
3028 (arm_<mcr>): ... This.
3029 (<mrc>): Rename to...
3030 (arm_<mrc>): ... This.
3031 (<mcrr>): Rename to...
3032 (arm_<mcrr>): ... This.
3033 (<mrrc>): Rename to...
3034 (arm_<mrrc>): ... This.
3036 2019-07-29 Richard Biener <rguenther@suse.de>
3038 PR tree-optimization/91257
3039 * tree-ssa-sccvn.h (struct vn_avail): New.
3040 (struct vn_ssa_aux): Add avail member.
3041 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3042 member, add m_avail_freelist one.
3043 (rpo_elim::~rpo_elim): Remove.
3044 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3046 (rpo_elim::eliminate_push_avail): Likewise.
3047 (do_unwind): Likewise.
3048 (do_rpo_vn): Likewise.
3050 2019-07-29 Richard Biener <rguenther@suse.de>
3052 PR tree-optimization/91257
3053 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3054 most cases, instead call compare_values which handles the
3055 symbolic ranges we handle specially.
3056 (compare_values_warnv): Do not call operand_less_p but open-code
3057 the effective fold calls. Avoid converting so much.
3059 2019-07-29 Martin Liska <mliska@suse.cz>
3061 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3062 remove LHS of operator new call. It's handled latter.
3064 2019-07-29 Richard Biener <rguenther@suse.de>
3066 PR tree-optimization/91267
3067 * vr-values.c (vr_values::update_value_range): Add early return
3068 for effectively VARYING lattice entry.
3070 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3073 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3074 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3075 necessary if keep_all_vdefs_p is true.
3076 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3077 that keep_all_vdefs_p is false.
3078 (mark_all_reaching_defs_necessary): Likewise.
3079 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3081 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3083 * common.opt (Og): Change the initial value of flag_dse to 0.
3084 * opts.c (default_options_table): Move OPT_ftree_dse from
3085 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3086 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3087 entry before the OPT_ftree_sra entry.
3088 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3089 of flags disabled by Og.
3091 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3093 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3096 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3098 * doc/sourcebuild.texi (check-function-bodies): Document.
3100 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3102 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3103 VEC_DUPLICATE of a fixed-length vector even if the result
3104 is variable-length. Likewise fold a duplicate of a
3105 variable-length vector if the variable-length vector is
3106 itself a duplicate of a fixed-length sequence.
3107 (test_vector_ops_duplicate): Test more cases.
3109 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3111 * vector-builder.h (vector_builder): Add a shape template parameter.
3112 (vector_builder::new_unary_operation): New function, generalizing
3113 the old tree_vector_builder function.
3114 (vector_builder::new_binary_operation): Likewise.
3115 (vector_builder::binary_encoded_nelts): Likewise.
3116 * int-vector-builder.h (int_vector_builder): Update template
3117 parameters to vector_builder.
3118 (int_vector_builder::shape_nelts): New function.
3119 * rtx-vector-builder.h (rtx_vector_builder): Update template
3120 parameters to vector_builder.
3121 (rtx_vector_builder::shape_nelts): New function.
3122 (rtx_vector_builder::nelts_of): Likewise.
3123 (rtx_vector_builder::npatterns_of): Likewise.
3124 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3125 * tree-vector-builder.h (tree_vector_builder): Update template
3126 parameters to vector_builder.
3127 (tree_vector_builder::shape_nelts): New function.
3128 (tree_vector_builder::nelts_of): Likewise.
3129 (tree_vector_builder::npatterns_of): Likewise.
3130 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3131 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3132 (tree_vector_builder::new_binary_operation): Delete.
3133 (tree_vector_builder::binary_encoded_nelts): Likewise.
3134 * simplify-rtx.c: Include rtx-vector-builder.h.
3135 (distributes_over_addition_p): New function.
3136 (simplify_const_unary_operation)
3137 (simplify_const_binary_operation): Generalize handling of vector
3138 constants to include variable-length vectors.
3139 (test_vector_ops_series): Add more tests.
3141 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3144 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3145 than INDENTIFIER_POINTER.
3147 2019-07-28 Martin Liska <mliska@suse.cz>
3150 * cgraph.c (symbol_table::create_edge): Always allocate
3152 (symbol_table::free_edge): Store summary_id to
3153 edge_released_summary_ids if != -1;
3154 * cgraph.h (NEXT_FREE_NODE): Remove.
3155 (SET_NEXT_FREE_NODE): Likewise.
3156 (NEXT_FREE_EDGE): Likewise.
3157 (symbol_table::release_symbol): Store summary_id to
3158 cgraph_released_summary_ids if != -1;
3159 (symbol_table::allocate_cgraph_symbol): Always allocate
3162 2019-07-28 Alan Modra <amodra@gmail.com>
3164 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3167 2019-07-28 Alan Modra <amodra@gmail.com>
3170 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3172 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3173 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3174 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3176 2019-07-28 Alan Modra <amodra@gmail.com>
3179 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3180 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3181 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3182 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3183 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3184 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3185 in asm_default spec.
3186 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3187 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3189 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3191 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3193 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3196 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3197 * config/aarch64/aarch64-option-extensions.def: Add new comments
3198 and restore easier to read options.
3200 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3202 * convert.c (convert_to_real_1): Move part of conversion code...
3203 * match.pd: ...To here.
3205 2019-07-26 Martin Jambor <mjambor@suse.cz>
3208 * ipa-inline-transform.c (check_speculations_1): New function.
3209 (push_all_edges_in_set_to_vec): Likewise.
3210 (check_speculations): Use check_speculations_1, new parameter
3212 (inline_call): Pass new_edges to check_speculations.
3213 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3215 (speculation_useful_p): Early return true if edge is inlined, remove
3216 later checks for inline_failed.
3218 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3220 PR rtl-optimization/91223
3221 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3222 matching with INOUT operand.
3224 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3226 * stmt.c (expand_case): Try to narrow the index type if it's larger
3227 than a word. Tidy up.
3229 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3231 * cif-code.def (NEVER_CALL): New code.
3232 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3233 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3235 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3237 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3238 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3240 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3242 * ipa-devirt.c (add_type_duplicate): Fix return value.
3244 2019-07-25 Richard Biener <rguenther@suse.de>
3246 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3247 type parameter and use it instead of guessing expression
3248 type from the first operand.
3249 (extract_range_from_binary_expr): Pass expr_type down.
3251 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3253 * config/arm/arm.md (SATrev): Change to code attribute.
3254 (*satsi_<SAT:code>): Adjust for the above.
3255 (*satsi_<SAT:code>_shift): Likewise.
3257 2019-07-25 Richard Biener <rguenther@suse.de>
3259 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3260 Make value_range * temporary const.
3261 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3263 (evrp_range_analyzer::record_ranges_from_): Likewise.
3264 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3265 deal with having recorded a const one.
3266 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3267 Return a const value_range *.
3268 (evrp_range_analyzer::pop_value_range): Likewise.
3269 (evrp_range_analyzer::stack): Record const value_range *s.
3270 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3272 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3273 (format_integer): Likewise.
3274 (sprintf_dom_walker::handle_gimple_call): Likewise.
3275 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3276 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3277 (vrp_prop::get_value_range): Adjust.
3278 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3279 modifying the lattice in-place.
3280 (vrp_prop::visit_stmt): Likewise.
3281 * vr-values.c (vr_values::get_lattice_entry): New private method.
3282 (vr_values::get_value_range): Wrap it and return a const
3284 (vr_values::set_def_to_varying): New.
3285 (vr_values::set_defs_to_varying): Use it.
3286 (vr_values::update_value_range): Likewise.
3287 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3288 (values::op_with_constant_singleton_va): Likewise.
3289 (vr_values::extract_range_for_var_from_co): Likewise.
3290 (vr_values::extract_range_from_ssa_name): Likewise.
3291 (vr_values::extract_range_from_cond_expr): Likewise.
3292 (vr_values::extract_range_basic): Likewise.
3293 (compare_ranges): Take const value_range *, adjust.
3294 (compare_range_with_value): Likewise.
3295 (vrp_valueize): Adjust.
3296 (vrp_valueize_1): Likewise.
3297 (vr_values::get_vr_for_comparison): Return a const value_range *.
3298 (vr_values::compare_name_with_value): Adjust.
3299 (vr_values::compare_names): Likewise.
3300 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3302 (vr_values::vrp_evaluate_conditional): Likewise.
3303 (find_case_label_ranges): Take a const value_range *.
3304 (vr_values::vrp_visit_switch_stmt): Adjust.
3305 (vr_values::extract_range_from_phi_node): Likewise.
3306 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3307 (vr_values::simplify_abs_using_ranges): Likewise.
3308 (test_for_singularity): Take a const value_range *.
3309 (range_fits_type_p): Likewise.
3310 (vr_values::simplify_cond_using_ranges_1): Adjust.
3311 (vr_values::simplify_cond_using_ranges_2): Likewise.
3312 (vr_values::simplify_switch_using_ranges): Likewise.
3313 (vr_values::simplify_float_conversion_usi): Likewise.
3314 (vr_values::two_valued_val_range_p): Likewise.
3315 * vr-values.h (vr_values::get_value_range): Return a const
3317 (vr_values::set_def_to_varying): New.
3318 (vr_values::get_lattice_entry): New private method.
3319 (vr_values::get_vr_for_comparison): Return a const value_range *.
3321 2019-07-25 Martin Liska <mliska@suse.cz>
3322 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3325 * common.opt: Add -fallocation-dce
3326 * gimple.c (gimple_call_operator_delete_p): New.
3327 * gimple.h (gimple_call_operator_delete_p): Likewise.
3328 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3329 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
3330 DECL_IS_OPERATOR_DELETE_P.
3331 (mark_all_reaching_defs_necessary_1): Likewise.
3332 (propagate_necessity): Likewise.
3333 (eliminate_unnecessary_stmts): Handle
3334 gimple_call_operator_delete_p.
3335 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
3336 Add packing of OPERATOR_DELETE.
3337 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
3339 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
3340 (DECL_SET_IS_OPERATOR_DELETE): New.
3341 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
3343 2019-07-25 Martin Liska <mliska@suse.cz>
3345 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
3346 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
3347 * coverage.c (coverage_begin_function): Likewise.
3348 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
3349 * gimple.c (gimple_call_nonnull_result_p): Likewise.
3350 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
3351 (sem_item::hash_referenced_symbol_properties): Likewise.
3352 * lto-streamer-out.c (hash_tree): Likewise.
3353 * predict.c (expr_expected_value_1): Likewise.
3354 * tree-inline.c (expand_call_inline): Likewise.
3355 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
3356 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
3357 * tree-core.h (enum function_decl_type): New enum.
3358 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
3359 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
3360 (set_function_decl_type): Likewise.
3361 (DECL_IS_OPERATOR_NEW_P): New.
3362 (DECL_SET_IS_OPERATOR_NEW): Likewise.
3363 (DECL_LAMBDA_FUNCTION): Likewise.
3364 (DECL_LAMBDA_FUNCTION_P): Likewise.
3365 (DECL_IS_OPERATOR_NEW): Remove.
3366 (DECL_SET_LAMBDA_FUNCTION): Likewise.
3368 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
3370 * ipa-profile.c (get_most_common_single_value): Use
3371 get_nth_most_common_value.
3372 * profile.c (sort_hist_value): New function.
3373 (compute_value_histograms): Call sort_hist_value to sort the
3374 values after loading from disk.
3375 * value-prof.c (get_most_common_single_value): Rename to ...
3376 get_nth_most_common_value. Add input params n, return
3377 the n_th value and count.
3378 (gimple_divmod_fixed_value_transform): Use
3379 get_nth_most_common_value.
3380 (gimple_ic_transform): Likewise.
3381 (gimple_stringops_transform): Likewise.
3382 * value-prof.h (get_most_common_single_value): Add input params
3385 2019-07-25 Richard Biener <rguenther@suse.de>
3387 PR tree-optimization/91236
3388 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
3389 size of CONSTRUCTOR write. Fix buffer size we pass to
3392 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3394 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
3395 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
3398 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3400 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
3401 explicitly disabled with --disable-initfini-array.
3403 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3405 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
3408 2019-07-24 Martin Sebor <msebor@redhat.com>
3410 PR tree-optimization/91183
3411 PR tree-optimization/86688
3412 * builtins.c (compute_objsize): Handle MEM_REF.
3413 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
3414 (get_min_string_length): Remove.
3415 (count_nonzero_bytes): New function.
3416 (handle_char_store): Rename...
3417 (handle_store): to this. Handle multibyte stores via integer types.
3418 (strlen_check_and_optimize_stmt): Adjust conditional and the called
3421 2019-07-24 Martin Sebor <msebor@redhat.com>
3424 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
3425 (diagnostic_report_diagnostic): Same.
3426 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
3427 (diagnostic_context::lang_mask): New data member.
3428 * ipa-pure-const.c (suggest_attribute): Use
3429 lang_hooks.option_lang_mask ().
3430 * opts-common.c (option_enabled): Handle new argument.
3431 (get_option_state): Pass an additional argument.
3432 * opts.c (print_filtered_help): Print supported languages for
3433 unsupported options. Adjust printing of current state.
3434 * opts.h (option_enabled): Add argument.
3435 * toplev.c (print_switch_values): Use lang_mask.
3436 (general_init): Set global_dc->lang_mask.
3438 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3441 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
3443 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
3445 * cgraphunit.c (symbol_table::compile): Start and stop
3446 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
3447 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
3449 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
3451 * gimplify.c (flag_instrument_functions_exclude_p): Include
3452 namespace/class information in the printable name.
3453 * opts.c (add_comma_separated_to_vector): Add NUL terminator
3454 to tokens entered into the vector.
3456 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
3458 * tree-nested.c (build_simple_mem_ref_notrap): New function.
3459 (get_static_chain): Call it instead of build_simple_mem_ref.
3460 (get_frame_field): Likewise.
3461 (get_nonlocal_debug_decl): Likewise.
3462 (convert_nonlocal_reference_op): Likewise.
3464 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
3466 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
3468 (arc_compute_frame_size): Millicode is disabled when compiling
3470 (arc_return_address_register): Likewise.
3471 (arc_compute_function_type): Likewise.
3472 (arc_compute_frame_size): Likewise.
3473 (secondary_reload_info): Likewise.
3474 (arc_get_unalign): Likewise.
3475 (arc_can_use_return_insn): Declare.
3476 * config/arc/arc.c (AUX_LP_START): Define
3477 (AUX_LP_END): Likewise.
3478 (arc_frame_info): Update gmask member to 64-bit datum.
3479 (GMASK_LEN): Update.
3480 (arc_compute_function_type): Make it static, move it forward.
3481 (arc_must_save_register): Update, consider the extra regs.
3482 (arc_compute_millicode_save_restore_regs): Update to use the 64
3484 (arc_compute_frame_size): Likewise.
3485 (arc_enter_leave_p): Likewise.
3486 (arc_save_callee_saves): Likewise.
3487 (arc_restore_callee_saves): Likewise.
3488 (arc_save_callee_enter): Likewise.
3489 (arc_restore_callee_leave): Likewise.
3490 (arc_save_callee_milli): Likewise.
3491 (arc_restore_callee_milli): Likewise.
3492 (arc_expand_prologue): Add new interrupt handling.
3493 (arc_return_address_register): Make it static, move it forward.
3494 (arc_expand_epilogue): Add new interrupt handling.
3495 (arc_get_unalign): Delete.
3496 (arc_epilogue_uses): Make sure we do not remove the extra
3497 saved/restored registers when interrupt.
3498 (arc_can_use_return_insn): New function.
3499 (push_reg): Likewise.
3500 (pop_reg): Likewise.
3501 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
3503 (arc_restore_callee_saves): Likewise, but restoring.
3504 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
3505 (R33_REG): Likewise.
3506 (R34_REG): Likewise.
3507 (R35_REG): Likewise.
3508 (R36_REG): Likewise.
3509 (R37_REG): Likewise.
3510 (R38_REG): Likewise.
3511 (R39_REG): Likewise.
3512 (R45_REG): Likewise.
3513 (R46_REG): Likewise.
3514 (R47_REG): Likewise.
3515 (R48_REG): Likewise.
3516 (R49_REG): Likewise.
3517 (R50_REG): Likewise.
3518 (R51_REG): Likewise.
3519 (R52_REG): Likewise.
3520 (R53_REG): Likewise.
3521 (R54_REG): Likewise.
3522 (R55_REG): Likewise.
3523 (R56_REG): Likewise.
3524 (R58_REG): Likewise.
3525 (type): Add rtie attribute.
3526 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
3527 (movsi_insn): Accept moves to lp_count.
3528 (rtie): Update pattern.
3529 (simple_return): Simplify it, don't use this pattern as a return
3531 (arc600_rtie): New pattern.
3532 (p_return_i): Clean up.
3534 * config/arc/builtins.def (rtie): Only available for non ARC6xx
3536 * config/arc/predicates.md (move_src_operand): Consider lp_count
3539 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
3541 * config/s390/predicates.md (addv_const_operand): New predicate.
3542 * config/s390/s390-modes.def (CCO): New condition code mode.
3543 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
3544 (s390_branch_condition_mask): Likewise.
3545 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
3546 ("mulv<mode>4"): New expanders.
3547 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
3548 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
3549 pattern definitions.
3551 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3554 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
3555 (define_predicates): Add entry for uniform_vector_p.
3556 (vec_same_elem_p): New match pattern.
3558 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
3561 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
3562 * config/i386/darwin32-biarch.h .. to here.
3563 * config/i386/darwin64-biarch.h: Adjust comments.
3564 * config/rs6000/darwin32-biarch.h: Likewise.
3565 * config/rs6000/darwin64-biarch.h: Likewise.
3566 * config.gcc: Missed commit from r273746
3567 (*-*-darwin*): Don't include CPU t-darwin here.
3568 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3569 an error message if i686-darwin configuration is attempted for
3572 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
3575 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
3576 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
3577 an error message if i686-darwin configuration is attempted for
3579 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
3580 (powerpc-*-darwin*): Use biarch files where needed.
3581 (powerpc64-*-darwin*): Likewise.
3582 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
3583 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3585 * config/i386/darwin32-biarch.h: New.
3586 * config/i386/darwin64.h: Rename.
3587 * config/i386/darwin64-biarch.h: To this.
3588 * config/i386/t-darwin: Rename.
3589 * config/i386/t-darwin32-biarch: To this.
3590 * config/i386/t-darwin64: Rename.
3591 * config/i386/t-darwin64-biarch: To this.
3592 * config/rs6000/darwin32-biarch.h: New.
3593 * config/rs6000/darwin64.h: Rename.
3594 * config/rs6000/darwin64-biarch.h: To this.
3595 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
3597 * config/rs6000/t-darwin8: Rename.
3598 * config/rs6000/t-darwin32-biarch: To this.
3599 * config/rs6000/t-darwin64 Rename.
3600 * config/rs6000/t-darwin64-biarch: To this.
3602 2019-07-23 Martin Sebor <msebor@redhat.com>
3604 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
3606 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3608 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
3609 (rh): New alias for it.
3611 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
3613 * gdbhooks.py: Pass replace=True to
3614 gdb.printing.register_pretty_printer.
3616 2019-07-23 Richard Biener <rguenther@suse.de>
3619 * lto-streamer-in.c (input_function): Drop inline-entry markers
3620 that ended up with an unknown location block.
3622 2019-07-23 Richard Biener <rguenther@suse.de>
3624 PR tree-optimization/83518
3625 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
3626 init from a constant even when partial defs are already recorded.
3628 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3630 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
3631 * config/i386/znver1.md: Enable patterns for znver2 and add store
3632 variants which use extra AGU unit.
3634 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3636 * config/i386/i386-options.c (ix86_option_override_internal): Default
3637 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
3638 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
3641 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3643 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
3644 (znver2_costs): Update 256 bit SSE costs and multiplication.
3646 2019-07-23 Jan Beulich <jbeulich@suse.com>
3648 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
3649 Require only AVX512F.
3650 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
3651 alternative expanding to vpternlog.
3653 2019-07-23 Martin Liska <mliska@suse.cz>
3655 * dwarf2out.c (gen_producer_string): Canonize -flto=N
3656 to -flto in dwarf producer string.
3658 2019-07-23 Richard Biener <rguenther@suse.de>
3660 * tree-cfg.c (label_for_bb): Remove global var.
3661 (main_block_label): Take label_for_bb as argument.
3662 (cleanup_dead_labels_eh): Likewise, adjust.
3663 (cleanup_dead_labels): Adjust.
3665 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3667 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
3668 Configurations): Add documentation for __builtin_mtfsf.
3670 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
3672 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
3673 * config/riscv/riscv.c (riscv_constant_alignment): Use
3674 riscv_align_data_type.
3675 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
3676 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3677 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
3678 * config/riscv/riscv.opt (malign-data): New.
3679 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
3681 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
3683 * cgraph.c (dump_graphviz): New function.
3684 * cgraph.h (dump_graphviz): New function.
3685 * symtab.c (dump_graphviz): New function.
3687 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
3689 * config/aarch64/aarch64-simd.md
3690 (*aarch64_simd_sra<mode>): New.
3691 * config/aarch64/iterators.md
3692 (SHIFTRT): New iterator.
3693 (sra_op): New attribute.
3695 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3697 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
3698 callee-saved regs R4->R10 in an interrupt function that calls another
3701 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
3703 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
3704 (_mm_blendv_epi8): New.
3706 2019-07-22 Richard Biener <rguenther@suse.de>
3708 PR tree-optimization/91221
3709 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
3710 restrict partial-def handling of empty constructors and
3711 memset to refs with known offset.
3713 2019-07-22 Jan Beulich <jbeulich@suse.com>
3715 * config/i386/sse.md (ternlogsuffix): New.
3716 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
3718 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
3720 2019-07-22 Martin Liska <mliska@suse.cz>
3722 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
3724 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
3726 2019-07-22 Martin Liska <mliska@suse.cz>
3728 * lto-section-in.c (lto_get_section_data):
3729 Use new function get_compression.
3730 * lto-streamer-out.c (produce_lto_section): Use
3731 set_compression to encode compression algorithm.
3732 * lto-streamer.h (struct lto_section): Do not
3733 use bitfields in the format.
3735 2019-07-22 Martin Liska <mliska@suse.cz>
3738 * opts-common.c (decode_cmdline_option): Decode
3739 argument of -Werror and check it for a wrong language.
3740 * opts-global.c (complain_wrong_lang): Remove such case.
3742 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
3744 * config/arc/arc.c (prepare_move_operands): Always use an
3745 intermediate register when storing a TLS symbols.
3747 2019-07-22 Stafford Horne <shorne@gmail.com>
3749 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
3752 2019-07-22 Stafford Horne <shorne@gmail.com>
3754 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
3755 and munordered-float validations.
3756 * config/or1k/constraints.md (d): New register constraint.
3757 * config/or1k/predicates.md (fp_comparison_operator): New.
3758 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
3760 (or1k_expand_compare): Normalize unordered comparisons.
3761 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
3762 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
3763 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
3764 * config/or1k/or1k.md (type): Add fpu.
3765 (fpu): New instruction reservation.
3766 (F, f, fr, fi, FI, FOP, fop): New.
3767 (<fop><F:mode>3): New ALU instruction definition.
3768 (float<fi><F:mode>2): New conversion instruction definition.
3769 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
3770 (fpcmpcc): New code iterator.
3771 (*sf_fp_insn): New instruction definition.
3772 (cstore<F:mode>4): New expand definition.
3773 (cbranch<F:mode>4): New expand definition.
3774 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
3775 munordered-float): New options.
3776 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
3779 2019-07-22 Stafford Horne <shorne@gmail.com>
3781 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
3782 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
3783 documenation to be more clear.
3784 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
3786 * config/or1k/or1k.opt (mrori): New option.
3787 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
3788 msfimm, mshftimm): Rewrite documentation to be more clear.
3789 * config/or1k/or1k.md (insn_support): Add ror and rori.
3790 (enabled): Add conditions for ror and rori.
3791 (rotrsi3): Replace condition for shftimm with ror and rori.
3793 2019-07-22 Stafford Horne <shorne@gmail.com>
3796 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
3797 (extend<mode>si2): Update predicate.
3798 * config/or1k/predicates.md (volatile_mem_operand): New.
3799 (reg_or_mem_operand): New.
3801 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
3803 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
3804 * config/rs6000/rs6000-call.c: ... to here.
3806 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3808 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
3811 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3813 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
3815 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3817 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
3819 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3821 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
3822 (any_memory_operand): New predicate.
3823 (reg_or_mem_operand): Use it.
3825 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3828 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
3830 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
3832 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
3833 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
3835 2019-07-20 Jakub Jelinek <jakub@redhat.com>
3837 * tree.def (OMP_LOOP): New tree code.
3838 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
3839 (enum omp_clause_bind_kind): New enum.
3840 (struct tree_omp_clause): Add subcode.bind_kind.
3841 * tree.h (OMP_LOOP_CHECK): Rename to ...
3842 (OMP_LOOPING_CHECK): ... this.
3843 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
3844 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
3845 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
3846 (OMP_CLAUSE_BIND_KIND): Define.
3847 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
3848 bind clause entries.
3849 (walk_tree_1): Handle OMP_CLAUSE_BIND.
3850 * tree-pretty-print.c (dump_omp_clause): Likewise.
3851 (dump_generic_node): Handle OMP_LOOP.
3852 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
3853 (in_omp_construct): New variable.
3854 (is_gimple_stmt): Handle OMP_LOOP.
3855 (gimplify_scan_omp_clauses): For lastprivate don't set
3856 check_non_private if code == OMP_LOOP. For reduction clause
3857 on OMP_LOOP combined with parallel or teams propagate as shared
3858 on the combined construct. Handle OMP_CLAUSE_BIND.
3859 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
3860 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
3861 for constructs from a loop construct to gimplify_scan_omp_clauses.
3862 Don't predetermine iterator linear on OMP_SIMD from loop construct.
3863 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
3864 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
3865 to match the implicit ORT_TARGET construct around whole body.
3866 Temporarily clear in_omp_construct when processing body.
3867 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
3868 etc. temporarily set in_omp_construct when processing body.
3869 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
3870 * omp-low.c (struct omp_context): Add loop_p.
3871 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
3872 in that the original var might be private.
3873 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
3874 (check_omp_nesting_restrictions): Adjust nesting restrictions for
3875 addition of loop construct.
3876 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
3878 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
3879 lastprivate non-addressable iterator of a collapse(1) simd.
3881 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
3883 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
3886 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
3888 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
3889 refer to default conditions. Warn for the 'y' spec which is ignored
3892 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
3894 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
3895 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3896 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3897 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3898 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3899 init_cumulative_args, rs6000_promote_function_mode,
3900 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3901 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3902 rs6000_function_arg_boundary, rs6000_parm_offset,
3903 rs6000_parm_start, rs6000_arg_size,
3904 rs6000_darwin64_record_arg_advance_flush,
3905 rs6000_darwin64_record_arg_advance_recurse,
3906 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3907 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3908 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3909 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3910 rs6000_finish_function_arg, rs6000_function_arg,
3911 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3912 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3913 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3914 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3915 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3916 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3917 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3918 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3919 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3920 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3921 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3922 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3923 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
3924 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
3925 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
3926 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
3927 get_element_number, altivec_expand_vec_set_builtin,
3928 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
3929 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
3930 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
3931 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
3932 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
3933 rs6000_expand_builtin, rs6000_vector_type,
3934 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
3935 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
3936 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
3938 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
3939 cpu_supports_info, builtin_hash_struct, builtin_hasher,
3940 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
3941 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
3942 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
3943 init_cumulative_args, rs6000_promote_function_mode,
3944 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
3945 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
3946 rs6000_function_arg_boundary, rs6000_parm_offset,
3947 rs6000_parm_start, rs6000_arg_size,
3948 rs6000_darwin64_record_arg_advance_flush,
3949 rs6000_darwin64_record_arg_advance_recurse,
3950 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
3951 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
3952 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
3953 rs6000_mixed_function_arg, rs6000_psave_function_arg,
3954 rs6000_finish_function_arg, rs6000_function_arg,
3955 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
3956 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
3957 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
3958 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
3959 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
3960 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
3961 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
3962 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
3963 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
3964 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
3965 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
3966 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
3967 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
3968 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
3969 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
3970 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
3971 get_element_number, altivec_expand_vec_set_builtin,
3972 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
3973 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
3974 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
3975 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
3976 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
3977 rs6000_expand_builtin, rs6000_vector_type,
3978 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
3979 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
3980 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
3981 to here from rs6000.c.
3982 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
3983 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
3984 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
3985 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
3986 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
3987 rs6000_return_in_memory, rs6000_return_in_msb,
3988 rs6000_pass_by_reference, setup_incoming_varargs,
3989 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
3990 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
3991 rs6000_function_arg_padding, rs6000_function_arg,
3992 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
3993 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
3994 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
3995 rs6000_passes_long_double, rs6000_passes_vector,
3996 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
3997 altivec_builtin_mask_for_load) Add declarations.
3998 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
3999 * config/config.gcc: Add new source file rs6000-call.c to garbage
4000 collector and extra_objs.
4002 2019-07-19 Jeff Law <law@redhat.com>
4004 PR tree-optimization/86061
4005 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4006 strncpy. Drop some trivial dead code.
4007 (maybe_trim_memstar_call): Handle strncpy.
4009 2019-07-19 Richard Biener <rguenther@suse.de>
4011 PR tree-optimization/91211
4012 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4013 memset encoding size.
4015 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4018 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4020 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4023 * ipa-inline.c (recursive_inlining): Fix limits check.
4025 2019-07-19 Richard Biener <rguenther@suse.de>
4027 PR tree-optimization/91200
4028 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4029 no PHI nodes in middle-bb.
4031 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4033 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4035 * config/aarch64/aarch64-option-extensions.def: Likewise.
4037 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4040 * function.c (insert_temp_slot_address): Store into the hash table
4041 a copy of address to avoid RTL sharing issues.
4043 2019-07-19 Richard Biener <rguenther@suse.de>
4045 PR tree-optimization/91207
4047 2019-07-17 Richard Biener <rguenther@suse.de>
4049 PR tree-optimization/91178
4050 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4051 loads with a gap larger than the vector size always use
4053 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4054 avoid loading vectors that are only contained in the gap
4055 and thus are not needed.
4057 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4059 * config/i386/i386.md (*addqi_2_slp): Remove.
4060 (*<code>qi_2_slp): Ditto.
4062 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4064 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4065 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4066 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4067 Rename function from rs6000_prefixed_address.
4068 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4070 (TARGET_TOC): Likewise.
4071 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4073 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4075 (TARGET_TOC): Likewise.
4076 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4078 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4080 (TARGET_TOC): Likewise.
4081 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4082 check to require -mcmodel=medium for pc-relative addressing.
4083 (create_TOC_reference): Add assertion for TARGET_TOC.
4084 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4086 (rs6000_emit_move): Likewise.
4087 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4089 (get_TOC_alias_set): Likewise.
4090 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4092 (rs6000_can_eliminate): Likewise.
4093 (rs6000_prefixed_address_mode_p): Rename function from
4094 rs6000_prefixed_address.
4095 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4096 TARGET_HAS_TOC and not pc-relative.
4097 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4098 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4100 (TARGET_TOC): Likewise.
4101 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4104 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4107 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4108 for operand 0. Do not use (match_dup) to match operand 1 with
4109 operand 0. Add check in insn constraint that either input operand
4110 matches operand 0. Use SWI12 mode iterator to also handle
4112 (*and<mode>_1_slp): Ditto.
4113 (*<code>qi_1_slp): Ditto.
4114 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4115 Do not use (match_dup) to match operand 1 with operand 0. Add
4116 check in insn constraint that operand 1 matches operand 0.
4117 Use SWI12 mode iterator to also handle HImode operands.
4118 (*ashl<mode>3_1_slp): Ditto.
4119 (*<shift_insn><mode>3_1_slp): Ditto.
4120 (*<rotate_insn><mode>3_1_slp): Ditto.
4122 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4124 * config/arm/arm-builtins.c
4125 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4126 (arm_expand_unop_builtin): Likewise.
4127 * config/arm/crypto.md
4128 (crypto_sha1h): Convert from define_insn to define_expand.
4129 (crypto_<crypto_pattern>): Likewise.
4130 (crypto_sha1h_lb): New define_insn.
4131 (crypto_<crypto_pattern>_lb): Likewise.
4133 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4136 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4137 (vsha1cq_u32): Likewise.
4138 (vsha1pq_u32): Likewise.
4139 (vsha1mq_u32): Likewise.
4140 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4142 (crypto_sha1c): Correct vec select.
4143 (crypto_sha1m): Likewise.
4144 (crypto_sha1p): Likewise.
4146 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4148 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4149 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4150 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4151 (subdi_zesidi_zesidi): Likewise.
4152 (negdi2_compare, negdi2_insn): Likewise.
4153 (negdi_extensidi): Likewise.
4154 (negdi_zero_extendsidi): Likewise.
4155 (arm_cmpdi_insn): Likewise.
4156 (subsi3_carryin): Use arm_borrow_operation.
4157 (subsi3_carryin_const): Likewise.
4158 (subsi3_carryin_const0): Likewise.
4159 (subsi3_carryin_compare): Likewise.
4160 (subsi3_carryin_compare_const): Likewise.
4161 (subsi3_carryin_compare_const0): Likewise.
4162 (subsi3_carryin_shift): Likewise.
4163 (rsbsi3_carryin_shift): Likewise.
4164 (negsi2_carryin_compare): Likewise.
4166 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4168 PR tree-optimization/91137
4169 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4170 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4171 Init, use and fini the above new field.
4172 (determine_base_object_1): New function.
4173 (determine_base_object): Reimplement using walk_tree.
4175 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4177 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4178 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4179 CLEANUP_FORCE_FAST_DCE is set.
4180 * ifcvt.c (rest_of_handle_if_conversion): Pass
4181 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4182 if-conversion succeeded.
4184 2019-07-18 Richard Biener <rguenther@suse.de>
4186 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4187 branches to make code less indented.
4189 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4192 * attribs.c (decls_mismatched_attributes): Simplify the logic
4193 that avoids duplicates and false positives.
4195 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4197 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4198 data into data section when generating PIC code.
4199 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4200 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4201 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4202 return 2 for SOM and 0 for other targets.
4204 2019-07-17 Jeff Law <law@redhat.com>
4206 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4207 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4208 avoid unexpected switch statement fallthru.
4210 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4212 * config/i386/i386.md (*add<dwi>3_doubleword):
4213 Remove redundant constraints.
4214 (*add<mode>_1): Ditto.
4217 (*addqi_1_slp): Ditto.
4218 (*add<mode>_2): Ditto.
4219 (*addv<mode>4): Ditto.
4220 (*sub<dwi>3_doubleword): Ditto.
4221 (*sub<mode>_1): Ditto.
4222 (*subqi_1_slp): Ditto.
4223 (*sub<mode>_2): Ditto.
4224 (*subv<mode>4): Ditto.
4225 (*sub<mode>_3): Ditto.
4226 (@add<mode>3_carry): Ditto.
4227 (@sub<mode>3_carry): Ditto.
4228 (*add<mode>3_cc_overflow_1): Ditto.
4229 (*add<mode>3_zext_cc_overflow_2): Ditto.
4231 (*and<mode>_1): Ditto.
4233 (*andqi_1_slp): Ditto.
4235 (*andqi_2_maybe_si): Ditto.
4236 (*and<mode>_2): Ditto.
4237 (*andqi_2_slp): Ditto.
4238 (*<code><mode>_1): Ditto.
4239 (*<code>qi_1): Ditto.
4240 (*<code>qi_1_slp): Ditto.
4241 (*<code><mode>_2): Ditto.
4242 (*<code>qi_2_slp): Ditto.
4244 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4246 * alias.c (record_component_aliases): Do not simplify pointed-to
4249 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4251 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4252 partial reg stall on alternative 2.
4254 2019-07-17 Richard Biener <rguenther@suse.de>
4256 PR tree-optimization/91178
4257 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4258 lower SSA names to avoid quadratic behavior in the common case.
4259 * tree-data-ref.c (split_constant_offset): Add limit argument
4260 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4261 (split_constant_offset_1): Add limit argument and use it to
4262 limit SSA def walking. Optimize the common plus/minus case.
4264 2019-07-17 Richard Biener <rguenther@suse.de>
4266 PR tree-optimization/91178
4267 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4268 loads with a gap larger than the vector size always use
4270 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4271 avoid loading vectors that are only contained in the gap
4272 and thus are not needed.
4274 2019-07-17 Richard Biener <rguenther@suse.de>
4276 PR tree-optimization/91180
4277 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4278 computation for memset partial defs.
4280 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4282 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4283 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4284 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4285 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4286 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4287 * omp-grid.c (grid_process_grid_body,
4288 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4289 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4290 == GF_OMP_FOR_KIND_SIMD.
4291 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4292 check_omp_nesting_restrictions, scan_omp_1_stmt,
4293 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4294 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4295 omp_find_scan): Likewise.
4296 * omp-expand.c (expand_omp_for): Likewise.
4297 * omp-general.c (omp_extract_for_data): Likewise.
4299 PR tree-optimization/91157
4300 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4301 a vector boolean with scalar mode.
4302 (expand_vector_condition): Handle first operand being a vector boolean
4304 (expand_vector_operations_1): For comparisons, don't bail out early
4305 if the return type is vector boolean with scalar mode, but comparison
4306 operand type is not.
4308 2019-07-17 Richard Biener <rguenther@suse.de>
4310 PR tree-optimization/91181
4311 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4314 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4316 * config/i386/i386.md (*testdi_1): Match CCZmode for
4317 constants that might have the SImode sign bit set.
4318 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4319 Use correct constraints for pentium pairing.
4320 (*test<mode>_1): Ditto.
4322 2019-07-16 Jeff Law <law@redhat.com>
4324 PR rtl-optimization/91173
4325 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4326 SSA_NAME with a constant value, fold its value into the offset
4327 and clear the base before calling gen_addr_rtx.
4329 2019-07-16 Jakub Jelinek <jakub@redhat.com>
4331 PR rtl-optimization/91164
4332 * dse.c (rest_of_handle_dse): If dead edges have been purged,
4333 invalidate dominance info.
4335 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4337 * read-md.h (md_reader::record_potential_iterator_use): Add a
4338 file_location parameter.
4339 * read-rtl.c (attribute_use::loc): New field.
4340 (map_attr_string): Take a file_location parameter. Report cases
4341 in which attributes map to multiple distinct values.
4342 (apply_attribute_uses): Update call accordingly.
4343 (md_reader::handle_overloaded_name): Likewise.
4344 (md_reader::apply_iterator_to_string): Likewise. Skip empty
4346 (record_attribute_use): Take a file_location parameter.
4347 Initialize attribute_use::loc.
4348 (md_reader::record_potential_iterator_use): Take a file_location
4349 parameter. Update call to record_attribute_use.
4350 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
4351 (rtx_reader::read_rtx_code): Likewise.
4352 (rtx_reader::read_rtx_operand): Likewise. Record a location
4353 for implicitly-expanded empty strings.
4355 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4357 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
4358 Use file_location instead of separate fields.
4359 (md_reader::set_md_ptr_loc): Take a file_location instead of a
4360 separate filename and line number.
4361 * read-md.c (ptr_loc): As above.
4362 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
4363 (md_reader::fprint_md_ptr_loc): Likewise.
4364 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
4365 instead of a separate filename and line number.
4366 (md_reader::read_string): Update call accordingly.
4368 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4370 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
4371 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
4372 leaving the choice between SFDF and P implicit.
4373 (*mov<mode>_update2): Likewise.
4374 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
4375 rather than leaving the choice betweem IBM128 and GPR implicit.
4376 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
4377 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
4379 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
4380 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
4381 * config/rs6000/vsx.md
4382 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
4383 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
4384 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
4385 and VSX_EXTRACT_I implicit.
4387 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
4389 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
4390 Explicitly use <MOVEP1:MODE> for the mode attribute.
4392 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
4395 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
4397 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
4400 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
4403 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
4405 * config/i386/i386.md (@test<mode>_ccno_1):
4406 Rename from test<mode>_ccno_1.
4407 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
4408 (*testqi_1_maybe_si): Remove modrm attribute.
4409 (*test<mode>_1): Ditto.
4410 * config/i386/i386-expand.c (ix86_split_idivmod): Use
4411 gen_test_ccno_1 and gen_extend_insn.
4413 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
4415 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
4418 2019-07-15 Richard Biener <rguenther@suse.de>
4421 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
4422 node make sure to replace all uses with something valid.
4424 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
4426 PR tree-optimization/88497
4427 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
4428 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
4429 function undistribute_bitref_for_vector.
4430 (undistribute_bitref_for_vector): New function.
4431 (cleanup_vinfo_map): Likewise.
4432 (sort_by_mach_mode): Likewise.
4434 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
4436 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
4437 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
4438 and testdi_ccno_1 using SWI48 mode attribute.
4439 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
4440 x86_64_szext_general_operand.
4441 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
4442 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
4443 instead of genera_operand mode attribute.
4445 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
4447 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
4448 fopen and fclose to their respective types.
4449 (DotFn.invoke): Ditto.
4451 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
4453 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
4454 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
4455 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
4456 (array_index_predicate): Remove.
4457 (analyze_function_body): Account cost for variable ofsetted array
4459 (estimate_node_size_and_time): Do not compute array index hint.
4460 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
4461 (inline_read_section): Do not read array index hint.
4462 (ipa_fn_summary_write): Do not write array index hint.
4463 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
4464 * ipa-cp.c (hint_time_bonus): Remove.
4465 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
4466 (ipa_fnsummary): Remove array_index.
4467 * ipa-inline.c (want_inline_small_function_p): Do not use
4469 (edge_badness): Likewise.
4470 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
4472 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
4475 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
4476 superfluous "builtin function" phrasing.
4478 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
4480 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
4482 (aliasing_component_refs_walk): Break out from ...
4483 (aliasing_component_refs_p): ... here.
4485 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
4488 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
4489 "builtin function" phrasing.
4491 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4494 * recog.h (temporary_volatile_ok): New class.
4495 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
4496 volatile_ok temporarily to true using temporary_volatile_ok.
4497 * expr.c (emit_block_move_via_cpymem): Likewise.
4498 * optabs.c (maybe_legitimize_operand): Likewise.
4500 2019-07-13 Jakub Jelinek <jakub@redhat.com>
4502 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
4503 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
4504 uses inside of order(concurrent) constructs.
4505 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
4506 OMP_CLAUSE_ORDER is seen.
4507 * omp-low.c (struct omp_context): Add order_concurrent member.
4508 (scan_sharing_clauses): Set ctx->order_concurrent if
4509 OMP_CLAUSE_ORDER is seen.
4510 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
4511 of simd order(concurrent). Diagnose constructs not allowed inside of
4512 for order(concurrent).
4513 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
4514 complaining about static double setjmp (double); or class static
4515 methods or non-global namespace setjmps.
4516 (omp_runtime_api_call): New function.
4517 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
4518 order(concurrent) loops.
4520 2019-07-12 Martin Sebor <msebor@redhat.com>
4522 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
4523 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
4524 * tree-vrp.c (vrp_prop::check_mem_ref): Use
4525 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4527 2019-07-12 Jan Hubicka <jh@suse.cz>
4529 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
4530 (indirect_refs_may_alias_p): ... here.
4531 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
4532 mem refs in the access paths.
4534 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
4536 PR tree-optimization/89430
4537 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
4538 store elimination for local variable without address escape.
4540 2019-07-12 Jeff Law <law@redhat.com>
4542 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
4543 for the ".far" section.
4545 2019-07-12 Richard Biener <rguenther@suse.de>
4547 PR tree-optimization/91145
4548 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
4551 2019-07-12 Alexandre Oliva <oliva@adacore.com>
4553 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
4554 rather than this_state as the lowering context for the ELSE
4555 seq in a GIMPLE_EH_ELSE.
4557 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4559 * vector-builder.h (vector_builder::elt): Allow already-supplied
4560 elements to be read back before building is complete.
4562 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4564 PR rtl-optimization/91136
4565 * df-core.c (ACCESSING REFS): Fix typos in comment.
4566 * resource.c (mark_target_live_reg): Add artificial defs that occur at
4567 the beginning of the block to the initial set of live registers.
4569 2019-07-12 Richard Biener <rguenther@suse.de>
4571 * fold-const.h (get_array_ctor_element_at_index): Adjust.
4572 * fold-const.c (get_array_ctor_element_at_index): Add
4573 ctor_idx output parameter informing the caller where in
4574 the constructor the element was (not) found. Add early exit
4575 for when the ctor is sorted.
4576 * gimple-fold.c (fold_array_ctor_reference): Support constant
4577 folding across multiple array elements.
4579 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
4581 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
4582 doesn't have location, set the current location to the function's end.
4584 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4586 * config/aarch64/aarch64.md (*compare_condjump<mode>)
4587 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
4588 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
4589 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
4590 * config/aarch64/aarch64-simd.md
4591 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
4592 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
4593 * config/aarch64/aarch64-sve.md
4594 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
4595 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
4597 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
4599 * doc/md.texi: Document that @ patterns can have different
4600 numbers of operands.
4601 * genemit.c (handle_overloaded_gen): Handle this case.
4602 * genopinit.c (handle_overloaded_gen): Likewise.
4603 * gensupport.c (replace_operands_with_dups): Iterate over
4604 the new rtx's format rather than the old one's.
4606 2019-07-12 Jakub Jelinek <jakub@redhat.com>
4608 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
4609 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4610 order clause entries.
4611 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
4612 * tree-pretty-print.c (dump_omp_clause): Likewise.
4613 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
4615 * omp-low.c (scan_sharing_clauses): Likewise.
4616 * tree-nested.c (convert_nonlocal_omp_clauses,
4617 convert_local_omp_clauses): Likewise.
4619 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
4621 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
4622 fallthrough target of current basic block isn't the placed
4625 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
4628 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
4629 (_mm512_storeu_epi64): Likewise.
4630 (_mm512_loadu_epi32): Likewise.
4631 (_mm512_storeu_epi32): Likewise.
4632 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
4633 (_mm_storeu_epi64): Likewise.
4634 (_mm256_storeu_epi32): Likewise.
4635 (_mm_storeu_epi32): Likewise.
4637 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4639 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
4641 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
4643 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
4646 2019-07-11 Jakub Jelinek <jakub@redhat.com>
4649 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
4650 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4651 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
4652 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
4653 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
4654 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
4656 (ufix_truncv2dfv2si2<mask_name>): Change into ...
4657 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
4658 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
4660 (sse2_cvttpd2dq<mask_name>): Change into ...
4661 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
4662 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
4663 (*sse2_cvtpd2dq<mask_name>): Change into ...
4664 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
4665 Add "C" constraint to const0_operand.
4666 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
4667 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
4671 * config/i386/i386-builtin-types.def
4672 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
4673 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
4674 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
4675 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
4676 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
4677 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
4678 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
4679 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
4680 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
4681 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
4682 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
4683 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
4684 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
4685 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
4686 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
4687 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
4688 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
4689 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
4690 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
4691 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
4692 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
4693 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
4694 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
4695 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
4696 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
4697 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
4698 __builtin_ia32_vpdpbusd_v4si_maskz,
4699 __builtin_ia32_vpdpbusds_v16si_mask,
4700 __builtin_ia32_vpdpbusds_v16si_maskz,
4701 __builtin_ia32_vpdpbusds_v8si_mask,
4702 __builtin_ia32_vpdpbusds_v8si_maskz,
4703 __builtin_ia32_vpdpbusds_v4si_mask,
4704 __builtin_ia32_vpdpbusds_v4si_maskz,
4705 __builtin_ia32_vpdpwssd_v16si_mask,
4706 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
4707 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
4708 __builtin_ia32_vpdpwssd_v4si_maskz,
4709 __builtin_ia32_vpdpwssds_v16si_mask,
4710 __builtin_ia32_vpdpwssds_v16si_maskz,
4711 __builtin_ia32_vpdpwssds_v8si_mask,
4712 __builtin_ia32_vpdpwssds_v8si_maskz,
4713 __builtin_ia32_vpdpwssds_v4si_mask,
4714 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
4715 suffixed types rather than *_INT.
4716 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
4717 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
4718 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
4719 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
4720 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
4721 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
4723 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
4725 * tree-vrp.c (intersect_ranges): If we know the intersection is
4726 empty, there is no need to conservatively add anything else to
4729 2019-07-11 Richard Biener <rguenther@suse.de>
4732 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
4733 when the object is volatile and we have not cleared it even though
4734 there are no nonzero elements.
4736 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
4738 * config/rs6000/predicates.md (cint34_operand): Update
4739 SIGNED_34BIT_OFFSET_P call.
4740 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
4741 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
4742 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
4743 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
4744 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
4746 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
4747 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
4748 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
4749 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
4750 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
4752 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
4754 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
4755 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
4756 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
4757 (DEF_MIN_OSX_VERSION): New.
4759 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4761 * fold-const.c (fold_relational_const): Fix folding of
4762 vector-to-scalar NE_EXPRs.
4763 (test_vector_folding): Add more tests.
4765 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
4768 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
4769 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
4770 (vec_setv2di_internal): Reexpress as...
4771 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
4772 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
4773 rather than gen_neon_vset_lane<mode>.
4775 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
4778 * lra-constraints.c (process_alt_operands): Don't match user
4779 defined regs only if they are early clobbers.
4781 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
4783 * wide-int.h (wi::lshift): Reject negative values for the fast path.
4785 2019-07-10 Richard Biener <rguenther@suse.de>
4787 PR tree-optimization/91126
4788 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
4789 native encoding offset for BYTES_BIG_ENDIAN.
4790 (vn_reference_lookup_3): Likewise.
4792 2019-07-10 Richard Biener <rguenther@suse.de>
4794 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
4795 LHS whenever possible.
4797 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
4799 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
4800 from ...; work also on duplicated types.
4801 (nonoverlapping_component_refs_since_match): ... here
4802 (ncr_type_uid): Break out from ...
4803 (ncr_compar): ... here; look for TYPE_UID of canonical type if
4805 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
4806 the types and nonoverlapping_component_refs_p_1 to disambiguate.
4808 2019-07-09 Martin Sebor <msebor@redhat.com>
4810 PR tree-optimization/90989
4811 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
4812 optimization to just single character stores.
4814 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
4816 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
4817 Swap operands only once.
4819 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
4821 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
4822 for both call instructions.
4824 2019-07-09 John Darrington <john@darrington.wattle.id.au>
4826 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
4827 rather than GET_MODE_BITSIZE to better handle partial integer modes.
4829 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
4831 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
4832 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
4833 function from rs6000-logue.c back to rs6000.c.
4834 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
4836 2019-07-09 Martin Sebor <msebor@redhat.com>
4839 * auto-profile.c: Change class-key of PODs to struct and others
4841 * basic-block.h: Same.
4842 * bitmap.c (bitmap_alloc): Same.
4844 * builtins.c (expand_builtin_prefetch): Same.
4845 (expand_builtin_interclass_mathfn): Same.
4846 (expand_builtin_strlen): Same.
4847 (expand_builtin_mempcpy_args): Same.
4848 (expand_cmpstr): Same.
4849 (expand_builtin___clear_cache): Same.
4850 (expand_ifn_atomic_bit_test_and): Same.
4851 (expand_builtin_thread_pointer): Same.
4852 (expand_builtin_set_thread_pointer): Same.
4853 * caller-save.c (setup_save_areas): Same.
4854 (replace_reg_with_saved_mem): Same.
4855 (insert_restore): Same.
4856 (insert_save): Same.
4857 (add_used_regs): Same.
4858 * cfg.c (get_bb_copy): Same.
4859 (set_loop_copy): Same.
4862 * cfgexpand.c (alloc_stack_frame_space): Same.
4863 (add_stack_var): Same.
4864 (add_stack_var_conflict): Same.
4865 (add_scope_conflicts_1): Same.
4866 (update_alias_info_with_stack_vars): Same.
4867 (expand_used_vars): Same.
4868 * cfghooks.c (redirect_edge_and_branch_force): Same.
4869 (delete_basic_block): Same.
4871 (make_forwarder_block): Same.
4872 (force_nonfallthru): Same.
4873 (duplicate_block): Same.
4874 (lv_flush_pending_stmts): Same.
4876 * cfgloop.c (flow_loops_cfg_dump): Same.
4877 (flow_loop_nested_p): Same.
4878 (superloop_at_depth): Same.
4879 (get_loop_latch_edges): Same.
4880 (flow_loop_dump): Same.
4881 (flow_loops_dump): Same.
4882 (flow_loops_free): Same.
4883 (flow_loop_nodes_find): Same.
4884 (establish_preds): Same.
4885 (flow_loop_tree_node_add): Same.
4886 (flow_loop_tree_node_remove): Same.
4887 (flow_loops_find): Same.
4888 (find_subloop_latch_edge_by_profile): Same.
4889 (find_subloop_latch_edge_by_ivs): Same.
4890 (mfb_redirect_edges_in_set): Same.
4891 (form_subloop): Same.
4892 (merge_latch_edges): Same.
4893 (disambiguate_multiple_latches): Same.
4894 (disambiguate_loops_with_multiple_latches): Same.
4895 (flow_bb_inside_loop_p): Same.
4897 (get_loop_body_with_size): Same.
4898 (get_loop_body): Same.
4899 (fill_sons_in_loop): Same.
4900 (get_loop_body_in_dom_order): Same.
4901 (get_loop_body_in_custom_order): Same.
4902 (release_recorded_exits): Same.
4903 (get_loop_exit_edges): Same.
4904 (num_loop_branches): Same.
4905 (remove_bb_from_loops): Same.
4906 (find_common_loop): Same.
4907 (delete_loop): Same.
4908 (cancel_loop): Same.
4909 (verify_loop_structure): Same.
4910 (loop_preheader_edge): Same.
4911 (loop_exit_edge_p): Same.
4912 (single_exit): Same.
4913 (loop_exits_to_bb_p): Same.
4914 (loop_exits_from_bb_p): Same.
4915 (get_loop_location): Same.
4916 (record_niter_bound): Same.
4917 (get_estimated_loop_iterations_int): Same.
4918 (max_stmt_executions_int): Same.
4919 (likely_max_stmt_executions_int): Same.
4920 (get_estimated_loop_iterations): Same.
4921 (get_max_loop_iterations): Same.
4922 (get_max_loop_iterations_int): Same.
4923 (get_likely_max_loop_iterations): Same.
4924 * cfgloop.h (simple_loop_desc): Same.
4928 (loop_iterator::next): Same.
4929 (loop_outermost): Same.
4930 * cfgloopanal.c (mark_irreducible_loops): Same.
4931 (num_loop_insns): Same.
4932 (average_num_loop_insns): Same.
4933 (expected_loop_iterations_unbounded): Same.
4934 (expected_loop_iterations): Same.
4935 (mark_loop_exit_edges): Same.
4936 (single_likely_exit): Same.
4937 * cfgloopmanip.c (fix_bb_placement): Same.
4938 (fix_bb_placements): Same.
4939 (remove_path): Same.
4940 (place_new_loop): Same.
4942 (scale_loop_frequencies): Same.
4943 (scale_loop_profile): Same.
4944 (create_empty_if_region_on_edge): Same.
4945 (create_empty_loop_on_edge): Same.
4948 (fix_loop_placements): Same.
4949 (copy_loop_info): Same.
4950 (duplicate_loop): Same.
4951 (duplicate_subloops): Same.
4952 (loop_redirect_edge): Same.
4953 (can_duplicate_loop_p): Same.
4954 (duplicate_loop_to_header_edge): Same.
4955 (mfb_keep_just): Same.
4956 (has_preds_from_loop): Same.
4957 (create_preheader): Same.
4958 (create_preheaders): Same.
4959 (lv_adjust_loop_entry_edge): Same.
4960 (loop_version): Same.
4961 * cfgloopmanip.h: Same.
4963 * cgraphbuild.c: Same.
4964 * combine.c (make_extraction): Same.
4965 * config/i386/i386-features.c: Same.
4966 * config/i386/i386-features.h: Same.
4967 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
4968 (ix86_emit_outlined_ms2sysv_restore): Same.
4969 (ix86_noce_conversion_profitable_p): Same.
4970 (ix86_init_cost): Same.
4971 (ix86_simd_clone_usable): Same.
4972 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
4974 * coretypes.h: Same.
4975 * data-streamer-in.c (string_for_index): Change class-key of PODs
4976 to struct and others to class.
4977 (streamer_read_indexed_string): Same.
4978 (streamer_read_string): Same.
4979 (bp_unpack_indexed_string): Same.
4980 (bp_unpack_string): Same.
4981 (streamer_read_uhwi): Same.
4982 (streamer_read_hwi): Same.
4983 (streamer_read_gcov_count): Same.
4984 (streamer_read_wide_int): Same.
4985 * data-streamer.h (streamer_write_bitpack): Same.
4986 (bp_unpack_value): Same.
4987 (streamer_write_char_stream): Same.
4988 (streamer_write_hwi_in_range): Same.
4989 (streamer_write_record_start): Same.
4990 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
4991 (add_cross_iteration_register_deps): Same.
4992 (build_intra_loop_deps): Same.
4993 * df-core.c (df_analyze): Same.
4994 (loop_post_order_compute): Same.
4995 (loop_inverted_post_order_compute): Same.
4996 * df-problems.c (df_rd_alloc): Same.
4997 (df_rd_simulate_one_insn): Same.
4998 (df_rd_local_compute): Same.
4999 (df_rd_init_solution): Same.
5000 (df_rd_confluence_n): Same.
5001 (df_rd_transfer_function): Same.
5003 (df_rd_dump_defs_set): Same.
5004 (df_rd_top_dump): Same.
5005 (df_lr_alloc): Same.
5006 (df_lr_reset): Same.
5007 (df_lr_local_compute): Same.
5009 (df_lr_confluence_n): Same.
5011 (df_lr_top_dump): Same.
5012 (df_lr_verify_transfer_functions): Same.
5013 (df_live_alloc): Same.
5014 (df_live_reset): Same.
5015 (df_live_init): Same.
5016 (df_live_confluence_n): Same.
5017 (df_live_finalize): Same.
5018 (df_live_free): Same.
5019 (df_live_top_dump): Same.
5020 (df_live_verify_transfer_functions): Same.
5021 (df_mir_alloc): Same.
5022 (df_mir_reset): Same.
5023 (df_mir_init): Same.
5024 (df_mir_confluence_n): Same.
5025 (df_mir_free): Same.
5026 (df_mir_top_dump): Same.
5027 (df_word_lr_alloc): Same.
5028 (df_word_lr_reset): Same.
5029 (df_word_lr_init): Same.
5030 (df_word_lr_confluence_n): Same.
5031 (df_word_lr_free): Same.
5032 (df_word_lr_top_dump): Same.
5033 (df_md_alloc): Same.
5034 (df_md_simulate_one_insn): Same.
5035 (df_md_reset): Same.
5038 (df_md_top_dump): Same.
5039 * df-scan.c (df_insn_delete): Same.
5040 (df_insn_rescan): Same.
5041 (df_notes_rescan): Same.
5042 (df_sort_and_compress_mws): Same.
5043 (df_install_mws): Same.
5044 (df_refs_add_to_chains): Same.
5045 (df_ref_create_structure): Same.
5046 (df_ref_record): Same.
5047 (df_def_record_1): Same.
5048 (df_find_hard_reg_defs): Same.
5049 (df_uses_record): Same.
5050 (df_get_conditional_uses): Same.
5051 (df_get_call_refs): Same.
5052 (df_recompute_luids): Same.
5053 (df_get_entry_block_def_set): Same.
5054 (df_entry_block_defs_collect): Same.
5055 (df_get_exit_block_use_set): Same.
5056 (df_exit_block_uses_collect): Same.
5057 (df_mws_verify): Same.
5058 (df_bb_verify): Same.
5059 * df.h (df_scan_get_bb_info): Same.
5060 * doc/tm.texi: Same.
5061 * dse.c (record_store): Same.
5063 * emit-rtl.c (const_fixed_hasher::equal): Same.
5064 (set_mem_attributes_minus_bitpos): Same.
5065 (change_address): Same.
5066 (adjust_address_1): Same.
5067 (offset_address): Same.
5069 * except.c (dw2_build_landing_pads): Same.
5070 (sjlj_emit_dispatch_table): Same.
5071 * explow.c (allocate_dynamic_stack_space): Same.
5072 (emit_stack_probe): Same.
5073 (probe_stack_range): Same.
5074 * expmed.c (store_bit_field_using_insv): Same.
5075 (store_bit_field_1): Same.
5076 (store_integral_bit_field): Same.
5077 (extract_bit_field_using_extv): Same.
5078 (extract_bit_field_1): Same.
5079 (emit_cstore): Same.
5080 * expr.c (emit_block_move_via_cpymem): Same.
5081 (expand_cmpstrn_or_cmpmem): Same.
5082 (set_storage_via_setmem): Same.
5083 (emit_single_push_insn_1): Same.
5084 (expand_assignment): Same.
5085 (store_constructor): Same.
5086 (expand_expr_real_2): Same.
5087 (expand_expr_real_1): Same.
5090 * function.c (try_fit_stack_local): Same.
5091 (assign_stack_local_1): Same.
5092 (assign_stack_local): Same.
5093 (cut_slot_from_list): Same.
5094 (insert_slot_to_list): Same.
5095 (max_slot_level): Same.
5096 (move_slot_to_level): Same.
5097 (temp_address_hasher::equal): Same.
5098 (remove_unused_temp_slot_addresses): Same.
5099 (assign_temp): Same.
5100 (combine_temp_slots): Same.
5101 (update_temp_slot_address): Same.
5102 (preserve_temp_slots): Same.
5105 * gcc-rich-location.h: Same.
5107 * genattrtab.c (check_attr_test): Same.
5108 (check_attr_value): Same.
5109 (convert_set_attr_alternative): Same.
5110 (convert_set_attr): Same.
5112 (copy_boolean): Same.
5113 (get_attr_value): Same.
5114 (expand_delays): Same.
5115 (make_length_attrs): Same.
5117 (make_alternative_compare): Same.
5118 (simplify_test_exp): Same.
5119 (tests_attr_p): Same.
5120 (get_attr_order): Same.
5121 (clear_struct_flag): Same.
5123 (compares_alternatives_p): Same.
5126 (find_attrs_to_cache): Same.
5127 (write_test_expr): Same.
5128 (walk_attr_value): Same.
5129 (write_attr_get): Same.
5130 (eliminate_known_true): Same.
5131 (write_insn_cases): Same.
5132 (write_attr_case): Same.
5133 (write_attr_valueq): Same.
5134 (write_attr_value): Same.
5135 (write_dummy_eligible_delay): Same.
5136 (next_comma_elt): Same.
5138 (make_internal_attr): Same.
5139 (copy_rtx_unchanging): Same.
5140 (gen_insn_reserv): Same.
5141 (check_tune_attr): Same.
5142 (make_automaton_attrs): Same.
5144 * genextract.c (gen_insn): Same.
5145 (VEC_char_to_string): Same.
5146 * genmatch.c (print_operand): Same.
5148 (parser::parse_operation): Same.
5149 (parser::parse_capture): Same.
5150 (parser::parse_c_expr): Same.
5151 (parser::parse_simplify): Same.
5153 * genoutput.c (output_operand_data): Same.
5154 (output_get_insn_name): Same.
5155 (compare_operands): Same.
5156 (place_operands): Same.
5157 (process_template): Same.
5158 (validate_insn_alternatives): Same.
5159 (validate_insn_operands): Same.
5161 (note_constraint): Same.
5162 * genpreds.c (write_one_predicate_function): Same.
5163 (add_constraint): Same.
5164 (process_define_register_constraint): Same.
5165 (write_lookup_constraint_1): Same.
5166 (write_lookup_constraint_array): Same.
5167 (write_insn_constraint_len): Same.
5168 (write_reg_class_for_constraint_1): Same.
5169 (write_constraint_satisfied_p_array): Same.
5170 * genrecog.c (optimize_subroutine_group): Same.
5171 * gensupport.c (process_define_predicate): Same.
5172 (queue_pattern): Same.
5173 (remove_from_queue): Same.
5174 (process_rtx): Same.
5175 (is_predicable): Same.
5176 (change_subst_attribute): Same.
5177 (subst_pattern_match): Same.
5178 (alter_constraints): Same.
5179 (alter_attrs_for_insn): Same.
5180 (shift_output_template): Same.
5181 (alter_output_for_subst_insn): Same.
5182 (process_one_cond_exec): Same.
5184 (process_define_cond_exec): Same.
5185 (mnemonic_htab_callback): Same.
5186 (gen_mnemonic_attr): Same.
5187 (read_md_rtx): Same.
5189 * gimple-loop-interchange.cc (dump_reduction): Same.
5190 (dump_induction): Same.
5191 (loop_cand::~loop_cand): Same.
5192 (free_data_refs_with_aux): Same.
5193 (tree_loop_interchange::interchange_loops): Same.
5194 (tree_loop_interchange::map_inductions_to_loop): Same.
5195 (tree_loop_interchange::move_code_to_inner_loop): Same.
5196 (compute_access_stride): Same.
5197 (compute_access_strides): Same.
5198 (proper_loop_form_for_interchange): Same.
5199 (tree_loop_interchange_compute_ddrs): Same.
5200 (prune_datarefs_not_in_loop): Same.
5201 (prepare_data_references): Same.
5202 (pass_linterchange::execute): Same.
5203 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5204 (unroll_jam_possible_p): Same.
5206 (adjust_unroll_factor): Same.
5207 (tree_loop_unroll_and_jam): Same.
5208 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5209 (loop_versioning::expensive_stmt_p): Same.
5210 (loop_versioning::version_for_unity): Same.
5211 (loop_versioning::dump_inner_likelihood): Same.
5212 (loop_versioning::find_per_loop_multiplication): Same.
5213 (loop_versioning::analyze_term_using_scevs): Same.
5214 (loop_versioning::record_address_fragment): Same.
5215 (loop_versioning::analyze_expr): Same.
5216 (loop_versioning::analyze_blocks): Same.
5217 (loop_versioning::prune_conditions): Same.
5218 (loop_versioning::merge_loop_info): Same.
5219 (loop_versioning::add_loop_to_queue): Same.
5220 (loop_versioning::decide_whether_loop_is_versionable): Same.
5221 (loop_versioning::make_versioning_decisions): Same.
5222 (loop_versioning::implement_versioning_decisions): Same.
5223 * gimple-ssa-evrp-analyze.c
5224 (evrp_range_analyzer::record_ranges_from_phis): Same.
5225 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5226 (count_multiple_uses): Same.
5227 (split_group): Same.
5228 (imm_store_chain_info::output_merged_store): Same.
5229 (pass_store_merging::process_store): Same.
5230 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5231 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5233 (alloca_call_type): Same.
5234 (pass_walloca::execute): Same.
5235 * gimple-streamer-in.c (input_phi): Same.
5236 (input_gimple_stmt): Same.
5237 * gimple-streamer.h: Same.
5238 * godump.c (go_force_record_alignment): Same.
5239 (go_format_type): Same.
5240 (go_output_type): Same.
5241 (go_output_fndecl): Same.
5242 (go_output_typedef): Same.
5243 (keyword_hash_init): Same.
5244 (find_dummy_types): Same.
5245 * graph.c (draw_cfg_nodes_no_loops): Same.
5246 (draw_cfg_nodes_for_loop): Same.
5247 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5249 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5250 * hsa-dump.c (dump_hsa_cfun): Same.
5251 * hsa-gen.c (gen_function_def_parameters): Same.
5252 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5253 * input.c (dump_line_table_statistics): Same.
5256 * internal-fn.c (get_multi_vector_move): Same.
5257 (expand_load_lanes_optab_fn): Same.
5258 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5259 (expand_GOMP_SIMT_EXIT): Same.
5260 (expand_GOMP_SIMT_LAST_LANE): Same.
5261 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5262 (expand_GOMP_SIMT_VOTE_ANY): Same.
5263 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5264 (expand_GOMP_SIMT_XCHG_IDX): Same.
5265 (expand_addsub_overflow): Same.
5266 (expand_neg_overflow): Same.
5267 (expand_mul_overflow): Same.
5268 (expand_call_mem_ref): Same.
5269 (expand_mask_load_optab_fn): Same.
5270 (expand_scatter_store_optab_fn): Same.
5271 (expand_gather_load_optab_fn): Same.
5272 * ipa-cp.c (ipa_get_parm_lattices): Same.
5273 (print_all_lattices): Same.
5274 (ignore_edge_p): Same.
5275 (build_toporder_info): Same.
5276 (free_toporder_info): Same.
5277 (push_node_to_stack): Same.
5278 (ipcp_lattice<valtype>::set_contains_variable): Same.
5279 (set_agg_lats_to_bottom): Same.
5280 (ipcp_bits_lattice::meet_with): Same.
5281 (set_single_call_flag): Same.
5282 (initialize_node_lattices): Same.
5283 (ipa_get_jf_ancestor_result): Same.
5284 (ipcp_verify_propagated_values): Same.
5285 (propagate_scalar_across_jump_function): Same.
5286 (propagate_context_across_jump_function): Same.
5287 (propagate_bits_across_jump_function): Same.
5288 (ipa_vr_operation_and_type_effects): Same.
5289 (propagate_vr_across_jump_function): Same.
5290 (set_check_aggs_by_ref): Same.
5291 (set_chain_of_aglats_contains_variable): Same.
5292 (merge_aggregate_lattices): Same.
5293 (agg_pass_through_permissible_p): Same.
5294 (propagate_aggs_across_jump_function): Same.
5295 (call_passes_through_thunk_p): Same.
5296 (propagate_constants_across_call): Same.
5297 (devirtualization_time_bonus): Same.
5298 (good_cloning_opportunity_p): Same.
5299 (context_independent_aggregate_values): Same.
5300 (gather_context_independent_values): Same.
5301 (perform_estimation_of_a_value): Same.
5302 (estimate_local_effects): Same.
5303 (value_topo_info<valtype>::add_val): Same.
5304 (add_all_node_vals_to_toposort): Same.
5305 (value_topo_info<valtype>::propagate_effects): Same.
5306 (ipcp_propagate_stage): Same.
5307 (ipcp_discover_new_direct_edges): Same.
5308 (same_node_or_its_all_contexts_clone_p): Same.
5309 (cgraph_edge_brings_value_p): Same.
5310 (gather_edges_for_value): Same.
5311 (create_specialized_node): Same.
5312 (find_more_scalar_values_for_callers_subset): Same.
5313 (find_more_contexts_for_caller_subset): Same.
5314 (copy_plats_to_inter): Same.
5315 (intersect_aggregates_with_edge): Same.
5316 (find_aggregate_values_for_callers_subset): Same.
5317 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5318 (decide_about_value): Same.
5319 (decide_whether_version_node): Same.
5320 (spread_undeadness): Same.
5321 (identify_dead_nodes): Same.
5322 (ipcp_store_vr_results): Same.
5323 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5324 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5325 (redirect_to_unreachable): Same.
5326 (edge_set_predicate): Same.
5327 (evaluate_conditions_for_known_args): Same.
5328 (evaluate_properties_for_edge): Same.
5329 (ipa_fn_summary_t::duplicate): Same.
5330 (ipa_call_summary_t::duplicate): Same.
5331 (dump_ipa_call_summary): Same.
5332 (ipa_dump_fn_summary): Same.
5333 (eliminated_by_inlining_prob): Same.
5334 (set_cond_stmt_execution_predicate): Same.
5335 (set_switch_stmt_execution_predicate): Same.
5336 (compute_bb_predicates): Same.
5337 (will_be_nonconstant_expr_predicate): Same.
5338 (phi_result_unknown_predicate): Same.
5339 (analyze_function_body): Same.
5340 (compute_fn_summary): Same.
5341 (estimate_edge_devirt_benefit): Same.
5342 (estimate_edge_size_and_time): Same.
5343 (estimate_calls_size_and_time): Same.
5344 (estimate_node_size_and_time): Same.
5345 (remap_edge_change_prob): Same.
5346 (remap_edge_summaries): Same.
5347 (ipa_merge_fn_summary_after_inlining): Same.
5348 (ipa_fn_summary_generate): Same.
5349 (inline_read_section): Same.
5350 (ipa_fn_summary_read): Same.
5351 (ipa_fn_summary_write): Same.
5352 * ipa-fnsummary.h: Same.
5353 * ipa-hsa.c (ipa_hsa_read_section): Same.
5354 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
5355 * ipa-icf.c (sem_function::param_used_p): Same.
5356 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
5357 * ipa-inline.c (edge_badness): Same.
5358 (inline_small_functions): Same.
5359 * ipa-polymorphic-call.c
5360 (ipa_polymorphic_call_context::stream_out): Same.
5361 * ipa-predicate.c (predicate::remap_after_duplication): Same.
5362 (predicate::remap_after_inlining): Same.
5363 (predicate::stream_out): Same.
5364 * ipa-predicate.h: Same.
5365 * ipa-profile.c (ipa_profile_read_summary): Same.
5366 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
5367 (count_formal_params): Same.
5368 (ipa_dump_param): Same.
5369 (ipa_alloc_node_params): Same.
5370 (ipa_print_node_jump_functions_for_edge): Same.
5371 (ipa_print_node_jump_functions): Same.
5372 (ipa_load_from_parm_agg): Same.
5373 (get_ancestor_addr_info): Same.
5374 (ipa_compute_jump_functions_for_edge): Same.
5375 (ipa_analyze_virtual_call_uses): Same.
5376 (ipa_analyze_stmt_uses): Same.
5377 (ipa_analyze_params_uses_in_bb): Same.
5378 (update_jump_functions_after_inlining): Same.
5379 (try_decrement_rdesc_refcount): Same.
5380 (ipa_impossible_devirt_target): Same.
5381 (update_indirect_edges_after_inlining): Same.
5382 (combine_controlled_uses_counters): Same.
5383 (ipa_edge_args_sum_t::duplicate): Same.
5384 (ipa_write_jump_function): Same.
5385 (ipa_write_indirect_edge_info): Same.
5386 (ipa_write_node_info): Same.
5387 (ipa_read_edge_info): Same.
5388 (ipa_prop_read_section): Same.
5389 (read_replacements_section): Same.
5390 * ipa-prop.h (ipa_get_param_count): Same.
5391 (ipa_get_param): Same.
5392 (ipa_get_type): Same.
5393 (ipa_get_param_move_cost): Same.
5394 (ipa_set_param_used): Same.
5395 (ipa_get_controlled_uses): Same.
5396 (ipa_set_controlled_uses): Same.
5397 (ipa_get_cs_argument_count): Same.
5398 * ipa-pure-const.c (analyze_function): Same.
5399 (pure_const_read_summary): Same.
5401 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
5402 * ipa-split.c (test_nonssa_use): Same.
5403 (dump_split_point): Same.
5404 (dominated_by_forbidden): Same.
5405 (split_part_set_ssa_name_p): Same.
5406 (find_split_points): Same.
5407 * ira-build.c (finish_loop_tree_nodes): Same.
5408 (low_pressure_loop_node_p): Same.
5409 * ira-color.c (ira_reuse_stack_slot): Same.
5411 * ira.c (setup_reg_equiv): Same.
5412 (print_insn_chain): Same.
5414 * loop-doloop.c (doloop_condition_get): Same.
5416 (record_reg_sets): Same.
5417 (doloop_optimize): Same.
5418 * loop-init.c (loop_optimizer_init): Same.
5419 (fix_loop_structure): Same.
5420 * loop-invariant.c (merge_identical_invariants): Same.
5421 (compute_always_reached): Same.
5423 (may_assign_reg_p): Same.
5424 (find_invariants_bb): Same.
5425 (find_invariants_body): Same.
5426 (replace_uses): Same.
5427 (can_move_invariant_reg): Same.
5428 (free_inv_motion_data): Same.
5429 (move_single_loop_invariants): Same.
5430 (change_pressure): Same.
5431 (mark_ref_regs): Same.
5432 (calculate_loop_reg_pressure): Same.
5433 * loop-iv.c (biv_entry_hasher::equal): Same.
5434 (iv_extend_to_rtx_code): Same.
5435 (check_iv_ref_table_size): Same.
5436 (clear_iv_info): Same.
5437 (latch_dominating_def): Same.
5438 (iv_get_reaching_def): Same.
5439 (iv_constant): Same.
5445 (get_biv_step): Same.
5447 (analyzed_for_bivness_p): Same.
5449 (iv_analyze_biv): Same.
5450 (iv_analyze_expr): Same.
5451 (iv_analyze_def): Same.
5452 (iv_analyze_op): Same.
5454 (iv_analyze_result): Same.
5456 (eliminate_implied_conditions): Same.
5457 (simplify_using_initial_values): Same.
5458 (shorten_into_mode): Same.
5459 (canonicalize_iv_subregs): Same.
5460 (determine_max_iter): Same.
5461 (check_simple_exit): Same.
5462 (find_simple_exit): Same.
5463 (get_simple_loop_desc): Same.
5464 * loop-unroll.c (report_unroll): Same.
5465 (decide_unrolling): Same.
5466 (unroll_loops): Same.
5467 (loop_exit_at_end_p): Same.
5468 (decide_unroll_constant_iterations): Same.
5469 (unroll_loop_constant_iterations): Same.
5470 (compare_and_jump_seq): Same.
5471 (unroll_loop_runtime_iterations): Same.
5472 (decide_unroll_stupid): Same.
5473 (unroll_loop_stupid): Same.
5474 (referenced_in_one_insn_in_loop_p): Same.
5475 (reset_debug_uses_in_loop): Same.
5476 (analyze_iv_to_split_insn): Same.
5477 * lra-eliminations.c (lra_debug_elim_table): Same.
5478 (setup_can_eliminate): Same.
5480 (lra_get_elimination_hard_regno): Same.
5481 (lra_eliminate_regs_1): Same.
5482 (eliminate_regs_in_insn): Same.
5483 (update_reg_eliminate): Same.
5484 (init_elimination): Same.
5485 (lra_eliminate): Same.
5487 * lra-lives.c (initiate_live_solver): Same.
5488 * lra-remat.c (create_remat_bb_data): Same.
5489 * lra-spills.c (lra_spill): Same.
5490 * lra.c (lra_set_insn_recog_data): Same.
5491 (lra_set_used_insn_alternative_by_uid): Same.
5492 (init_reg_info): Same.
5493 (expand_reg_info): Same.
5494 * lto-cgraph.c (output_symtab): Same.
5495 (read_identifier): Same.
5496 (get_alias_symbol): Same.
5498 (input_varpool_node): Same.
5501 (input_cgraph_1): Same.
5503 (input_symtab): Same.
5504 (input_offload_tables): Same.
5505 (output_cgraph_opt_summary): Same.
5506 (input_edge_opt_summary): Same.
5507 (input_cgraph_opt_section): Same.
5508 * lto-section-in.c (lto_free_raw_section_data): Same.
5509 (lto_create_simple_input_block): Same.
5510 (lto_free_function_in_decl_state_for_node): Same.
5511 * lto-streamer-in.c (lto_tag_check_set): Same.
5512 (lto_location_cache::revert_location_cache): Same.
5513 (lto_location_cache::input_location): Same.
5514 (lto_input_location): Same.
5515 (stream_input_location_now): Same.
5516 (lto_input_tree_ref): Same.
5517 (lto_input_eh_catch_list): Same.
5518 (input_eh_region): Same.
5519 (lto_init_eh): Same.
5520 (make_new_block): Same.
5522 (fixup_call_stmt_edges): Same.
5523 (input_struct_function_base): Same.
5524 (input_function): Same.
5525 (lto_read_body_or_constructor): Same.
5526 (lto_read_tree_1): Same.
5527 (lto_read_tree): Same.
5528 (lto_input_scc): Same.
5529 (lto_input_tree_1): Same.
5530 (lto_input_toplevel_asms): Same.
5531 (lto_input_mode_table): Same.
5532 (lto_reader_init): Same.
5533 (lto_data_in_create): Same.
5534 * lto-streamer-out.c (output_cfg): Same.
5535 * lto-streamer.h: Same.
5536 * modulo-sched.c (duplicate_insns_of_cycles): Same.
5537 (generate_prolog_epilog): Same.
5538 (mark_loop_unsched): Same.
5539 (dump_insn_location): Same.
5540 (loop_canon_p): Same.
5541 (sms_schedule): Same.
5542 * omp-expand.c (expand_omp_for_ordered_loops): Same.
5543 (expand_omp_for_generic): Same.
5544 (expand_omp_for_static_nochunk): Same.
5545 (expand_omp_for_static_chunk): Same.
5546 (expand_omp_simd): Same.
5547 (expand_omp_taskloop_for_inner): Same.
5548 (expand_oacc_for): Same.
5549 (expand_omp_atomic_pipeline): Same.
5550 (mark_loops_in_oacc_kernels_region): Same.
5551 * omp-offload.c (oacc_xform_loop): Same.
5552 * omp-simd-clone.c (simd_clone_adjust): Same.
5553 * optabs-query.c (get_traditional_extraction_insn): Same.
5554 * optabs.c (expand_vector_broadcast): Same.
5555 (expand_binop_directly): Same.
5556 (expand_twoval_unop): Same.
5557 (expand_twoval_binop): Same.
5558 (expand_unop_direct): Same.
5559 (emit_indirect_jump): Same.
5560 (emit_conditional_move): Same.
5561 (emit_conditional_neg_or_complement): Same.
5562 (emit_conditional_add): Same.
5563 (vector_compare_rtx): Same.
5564 (expand_vec_perm_1): Same.
5565 (expand_vec_perm_const): Same.
5566 (expand_vec_cond_expr): Same.
5567 (expand_vec_series_expr): Same.
5568 (maybe_emit_atomic_exchange): Same.
5569 (maybe_emit_sync_lock_test_and_set): Same.
5570 (expand_atomic_compare_and_swap): Same.
5571 (expand_atomic_load): Same.
5572 (expand_atomic_store): Same.
5573 (maybe_emit_op): Same.
5574 (valid_multiword_target_p): Same.
5575 (create_integer_operand): Same.
5576 (maybe_legitimize_operand_same_code): Same.
5577 (maybe_legitimize_operand): Same.
5578 (create_convert_operand_from_type): Same.
5579 (can_reuse_operands_p): Same.
5580 (maybe_legitimize_operands): Same.
5581 (maybe_gen_insn): Same.
5582 (maybe_expand_insn): Same.
5583 (maybe_expand_jump_insn): Same.
5584 (expand_insn): Same.
5585 * optabs.h (create_expand_operand): Same.
5586 (create_fixed_operand): Same.
5587 (create_output_operand): Same.
5588 (create_input_operand): Same.
5589 (create_convert_operand_to): Same.
5590 (create_convert_operand_from): Same.
5593 * predict.c (optimize_insn_for_speed_p): Same.
5594 (optimize_loop_for_size_p): Same.
5595 (optimize_loop_for_speed_p): Same.
5596 (optimize_loop_nest_for_speed_p): Same.
5597 (get_base_value): Same.
5598 (predicted_by_loop_heuristics_p): Same.
5599 (predict_extra_loop_exits): Same.
5600 (predict_loops): Same.
5601 (predict_paths_for_bb): Same.
5602 (predict_paths_leading_to): Same.
5603 (propagate_freq): Same.
5604 (pass_profile::execute): Same.
5606 * profile-count.c (profile_count::differs_from_p): Same.
5607 (profile_probability::differs_lot_from_p): Same.
5608 * profile-count.h: Same.
5609 * profile.c (branch_prob): Same.
5610 * regrename.c (free_chain_data): Same.
5611 (mark_conflict): Same.
5612 (create_new_chain): Same.
5613 (merge_overlapping_regs): Same.
5614 (init_rename_info): Same.
5615 (merge_chains): Same.
5616 (regrename_analyze): Same.
5617 (regrename_do_replace): Same.
5618 (scan_rtx_reg): Same.
5619 (record_out_operands): Same.
5620 (build_def_use): Same.
5621 * regrename.h: Same.
5623 * reload1.c (init_reload): Same.
5624 (maybe_fix_stack_asms): Same.
5625 (copy_reloads): Same.
5626 (count_pseudo): Same.
5627 (count_spilled_pseudo): Same.
5629 (find_reload_regs): Same.
5630 (select_reload_regs): Same.
5631 (spill_hard_reg): Same.
5632 (fixup_eh_region_note): Same.
5633 (set_reload_reg): Same.
5634 (allocate_reload_reg): Same.
5635 (compute_reload_subreg_offset): Same.
5636 (reload_adjust_reg_for_icode): Same.
5637 (emit_input_reload_insns): Same.
5638 (emit_output_reload_insns): Same.
5639 (do_input_reload): Same.
5640 (inherit_piecemeal_p): Same.
5642 * sanopt.c (maybe_get_dominating_check): Same.
5643 (maybe_optimize_ubsan_ptr_ifn): Same.
5644 (can_remove_asan_check): Same.
5645 (maybe_optimize_asan_check_ifn): Same.
5646 (sanopt_optimize_walker): Same.
5647 * sched-deps.c (add_dependence_list): Same.
5648 (chain_to_prev_insn): Same.
5649 (add_insn_mem_dependence): Same.
5650 (create_insn_reg_set): Same.
5651 (maybe_extend_reg_info_p): Same.
5652 (sched_analyze_reg): Same.
5653 (sched_analyze_1): Same.
5654 (get_implicit_reg_pending_clobbers): Same.
5655 (chain_to_prev_insn_p): Same.
5656 (deps_analyze_insn): Same.
5657 (deps_start_bb): Same.
5658 (sched_free_deps): Same.
5660 (init_deps_reg_last): Same.
5662 * sched-ebb.c: Same.
5663 * sched-int.h: Same.
5664 * sched-rgn.c (add_branch_dependences): Same.
5665 (concat_insn_mem_list): Same.
5667 (sched_rgn_compute_dependencies): Same.
5668 * sel-sched-ir.c (reset_target_context): Same.
5669 (copy_deps_context): Same.
5670 (init_id_from_df): Same.
5671 (has_dependence_p): Same.
5672 (change_loops_latches): Same.
5673 (bb_top_order_comparator): Same.
5674 (make_region_from_loop_preheader): Same.
5675 (sel_init_pipelining): Same.
5676 (get_loop_nest_for_rgn): Same.
5677 (make_regions_from_the_rest): Same.
5678 (sel_is_loop_preheader_p): Same.
5679 * sel-sched-ir.h (inner_loop_header_p): Same.
5680 (get_all_loop_exits): Same.
5682 * sese.c (sese_build_liveouts): Same.
5683 (sese_insert_phis_for_liveouts): Same.
5684 * sese.h (defined_in_sese_p): Same.
5685 * sreal.c (sreal::stream_out): Same.
5687 * streamer-hooks.h: Same.
5688 * target-globals.c (save_target_globals): Same.
5689 * target-globals.h: Same.
5692 * targhooks.c (default_has_ifunc_p): Same.
5693 (default_empty_mask_is_expensive): Same.
5694 (default_init_cost): Same.
5695 * targhooks.h: Same.
5697 * tree-affine.c (aff_combination_mult): Same.
5698 (aff_combination_expand): Same.
5699 (aff_combination_constant_multiple_p): Same.
5700 * tree-affine.h: Same.
5701 * tree-cfg.c (build_gimple_cfg): Same.
5702 (replace_loop_annotate_in_block): Same.
5703 (replace_uses_by): Same.
5705 (dump_cfg_stats): Same.
5706 (gimple_duplicate_sese_region): Same.
5707 (gimple_duplicate_sese_tail): Same.
5708 (move_block_to_fn): Same.
5709 (replace_block_vars_by_duplicates): Same.
5710 (move_sese_region_to_fn): Same.
5711 (print_loops_bb): Same.
5713 (print_loops): Same.
5715 (debug_loops): Same.
5717 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
5718 (chrec_fold_multiply_poly_poly): Same.
5719 (chrec_evaluate): Same.
5720 (chrec_component_in_loop_num): Same.
5721 (reset_evolution_in_loop): Same.
5722 (is_multivariate_chrec): Same.
5723 (chrec_contains_symbols): Same.
5724 (nb_vars_in_chrec): Same.
5725 (chrec_convert_1): Same.
5726 (chrec_convert_aggressive): Same.
5727 * tree-chrec.h: Same.
5728 * tree-core.h: Same.
5729 * tree-data-ref.c (dump_data_dependence_relation): Same.
5730 (canonicalize_base_object_address): Same.
5731 (data_ref_compare_tree): Same.
5732 (prune_runtime_alias_test_list): Same.
5733 (get_segment_min_max): Same.
5734 (create_intersect_range_checks): Same.
5735 (conflict_fn_no_dependence): Same.
5736 (object_address_invariant_in_loop_p): Same.
5737 (analyze_ziv_subscript): Same.
5738 (analyze_siv_subscript_cst_affine): Same.
5739 (analyze_miv_subscript): Same.
5740 (analyze_overlapping_iterations): Same.
5741 (build_classic_dist_vector_1): Same.
5742 (add_other_self_distances): Same.
5743 (same_access_functions): Same.
5744 (build_classic_dir_vector): Same.
5745 (subscript_dependence_tester_1): Same.
5746 (subscript_dependence_tester): Same.
5747 (access_functions_are_affine_or_constant_p): Same.
5748 (get_references_in_stmt): Same.
5749 (loop_nest_has_data_refs): Same.
5750 (graphite_find_data_references_in_stmt): Same.
5751 (find_data_references_in_bb): Same.
5752 (get_base_for_alignment): Same.
5753 (find_loop_nest_1): Same.
5754 (find_loop_nest): Same.
5755 * tree-data-ref.h (dr_alignment): Same.
5756 (ddr_dependence_level): Same.
5757 * tree-if-conv.c (fold_build_cond_expr): Same.
5758 (add_to_predicate_list): Same.
5759 (add_to_dst_predicate_list): Same.
5760 (phi_convertible_by_degenerating_args): Same.
5761 (idx_within_array_bound): Same.
5762 (all_preds_critical_p): Same.
5763 (pred_blocks_visited_p): Same.
5764 (predicate_bbs): Same.
5765 (build_region): Same.
5766 (if_convertible_loop_p_1): Same.
5767 (is_cond_scalar_reduction): Same.
5768 (predicate_scalar_phi): Same.
5769 (remove_conditions_and_labels): Same.
5770 (combine_blocks): Same.
5771 (version_loop_for_if_conversion): Same.
5772 (versionable_outer_loop_p): Same.
5773 (ifcvt_local_dce): Same.
5774 (tree_if_conversion): Same.
5775 (pass_if_conversion::gate): Same.
5776 * tree-if-conv.h: Same.
5777 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
5778 * tree-loop-distribution.c (bb_top_order_cmp): Same.
5780 (stmt_has_scalar_dependences_outside_loop): Same.
5781 (copy_loop_before): Same.
5782 (create_bb_after_loop): Same.
5783 (const_with_all_bytes_same): Same.
5784 (generate_memset_builtin): Same.
5785 (generate_memcpy_builtin): Same.
5786 (destroy_loop): Same.
5787 (build_rdg_partition_for_vertex): Same.
5788 (compute_access_range): Same.
5789 (data_ref_segment_size): Same.
5790 (latch_dominated_by_data_ref): Same.
5791 (compute_alias_check_pairs): Same.
5792 (fuse_memset_builtins): Same.
5793 (finalize_partitions): Same.
5794 (find_seed_stmts_for_distribution): Same.
5795 (prepare_perfect_loop_nest): Same.
5796 * tree-parloops.c (lambda_transform_legal_p): Same.
5797 (loop_parallel_p): Same.
5798 (reduc_stmt_res): Same.
5799 (add_field_for_name): Same.
5800 (create_call_for_reduction_1): Same.
5801 (replace_uses_in_bb_by): Same.
5802 (transform_to_exit_first_loop_alt): Same.
5803 (try_transform_to_exit_first_loop_alt): Same.
5804 (transform_to_exit_first_loop): Same.
5806 (gen_parallel_loop): Same.
5807 (gather_scalar_reductions): Same.
5808 (get_omp_data_i_param): Same.
5809 (try_create_reduction_list): Same.
5810 (oacc_entry_exit_single_gang): Same.
5811 (parallelize_loops): Same.
5812 * tree-pass.h: Same.
5813 * tree-predcom.c (determine_offset): Same.
5814 (last_always_executed_block): Same.
5815 (split_data_refs_to_components): Same.
5816 (suitable_component_p): Same.
5817 (valid_initializer_p): Same.
5818 (find_looparound_phi): Same.
5819 (insert_looparound_copy): Same.
5820 (add_looparound_copies): Same.
5821 (determine_roots_comp): Same.
5822 (predcom_tmp_var): Same.
5823 (initialize_root_vars): Same.
5824 (initialize_root_vars_store_elim_1): Same.
5825 (initialize_root_vars_store_elim_2): Same.
5826 (finalize_eliminated_stores): Same.
5827 (initialize_root_vars_lm): Same.
5828 (remove_stmt): Same.
5829 (determine_unroll_factor): Same.
5830 (execute_pred_commoning_cbck): Same.
5831 (base_names_in_chain_on): Same.
5832 (combine_chains): Same.
5833 (pcom_stmt_dominates_stmt_p): Same.
5834 (try_combine_chains): Same.
5835 (prepare_initializers_chain_store_elim): Same.
5836 (prepare_initializers_chain): Same.
5837 (prepare_initializers): Same.
5838 (prepare_finalizers_chain): Same.
5839 (prepare_finalizers): Same.
5840 (insert_init_seqs): Same.
5841 * tree-scalar-evolution.c (loop_phi_node_p): Same.
5842 (compute_overall_effect_of_inner_loop): Same.
5843 (add_to_evolution_1): Same.
5844 (add_to_evolution): Same.
5845 (follow_ssa_edge_binary): Same.
5846 (follow_ssa_edge_expr): Same.
5847 (backedge_phi_arg_p): Same.
5848 (follow_ssa_edge_in_condition_phi_branch): Same.
5849 (follow_ssa_edge_in_condition_phi): Same.
5850 (follow_ssa_edge_inner_loop_phi): Same.
5851 (follow_ssa_edge): Same.
5852 (analyze_evolution_in_loop): Same.
5853 (analyze_initial_condition): Same.
5854 (interpret_loop_phi): Same.
5855 (interpret_condition_phi): Same.
5856 (interpret_rhs_expr): Same.
5857 (interpret_expr): Same.
5858 (interpret_gimple_assign): Same.
5859 (analyze_scalar_evolution_1): Same.
5860 (analyze_scalar_evolution): Same.
5861 (analyze_scalar_evolution_for_address_of): Same.
5862 (get_instantiated_value_entry): Same.
5863 (loop_closed_phi_def): Same.
5864 (instantiate_scev_name): Same.
5865 (instantiate_scev_poly): Same.
5866 (instantiate_scev_binary): Same.
5867 (instantiate_scev_convert): Same.
5868 (instantiate_scev_not): Same.
5869 (instantiate_scev_r): Same.
5870 (instantiate_scev): Same.
5871 (resolve_mixers): Same.
5872 (initialize_scalar_evolutions_analyzer): Same.
5873 (scev_reset_htab): Same.
5875 (derive_simple_iv_with_niters): Same.
5876 (simple_iv_with_niters): Same.
5877 (expression_expensive_p): Same.
5878 (final_value_replacement_loop): Same.
5879 * tree-scalar-evolution.h (block_before_loop): Same.
5880 * tree-ssa-address.h: Same.
5881 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
5882 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
5883 (record_edge_info): Same.
5884 * tree-ssa-live.c (var_map_base_fini): Same.
5885 (remove_unused_locals): Same.
5886 * tree-ssa-live.h: Same.
5887 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
5888 (pass_ch_vect::execute): Same.
5889 (pass_ch::process_loop_p): Same.
5890 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
5891 (movement_possibility): Same.
5892 (outermost_invariant_loop): Same.
5894 (determine_max_movement): Same.
5895 (invariantness_dom_walker::before_dom_children): Same.
5896 (move_computations): Same.
5897 (may_move_till): Same.
5898 (force_move_till_op): Same.
5899 (force_move_till): Same.
5900 (memref_free): Same.
5901 (record_mem_ref_loc): Same.
5902 (set_ref_stored_in_loop): Same.
5903 (mark_ref_stored): Same.
5904 (sort_bbs_in_loop_postorder_cmp): Same.
5905 (sort_locs_in_loop_postorder_cmp): Same.
5906 (analyze_memory_references): Same.
5907 (mem_refs_may_alias_p): Same.
5908 (find_ref_loc_in_loop_cmp): Same.
5909 (rewrite_mem_ref_loc::operator): Same.
5910 (first_mem_ref_loc_1::operator): Same.
5911 (sm_set_flag_if_changed::operator): Same.
5912 (execute_sm_if_changed_flag_set): Same.
5914 (hoist_memory_references): Same.
5915 (ref_always_accessed::operator): Same.
5916 (refs_independent_p): Same.
5917 (record_dep_loop): Same.
5918 (ref_indep_loop_p_1): Same.
5919 (ref_indep_loop_p): Same.
5920 (can_sm_ref_p): Same.
5921 (find_refs_for_sm): Same.
5922 (loop_suitable_for_sm): Same.
5923 (store_motion_loop): Same.
5924 (store_motion): Same.
5925 (fill_always_executed_in): Same.
5926 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
5927 (estimated_unrolled_size): Same.
5928 (loop_edge_to_cancel): Same.
5929 (remove_exits_and_undefined_stmts): Same.
5930 (remove_redundant_iv_tests): Same.
5931 (unloop_loops): Same.
5932 (estimated_peeled_sequence_size): Same.
5933 (try_peel_loop): Same.
5934 (canonicalize_loop_induction_variables): Same.
5935 (canonicalize_induction_variables): Same.
5936 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
5938 (stmt_after_inc_pos): Same.
5939 (contains_abnormal_ssa_name_p): Same.
5940 (niter_for_exit): Same.
5943 (find_givs_in_bb): Same.
5944 (find_induction_variables): Same.
5945 (find_interesting_uses_cond): Same.
5946 (outermost_invariant_loop_for_expr): Same.
5947 (idx_find_step): Same.
5948 (add_candidate_1): Same.
5949 (add_iv_candidate_derived_from_uses): Same.
5950 (alloc_use_cost_map): Same.
5951 (prepare_decl_rtl): Same.
5952 (generic_predict_doloop_p): Same.
5953 (computation_cost): Same.
5954 (determine_common_wider_type): Same.
5955 (get_computation_aff_1): Same.
5956 (get_use_type): Same.
5957 (determine_group_iv_cost_address): Same.
5959 (difference_cannot_overflow_p): Same.
5960 (may_eliminate_iv): Same.
5961 (determine_set_costs): Same.
5962 (cheaper_cost_pair): Same.
5963 (compare_cost_pair): Same.
5964 (iv_ca_cand_for_group): Same.
5965 (iv_ca_recount_cost): Same.
5966 (iv_ca_set_remove_invs): Same.
5967 (iv_ca_set_no_cp): Same.
5968 (iv_ca_set_add_invs): Same.
5969 (iv_ca_set_cp): Same.
5970 (iv_ca_add_group): Same.
5972 (iv_ca_compare_deps): Same.
5973 (iv_ca_delta_reverse): Same.
5974 (iv_ca_delta_commit): Same.
5975 (iv_ca_cand_used_p): Same.
5976 (iv_ca_delta_free): Same.
5980 (iv_ca_extend): Same.
5981 (iv_ca_narrow): Same.
5982 (iv_ca_prune): Same.
5983 (cheaper_cost_with_cand): Same.
5984 (iv_ca_replace): Same.
5985 (try_add_cand_for): Same.
5986 (get_initial_solution): Same.
5987 (try_improve_iv_set): Same.
5988 (find_optimal_iv_set_1): Same.
5989 (create_new_iv): Same.
5990 (rewrite_use_compare): Same.
5991 (remove_unused_ivs): Same.
5992 (determine_scaling_factor): Same.
5993 * tree-ssa-loop-ivopts.h: Same.
5994 * tree-ssa-loop-manip.c (create_iv): Same.
5995 (compute_live_loop_exits): Same.
5996 (add_exit_phi): Same.
5997 (add_exit_phis): Same.
5998 (find_uses_to_rename_use): Same.
5999 (find_uses_to_rename_def): Same.
6000 (find_uses_to_rename_in_loop): Same.
6001 (rewrite_into_loop_closed_ssa): Same.
6002 (check_loop_closed_ssa_bb): Same.
6003 (split_loop_exit_edge): Same.
6005 (ip_normal_pos): Same.
6006 (copy_phi_node_args): Same.
6007 (gimple_duplicate_loop_to_header_edge): Same.
6008 (can_unroll_loop_p): Same.
6009 (determine_exit_conditions): Same.
6010 (scale_dominated_blocks_in_loop): Same.
6011 (niter_for_unrolled_loop): Same.
6012 (tree_transform_and_unroll_loop): Same.
6013 (rewrite_all_phi_nodes_with_iv): Same.
6014 * tree-ssa-loop-manip.h: Same.
6015 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6016 (number_of_iterations_ne): Same.
6017 (assert_no_overflow_lt): Same.
6018 (assert_loop_rolls_lt): Same.
6019 (number_of_iterations_lt): Same.
6020 (adjust_cond_for_loop_until_wrap): Same.
6021 (tree_simplify_using_condition): Same.
6022 (simplify_using_initial_conditions): Same.
6023 (simplify_using_outer_evolutions): Same.
6024 (loop_only_exit_p): Same.
6025 (ssa_defined_by_minus_one_stmt_p): Same.
6026 (number_of_iterations_popcount): Same.
6027 (number_of_iterations_exit): Same.
6028 (find_loop_niter): Same.
6029 (finite_loop_p): Same.
6030 (chain_of_csts_start): Same.
6031 (get_val_for): Same.
6032 (loop_niter_by_eval): Same.
6033 (derive_constant_upper_bound_ops): Same.
6034 (do_warn_aggressive_loop_optimizations): Same.
6035 (record_estimate): Same.
6036 (get_cst_init_from_scev): Same.
6037 (record_nonwrapping_iv): Same.
6038 (idx_infer_loop_bounds): Same.
6039 (infer_loop_bounds_from_ref): Same.
6040 (infer_loop_bounds_from_array): Same.
6041 (infer_loop_bounds_from_pointer_arith): Same.
6042 (infer_loop_bounds_from_signedness): Same.
6043 (bound_index): Same.
6044 (discover_iteration_bound_by_body_walk): Same.
6045 (maybe_lower_iteration_bound): Same.
6046 (estimate_numbers_of_iterations): Same.
6047 (estimated_loop_iterations): Same.
6048 (estimated_loop_iterations_int): Same.
6049 (max_loop_iterations): Same.
6050 (max_loop_iterations_int): Same.
6051 (likely_max_loop_iterations): Same.
6052 (likely_max_loop_iterations_int): Same.
6053 (estimated_stmt_executions_int): Same.
6054 (max_stmt_executions): Same.
6055 (likely_max_stmt_executions): Same.
6056 (estimated_stmt_executions): Same.
6057 (stmt_dominates_stmt_p): Same.
6058 (nowrap_type_p): Same.
6059 (loop_exits_before_overflow): Same.
6060 (scev_var_range_cant_overflow): Same.
6061 (scev_probably_wraps_p): Same.
6062 (free_numbers_of_iterations_estimates): Same.
6063 * tree-ssa-loop-niter.h: Same.
6064 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6065 (idx_analyze_ref): Same.
6066 (analyze_ref): Same.
6067 (gather_memory_references_ref): Same.
6068 (mark_nontemporal_store): Same.
6069 (emit_mfence_after_loop): Same.
6070 (may_use_storent_in_loop_p): Same.
6071 (mark_nontemporal_stores): Same.
6072 (should_unroll_loop_p): Same.
6073 (volume_of_dist_vector): Same.
6074 (add_subscript_strides): Same.
6075 (self_reuse_distance): Same.
6076 (insn_to_prefetch_ratio_too_small_p): Same.
6077 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6078 (patch_loop_exit): Same.
6079 (find_or_create_guard_phi): Same.
6080 (easy_exit_values): Same.
6081 (connect_loop_phis): Same.
6082 (connect_loops): Same.
6083 (compute_new_first_bound): Same.
6085 (tree_ssa_split_loops): Same.
6086 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6087 (is_maybe_undefined): Same.
6088 (tree_may_unswitch_on): Same.
6089 (simplify_using_entry_checks): Same.
6090 (tree_unswitch_single_loop): Same.
6091 (tree_unswitch_loop): Same.
6092 (tree_unswitch_outer_loop): Same.
6093 (empty_bb_without_guard_p): Same.
6094 (used_outside_loop_p): Same.
6095 (get_vop_from_header): Same.
6096 (hoist_guard): Same.
6097 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6098 (get_lsm_tmp_name): Same.
6099 * tree-ssa-loop.h: Same.
6100 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6101 (build_and_add_sum): Same.
6102 (no_side_effect_bb): Same.
6104 (linearize_expr): Same.
6105 (should_break_up_subtract): Same.
6106 (linearize_expr_tree): Same.
6107 * tree-ssa-scopedtables.c: Same.
6108 * tree-ssa-scopedtables.h: Same.
6109 * tree-ssa-structalias.c (condense_visit): Same.
6110 (label_visit): Same.
6111 (dump_pred_graph): Same.
6112 (perform_var_substitution): Same.
6113 (move_complex_constraints): Same.
6114 (remove_preds_and_fake_succs): Same.
6115 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6116 (determine_bb_domination_status): Same.
6117 (duplicate_thread_path): Same.
6118 (thread_through_all_blocks): Same.
6119 * tree-ssa-threadupdate.h: Same.
6120 * tree-streamer-in.c (streamer_read_string_cst): Same.
6121 (input_identifier): Same.
6122 (unpack_ts_type_common_value_fields): Same.
6123 (unpack_ts_block_value_fields): Same.
6124 (unpack_ts_translation_unit_decl_value_fields): Same.
6125 (unpack_ts_omp_clause_value_fields): Same.
6126 (streamer_read_tree_bitfields): Same.
6127 (streamer_alloc_tree): Same.
6128 (lto_input_ts_common_tree_pointers): Same.
6129 (lto_input_ts_vector_tree_pointers): Same.
6130 (lto_input_ts_poly_tree_pointers): Same.
6131 (lto_input_ts_complex_tree_pointers): Same.
6132 (lto_input_ts_decl_minimal_tree_pointers): Same.
6133 (lto_input_ts_decl_common_tree_pointers): Same.
6134 (lto_input_ts_decl_non_common_tree_pointers): Same.
6135 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6136 (lto_input_ts_field_decl_tree_pointers): Same.
6137 (lto_input_ts_function_decl_tree_pointers): Same.
6138 (lto_input_ts_type_common_tree_pointers): Same.
6139 (lto_input_ts_type_non_common_tree_pointers): Same.
6140 (lto_input_ts_list_tree_pointers): Same.
6141 (lto_input_ts_vec_tree_pointers): Same.
6142 (lto_input_ts_exp_tree_pointers): Same.
6143 (lto_input_ts_block_tree_pointers): Same.
6144 (lto_input_ts_binfo_tree_pointers): Same.
6145 (lto_input_ts_constructor_tree_pointers): Same.
6146 (lto_input_ts_omp_clause_tree_pointers): Same.
6147 (streamer_read_tree_body): Same.
6148 * tree-streamer.h: Same.
6149 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6150 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6151 (vect_analyze_possibly_independent_ddr): Same.
6152 (vect_analyze_data_ref_dependence): Same.
6153 (vect_compute_data_ref_alignment): Same.
6154 (vect_enhance_data_refs_alignment): Same.
6155 (vect_analyze_data_ref_access): Same.
6156 (vect_check_gather_scatter): Same.
6157 (vect_find_stmt_data_reference): Same.
6158 (vect_create_addr_base_for_vector_ref): Same.
6159 (vect_setup_realignment): Same.
6160 (vect_supportable_dr_alignment): Same.
6161 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6162 (adjust_phi_and_debug_stmts): Same.
6163 (vect_set_loop_mask): Same.
6164 (add_preheader_seq): Same.
6165 (vect_maybe_permute_loop_masks): Same.
6166 (vect_set_loop_masks_directly): Same.
6167 (vect_set_loop_condition_masked): Same.
6168 (vect_set_loop_condition_unmasked): Same.
6169 (slpeel_duplicate_current_defs_from_edges): Same.
6170 (slpeel_add_loop_guard): Same.
6171 (slpeel_can_duplicate_loop_p): Same.
6172 (create_lcssa_for_virtual_phi): Same.
6174 (vect_update_ivs_after_vectorizer): Same.
6175 (vect_gen_vector_loop_niters_mult_vf): Same.
6176 (slpeel_update_phi_nodes_for_loops): Same.
6177 (slpeel_update_phi_nodes_for_guard1): Same.
6178 (find_guard_arg): Same.
6179 (slpeel_update_phi_nodes_for_guard2): Same.
6180 (slpeel_update_phi_nodes_for_lcssa): Same.
6181 (vect_do_peeling): Same.
6182 (vect_create_cond_for_alias_checks): Same.
6183 (vect_loop_versioning): Same.
6184 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6185 (vect_inner_phi_in_double_reduction_p): Same.
6186 (vect_analyze_scalar_cycles_1): Same.
6187 (vect_fixup_scalar_cycles_with_patterns): Same.
6188 (vect_get_loop_niters): Same.
6189 (bb_in_loop_p): Same.
6190 (vect_get_max_nscalars_per_iter): Same.
6191 (vect_verify_full_masking): Same.
6192 (vect_compute_single_scalar_iteration_cost): Same.
6193 (vect_analyze_loop_form_1): Same.
6194 (vect_analyze_loop_form): Same.
6195 (vect_active_double_reduction_p): Same.
6196 (vect_analyze_loop_operations): Same.
6197 (neutral_op_for_slp_reduction): Same.
6198 (vect_is_simple_reduction): Same.
6199 (vect_model_reduction_cost): Same.
6200 (get_initial_def_for_reduction): Same.
6201 (get_initial_defs_for_reduction): Same.
6202 (vect_create_epilog_for_reduction): Same.
6203 (vectorize_fold_left_reduction): Same.
6204 (vectorizable_reduction): Same.
6205 (vectorizable_induction): Same.
6206 (vectorizable_live_operation): Same.
6207 (loop_niters_no_overflow): Same.
6208 (vect_get_loop_mask): Same.
6209 (vect_transform_loop_stmt): Same.
6210 (vect_transform_loop): Same.
6211 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6212 (vect_determine_precisions): Same.
6213 (vect_pattern_recog_1): Same.
6214 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6215 * tree-vect-stmts.c (stmt_vectype): Same.
6216 (process_use): Same.
6217 (vect_init_vector_1): Same.
6218 (vect_truncate_gather_scatter_offset): Same.
6219 (get_group_load_store_type): Same.
6220 (vect_build_gather_load_calls): Same.
6221 (vect_get_strided_load_store_ops): Same.
6222 (vectorizable_simd_clone_call): Same.
6223 (vectorizable_store): Same.
6224 (permute_vec_elements): Same.
6225 (vectorizable_load): Same.
6226 (vect_transform_stmt): Same.
6227 (supportable_widening_operation): Same.
6228 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6229 (vec_info::free_stmt_vec_info): Same.
6230 (vect_free_loop_info_assumptions): Same.
6231 (vect_loop_vectorized_call): Same.
6232 (set_uid_loop_bbs): Same.
6233 (vectorize_loops): Same.
6234 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6235 * tree.c (add_tree_to_fld_list): Same.
6236 (fld_type_variant_equal_p): Same.
6237 (fld_decl_context): Same.
6238 (fld_incomplete_type_of): Same.
6239 (free_lang_data_in_binfo): Same.
6240 (need_assembler_name_p): Same.
6241 (find_decls_types_r): Same.
6242 (get_eh_types_for_runtime): Same.
6243 (find_decls_types_in_eh_region): Same.
6244 (find_decls_types_in_node): Same.
6245 (assign_assembler_name_if_needed): Same.
6246 * value-prof.c (stream_out_histogram_value): Same.
6247 * value-prof.h: Same.
6248 * var-tracking.c (use_narrower_mode): Same.
6249 (prepare_call_arguments): Same.
6250 (vt_expand_loc_callback): Same.
6251 (resolve_expansions_pending_recursion): Same.
6252 (vt_expand_loc): Same.
6253 * varasm.c (const_hash_1): Same.
6254 (compare_constant): Same.
6255 (tree_output_constant_def): Same.
6256 (simplify_subtraction): Same.
6257 (get_pool_constant): Same.
6258 (output_constant_pool_2): Same.
6259 (output_constant_pool_1): Same.
6260 (mark_constants_in_pattern): Same.
6261 (mark_constant_pool): Same.
6262 (get_section_anchor): Same.
6263 * vr-values.c (compare_range_with_value): Same.
6264 (vr_values::extract_range_from_phi_node): Same.
6265 * vr-values.h: Same.
6266 * web.c (unionfind_union): Same.
6269 2019-07-09 Martin Sebor <msebor@redhat.com>
6272 * align.h: Change class-key from class to struct and vice versa
6273 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6274 * alloc-pool.h: Same.
6275 * asan.c (shadow_mem_size): Same.
6276 * auto-profile.c: Same.
6277 * basic-block.h: Same.
6279 * cfgexpand.c (set_rtl): Same.
6280 (expand_one_stack_var_at): Same.
6284 * config/i386/i386.h: Same.
6285 * df-problems.c (df_print_bb_index): Same.
6287 * df.h (df_single_use): Same.
6288 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6289 (layout::annotation_line_showed_range_p): Same.
6290 (get_printed_columns): Same.
6291 (correction::ensure_terminated): Same.
6292 (line_corrections::~line_corrections): Same.
6295 * dump-context.h: Same.
6297 * dwarf2out.c: Same.
6298 * edit-context.c: Same.
6299 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6301 * function.c (assign_stack_local): Same.
6304 * gcov.c (block_info::block_info): Same.
6305 * genattrtab.c: Same.
6306 * genextract.c: Same.
6307 * genmatch.c (comparison_code_p): Same.
6308 (id_base::id_base): Same.
6309 (decision_tree::print): Same.
6310 * genoutput.c: Same.
6311 * genpreds.c (write_one_predicate_function): Same.
6312 * genrecog.c (validate_pattern): Same.
6313 (find_operand_positions): Same.
6314 (optimize_subroutine_group): Same.
6315 (merge_pattern_transition::merge_pattern_transition): Same.
6316 (merge_pattern_info::merge_pattern_info): Same.
6317 (merge_state_result::merge_state_result): Same.
6318 (merge_into_state): Same.
6319 * gensupport.c: Same.
6320 * gensupport.h: Same.
6321 * ggc-common.c (init_ggc_heuristics): Same.
6322 * ggc-tests.c (test_union): Same.
6323 * gimple-loop-interchange.cc (dump_induction): Same.
6324 * gimple-loop-versioning.cc: Same.
6325 * gimple-match.h (gimple_match_cond::any_else): Same.
6326 * gimple-ssa-backprop.c: Same.
6327 * gimple-ssa-sprintf.c: Same.
6328 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6330 (store_immediate_info::store_immediate_info): Same.
6331 (merged_store_group::apply_stores): Same.
6332 (get_location_for_stmts): Same.
6333 * gimple-ssa-strength-reduction.c: Same.
6334 * gimple-ssa-warn-alloca.c: Same.
6335 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
6336 * godump.c (go_type_decl): Same.
6337 * hash-map-tests.c (test_map_of_strings_to_int): Same.
6339 * hash-set-tests.c (test_set_of_strings): Same.
6341 * hsa-common.h: Same.
6342 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
6343 * input.c (assert_loceq): Same.
6346 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
6347 * ipa-fnsummary.h: Same.
6348 * ipa-inline.h: Same.
6350 * ipa-split.c (visit_bb): Same.
6351 * ira-int.h (minmax_set_iter_next): Same.
6352 * loop-invariant.c: Same.
6354 * lra-eliminations.c: Same.
6356 * lra-lives.c (mark_regno_dead): Same.
6357 * lra-remat.c: Same.
6358 * lra-spills.c: Same.
6359 * lto-streamer.h: Same.
6360 * mem-stats.h: Same.
6361 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
6362 * omp-low.c (omp_clause_aligned_alignment): Same.
6363 * optabs-query.h (get_vcond_eq_icode): Same.
6365 * opts.c (wrap_help): Same.
6367 * predict.c (predict_paths_leading_to_edge): Same.
6368 * pretty-print.h: Same.
6369 * profile-count.h: Same.
6371 * read-rtl-function.c: Same.
6374 * regrename.c: Same.
6375 * regrename.h: Same.
6378 * rtl.h (costs_add_n_insns): Same.
6380 * sched-int.h: Same.
6381 * sel-sched-ir.h: Same.
6383 * sese.h (vec_find): Same.
6385 * target-globals.h: Same.
6386 * tree-affine.c (aff_combination_find_elt): Same.
6387 * tree-affine.h: Same.
6388 * tree-data-ref.h: Same.
6389 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
6390 * tree-predcom.c: Same.
6391 * tree-scalar-evolution.c (find_var_scev_info): Same.
6392 * tree-ssa-alias.h: Same.
6393 * tree-ssa-ccp.c: Same.
6394 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
6395 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
6396 (rewrite_mem_refs): Same.
6397 (execute_sm_if_changed): Same.
6398 (hoist_memory_references): Same.
6399 * tree-ssa-loop-ivopts.c (operator<=): Same.
6400 * tree-ssa-loop.h: Same.
6401 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
6402 * tree-ssa-structalias.c: Same.
6403 * tree-switch-conversion.h (cluster::cluster): Same.
6404 (simple_cluster::simple_cluster): Same.
6405 * tree-vect-patterns.c (type_conversion_p): Same.
6406 * tree-vectorizer.c (dump_stmt_cost): Same.
6407 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
6408 * tree.c (protected_set_expr_location): Same.
6409 * tree.h (desired_pro_or_demotion_p): Same.
6410 (fndecl_built_in_p): Same.
6411 * unique-ptr-tests.cc: Same.
6412 * var-tracking.c (delete_variable_part): Same.
6413 * varasm.c (assemble_real): Same.
6414 (tree_output_constant_def): Same.
6416 * wide-int-bitmask.h: Same.
6417 * wide-int.h (decompose): Same.
6419 2019-07-09 Richard Biener <rguenther@suse.de>
6421 PR tree-optimization/91114
6422 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
6423 find a vector type isn't fatal.
6425 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6427 * config/aarch64/aarch64-simd.md
6428 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
6429 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
6430 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
6431 (*aarch64_crypto_aese_fused,
6432 *aarch64_crypto_aesd_fused): Update to new definition.
6433 * config/aarch64/aarch64.c
6434 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
6436 2019-07-09 Richard Biener <rguenther@suse.de>
6438 * gimple-match.h (gimple_match_op::resimplify): New.
6439 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
6440 gimple_resimplify4, gimple_resimplify5): Remove.
6441 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
6442 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
6444 (gimple_match_op::resimplify): New.
6445 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
6446 according to availability. Use gimple_match_op::resimplify.
6448 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
6450 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
6452 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
6454 * config/arm/crypto.md:
6455 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
6456 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
6457 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
6458 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
6460 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
6461 * config/arm/aarch-common-protos.h
6462 (aarch_crypto_can_dual_issue): Remove.
6463 * config/arm/aarch-common.c
6464 (aarch_crypto_can_dual_issue): Likewise.
6465 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
6466 * config/arm/cortex-a53.md: Likewise.
6467 * config/arm/cortex-a57.md: Likewise.
6468 * config/arm/iterators.md:
6469 (CRYPTO_BINARY): Redefine.
6470 (CRYPTO_UNARY): Removed.
6471 (CRYPTO_AES, CRYPTO_AESMC): New.
6473 2019-07-09 Richard Biener <rguenther@suse.de>
6475 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
6476 (vn_reference_lookup_3): If the main ref has no access path recorded
6477 but orig_ref has use it to do access-path based disambiguation.
6478 (vn_reference_lookup_pieces): Adjust.
6479 (vn_reference_lookup): Pass down original ref if we valueized.
6481 2019-07-09 Martin Liska <mliska@suse.cz>
6483 * doc/extend.texi: Document influence on loop
6486 2019-07-09 Martin Liska <mliska@suse.cz>
6488 * lto-compress.c (lto_normalized_zstd_level): Do not use
6489 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
6490 of libzstd. One can use 0 as a default compression level.
6492 2019-07-09 Martin Liska <mliska@suse.cz>
6494 * doc/invoke.texi: Add link from -fprofile-dir option.
6495 Use better wording for 'gcno filename'.
6497 2019-07-08 Martin Sebor <msebor@redhat.com>
6501 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
6503 (args_loc_t): New type.
6504 (args_loc_t, locmap_t): same.
6505 (diag_returned_locals): New function.
6506 (is_addr_local): Same.
6507 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
6508 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
6509 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
6511 2019-07-08 Jakub Jelinek <jakub@redhat.com>
6513 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
6514 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
6515 and casts in offset when different, both through gimple stmts
6516 and through trees. Rewritten using loops to minimize code duplication
6519 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
6521 * emit-rtl.c (set_insn_locations): New function moved from...
6522 * function.c (set_insn_locations): ...here.
6523 * ira-emit.c (emit_moves): Propagate location of the first instruction
6524 to the inserted move instructions.
6525 * reg-stack.c (compensate_edge): Set the location if the sequence is
6526 inserted on the edge.
6527 * rtl.h (set_insn_locations): Declare.
6529 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6531 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
6532 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
6535 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
6537 PR rtl-optimization/88233
6538 * common.opt (fsplit-wide-types-early): New option.
6539 * common/config/rs6000/rs6000-common.c
6540 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
6542 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
6543 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
6544 flag_split_wide_types_early.
6545 (pass_data_lower_subreg3): New.
6546 (pass_lower_subreg3): New.
6547 (make_pass_lower_subreg3): New.
6548 * passes.def (pass_lower_subreg2): Move after the loop passes.
6549 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
6550 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
6551 the pass pipeline; its previous place is taken by ...
6552 (make_pass_lower_subreg3): ... this.
6554 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6556 * config/s390/s390.c (s390_shift_truncation_mask): Define.
6557 (TARGET_SHIFT_TRUNCATION_MASK): Define.
6559 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
6561 * config/s390/constraints.md: Add new jsc constraint.
6562 * config/s390/predicates.md: New predicates.
6563 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
6564 * config/s390/s390.c (s390_valid_shift_count): New function.
6565 (print_shift_count_operand): Use s390_valid_shift_count.
6566 (print_operand): Likewise.
6567 * config/s390/s390.md: Use new predicate.
6568 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
6569 * config/s390/vector.md: Use new predicate.
6571 2019-07-08 Andrew Waterman <andrew@sifive.com>
6572 Jim Wilson <jimw@sifive.com>
6574 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
6575 bitsize instead of BITS_PER_WORD.
6577 2019-07-08 Martin Liska <mliska@suse.cz>
6579 * collect2.c (defined): Revert to before r254460.
6580 (scan_prog_file): Revert to before r254460.
6582 2019-07-08 Richard Biener <rguenther@suse.de>
6584 PR tree-optimization/83518
6585 * tree-ssa-sccvn.c: Include splay-tree.h.
6586 (struct pd_range, struct pd_data): New.
6587 (struct vn_walk_cb_data): Add data to track partial definitions.
6588 (vn_walk_cb_data::~vn_walk_cb_data): New.
6589 (vn_walk_cb_data::push_partial_def): New.
6590 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
6591 (vn_reference_lookup_2): When partial defs are registered give up.
6592 (vn_reference_lookup_3): Track partial defs for memset and
6593 constructor zeroing and for defs from constants.
6595 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6597 * doc/install.texi (bootstrap-Og): Document.
6599 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
6601 * config/riscv/pic.md (*local_pic_load_s<mode>)
6602 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
6603 referenced by <mode>, giving...
6604 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
6605 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
6606 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
6607 use <X:MODE> for the mode attribute.
6609 2019-07-07 Jeff Law <law@redhat.com>
6611 PR tree-optimization/91090
6612 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
6613 in handling of ranges to simplify switch statements.
6615 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6617 * config/darwin.c (darwin_override_options): Make a final check on PIC
6620 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
6622 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
6625 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6628 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
6629 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
6630 instead of matching them to "l" output operands.
6632 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
6634 * config/mips/mips.c (mips_split_move): Zero-initialize addr
6635 and check whether addr.reg is nonnull before using it.
6637 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6639 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
6640 ctx->for_simd_scan_phase simd copy the outer var to the privatized
6641 variable(s). For conditional lastprivate look through outer
6642 GIMPLE_OMP_SCAN context.
6643 (lower_omp_1): For conditional lastprivate look through outer
6644 GIMPLE_OMP_SCAN context.
6646 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
6647 member to combined_into_simd_safelen1.
6648 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
6649 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
6650 clauses if ctx->combined_into_simd_safelen1 put statements after the
6651 predicate conditionalized block rather than into it.
6653 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6655 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
6657 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
6658 Make the choice of <mode> explicit, giving...
6659 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
6661 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6663 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
6664 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
6666 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
6667 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
6668 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
6669 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
6670 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
6671 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
6672 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
6673 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
6674 (*avx512f_scatterdi<mode>): Likewise.
6675 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
6677 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6679 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
6680 specify the mode iterator referenced by <mode>, giving...
6681 (*push1_h8300hs_<QHI:mode>): ...this.
6683 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6685 * config/gcn/gcn-valu.md
6686 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
6687 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
6688 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
6689 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
6690 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
6691 but using the _exec comparison patterns.
6692 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
6693 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
6694 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
6695 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
6696 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
6697 but using the _exec comparison patterns.
6699 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
6701 * config/arm/sync.md
6702 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
6703 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
6704 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
6705 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
6708 2019-07-06 Jakub Jelinek <jakub@redhat.com>
6710 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
6711 (maybe_lookup_ctx): Add forward declaration.
6712 (omp_find_scan): Likewise. Walk into body of simd if composited
6713 with worksharing loop.
6714 (scan_omp_simd_scan): New function.
6715 (scan_omp_1_stmt): Call it.
6716 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
6717 ctx->for_simd_scan_phase.
6718 (lower_rec_input_clauses): Do much less work for inscan reductions
6719 in ctx->for_simd_scan_phase is_simd regions.
6720 (lower_omp_scan): Set is_simd also on simd constructs composited
6721 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
6722 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
6723 emit their body after in simd constructs composited with worksharing
6725 (lower_omp_for_scan): Handle worksharing loop composited with simd.
6727 * omp-low.c (omp_find_scan): Make static.
6728 (lower_omp_for_scan): Fix order of merge arguments in input phase of
6729 the second loop, var2 represents the first partial sum and so needs
6730 to go before rprivb[ivar].
6732 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
6734 * config/rs6000/rs6000-logue.c: Remove unused code.
6736 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6738 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
6740 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
6743 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
6744 check with a frame laid out check.
6746 2019-07-05 Richard Biener <rguenther@suse.de>
6748 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
6749 when comparing against a store with possibly the same value.
6751 2019-07-05 Richard Biener <rguenther@suse.de>
6753 PR tree-optimization/91091
6754 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
6755 (walk_non_aliased_vuses): Likewise.
6756 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
6757 (get_continuation_for_phi): New tbaa_p parameter and pass
6759 (walk_non_aliased_vuses): Likewise.
6760 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
6761 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
6762 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
6764 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
6765 (adjust_offsets_for_equal_base_address): New function.
6766 (vn_reference_lookup_3): Use it to catch more base equivalences.
6767 Handle and pass down tbaa_p flag.
6768 (vn_reference_lookup_pieces): Adjust.
6769 (vn_reference_lookup): Remove alias-set altering, instead pass
6770 down false as tbaa_p.
6772 2019-07-05 Richard Biener <rguenther@suse.de>
6774 PR tree-optimization/91091
6775 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
6776 accesses can happen with -fno-strict-aliasing.
6778 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
6780 * tree-ssa-alias.c (alias_stats): Add
6781 nonoverlapping_component_refs_since_match_p_must_overlap.
6782 (dump_alias_stats): Print it.
6783 (nonoverlapping_component_refs_since_match_p): Add early exit.
6784 (nonoverlapping_component_refs_p): Do not account early exit.
6786 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6788 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
6789 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
6790 (emit_eh_dispatch): Delete.
6791 (lower_catch): Emit the eh_dispatch manually and set the location of
6792 the first catch statement onto it.
6793 (lower_eh_filter): Emit the eh_dispatch manually and set location.
6794 (lower_eh_dispatch): Propagate location.
6795 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
6796 (eliminate_build): Likewise.
6798 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
6800 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
6801 phi nodes if possible.
6802 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
6803 location info on the newly created statement.
6804 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
6805 newly created increment if needed.
6807 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6810 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
6811 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
6812 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
6813 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
6814 ctx->add_safelen1 is set.
6816 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
6817 GOMP_loop_start at the start of second worksharing loop in a scan.
6818 For nowait, don't emit GOMP_loop_end_nowait at the end of first
6819 worksharing loop in a scan even if there are conditional lastprivates,
6820 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
6822 2019-07-04 Jan Hubicka <jh@suse.cz>
6824 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
6825 Fix check for match in the ref walk.
6827 2019-07-04 Martin Liska <mliska@suse.cz>
6829 * tree-ssa-loop-niter.c
6830 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
6831 (estimate_numbers_of_iterations):
6832 Support __builtin_expect_with_probability for analysis
6833 of # of loop iterations.
6835 2019-07-04 Alexandre Oliva <oliva@adacore.com>
6837 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
6838 * except.c: Likewise.
6839 * expr.c (expand_expr_real_1): Reject it.
6840 * gimplify.c (gimplify_expr): Gimplify it, within
6842 * tree-dump.c (dequeue_and_dump): Dump it.
6843 * tree-pretty-print.c (dump_generic_node): Likewise.
6844 * tree.c (block_may_fallthru): Handle it.
6845 * tree.def (EH_ELSE_EXPR): Introduce it.
6846 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
6847 with GIMPLE_EH_ELSE as try/finally/else.
6849 2019-07-04 Richard Biener <rguenther@suse.de>
6852 * tree-pass.h (execute_all_ipa_transforms): Add a flag
6853 parameter whether to disable GC collection.
6854 * passes.c (execute_one_ipa_transform_pass): Likewise, and
6856 (execute_all_ipa_transforms): Likewise and pass it down.
6857 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
6858 collection from applying IPA transforms.
6859 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
6860 from applying IPA transforms.
6862 2019-07-04 Richard Biener <rguenther@suse.de>
6864 PR tree-optimization/90911
6865 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
6866 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
6867 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
6868 scalar_loop_scaling.
6869 (vect_transform_loop): Scale scalar loop profile if needed.
6870 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
6871 the loop copy from if-conversion adjust edge probabilities
6872 and scale the vectorized loop body profile, queue the scalar
6873 profile for updating after peeling.
6875 2019-07-04 Jan Hubicka <jh@suse.cz>
6877 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
6878 parameters; return early for must-alias.
6879 (indirect_ref_may_alias_decl_p): Likewise; when establishing
6880 outer types match, try nonoverlapping_component_refs
6881 if must-alias is not obvious.
6882 (indirect_refs_may_alias_p): Likewise.
6883 (refs_may_alias_p_2): Likewise.
6885 2019-07-04 Richard Biener <rguenther@suse.de>
6887 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
6889 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
6891 (struct vn_walk_cb_data): New callback data struct.
6892 (vn_reference_lookup_2): Adjust.
6893 (vn_reference_lookup_3): Likewise.
6894 (vn_reference_lookup_pieces): Likewise.
6895 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
6896 (visit_reference_op_load): Adjust.
6898 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6900 PR tree-optimization/91063
6901 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
6902 stmt from stmts sequence before calling vect_init_vector_1.
6905 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6908 * fwprop.c (reg_single_def_p): New function.
6909 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
6910 (forward_propagate_into): New parameter reg_prop_only
6911 with default value false.
6912 Propagate def's src into loop only if SET_SRC and SET_DEST
6913 of def_set have single definitions.
6914 Likewise if reg_prop_only is set to true.
6915 (fwprop): New param fwprop_addr_p.
6916 Integrate fwprop_addr into fwprop.
6917 (fwprop_addr): Remove.
6918 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
6920 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
6921 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
6922 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
6924 2019-07-04 Jakub Jelinek <jakub@redhat.com>
6926 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
6927 in worksharing loop scans.
6929 PR tree-optimization/91074
6930 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
6933 PR rtl-optimization/90756
6934 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
6937 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
6939 * config/aarch64/aarch64.md: Remove redundant constraints from
6940 define_expand but keep some patterns untouched if they are
6941 specially selected by TARGET_SECONDARY_RELOAD hook.
6942 * config/aarch64/aarch64-sve.md: Likewise.
6943 * config/aarch64/atomics.md: Remove redundant constraints from
6945 * config/aarch64/aarch64-simd.md: Likewise.
6947 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6949 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
6950 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
6951 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
6953 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
6956 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
6958 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
6959 (STARTFILE_SPEC): Split crt3 into a separate spec.
6960 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
6961 (DARWIN_CRT2_SPEC): New.
6962 (DARWIN_CRT3_SPEC): New.
6963 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
6964 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
6965 (DARWIN_CRT3_SPEC): New.
6967 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
6969 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
6970 Change the RTL attribute "length" from "4" to "*" to allow the
6971 length attribute to be adjusted automatically for prefixed load,
6972 store, and add immediate instructions.
6973 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
6975 (extendsi<mode>2, EXTSI iterator): Likewise.
6976 (movsi_internal1): Likewise.
6977 (movsi_from_sf): Likewise.
6978 (movdi_from_sf_zero_ext): Likewise.
6979 (mov<mode>_internal): Likewise.
6980 (movcc_internal1, QHI iterator): Likewise.
6981 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
6982 (movsf_from_si): Likewise.
6983 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
6984 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
6985 (mov<mode>, FMOVE128 iterator): Likewise.
6986 (movdi_internal64): Likewise.
6987 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
6989 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
6990 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
6991 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
6992 (vsx_splat_v4sf): Likewise.
6994 2019-07-03 Mark Wielaard <mark@klomp.org>
6997 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
6998 DW_AT_addr_base if there is actually a .debug_addr section with
7000 (output_addr_table): Add DWARF5 table header generation here after
7001 checking there are actually any addresses from...
7002 (dwarf2out_finish): ...here.
7004 2019-07-03 Richard Biener <rguenther@suse.de>
7007 * match.pd (vec_perm -> bit_insert): Fix element read from
7010 2019-07-03 Martin Liska <mliska@suse.cz>
7012 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7013 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7015 * generic-match-head.c: Include dbgcnt.h.
7016 * gimple-match-head.c: Likewise.
7018 2019-07-03 Martin Liska <mliska@suse.cz>
7020 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7021 (GCOV_COUNTER_V_TOPN): New.
7022 (GCOV_COUNTER_V_INDIR): Use _topn.
7023 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7024 (GCOV_TOPN_VALUES): New.
7025 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7026 (GCOV_TOPN_VALUES_COUNTERS): New.
7027 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7029 (gimple_init_gcov_profiler): Rename variables from one_value
7031 (gimple_gen_one_value_profiler): Remove.
7032 (gimple_gen_topn_values_profiler): New function.
7033 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7034 names instead of SINGLE_VALUE.
7035 (stream_out_histogram_value): Likewise.
7036 (stream_in_histogram_value): Likewise.
7037 (get_most_common_single_value): Likewise.
7038 (gimple_divmod_fixed_value_transform): Likewise.
7039 (gimple_stringops_transform): Likewise.
7040 (gimple_divmod_values_to_profile): Likewise.
7041 (gimple_stringops_values_to_profile): Likewise.
7042 (gimple_find_values_to_profile): Likewise.
7043 * value-prof.h (enum hist_type): Rename to TOPN.
7044 (gimple_gen_one_value_profiler): Remove.
7045 (gimple_gen_topn_values_profiler): New.
7047 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7049 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7050 if it has the DW_AT_data_member_location attribute.
7052 2019-07-03 Richard Biener <rguenther@suse.de>
7054 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7057 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7059 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7060 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7061 (tlsdesc_small_sve_<mode>): Likewise.
7063 2019-07-03 Martin Liska <mliska@suse.cz>
7065 * Makefile.in: Define ZSTD_LIB.
7066 * common.opt: Adjust compression level
7067 to support also zstd levels.
7068 * config.in: Regenerate.
7069 * configure: Likewise.
7070 * configure.ac: Add --with-zstd and --with-zstd-include options
7072 * doc/install.texi: Mention zstd dependency.
7073 * gcc.c: Print supported LTO compression algorithms.
7074 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7075 (lto_compression_zstd): Likewise.
7076 (lto_uncompression_zstd): Likewise.
7077 (lto_end_compression): Dispatch in between zlib and zstd.
7078 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7079 (lto_uncompression_zlib): Make it static.
7080 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7081 * lto-section-in.c (lto_get_section_data): Pass info
7082 about used compression.
7083 * lto-streamer-out.c: By default use zstd when possible.
7084 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7085 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7087 2019-07-03 Martin Liska <mliska@suse.cz>
7089 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7090 * lto-section-out.c (lto_destroy_simple_output_block): Never
7091 compress LTO_section_lto section.
7092 * lto-streamer-out.c (produce_asm): Do not set major_version
7094 (lto_output_toplevel_asms): Likewise.
7095 (produce_lto_section): New function.
7096 (lto_output): Call produce_lto_section.
7097 (lto_write_mode_table): Do not set major_version and
7099 (produce_asm_for_decls): Likewise.
7100 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7102 (struct lto_header): Remove.
7103 (struct lto_section): New struct.
7104 (struct lto_simple_header): Do not inherit from lto_header.
7105 (struct lto_file_decl_data): Add lto_section_header field.
7107 2019-07-03 Martin Liska <mliska@suse.cz>
7109 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7111 * reg-stack.c (check_asm_stack_operands): Likewise.
7112 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7113 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7114 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7117 2019-07-03 Martin Liska <mliska@suse.cz>
7119 PR tree-optimization/90892
7120 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7121 in string constants.
7123 2019-07-03 Martin Liska <mliska@suse.cz>
7126 * multiple_target.c (create_dispatcher_calls): Add to comdat
7127 group only if set for ifunc.
7129 2019-07-03 Martin Liska <mliska@suse.cz>
7132 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7133 Define local_object_name in outer scope in order to handle
7134 use-after-scope issue.
7136 2019-07-03 Martin Liska <mliska@suse.cz>
7138 * common.opt: Add fprofile-note.
7139 * coverage.c (coverage_init): Append the option
7141 * doc/invoke.texi: Document -fprofile-note.
7143 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7145 PR tree-optimization/91033
7146 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7147 vect_analyze_data_refs): Add bool * arguments.
7148 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7149 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7150 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7151 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7152 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7153 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7154 vect_analyze_data_refs caller.
7156 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7158 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7159 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7160 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7161 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7162 OMP_CLAUSE__SCANTEMP_ entry.
7163 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7164 * tree-pretty-print.c (dump_omp_clause): Likewise.
7165 * tree-nested.c (convert_nonlocal_omp_clauses,
7166 convert_local_omp_clauses): Likewise.
7167 * omp-general.h (struct omp_for_data): Add have_scantemp and
7168 have_nonctrl_scantemp members.
7169 * omp-general.c (omp_extract_for_data): Initialize them.
7170 * omp-low.c (struct omp_context): Add scan_exclusive member.
7171 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7172 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7173 ctx->scan_exclusive.
7174 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7175 of !ctx->scan_inclusive.
7176 (lower_rec_input_clauses): Simplify gimplification of dtors using
7177 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7178 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7179 loops. Don't add barrier for reduction_omp_orig_ref if
7180 ctx->scan_??xclusive.
7181 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7182 (lower_omp_scan): Use ctx->scan_exclusive instead
7183 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7184 reductions. Use new_vard != new_var instead of repeated
7185 omp_is_reference calls.
7186 (omp_find_scan, lower_omp_for_scan): New functions.
7187 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7189 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7190 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7191 and fd->have_scantemp.
7193 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7194 on worksharing loop propagate it as shared clause to containing
7197 * omp-expand.c (expand_omp_for_static_nochunk,
7198 expand_omp_for_static_chunk): For nowait worksharing loop with
7199 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7202 2019-07-02 qing zhao <qing.zhao@oracle.com>
7204 PR preprocessor/90581
7205 * doc/cppopts.texi: Add document for -fmax-include-depth.
7206 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7208 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7210 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7211 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7212 (mmx_packssdw): Ditto.
7213 (mmx_punpckhbw): Ditto.
7214 (mmx_punpcklbw): Ditto.
7215 (mmx_punpckhwd): Ditto.
7216 (mmx_punpcklwd): Ditto.
7217 (mmx_punpckhdq): Ditto.
7218 (mmx_punpckldq): Ditto.
7219 (*vec_dupv4hi): Ditto.
7220 (*vec_dupv2si): Ditto.
7221 (mmx_pmovmskb): Ditto.
7222 * config/i386/sse.md (sse_cvtpi2ps): Use
7223 TARGET_SSE2 && SSE_REG_P in split condition.
7224 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7225 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7226 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7227 (ssse3_pshufbv8qi3): Ditto.
7228 (ssse3_palignrdi): Ditto.
7230 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7232 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7233 with inlined save and restore.
7235 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7237 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7238 to be inserted on single successor edge of the entry block. Then call
7239 commit_edge_insertions instead of inserting the instructions manually.
7240 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7241 RTL expansion and rebuild jump labels chain.
7243 2019-07-02 Richard Biener <rguenther@suse.de>
7245 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7247 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7249 * tree.c (build_common_tree_nodes): Initialize them.
7250 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7251 Make declarations comments.
7252 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7253 chrec_known): Remove definitions.
7254 (initialize_scalar_evolutions_analyzer): Remove.
7255 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7256 * tree-streamer.c (preload_common_nodes): Do not preload
7257 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7259 2019-07-02 Jan Hubicka <jh@suse.cz>
7261 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7264 2019-07-02 Jan Hubicka <jh@suse.cz>
7266 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7268 (nonoverlapping_component_refs_since_match_p): ... this one;
7269 handle also non-decl bases; return -1 if search gave up.
7270 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7271 nonoverlapping_component_refs_of_decl_p_no_alias to
7272 nonoverlapping_component_refs_since_match_p_may_alias,
7273 nonoverlapping_component_refs_since_match_p_no_alias.
7274 (dump_alias_stats): Update dumping.
7275 (aliasing_matching_component_refs_p): Break out from ...;
7276 dispatch to nonoverlapping_component_refs_for_decl_p
7277 and nonoverlapping_component_refs_since_match_p.
7278 (aliasing_component_refs_p): ... here; call
7279 nonoverlapping_component_refs_p in scenarios where we can not
7280 precisely determine base match.
7281 (decl_refs_may_alias_p): Use
7282 nonoverlapping_component_refs_since_match_p.
7283 (indirect_ref_may_alias_decl_p): Do not call
7284 nonoverlapping_component_refs_p.
7285 (indirect_refs_may_alias_p): Likewise.
7287 2019-07-02 Jan Hubicka <jh@suse.cz>
7289 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7290 to clobber of return value.
7292 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7294 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7295 for is_neon_type instructions that have not already been categorized.
7297 2019-07-02 Richard Biener <rguenther@suse.de>
7299 PR tree-optimization/58483
7300 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7301 for MEM_REF base hashing.
7302 (equal_mem_array_ref_p): Likewise for base comparison.
7304 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7306 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7308 (signbit<mode>2): Use that name. Simplify.
7310 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7313 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7314 Tune heuristic from PR71016 to allow MIN / MAX.
7316 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7318 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7320 (abs<mode>2): Use that name. Simplify.
7322 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7324 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7326 (neg<mode>2): Use that name. Simplify.
7328 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7330 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
7332 (abs<mode>2): Use that name. Simplify.
7334 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7336 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
7338 (neg<mode>2): Use that name. Simplify.
7340 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
7342 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
7343 ("enabled" attribute): Handle sse_noavx isa attribute.
7344 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
7345 Use TARGET_SSE && SSE_REGNO_P in split condition.
7346 (*vec_dupv2sf): Ditto.
7348 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7350 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
7352 (floatsi<mode>2): Use that name. Simplify.
7354 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7356 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
7358 (extenddf<mode>2_vsx): Make this a parameterized name.
7359 (extenddf<mode>2): Use those names. Simplify.
7361 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7363 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
7365 (eh_return): Use that name. Simplify.
7367 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7369 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
7370 (doloop_end): Use that name. Simplify.
7372 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7374 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
7376 (indirect_jump): Use that name. Simplify.
7378 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7380 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
7382 (abs<mode>2): Use that name. Simplify.
7384 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7386 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
7388 (fix_trunc<mode>si2): Use that name. Simplify.
7390 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7392 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
7393 (allocate_stack): Use that name. Simplify.
7395 2019-07-01 Martin Sebor <msebor@redhat.com>
7398 * hash-map.h (hash_map::put): On insertion invoke element ctor.
7399 (hash_map::get_or_insert): Same. Reformat comment.
7400 * hash-set.h (hash_set::add): On insertion invoke element ctor.
7401 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7402 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
7403 * hash-table.h (hash_table::operator=): Prevent copy assignment.
7404 (hash_table::hash_table (const hash_table&)): Use copy ctor
7405 instead of assignment to copy elements.
7407 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
7408 John David Anglin <danglin@gcc.gnu.org>
7411 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
7412 using saved frame pointer.
7414 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
7417 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
7418 Add frame clobber and schedule blockage.
7420 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
7422 * doc/invoke.texi (Link Options): Further editorial changes to
7423 -flinker-output docs.
7425 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7427 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
7428 Load both operands of a PLUS into registers separately.
7430 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
7432 * config/s390/vector.md: Fix shift count operand printing.
7434 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7436 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
7438 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7440 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
7441 Use recog_data to test for an output operand.
7443 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7445 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
7446 exclude any others that are disparaged or that are bound to need
7448 (ira_get_dup_out_num): Expand comment.
7450 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7452 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
7453 constraint string for each operand/alternative combo. Only handle
7454 '%' at the start of constraint strings, and look for it outside
7457 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
7459 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
7460 alternative_mask instead of HARD_REG_SET to represent a
7461 bitmask of alternatives.
7462 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
7463 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
7465 2019-07-01 Martin Liska <mliska@suse.cz>
7467 * edit-context.c (test_applying_fixits_unreadable_file): Do not
7468 use () for a constructor call.
7469 (test_applying_fixits_line_out_of_range): Likewise.
7470 * ggc-page.c (alloc_page): Use (void *) for %p printf format
7472 (free_page): Likewise.
7474 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
7476 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
7477 parameter names to match usage (no functional change).
7478 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
7480 2019-07-01 Richard Biener <rguenther@suse.de>
7482 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
7484 (pass_fre::execute): Honor it.
7485 * passes.def: Adjust pass_fre invocations to allow iterating,
7486 add non-iterating pass_fre before late threading/dom.
7488 2019-07-01 Richard Biener <rguenther@suse.de>
7490 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
7491 TARGET_MEM_REF handling to also handle address-taken ones.
7493 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
7495 * doc/sourcebuild.texi (Effective-Target Keywords, Other
7496 hardware attributes): Document avx512vp2intersect.
7498 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7500 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
7501 (abs<mode>2): New expander.
7502 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
7503 Use CODE_FOR_ssse3_absv8qi2.
7504 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
7505 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
7507 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7509 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
7510 to sse, sse_noavx and avx. Update all uses.
7512 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
7514 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
7515 (*mmx_<plusminus_insn><mode>3): Ditto.
7516 (*mmx_mulv4hi3"): Ditto.
7517 (*mmx_smulv4hi3_highpart): Ditto.
7518 (*mmx_umulv4hi3_highpart): Ditto.
7519 (*mmx_pmaddwd): Ditto.
7520 (*sse2_umulv1siv1di3): Ditto.
7521 (*mmx_<code>v4hi3): Ditto.
7522 (*mmx_<code>v8qi3): Ditto.
7523 (mmx_ashr<mode>3): Ditto.
7524 ("mmx_<shift_insn><mode>3): Ditto.
7525 (*mmx_eq<mode>3): Ditto.
7526 (mmx_gt<mode>3): Ditto.
7527 (mmx_andnot<mode>3): Ditto.
7528 (*mmx_<code><mode>3): Ditto.
7529 (*mmx_pinsrw): Ditto.
7530 (*mmx_pextrw): Ditto.
7531 (mmx_pshufw_1): Ditto.
7532 (*mmx_uavgv8qi3): Ditto.
7533 (*mmx_uavgv4hi3): Ditto.
7534 ("mmx_psadbw): Ditto.
7535 * config/i386/sse.md (sse_cvtps2pi): Ditto.
7536 (sse_cvttps2pi): Ditto.
7537 (ssse3_pmaddubsw): Ditto.
7538 (*ssse3_pmulhrswv4hi3): Ditto.
7539 (ssse3_psign<mode>3): Ditto.
7541 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
7543 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
7544 adjustment for bit-fields to all aggregate types.
7546 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
7548 * config/rs6000/predicates.md (pcrel_address): Use
7549 SYMBOL_REF_LOCAL_P to determine if a label is local.
7550 (pcrel_external_address): New predicate.
7551 (non_prefixed_mem_operand): Delete, predicate not used.
7552 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
7553 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
7555 (SYMBOL_REF_PCREL_P): Likewise.
7558 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
7560 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
7561 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
7562 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
7564 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7566 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
7567 override on extra_headers.
7569 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
7571 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
7572 * config/darwin-driver.c (darwin_default_min_version): Remove newline
7574 (darwin_driver_init): Likewise.
7576 2019-06-28 Jan Beulich <jbeulich@suse.com>
7578 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7579 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
7580 Eliminate redundant alternative.
7582 2019-06-28 Jan Beulich <jbeulich@suse.com>
7584 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
7585 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
7588 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
7590 * config/arc/arc.c (arc_rtx_costs): All short instructions are
7591 having a lower cost regardless of the speed option.
7593 2019-06-28 Jan Beulich <jbeulich@suse.com>
7595 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
7596 vector_operand plus, on both alternatives, "Bm" constraint.
7598 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
7600 * config/arm/arm.md: Remove redundant constraints from
7601 define_expand but leave reload_inm and reload_outm patterns
7602 untouched since they need special constraints to work.
7603 * config/arm/arm-fixed.md: Remove redundant constraints from
7605 * config/arm/iwmmxt.md: Likewise.
7606 * config/arm/neon.md: Likewise.
7607 * config/arm/sync.md: Likewise.
7608 * config/arm/thumb1.md: Likewise.
7609 * config/arm/vec-common.md: Likewise.
7611 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
7613 * doc/install.texi: Document --disable-tm-clone-registry.
7615 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7618 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
7621 PR tree-optimization/91010
7622 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
7623 return true. Otherwise, don't call operand_equal_p if offset1 or
7624 offset2 is NULL and just return false.
7626 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7628 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
7629 user-specified float mode choice for kernel mode code.
7631 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7633 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
7636 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
7638 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
7639 use longcall for 64b code.
7641 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
7643 * builtins.c (get_memory_rtx): Fix comment.
7644 * optabs.def (movmem_optab): Change to cpymem_optab.
7645 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
7646 (emit_block_move_hints): Change movmem to cpymem.
7647 * defaults.h: Change movmem to cpymem.
7648 * targhooks.c (get_move_ratio): Change movmem to cpymem.
7649 (default_use_by_pieces_infrastructure_p): Ditto.
7650 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
7651 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
7653 * config/aarch64/aarch64.h: Change movmem to cpymem.
7654 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
7655 * config/alpha/alpha.h: Change movmem to cpymem in comment.
7656 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
7658 * config/arc/arc-protos.h: Change movmem to cpymem.
7659 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
7660 * config/arc/arc.h: Change movmem to cpymem in comment.
7661 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
7662 * config/arm/arm-protos.h: Change movmem to cpymem in names.
7663 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
7664 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
7665 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
7666 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
7667 * config/avr/avr-protos.h: Change movmem to cpymem.
7668 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
7669 avr_out_movmem): Change movmem to cpymem.
7670 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
7671 Change movmem to cpymem.
7672 * config/bfin/bfin-protos.h: Change movmem to cpymem.
7673 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
7674 Change movmem to cpymem.
7675 * config/bfin/bfin.h: Change movmem to cpymem in comment.
7676 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
7677 * config/c6x/c6x-protos.h: Change movmem to cpymem.
7678 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
7679 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
7680 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
7681 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
7682 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
7683 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
7684 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
7685 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
7686 expand_small_cpymem_or_setmem,
7687 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
7688 expand_set_or_cpymem_constant_prologue,
7689 ix86_expand_set_or_cpymem): Change movmem to cpymem.
7690 * config/i386/i386-protos.h: Change movmem to cpymem.
7691 * config/i386/i386.h: Change movmem to cpymem in comment.
7692 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
7693 (setmem<mode>): Change expansion function name.
7694 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
7695 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
7696 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
7697 * config/m32c/m32c-protos.h: Change movmem to cpymem.
7698 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
7699 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
7700 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
7702 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
7703 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
7704 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
7705 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
7706 Change movmem to cpymem.
7707 * config/mips/mips.h: Change movmem to cpymem.
7708 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
7709 * config/nds32/nds32-memory-manipulation.c
7710 (nds32_expand_movmemsi_loop_unknown_size,
7711 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
7712 nds32_expand_movmemsi_unroll,
7713 nds32_expand_movmemsi): Change movmem to cpymem.
7714 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
7715 * config/nds32/nds32-protos.h: Change movmem to cpymem.
7716 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
7717 (pa_adjust_insn_length): Change call to compute_movmem_length.
7718 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
7719 movmemdi, movmemdi_prereload,
7720 movmemdi_postreload): Change movmem to cpymem.
7721 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
7722 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
7723 * config/riscv/riscv.c: Change movmem to cpymem in comment.
7724 * config/riscv/riscv.h: Change movmem to cpymem.
7725 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
7726 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
7727 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
7729 * config/s390/s390-protos.h: Change movmem to cpymem.
7730 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
7731 s390_expand_insv): Change movmem to cpymem.
7732 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
7733 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
7734 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
7735 * config/sparc/sparc.h: Change movmem to cpymem in comment.
7736 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
7737 for nonexistent function.
7738 * config/vax/vax.h: Change movmem to cpymem in comment.
7739 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
7740 * config/visium/visium.h: Change movmem to cpymem in comment.
7741 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
7742 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
7743 * doc/md.texi: Change movmem to cpymem and update description to match.
7744 * doc/rtl.texi: Change movmem to cpymem.
7745 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
7746 * doc/tm.texi: Regenerate.
7748 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
7750 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
7751 -fvariable-expansion-in-unroller by default.
7752 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
7755 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
7758 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7759 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7761 * config.gcc(rs6000-*-*): Define target_gtfiles.
7763 2019-06-27 Jan Hubicka <jh@suse.cz>
7765 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
7766 (add_type_duplicate): When odr hash is not allocated, to nothing.
7767 (odr_based_tbaa_p): New function.
7768 (set_type_canonical_for_odr_type): New function.
7769 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
7770 set_type_canonical_for_odr_type): New.
7771 * tree.c (gimple_canonical_types_compatible_p): ODR types with
7772 ODR based TBAA are not equivalent to non-ODR types.
7774 2019-06-27 Martin Liska <mliska@suse.cz>
7776 PR tree-optimization/90974
7777 PR rtl-optimization/90975
7778 PR rtl-optimization/90976
7780 PR tree-optimization/91017
7781 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
7783 * lra.c (lra_set_insn_recog_data): Remove a leftover from
7784 initial commit of IRA.
7785 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
7787 * tree-vect-loop.c (vect_create_epilog_for_reduction):
7788 Remove unused mode1.
7789 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
7792 2019-06-27 Jakub Jelinek <jakub@redhat.com>
7795 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
7796 instead of register_operand for operands[1], add m to its constraints
7797 if operands[2] uses "C" constraint. Ensure in condition that if
7798 operands[2] is not 0, then operands[1] is not a MEM. For last two
7799 alternatives, use unaligned loads instead of aligned if operands[1] is
7802 2019-06-27 Martin Liska <mliska@suse.cz>
7804 * asan.c (asan_emit_allocas_unpoison): Remove obviously
7806 * bt-load.c (move_btr_def): Likewise.
7807 * builtins.c (expand_builtin_apply_args_1): Likewise.
7808 (expand_builtin_apply): Likewise.
7809 * cfgexpand.c (expand_asm_stmt): Likewise.
7810 (construct_init_block): Likewise.
7811 * cfghooks.c (verify_flow_info): Likewise.
7812 * cfgloopmanip.c (remove_path): Likewise.
7813 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
7814 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
7815 * combine.c (simplify_if_then_else): Likewise.
7816 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7817 (choose_basereg): Likewise.
7818 (ix86_expand_prologue): Likewise.
7819 (ix86_preferred_output_reload_class): Likewise.
7820 * cselib.c (cselib_record_sets): Likewise.
7821 * df-scan.c (df_scan_alloc): Likewise.
7822 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
7823 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
7824 * emit-rtl.c (try_split): Likewise.
7825 * graphite-scop-detection.c (assign_parameter_index_in_region):
7827 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
7828 * ira-color.c (setup_profitable_hard_regs): Likewise.
7829 * ira.c (rtx_moveable_p): Likewise.
7830 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7831 * read-rtl.c (read_subst_mapping): Likewise.
7832 * regrename.c (scan_rtx): Likewise.
7833 * reorg.c (fill_slots_from_thread): Likewise.
7834 * tree-inline.c (tree_function_versioning): Likewise.
7835 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
7836 * tree-ssa-sink.c (statement_sink_location): Likewise.
7837 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
7838 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
7839 (vect_create_epilog_for_reduction): Likewise.
7840 * tree.c (build_nonstandard_integer_type): Likewise.
7842 2019-06-27 Richard Biener <rguenther@suse.de>
7844 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
7846 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
7848 PR tree-optimization/89772
7849 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
7850 out-of-bound accesses checking.
7852 2019-06-27 Martin Liska <mliska@suse.cz>
7854 PR tree-optimization/91014
7855 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
7856 when LHS is NULL_TREE.
7858 2019-06-27 Martin Liska <mliska@suse.cz>
7860 * symbol-summary.h (traverse): Pass
7861 argument a to the call of callback.
7862 (gt_ggc_mx): Mark arguments as unused.
7863 (gt_pch_nx): Likewise.
7865 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
7868 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
7871 2019-06-26 Jeff Law <law@redhat.com>
7873 PR tree-optimization/90883
7874 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
7875 (delete_dead_or_redundant_assignment): Likewise.
7877 PR tree-optimization/90883
7878 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
7879 * tree-ssa-dse.c: Update various comments to distinguish between
7880 dead and redundant stores.
7881 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
7882 (dse_optimize_redundant_stores): New function.
7883 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
7884 Distinguish between dead and redundant calls in dump output. All
7886 (delete_dead_or_redundant_assignment): Similarly for assignments.
7887 (dse_optimize_stmt): Handle _CHK variants. For statements which
7888 store 0 into multiple memory locations, try to prove a subsequent
7891 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
7894 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
7895 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
7897 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7899 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
7900 (branch_islands): New extern.
7901 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
7902 * config/rs6000/rs6000.c: .. here.
7904 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
7906 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
7907 (powerpc*-*-*) ... to here.
7909 2019-06-26 Jeff Law <law@redhat.com>
7911 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
7912 memcpy, memmove and memset builtins.
7913 (maybe_trim_memstar_call): Likewise.
7915 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7917 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
7919 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
7921 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
7923 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7925 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
7927 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
7929 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
7932 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7934 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
7936 2019-06-26 Richard Biener <rguenther@suse.de>
7939 * tree-inline.c (remap_ssa_name): Copy SSA range info.
7941 2019-06-26 Richard Biener <rguenther@suse.de>
7943 * lto-streamer.h (lto_bitmap_alloc): Remove.
7944 (lto_bitmap_free): Likewise.
7945 * lto-streamer.c (lto_bitmap_alloc): Remove.
7946 (lto_bitmap_free): Likewise.
7947 (lto_obstack): Likewise.
7948 (lto_obstack_initialized): Likewise.
7949 * lto-streamer-out.c (lto_output): Use own obstack for local
7950 bitmap, free it consistently.
7952 2019-06-26 Jakub Jelinek <jakub@redhat.com>
7955 * config/i386/sse.md
7956 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
7957 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
7958 insns if operands[2] is misaligned_operand.
7960 2019-06-26 Li Jia He <helijia@linux.ibm.com>
7962 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
7964 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
7967 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
7969 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
7971 2019-06-26 Martin Liska <mliska@suse.cz>
7973 PR tree-optimization/90973
7974 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
7975 epilogue_cost_vec instead of prologue_cost_vec for
7978 2019-06-26 Martin Liska <mliska@suse.cz>
7980 * bb-reorder.c (connect_better_edge_p): Add missing else
7981 statement in the middle of if-else statements.
7983 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
7984 H.J. Lu <hongjiu.lu@intel.com>
7985 Olga Makhotina <olga.makhotina@intel.com>
7987 * common/config/i386/i386-common.c
7988 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
7989 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
7990 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
7991 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
7992 (ix86_handle_option): Handle -mavx512vp2intersect.
7993 * config/i386/avx512vp2intersectintrin.h: New.
7994 * config/i386/avx512vp2intersectvlintrin.h: New.
7995 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
7996 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7998 * config/i386/i386-builtin-types.def: Add new types.
7999 * config/i386/i386-builtin.def: Add new builtins.
8000 * config/i386/i386-builtins.c: (enum processor_features): Add
8001 F_AVX512VP2INTERSECT.
8002 (static const _isa_names_table isa_names_table): Ditto.
8003 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8004 __AVX512VP2INTERSECT__.
8005 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8006 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8007 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8008 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8009 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8010 * config/i386/i386-options.c (ix86_target_string): Add
8011 -mavx512vp2intersect.
8012 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8013 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8014 P2HImode and P2QImode.
8015 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8016 number for P2QImode and P2HImode.
8017 (ix86_regmode_natural_size): New function.
8018 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8019 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8020 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8021 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8022 * config/i386/i386.opt: Add -mavx512vp2intersect.
8023 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8024 avx512vp2intersectvlintrin.h.
8025 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8026 (define_mode_iterator VI48_AVX512VP2VL): New.
8027 (avx512vp2intersect_2intersect<mode>,
8028 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8029 * config.gcc: Add avx512vp2intersectvlintrin.h and
8030 avx512vp2intersectintrin.h to extra_headers.
8031 * doc/invoke.texi: Document -mavx512vp2intersect.
8033 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8035 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8037 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8039 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8040 savres_routine_syms, savres_routine_name, morestack_ref,
8041 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8042 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8043 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8044 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8045 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8046 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8047 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8048 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8049 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8050 get_stack_clash_protection_probe_interval,
8051 get_stack_clash_protection_guard_size,
8052 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8053 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8054 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8055 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8056 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8057 gen_frame_mem_offset, rs6000_savres_routine_name,
8058 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8059 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8060 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8061 rs6000_global_entry_point_prologue_needed_p,
8062 rs6000_get_separate_components, rs6000_components_for_bb,
8063 rs6000_disqualify_components, rs6000_emit_prologue_components,
8064 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8065 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8066 rs6000_output_savres_externs, rs6000_output_function_prologue,
8067 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8068 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8069 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8070 rs6000_output_function_epilogue, gen_add3_const,
8071 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8072 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8074 (machine_function): Moved to rs6000.h.
8075 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8077 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
8078 savres_routine_syms, savres_routine_name, morestack_ref,
8079 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8080 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8081 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8082 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8083 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8084 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8085 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8086 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8087 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8088 get_stack_clash_protection_probe_interval,
8089 get_stack_clash_protection_guard_size,
8090 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8091 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8092 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8093 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8094 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8095 gen_frame_mem_offset, rs6000_savres_routine_name,
8096 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8097 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8098 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8099 rs6000_global_entry_point_prologue_needed_p,
8100 rs6000_get_separate_components, rs6000_components_for_bb,
8101 rs6000_disqualify_components, rs6000_emit_prologue_components,
8102 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8103 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8104 rs6000_output_savres_externs, rs6000_output_function_prologue,
8105 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8106 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8107 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8108 rs6000_output_function_epilogue, gen_add3_const,
8109 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8110 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8111 to here from rs6000.c.
8112 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8113 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8114 quad_address_offset_p) Moved to here from rs6000.c.
8115 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8116 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8119 2019-06-25 Martin Liska <mliska@suse.cz>
8121 * hash-table.c (hashtab_chk_error): Move here from ...
8122 * hash-table.h (hashtab_chk_error): ... here.
8124 2019-06-25 Martin Liska <mliska@suse.cz>
8126 PR tree-optimization/90978
8127 * df-scan.c (df_update_entry_block_defs): Remove dead else
8129 (df_update_exit_block_uses): Likewise.
8131 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8132 Andrew Stubbs <ams@codesourcery.com>
8134 * config.gcc (thread_file): Set to gcn for AMD GCN.
8135 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8136 (TARGET_EMUTLS_VAR_INIT): New hook.
8138 2019-06-25 Martin Jambor <mjambor@suse.cz>
8141 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8143 2019-06-25 Richard Biener <rguenther@suse.de>
8145 PR tree-optimization/90930
8146 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8147 into parallel form in the last pass instance.
8149 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8151 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8152 (arc_legitimize_pic_address): Simplify and cleanup the function.
8153 (SYMBOLIC_CONST): Remove.
8154 (prepare_pic_move): Likewise.
8155 (prepare_move_operands): Handle complex mov cases here.
8156 (arc_legitimize_address_0): Remove call to
8157 arc_legitimize_pic_address.
8158 (arc_legitimize_address): Remove call to
8159 arc_legitimize_tls_address.
8160 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8161 (movhi_insn): Likewise.
8163 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8165 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8167 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8168 format of "__intN" types for UINTMAX_TYPE.
8169 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8170 format of "__intN" types for SIZETYPE.
8171 * tree.c (build_common_tree_nodes): Accept "__intN__"
8172 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8173 * doc/invoke.texi: Document that __intN__ disables pedantic
8176 2019-06-25 Jan Hubicka <jh@suse.cz>
8178 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8179 base2_alias_set is non-zero before doing TBAA based disambiguation.
8181 2019-06-25 Martin Liska <mliska@suse.cz>
8183 PR tree-optimization/90973
8184 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8185 of prologue and epilogue.
8187 2019-06-24 Jan Hubicka <jh@suse.cz>
8189 * ipa-utils.h (type_with_linkage_p): Verify that type is
8191 (odr_type_p): Remove extra return.
8192 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8193 hash STRING_FLAG only for arrays and integers.
8194 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8196 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8198 * print-tree.c (print_node): Print cxx-odr-p
8200 * tree.c (need_assembler_name_p): Also check that type
8202 (verify_type_variant): Update verification of SRING_FLAG;
8203 also check CXX_ODR_P.
8204 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8205 (TYPE_STRING_FLAG): Use it.
8206 (TYPE_CXX_ODR_P): New macro.
8207 * dwarf2out.c (gen_array_type_die): First check that type
8208 is an array and then test string flag.
8210 2019-06-24 Richard Biener <rguenther@suse.de>
8212 PR tree-optimization/90972
8213 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8214 in common code, dealing with STRING_CST properly.
8216 2019-06-24 Richard Biener <rguenther@suse.de>
8218 PR tree-optimization/90930
8219 PR tree-optimization/90316
8220 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8223 2019-06-24 Martin Sebor <msebor@redhat.com>
8225 * tree-pretty-print.h: Remove unnecessary punctuation characters
8227 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8229 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8231 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8232 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8233 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8235 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8237 * config/rs6000/darwin.h: Handle GCC target pragma.
8239 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8241 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8243 2019-06-22 Jeff Law <law@redhat.com>
8245 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8247 2019-06-22 Jan Hubicka <jh@suse.cz>
8249 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8250 give up on bitfields; continue searching for different refs
8253 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8255 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8256 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8257 containing the offset as possible simd lane access. Look through
8258 widening conversion. Move the
8259 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8261 2019-06-21 Richard Biener <rguenther@suse.de>
8263 PR tree-optimization/90930
8264 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8265 flag on new stmts to avoid re-processing them.
8267 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8269 PR c++/90875 - added -Wswitch-outside-range option
8270 * doc/invoke.texi (Wswitch-outside-range): Document.
8272 2019-06-21 Jeff Law <law@redhat.com>
8274 PR tree-optimization/90949
8275 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8276 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8278 2019-06-21 Richard Biener <rguenther@suse.de>
8281 * dwarf2out.c (prune_unused_types_walk): Always consider
8282 function-local extern declarations as used.
8284 2019-06-21 Richard Biener <rguenther@suse.de>
8286 PR tree-optimization/90913
8287 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8288 the scalar variant of if-conversion versioning.
8290 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8292 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8293 create another "omp scan inscan exclusive" array if
8294 !ctx->scan_inclusive.
8295 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8296 (lower_omp_scan): Likewise.
8297 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8298 2-bit bitfield for simd_lane_access_p member.
8299 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8300 aux == (void *)-4 as simd lane access.
8301 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8302 comment with permutations to show the canonical permutation order.
8303 (vectorizable_scan_store): Handle exclusive scan.
8304 (vectorizable_store): Call vectorizable_scan_store even for
8305 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8307 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8308 "omp simd array" arrays with one byte elements.
8310 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8312 * config/alpha/alpha.md (@unaligned_store<mode>):
8313 Rename from unaligned_store<mode>.
8314 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8315 * config/alpha/sync.md (@load_locked_<mode>): Rename
8316 from load_locked_<mode>.
8317 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8318 (@atomic_compare_and_swap<mode>_1): Rename
8319 from atomic_compare_and_swap<mode>_1.
8320 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8321 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8322 Use gen_reload_in_aligned and gen_unaligned_store.
8323 (emit_load_locked): Remove.
8324 (emit_store_conditional): Ditto.
8325 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8326 (alpha_split_compare_and_swap): Ditto.
8327 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8328 (alpha_split_compare_and_swap_12): Use gen_load_locked
8329 and gen_store_conditional.
8330 (alpha_split_atomic_exchange): Ditto.
8331 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
8332 (alpha_split_atomic_exchange_12): Use gen_load_locked
8333 and gen_store_conditional.
8335 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
8337 * config/aarch64/aarch64-errata.h: New file.
8338 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
8339 (CA53_ERR_843419_SPEC): Delete.
8340 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
8341 * config/aarch64/aarch64-linux.h: Likewise.
8342 * config/aarch64/aarch64-netbsd.h: Likewise.
8343 * config/aarch64/aarch64-freebsd.h: Likewise.
8345 2019-06-20 Marek Polacek <polacek@redhat.com>
8347 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
8349 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
8351 * config/rs6000/rs6000.md (isa attribute): Add support for
8352 for a future processor.
8354 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
8357 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
8358 standard scalar operation pattern for V2DF.
8359 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
8360 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
8361 (*ieee_<ieee_maxmin><mode>3): Likewise.
8362 (vec_setv2df_0): Likewise.
8364 2019-06-20 Jan Hubicka <jh@suse.cz>
8366 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
8367 parameter; it has no use in gimple memory model.
8368 (indirect_ref_may_alias_decl_p): Update.
8370 2019-06-20 Martin Liska <mliska@suse.cz>
8372 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
8375 2019-06-20 Jakub Jelinek <jakub@redhat.com>
8377 * tree-vect-stmts.c (enum scan_store_kind): New type.
8378 (scan_store_can_perm_p): Change last argument from int * to
8379 vec<enum scan_store_kind> *, record precisely which permutations
8380 need whole vector left shift or that plus VEC_COND_EXPR.
8381 (vectorizable_scan_store): Adjust caller, use whole vector left shift
8382 and additional VEC_COND_EXPR only for those iterations that need it.
8384 2019-06-20 Alexandre Oliva <oliva@adacore.com>
8386 * config.gcc: Fix ARM --with-fpu checking and error message.
8388 2019-06-19 Marek Polacek <polacek@redhat.com>
8390 PR c++/60364 - noreturn after first decl not diagnosed.
8391 * attribs.c (get_attribute_namespace): No longer static.
8392 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
8394 (attr_noreturn_exclusions): Make it extern.
8395 * attribs.h (get_attribute_namespace): Declare.
8396 * tree-inline.c (function_attribute_inlinable_p): Use
8399 2019-06-19 Martin Sebor <msebor@redhat.com>
8401 PR tree-optimization/90626
8402 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
8404 PR tree-optimization/90626
8405 * tree-ssa-strlen.c (strxcmp_unequal): New function.
8406 (handle_builtin_string_cmp): Call it.
8408 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8410 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
8411 and DARWIN_NOPIE_SPEC.
8412 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
8413 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
8414 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
8415 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
8416 (DARWIN_EXPORT_DYNAMIC): Delete.
8417 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
8418 and pie options processing to darwin.h.
8419 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
8421 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
8423 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
8424 in computing the number of options to be moved.
8426 2019-06-19 Maya Rashish <coypu@sdf.org>
8428 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
8429 (CLEAR_INSN_CACHE) Use it.
8431 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
8433 * config/i386/i386.md (cmpstrnsi): Remove dead code.
8435 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
8438 * builtins.c (expand_builtin_setjmp_setup): Save
8439 hard_frame_pointer_rtx.
8440 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
8442 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
8444 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
8446 (remove_reg_equal_offset_note): Remove unused function.
8447 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
8449 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8450 (arc_builtin_setjmp_frame_value): Remove function.
8451 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8452 (avr_builtin_setjmp_frame_value): Remove function.
8453 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8454 (ix86_builtin_setjmp_frame_value): Remove function.
8455 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
8456 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8457 (sparc_builtin_setjmp_frame_value): Remove function.
8458 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8459 (vax_builtin_setjmp_frame_value): Remove function.
8460 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
8461 pointer if has_nonlocal_label.
8463 2019-06-19 Jakub Jelinek <jakub@redhat.com>
8465 * doc/md.texi: Document vec_shl_<mode> pattern.
8466 * optabs.def (vec_shl_optab): New optab.
8467 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
8468 argument, if == vec_shl_optab, check for left whole vector shift
8469 pattern rather than right shift.
8470 (expand_vec_perm_const): Add vec_shl_optab support.
8471 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
8473 * tree-vect-generic.c (lower_vec_perm): Support permutations which
8474 can be handled by vec_shl_optab.
8475 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
8476 (check_scan_store): Use it.
8477 (vectorizable_scan_store): If target can't do normal permutations,
8478 try to use whole vector left shifts and if needed a VEC_COND_EXPR
8480 * config/i386/sse.md (vec_shl_<mode>): New expander.
8482 * omp-low.c (lower_rec_input_clauses): Handle references properly
8484 (lower_omp_scan): Likewise.
8486 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8488 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
8489 mem_mode is BLKmode.
8491 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
8494 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
8495 pointer adjustment for the case of no callee-saved registers and
8496 stack frame bigger than 128 bytes.
8498 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
8501 * omp-low.c (check_omp_nesting_restrictions): Handle
8502 GF_OMP_TARGET_KIND_OACC_DECLARE.
8504 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
8506 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
8507 (@add<mode>3_carry): Rename from add<mode>3_carry.
8508 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
8509 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
8510 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
8511 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
8512 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
8513 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
8514 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
8515 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
8516 (cmpstrnsi): Use gen_cmp_1.
8517 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
8518 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
8519 (@umonitor_<mode>): Rename from umonitor_<mode>.
8520 * config/i386/i386-expand.c (ix86_expand_copysign):
8521 Use gen_copysign3_const and gen_copysign3_var.
8522 (ix86_expand_xorsign): Use gen_xorsign3_1.
8523 (ix86_expand_branch): Use gen_sub3_carry_ccc,
8524 gen_sub3_carry_ccgz and gen_cmp1.
8525 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
8526 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
8527 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
8528 (ix86_split_lshr): Ditto.
8529 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
8531 2019-06-18 Jason Merrill <jason@redhat.com>
8533 * tree.c (build_constructor): Add MEM_STAT_DECL.
8535 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8537 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
8538 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
8539 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
8540 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
8541 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
8542 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
8543 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
8544 Use CC_NZC instead of CC.
8545 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
8546 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
8547 (aarch64_print_operand): Handle E_CC_NZCmode.
8548 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
8549 of gen_set_clobber_cc.
8551 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8553 * config/aarch64/aarch64-sve.md: Tabify file.
8555 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8557 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
8558 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
8559 * config/aarch64/aarch64-sve.md: Use it.
8561 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8563 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
8564 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
8565 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
8566 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
8567 (aarch64_expand_sve_vec_cmp_int): Use it.
8568 (aarch64_expand_sve_vec_cmp_float): Likewise.
8569 * config/aarch64/aarch64-sve.md: Likewise throughout.
8571 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8572 Kugan Vivekanandarajah <kuganv@linaro.org>
8574 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
8575 (*cond_<optab><mode>_z): Fold into...
8576 (*cond_<optab><mode>_any): ...here. Also handle cases in which
8577 operand 4 can be tied to operand 0 (either inherently or via RA).
8579 2019-06-18 Richard Biener <rguenther@suse.de>
8582 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
8583 as if optimized away.
8585 2019-06-18 Tom de Vries <tdevries@suse.de>
8587 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
8588 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
8589 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
8591 (define_insn "@set_softstack_<mode>"): ... this.
8592 (define_insn "omp_simt_enter_<mode>"): Rename to ...
8593 (define_insn "@omp_simt_enter_<mode>"): ... this.
8594 (define_insn "omp_simt_exit_<mode>"): Rename to ...
8595 (define_insn "@omp_simt_exit_<mode>"): ... this.
8597 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
8599 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
8600 vf parameter. Restore the previous iv step of nscalars_step,
8601 but give it iv_type rather than compare_type. Tweak code order
8602 to match the comments.
8603 (vect_set_loop_condition_masked): Update accordingly.
8604 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
8605 for iv_precision. Tweak comment formatting.
8607 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8609 * config/darwin.c: Strip trailing whitespace.
8611 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
8613 * config/darwin.c (darwin_emit_unwind_label): New default to false.
8614 (darwin_override_options): Set darwin_emit_unwind_label as needed.
8616 2019-06-18 Martin Jambor <mjambor@suse.cz>
8619 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
8620 caller does not have flag_ipa_cp set.
8622 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8624 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
8625 from "*fold_left_plus_<mode>", updated operands order.
8626 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
8627 * internal-fn.c (mask_fold_left_direct): New define.
8628 (expand_mask_fold_left_optab_fn): Likewise.
8629 (direct_mask_fold_left_optab_supported_p): Likewise.
8630 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
8631 * optabs.def (mask_fold_left_plus_optab): New optab.
8632 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
8633 masked internal_fn for a reduction ifn.
8634 (vectorize_fold_left_reduction): Add support for masking reductions.
8636 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
8639 * target.def (predict_doloop_p): New hook.
8640 * targhooks.h (default_predict_doloop_p): New declaration.
8641 * targhooks.c (default_predict_doloop_p): New function.
8642 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
8643 * doc/tm.texi: Regenerate.
8644 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
8645 (TARGET_PREDICT_DOLOOP_P): New macro.
8646 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
8648 2019-06-17 Jakub Jelinek <jakub@redhat.com>
8650 * omp-low.c (struct omp_context): Add scan_inclusive field.
8651 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
8653 (struct omplow_simd_context): Add lastlane member.
8654 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
8655 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
8657 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
8658 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
8659 (lower_omp_scan): New function.
8660 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
8661 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
8662 check 3rd argument if present rather than 2nd.
8663 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
8664 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
8666 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8667 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
8669 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
8670 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
8671 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
8673 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
8674 IFN_GOMP_SIMD_LANE argument.
8675 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
8676 encoded ->aux value.
8677 * tree-vect-stmts.c: Include attribs.h.
8678 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
8679 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
8681 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
8682 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
8684 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
8687 * config/i386/i386.md (*nabstf2_1): New insn pattern.
8688 (*nabs<mode>2_1): Ditto.
8689 (nabs sse-reg splitter): New splitter.
8690 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
8692 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8695 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
8698 2019-06-17 Tom de Vries <tdevries@suse.de>
8700 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
8701 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
8702 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
8704 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
8706 (define_insn "omp_simt_enter_insn"): Rename to ...
8707 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
8708 match_operand 0, 1 and 2, as well as the unspec_volatile result.
8709 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
8710 gen_omp_simt_enter_si.
8711 (define_expand "omp_simt_exit"): New.
8712 (define_insn "omp_simt_exit"): Rename to ...
8713 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
8716 2019-06-17 Matthew Green <mrg@eterna.com.au>
8717 Maya Rashish <coypu@sdf.org>
8719 * config.gcc (aarch64*-*-netbsd*): New target.
8720 * config/aarch64/aarch64-netbsd.h: New file.
8721 * config/aarch64/t-aarch64-netbsd: Likewise.
8723 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8725 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
8726 the access path from base to first VIEW_CONVERT_EXPR or
8729 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
8731 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
8732 access path on BIT_FIELD_REFs.
8734 2019-06-17 Martin Liska <mliska@suse.cz>
8737 * ipa-utils.h (odr_type_p): Remove dead code.
8739 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8741 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
8742 alternative Solaris 11.4 format.
8743 * configure: Regenerate.
8745 2019-06-17 Tom de Vries <tdevries@suse.de>
8747 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
8748 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
8750 (define_insn "call_value_insn"): Rename to ...
8751 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
8753 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
8756 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
8759 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
8760 frame clobbers and schedule block.
8761 (builtin_longjmp): Likewise.
8763 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8765 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
8766 describe how to perform MSPABI compliant 64-bit shift.
8767 * config/msp430/msp430.md (ashldi3): New define_expand.
8768 (ashrdi3): New define_expand.
8769 (lshrdi3): New define_expand.
8771 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8773 * doc/sourcebuild.texi: Document new effective target keyword
8776 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8778 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
8779 indirect_refs_may_alias_p): Revert accidental commits.
8781 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
8782 at the end of structures.
8784 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8786 * config/darwin.c (machopic_indirect_call_target): Use renamed
8787 darwin_picsymbol_stubs to decide on output.
8788 (darwin_override_options): Handle darwin_picsymbol_stubs.
8789 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
8790 (LD64_VERSION): Revise default.
8791 * config/darwin.opt: (mpic-symbol-stubs): New option.
8792 (darwin_picsymbol_stubs): New variable.
8793 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
8794 rename to TARGET_MACHO_PICSYM_STUBS.
8795 * config/i386/i386.c (output_pic_addr_const): Likewise.
8796 * config/i386/i386.h Likewise.
8797 * config/rs6000/darwin.h: Likewise.
8798 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
8799 darwin_picsymbol_stubs.
8801 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
8803 * config/darwin.opt (prebind, noprebind, seglinkedit,
8804 noseglinkedit): Add RejectNegative.
8806 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
8808 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
8809 in my previous patch.
8811 2019-06-16 Tom de Vries <tdevries@suse.de>
8813 PR tree-optimization/89376
8814 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
8816 2019-06-15 Maya Rashish <coypu@sdf.org>
8818 * doc/invoke.texi (Spec Files): Update location of the
8821 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
8823 * doc/extend.texi (Common Function Attributes): Clarify
8824 no_sanitize. Fix grammar.
8826 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
8828 * tree-ssa-alias.c (alias_stats): Add
8829 nonoverlapping_component_refs_p_may_alias,
8830 nonoverlapping_component_refs_p_no_alias,
8831 nonoverlapping_component_refs_of_decl_p_may_alias,
8832 nonoverlapping_component_refs_of_decl_p_no_alias.
8833 (dump_alias_stats): Dump them.
8834 (nonoverlapping_component_refs_of_decl_p): Add stats.
8835 (nonoverlapping_component_refs_p): Add stats; do not stop on first
8838 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
8840 * config/i386/i386.md (and<mode>3): Generate zero-extends for
8841 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
8843 (*anddi3_doubleword): Split before reload. Merge with
8844 anddi->zext pre-reload splitter.
8845 (*andndi3_doubleword): Split before reload.
8846 (*<code>di3_doubleword): Ditto.
8847 (*one_cmpldi2_doubleword): Ditto.
8849 2019-06-15 Jakub Jelinek <jakub@redhat.com>
8852 * gimplify.c: Include omp-offload.h and context.h.
8853 (gimplify_bind_expr): Add "omp declare target" attributes
8854 to static block scope variables inside of target region or target
8857 2019-06-15 Tom de Vries <tdevries@suse.de>
8859 PR tree-optimization/90009
8860 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
8861 Return NULL if bb contains IFN_UNIQUE.
8863 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
8865 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
8866 (un): New define_mode_attr.
8867 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
8868 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
8869 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
8871 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
8873 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
8875 * config/darwin.opt: Add RejectNegative where needed, reorder
8876 and add minimal functional descriptions.
8878 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8880 PR rtl-optimization/90765
8881 * calls.c (update_stack_alignment_for_call): New function.
8882 (expand_call): Call update_stack_alignment_for_call when
8883 outgoing parameter is passed in the stack.
8884 (emit_library_call_value_1): Likewise.
8885 * function.c (locate_and_pad_parm): Don't update
8886 stack_alignment_needed and preferred_stack_boundary.
8888 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
8891 * config/i386/i386-features.c
8892 (dimode_scalar_chain::compute_convert_gain): Replace
8893 mmxsse_to_integer with sse_to_integer.
8894 * config/i386/i386.c (ix86_register_move_cost): Verify that
8895 moves between MMX and non-MMX units require secondary memory.
8896 Correct costs of moves between SSE and integer units.
8897 * config/i386/i386.h (processor_costs): Rename cost of moving
8898 SSE register to integer to sse_to_integer. Rename cost of
8900 2019-06-14 Matt Thomas <matt@3am-software.com>
8901 Matthew Green <mrg@eterna.com.au>
8902 Nick Hudson <skrll@netbsd.org>
8903 Maya Rashish <coypu@sdf.org>
8904 Richard Earnshaw <rearnsha@arm.com>
8906 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
8907 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
8908 * config/arm/netbsd-eabi.h: New file.
8909 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
8911 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
8912 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
8913 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
8914 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
8916 2019-06-14 Richard Biener <rguenther@suse.de>
8918 * tree-loop-distribution.c (classify_partition): Return
8919 whether a reduction appeared in all partitions and do not
8920 stop builtin detection because of this.
8921 (distribute_loop): Sort a non-builtin partition last if
8922 there's a reduction in all partitions and make sure the
8923 partition prevailing as last is not a builtin.
8925 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
8928 * ipa-prop.c (add_to_agg_contents_list): New function.
8929 (clobber_by_agg_contents_list_p): Likewise.
8930 (extract_mem_content): Likewise.
8931 (get_place_in_agg_contents_list): Delete.
8932 (determine_known_aggregate_parts): Renamed from
8933 determine_locally_known_aggregate_parts. New parameter
8936 2019-06-13 Martin Sebor <msebor@redhat.com>
8938 PR tree-optimization/90662
8939 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
8942 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
8945 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
8946 dbase is not TARGET_MEM_REF.
8948 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8950 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
8952 (and<mode>3): Use gen_extend_insn instead of indirect functions.
8953 Do not generate DImode extends for 32bit targets.
8954 (and->zext post-reload splitter): Use gen_extend_insn
8955 instead of indirect functions.
8956 (anddi->zext pre-reload splitter): New.
8957 (*zext<mode>_doubleword_and): Remove.
8958 (*zext<mode>_doubleword): Ditto.
8959 (*zextsi_doubleword): Dittto.
8961 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
8963 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
8964 Use gen_sub3_insn instead of indirect function.
8965 (ix86_expand_ashl_const): Use gen_add2_insn instead of
8967 (ix86_adjust_counter): Ditto.
8969 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
8970 Lijia He <helijia@linux.ibm.com>
8972 PR tree-optimization/77820
8973 * tree-ssa-threadedge.c
8974 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
8976 (thread_across_edge): Add call to
8977 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
8979 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
8981 * config/darwin-driver.c (validate_macosx_version_min): New.
8982 (darwin_default_min_version): Cleanup and validate supplied version.
8983 (darwin_driver_init): Likewise and push cleaned version into opts.
8985 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
8987 PR tree-optimization/90869
8988 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
8989 converts in MEM_REF referencing decl rather than view converts
8990 from decl type to MEM_REF type.
8992 2019-06-13 Richard Biener <rguenther@suse.de>
8994 PR tree-optimization/90856
8995 * tree-sra.c (build_ref_for_model): Only use
8996 build_reconstructed_reference when address-spaces are the same.
8998 2019-06-13 Jakub Jelinek <jakub@redhat.com>
9000 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
9001 wrap ei variable name in the declaration in ()s.
9002 (nvptx_single): Actually use mode_label variable. Formatting fix.
9004 2019-06-13 Richard Biener <rguenther@suse.de>
9006 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9007 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9008 also return the condition stmt.
9009 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9010 loop we can version and version that, reusing the loop version
9011 created by if-conversion instead of versioning again.
9013 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9015 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9017 * tree-vrp (value_range_base::may_contain_p): Call into
9019 (value_inside_range): Make private inside value_range_base class.
9020 Take min/max from *this.
9021 (range_includes_p): Remove.
9022 * tree-vrp.h (value_range_base): Add value_inside_range.
9023 (range_includes_p): Remove.
9024 (range_includes_zero_p): Call may_contain_p.
9025 * vr-values.c (compare_range_with_value): Same.
9027 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9029 * doc/extend.texi (ARC Function Attributes): Update info.
9031 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9033 PR tree-optimization/89713
9034 * doc/invoke.texi (-ffinite-loops): Document new option.
9035 * common.opt (-ffinite-loops): New option.
9036 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9037 IFN_GOACC_LOOP calls as necessary.
9038 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9040 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9041 IFN_GOACC_LOOP call is not used.
9042 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9044 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9047 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9048 compare_type is not with Pmode size, we will create an IV with
9049 Pmode size with truncated use (i.e. converted to the correct type).
9050 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9051 (vect_iv_limit_for_full_masking): New. Factored out of
9052 vect_set_loop_condition_masked.
9053 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9054 (vect_iv_limit_for_full_masking): Declare.
9056 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9059 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9060 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9061 (get_alias_ptr_type_for_ptr_address): Likewise.
9062 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9063 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9064 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9067 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9069 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9071 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9073 * common/config/pru/pru-common.c: New file.
9074 * config.gcc: Add PRU target.
9075 * config/pru/alu-zext.md: New file.
9076 * config/pru/constraints.md: New file.
9077 * config/pru/predicates.md: New file.
9078 * config/pru/pru-opts.h: New file.
9079 * config/pru/pru-passes.c: New file.
9080 * config/pru/pru-pragma.c: New file.
9081 * config/pru/pru-protos.h: New file.
9082 * config/pru/pru.c: New file.
9083 * config/pru/pru.h: New file.
9084 * config/pru/pru.md: New file.
9085 * config/pru/pru.opt: New file.
9086 * config/pru/t-pru: New file.
9087 * doc/extend.texi: Document PRU pragmas.
9088 * doc/invoke.texi: Document PRU-specific options.
9089 * doc/md.texi: Document PRU asm constraints.
9091 2019-06-12 Martin Sebor <msebor@redhat.com>
9094 * tree-pretty-print.c (dump_mem_ref): New function. Include
9095 MEM_REF type in output when different size than operand.
9096 (dump_generic_node): Move code to dump_mem_ref and call it.
9098 2019-06-12 Martin Sebor <msebor@redhat.com>
9100 PR tree-optimization/90662
9101 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9104 2019-06-12 Tom de Vries <tdevries@suse.de>
9106 PR tree-optimization/90009
9107 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9109 2019-06-12 Martin Liska <mliska@suse.cz>
9111 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9113 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9114 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9115 Do not sanitize created maps.
9117 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9119 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9120 value_range::singleton_p.
9121 * tree-vrp.c (value_range_constant_singleton): Remove.
9122 * tree-vrp.h (value_range_constant_singleton): Remove.
9123 * vr-values.c (vr_values::singleton): Use
9124 value_range::singleton_p.
9126 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9129 * cfgexpand.c (align_local_variable): Add really_expand argument,
9130 don't SET_DECL_ALIGN if it is false.
9131 (add_stack_var): Add really_expand argument, pass it through to
9132 align_local_variable.
9133 (expand_one_stack_var_1): Pass true as really_expand to
9134 align_local_variable.
9135 (expand_one_ssa_partition): Pass true as really_expand to
9137 (expand_one_var): Pass really_expand through to add_stack_var.
9139 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9141 * config/arm/iterators.md (VABAL): New int iterator.
9142 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9143 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9144 UNSPEC_VABAL_U values.
9146 2019-06-12 Martin Liska <mliska@suse.cz>
9148 * value-prof.c (stream_out_histogram_value): Only first value
9151 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9154 * symtab.c (symtab_node::set_section): Allow being called on aliases
9155 as long as they aren't analyzed yet.
9157 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9159 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9160 to `mips_set_text_contents_type' to indicate whether a
9161 non-debug insn follows.
9163 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9165 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9166 enabling -mpcrel by default.
9167 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9168 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9169 that the test against -mcpu=future is done first. Then test if
9170 -mprefixed-addr is on for -mpcrel.
9171 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9173 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9176 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9179 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9181 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9183 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9185 PR c++/90449 - add -Winaccessible-base option.
9186 * doc/invoke.texi (Winaccessible-base): Document.
9188 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9190 PR tree-optimization/62041
9191 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9193 2019-06-11 Jason Merrill <jason@redhat.com>
9195 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9196 * tree.c (get_tree_code_name): Likewise.
9197 * print-tree.c (print_node): Only briefly print a node with an
9200 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9203 * trans-mem.c (tm_memopt_compute_available): Add assertion
9204 that blocks is not empty. Formatting fix.
9206 2019-06-11 Martin Liska <mliska@suse.cz>
9209 * hash-table.h: Extend create_gcc, add one parameter
9210 that is passed into hash_table::hash_table.
9212 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9214 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9216 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9217 Emit clobber also for non-sse operations.
9218 (ix86_split_fp_absneg_operator): New function.
9219 * config/i386/i386.md (SSEMODEF): New mode iterator.
9220 (ssevecmodef): New mode attribute.
9221 (<code>tf2): Use absneg code iterator.
9222 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9223 Add three-operand AVX alternatives.
9224 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9225 Use absneg code iterator and X87MODEF mode iterator.
9226 (absneg fp_reg non-sse splitter): Call absneg code iterator
9227 and X87MODEF mode iterator.
9228 (absneg general_reg non-sse splitter): Use absneg code iterator
9229 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9230 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9231 code iterator. Add three-operand AVX alternative.
9232 (absneg sse_reg splitter): Use absneg code iterator
9233 and SSEMODEF mode iterator. Handle AVX operands.
9234 (absneg fp_reg splitter): Use absneg code iterator
9235 and MODEF mode iterator.
9236 (absneg general_reg splitter): Merge splitters using MODEF mode
9237 iterator. Use absneg code iterator. Call
9238 ix86_split_fp_absneg_operator.
9239 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9240 Do not enable for non-sse modes before reload.
9243 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9244 ssevecmodef mode attribute instaed of CSGNVMODE.
9245 (copysign<mode>3_const): Ditto.
9246 (copysign<mode>3_var): Ditto.
9247 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9248 Use absneg code iterator. Simplify code using std::swap.
9249 * config/i386/predicates.md (absneg_operator): Remove.
9251 2019-06-10 Martin Sebor <msebor@redhat.com>
9253 * gimple-fold.c (get_range_strlen): Update comment that didn't
9254 make it into r267503 or related commits.
9256 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9258 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9259 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9261 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9263 * tree.def (OMP_SCAN): New tree code.
9264 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9265 OMP_CLAUSE_EXCLUSIVE.
9266 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9267 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9268 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9269 OMP_CLAUSE_{IN,EX}CLUSIVE.
9270 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9271 * tree-nested.c (convert_nonlocal_reference_stmt,
9272 convert_local_reference_stmt, convert_gimple_call): Handle
9274 * tree-pretty-print.c (dump_omp_clause): Handle
9275 OMP_CLAUSE_{IN,EX}CLUSIVE.
9276 (dump_generic_node): Handle OMP_SCAN.
9277 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9278 * gimple.h (gomp_scan): New type.
9279 (is_a_helper <gomp_scan *>::test,
9280 is_a_helper <const gomp_scan *>::test): New templates.
9281 (gimple_build_omp_scan): Declare.
9282 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9283 gimple_omp_scan_set_clauses): New inline functions.
9284 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9285 * gimple.c (gimple_build_omp_scan): New function.
9286 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9287 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9288 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9289 GIMPLE_OMP_TASKGROUP.
9290 (dump_gimple_omp_scan): New function.
9291 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9292 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9293 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9294 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9295 (is_gimple_stmt): Handle OMP_SCAN.
9296 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9297 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9298 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9299 mentioned in nested #pragma omp scan. Handle
9300 OMP_CLAUSE_{IN,EX}CLUSIVE.
9301 (gimplify_expr): Handle OMP_SCAN.
9302 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9303 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9305 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9308 2019-06-10 Martin Liska <mliska@suse.cz>
9310 * ipa-cp.c (ignore_edge_p): New function.
9311 (build_toporder_info): Use it.
9312 * ipa-inline.c (ignore_edge_p): New function.
9313 (inline_small_functions): Use it.
9314 * ipa-pure-const.c (ignore_edge_for_nothrow):
9315 Verify opt_for_fn for caller and callee.
9316 (ignore_edge_for_pure_const): Likewise.
9317 * ipa-reference.c (ignore_edge_p): Extend to check
9319 * ipa-utils.c (searchc): Refactor.
9320 * ipa-utils.h: Fix coding style.
9322 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9324 * config/arc/arc.c (arc_rtx_costs): Update costs.
9326 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9328 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9329 (arc_split_ior): Likewise.
9330 (arc_check_mov_const): Likewise.
9331 (arc_split_mov_const): Likewise.
9332 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
9333 (arc_rtx_costs): Replace check Crr with Cax constraint.
9334 (prepare_move_operands): Cleanup, remove unused code.
9335 (arc_split_ior): New function.
9336 (arc_check_ior_const): Likewise.
9337 (arc_split_mov_const): Likewise.
9338 (arc_check_mov_const): Likewise.
9339 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
9340 in define_insn_and_split pattern.
9342 (mulsi3_v2): Add new matching variant.
9343 (andsi3_i): Cleanup pattern.
9344 (rotrsi3_cnt1): Update pattern.
9345 (rotrsi3_cnt8): New pattern.
9346 (ashlsi2_cnt8): Likewise.
9347 (ashlsi2_cnt16): Likewise.
9348 * config/arc/constraints.md (C0p): Update constraint.
9353 2019-06-10 Martin Liska <mliska@suse.cz>
9355 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
9356 Update coding style.
9357 (sem_item_optimizer::dump_cong_classes):
9358 Print how many items are in a non-singular class. Improve
9361 2019-06-10 Martin Liska <mliska@suse.cz>
9363 * value-prof.c (dump_histogram_value): Change dump format.
9364 (gimple_mod_subtract_transform): Remove legacy comment.
9366 2019-06-10 Martin Liska <mliska@suse.cz>
9368 * value-prof.c (dump_histogram_value): Print histogram values
9371 2019-06-10 Martin Liska <mliska@suse.cz>
9373 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
9374 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
9375 * ipa-profile.c (ipa_profile_generate_summary):
9376 Use get_most_common_single_value.
9377 * tree-profile.c (gimple_init_gcov_profiler):
9378 Instrument with __gcov_one_value_profiler_v2
9379 and __gcov_indirect_call_profiler_v4.
9380 * value-prof.c (dump_histogram_value):
9381 Print all values for HIST_TYPE_SINGLE_VALUE.
9382 (stream_out_histogram_value): Update assert for
9384 (stream_in_histogram_value): Set number of
9385 counters for HIST_TYPE_SINGLE_VALUE.
9386 (get_most_common_single_value): New.
9387 (gimple_divmod_fixed_value_transform):
9388 Use get_most_common_single_value.
9389 (gimple_ic_transform): Likewise.
9390 (gimple_stringops_transform): Likewise.
9391 (gimple_find_values_to_profile): Set number
9392 of counters for HIST_TYPE_SINGLE_VALUE.
9393 * value-prof.h (get_most_common_single_value): New.
9395 2019-06-10 Martin Liska <mliska@suse.cz>
9397 * hash-map.h: Pass default value to hash_table ctor.
9398 * hash-table.h: Add default value to call of a ctor.
9400 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
9402 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
9403 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
9405 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
9408 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
9409 Call pa_output_function_label.
9410 (TARGET_ASM_FUNCTION_PROLOGUE): define.
9411 * config/pa/pa-protos.h (pa_output_function_label): Declare.
9412 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
9414 (pa_linux_output_function_prologue): Declare.
9415 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
9416 (pa_output_function_label): New.
9417 (pa_output_function_prologue): Revise to use pa_output_function_label.
9418 (pa_linux_output_function_prologue): New.
9419 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
9421 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
9423 * tree-vrp.h (value_range_base::intersect): New.
9424 (value_range::intersect_helper): Move from here...
9425 (value_range_base::intersect_helper): ...to here.
9426 * tree-vrp.c (value_range::intersect_helper): Rename to...
9427 (value_range_base::intersect_helper): ...this, and rewrite to
9428 return a value instead of modifying THIS in place.
9429 Also, move equivalence handling...
9430 (value_range::intersect): ...here, while calling intersect_helper.
9431 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
9433 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
9435 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
9437 2019-06-07 Jakub Jelinek <jakub@redhat.com>
9439 * Makefile.in (genprogerr): Add condmd.
9440 (genprog): Remove it here.
9442 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
9444 * doc/invoke.texi (AMD GCN Options): Add gfx906.
9446 2019-06-07 Richard Biener <rguenther@suse.de>
9449 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
9450 that appear after user labels.
9452 2019-06-07 Martin Liska <mliska@suse.cz>
9454 * cselib.c (cselib_init): Disable hash table
9456 * hash-set.h: Pass new default argument to m_table.
9457 * hash-table.c: Add global variable with hash table
9459 * hash-table.h (Allocator>::hash_table): Add new argument
9461 (hashtab_chk_error): New.
9462 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
9463 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
9464 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
9466 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9468 * common.opt (flto-odr-type-merging): Ignore.
9469 * invoke.texi (-flto-odr-type-merging): Remove.
9470 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
9471 (can_be_vtable_hashed_p): Remove.
9472 (hash_odr_vtable): Remove.
9473 (odr_vtable_hasher::hash): Remove.
9474 (types_same_for_odr): Remove.
9475 (types_odr_comparable): Remove.
9476 (odr_vtable_hasher::equal): Remove.
9477 (odr_vtable_hash_type, odr_vtable_hash): Remove.
9478 (add_type_duplicate): Do not synchronize vtable and name hashtables.
9479 (get_odr_type): Do not use vtable hash.
9480 (dump_odr_type): Remove commented out code.
9481 (build_type_inheritance_graph): Do not allocate vtable hash.
9482 (rebuild_type_inheritance_graph): Do not delete vtable hash.
9483 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
9484 (odr_type_p): Likewise.
9485 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
9488 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
9490 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
9491 immediately after same_types_for_tbaa_p returns -1 and continue
9492 looking for possible exact match; if matching types are arrays
9493 watch for partial overlaps.
9494 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
9495 (indirect_refs_may_alias_p): Do type based disambiguation first;
9498 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
9500 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
9502 2019-06-07 Martin Liska <mliska@suse.cz>
9504 * doc/invoke.texi: Remove param.
9505 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
9507 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
9508 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
9509 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
9510 * profile.c (instrument_values): Remove
9511 HIST_TYPE_INDIR_CALL_TOPN.
9512 * tree-profile.c (init_ic_make_global_vars):
9513 Always build __gcov_indirect_call only.
9514 (gimple_init_gcov_profiler): Remove usage
9515 of PARAM_INDIR_CALL_TOPN_PROFILE.
9516 (gimple_gen_ic_profiler): Likewise.
9517 * value-prof.c (dump_histogram_value): Likewise.
9518 (stream_in_histogram_value): Likewise.
9519 (gimple_indirect_call_to_profile): Likewise.
9520 (gimple_find_values_to_profile): Likewise.
9521 * value-prof.h (enum hist_type): Likewise.
9523 2019-06-07 Martin Liska <mliska@suse.cz>
9525 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
9528 2019-06-07 Martin Liska <mliska@suse.cz>
9530 PR tree-optimization/78902
9531 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
9532 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
9533 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9534 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
9535 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
9536 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9537 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
9538 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
9539 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9540 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
9541 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
9542 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
9543 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
9545 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
9546 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
9547 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
9548 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9549 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
9550 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
9551 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9552 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
9553 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
9554 warn_unused_result attribute.
9555 (BUILT_IN_STRDUP): Likewise.
9556 (BUILT_IN_STRNDUP): Likewise.
9557 (BUILT_IN_ALLOCA): Likewise.
9558 (BUILT_IN_CALLOC): Likewise.
9559 (BUILT_IN_MALLOC): Likewise.
9560 (BUILT_IN_REALLOC): Likewise.
9562 2019-06-06 Jim Wilson <jimw@sifive.com>
9565 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
9566 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
9567 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
9569 2019-06-06 Martin Sebor <msebor@redhat.com>
9571 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
9572 (handle_builtin_malloc): Remove trailing spaces.
9573 (handle_builtin_memset): Same.
9574 (handle_builtin_memcmp): Same.
9575 (compute_string_length): Same.
9576 (determine_min_objsize): Same.
9577 (handle_builtin_string_cmp): Same.
9578 (handle_char_store): Same. Break up excessively long line.
9580 2019-06-06 Martin Jambor <mjambor@suse.cz>
9582 * tree-sra.c (build_reconstructed_reference): Drop the alignment
9585 2019-06-06 Martin Jambor <mjambor@suse.cz>
9587 * tree-sra.c (struct access): New field grp_same_access_path.
9588 (dump_access): Dump it.
9589 (build_reconstructed_reference): New function.
9590 (build_ref_for_model): Use it if possible.
9591 (path_comparable_for_same_access): New function.
9592 (same_access_path_p): Likewise.
9593 (sort_and_splice_var_accesses): Set the new flag.
9594 (analyze_access_subtree): Likewise.
9595 (propagate_subaccesses_across_link): Propagate zero value of the new
9596 flag down the access tree.
9598 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
9600 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
9601 * config/gcn/gcn.opt (gpu_type): Add gfx906.
9602 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
9603 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
9606 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9608 PR tree-optimization/90332
9609 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
9610 Handle VALS containing two vectors.
9611 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
9613 (@aarch64_combinez<mode>): ... This.
9614 (*aarch64_combinez_be<mode>): Rename to...
9615 (@aarch64_combinez_be<mode>): ... This.
9616 (vec_init<mode><Vhalf>): New define_expand.
9617 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
9619 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9621 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
9622 library functions only when not optimizing for size.
9623 (ashlsi3): Likewise.
9624 (ashrhi3): Likewise.
9625 (ashrsi3): Likewise.
9626 (lshrhi3): Likewise.
9627 (lshrsi3): Likewise.
9629 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
9631 PR rtl-optimization/88751
9632 * ira.c (ira): Use the number of the actually referenced registers
9633 when calculating the threshold.
9635 2019-06-06 Jakub Jelinek <jakub@redhat.com>
9637 * configure: Regenerate.
9639 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9641 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
9642 register if it is in memory, so the shift can be emulated with a rotate
9644 (ashrhi3): Likewise.
9645 (lshrhi3): Likewise.
9647 2019-06-06 Martin Liska <mliska@suse.cz>
9649 PR tree-optimization/87954
9650 * match.pd: Simplify mult where both arguments are 0 or 1.
9652 2019-06-06 Richard Biener <rguenther@suse.de>
9654 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
9655 put equivalences on UNDEFINED ranges.
9656 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9657 Make sure to drop defs of stmts added during simplification
9660 2019-06-06 Richard Biener <rguenther@suse.de>
9662 * tree-ssa-structalias.c: Include tree-cfg.h.
9663 (make_heapvar): Do not make heap vars artificial.
9664 (find_func_aliases_for_builtin_call): Handle stack allocation
9666 (find_func_aliases): Delay processing of simple enough returns
9668 (set_uids_in_ptset): Adjust.
9669 (find_what_var_points_to): Likewise.
9670 (solve_constraints): Do not dump points-to sets here.
9671 (compute_points_to_sets): Post-process return statements,
9672 amending the escaped solution. Dump points-to sets afterwards.
9673 (ipa_pta_execute): Dump points-to sets.
9675 2019-06-06 Martin Liska <mliska@suse.cz>
9678 * doc/install.texi: Fix HTML headers and
9679 titles for 'Installing GCC' pages.
9681 2019-06-06 Martin Liska <mliska@suse.cz>
9683 * ipa-icf-gimple.h (dump_message_1): Remove.
9684 (dump_message): Likewise.
9685 (return_false_with_message_1): Print also file.
9686 (return_false_with_msg): Likewise.
9687 (return_with_result): Likewise.
9688 (return_with_debug): Likewise.
9689 * ipa-icf.c (sem_function::equals_private): Remove call
9692 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9694 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
9695 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
9696 memory operand for it.
9697 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
9699 2019-06-05 Martin Sebor <msebor@redhat.com>
9701 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
9702 Adjust quoting and hyphenation.
9703 * convert.c (convert_to_real_1): Same.
9704 * gcc.c (driver_wrong_lang_callback): Same.
9705 (driver::handle_unrecognized_options): Same.
9706 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
9707 * opts-common.c (cmdline_handle_error): Same.
9708 (read_cmdline_option): Same.
9709 * opts-global.c (complain_wrong_lang): Same.
9710 (print_ignored_options): Same.
9711 (handle_common_deferred_options): Same.
9712 * pretty-print.h: Same.
9713 * print-rtl.c (debug_bb_n_slim): Same.
9714 * sched-rgn.c (make_pass_sched_fusion): Same.
9715 * tree-cfg.c (verify_gimple_assign_unary): Same.
9716 (verify_gimple_label): Same.
9717 * tree-ssa-operands.c (verify_ssa_operands): Same.
9718 * varasm.c (do_assemble_alias): Same.
9719 (assemble_alias): Same.
9721 2019-06-05 Richard Henderson <rth@twiddle.net>
9723 * config/alpha/alpha.c (direct_return): Move down after
9724 struct machine_function definition; use saved frame_size;
9726 (struct machine_function): Add sa_mask, sa_size, frame_size.
9727 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
9728 (alpha_compute_frame_layout): ... new function.
9729 (TARGET_COMPUTE_FRAME_LAYOUT): New.
9730 (alpha_initial_elimination_offset): Use saved sa_size.
9731 (alpha_vms_initial_elimination_offset): Likewise.
9732 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
9733 (alpha_expand_prologue): Use saved frame data. Merge integer
9734 and fp register save loops.
9735 (alpha_expand_epilogue): Likewise.
9736 (alpha_start_function): Use saved frame data.
9737 * config/alpha/alpha-protos.h (direct_return): Update.
9738 (alpha_sa_size): Remove.
9740 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
9742 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
9743 multiplication by a power-of-two value.
9744 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
9745 and turn the modulo operation into a masking operation.
9747 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9750 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
9751 with VOIDmode inner operands.
9753 2019-06-05 Richard Biener <rguenther@suse.de>
9756 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
9757 turn an expression graph into a tree.
9759 2019-06-05 Jakub Jelinek <jakub@redhat.com>
9761 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
9763 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
9764 treat it like explicit monotonic schedule modifier.
9765 (expand_omp_for): Initialize has_lastprivate_conditional.
9766 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
9769 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
9770 references, lookup in in hash map MEM_REF operand instead of the
9772 (lower_omp_1): When looking for lastprivate conditional assignments,
9773 handle MEM_REFs with REFERENCE_TYPE operands.
9775 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
9776 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
9777 and references a VLA. Handle references to non-VLAs if is_simd
9778 all privatization clauses like reductions.
9779 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
9780 If omp_is_reference, use always omp simd arrays and set
9781 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
9782 fails, emit reference initialization.
9784 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
9787 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
9788 _mm_mask_fpclass_sd_mask): New intrinsics.
9789 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
9790 * config/i386/i386-builtin.def
9791 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
9793 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
9794 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
9795 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
9796 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
9797 case QI_FTYPE_V2SF_INT): Ditto.
9798 * config/i386/sse.md
9799 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
9800 Extended to insnstructions with mask operands.
9802 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9804 * config/rs6000/constraints.md (define_register_constraint "wp"):
9806 (define_register_constraint "wq"): Delete.
9807 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9808 (rs6000_init_hard_regno_mode_ok): Adjust.
9809 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9810 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
9811 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
9812 (define_mode_attr VSa): Delete.
9813 (define_mode_attr VSisa): New.
9814 (rest of file): Adjust.
9815 * doc/md.texi (Machine Constraints): Adjust.
9817 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9819 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
9820 (define_attr "enabled"): Handle those new isa values.
9822 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9824 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
9825 (define_mode_attr VSr5): Delete.
9826 (define_mode_attr VStype_sqrt): Delete.
9827 (define_mode_iterator VSX_SPDP): Delete.
9828 (define_mode_attr VS_spdp_res): Delete.
9829 (define_mode_attr VS_spdp_insn): Delete.
9830 (define_mode_attr VS_spdp_type): Delete.
9831 (*vsx_sqrt<mode>2): Adjust.
9832 (vsx_<VS_spdp_insn>): Delete, split to...
9833 (vsx_xscvdpsp): ... this. New. And...
9834 (vsx_xvcvspdp): ... this. New. And...
9835 (vsx_xvcvdpsp): ... this. New.
9837 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9839 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
9841 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
9842 (rest of file): Adjust.
9844 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9846 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
9847 (vsx_extract_<mode>_var): Ditto.
9849 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9851 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
9854 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9856 * config/rs6000/constraints.md (define_register_constraint "ww"):
9858 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9859 (rs6000_init_hard_regno_mode_ok): Adjust.
9860 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9861 RS6000_CONSTRAINT_ww.
9862 * config/rs6000/rs6000.md: Adjust.
9863 * config/rs6000/vsx.md: Adjust.
9864 * doc/md.texi (Machine Constraints): Adjust.
9866 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9868 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
9869 (define_mode_attr sd): New.
9870 (define_mode_attr s): New.
9871 (define_mode_attr Ftrad): Delete.
9872 (define_mode_attr Fvsx): Delete.
9873 (define_mode_attr Fs): Delete.
9874 (rest of file): Use the new mode attributes.
9875 * config.rs6000/vsx.md: Use the new mode attributes.
9877 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9879 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
9882 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9884 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
9885 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
9886 used with VSX_B, VSX_D, or VSX_F, with just "wa".
9888 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
9891 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
9892 C++ with strict ANSI requirements.
9894 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
9896 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
9897 computations when step is 1.
9899 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9901 * config/rs6000/constraints.md (define_register_constraint "wf"):
9903 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9904 (rs6000_init_hard_regno_mode_ok): Adjust.
9905 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9906 RS6000_CONSTRAINT_wf.
9907 * config/rs6000/rs6000.md: Adjust.
9908 * config/rs6000/vsx.md: Adjust.
9909 * doc/md.texi (Machine Constraints): Adjust.
9911 2019-06-04 Andrew Pinski <apinski@marvell.com>
9913 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
9916 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9918 * config/rs6000/constraints.md (define_register_constraint "wd"):
9920 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9921 (rs6000_init_hard_regno_mode_ok): Adjust.
9922 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9923 RS6000_CONSTRAINT_wd.
9924 * config/rs6000/rs6000.md: Adjust.
9925 * config/rs6000/vsx.md: Adjust.
9926 * doc/md.texi (Machine Constraints): Adjust.
9928 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9930 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
9931 (rest of file): Adjust.
9933 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9935 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
9936 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
9937 (vsx_splat_<mode>_reg): Adjust.
9939 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9941 * config/rs6000/constraints.md (define_register_constraint "ws"):
9943 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9944 (rs6000_init_hard_regno_mode_ok): Adjust.
9945 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9946 RS6000_CONSTRAINT_ws.
9947 * config/rs6000/rs6000.md: Adjust.
9948 * config/rs6000/vsx.md: Adjust.
9949 * doc/md.texi (Machine Constraints): Adjust.
9951 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9953 * config/rs6000/constraints.md (define_register_constraint "wv"):
9955 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9956 (rs6000_init_hard_regno_mode_ok): Adjust.
9957 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9958 RS6000_CONSTRAINT_wv.
9959 * config/rs6000/rs6000.md: Adjust.
9960 * config/rs6000/vsx.md: Adjust.
9961 * doc/md.texi (Machine Constraints): Adjust.
9963 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
9965 * config/rs6000/constraints.md (define_register_constraint "wi"):
9967 (define_register_constraint "wt"): Delete.
9968 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
9969 (rs6000_init_hard_regno_mode_ok): Adjust.
9970 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
9971 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
9972 * config/rs6000/rs6000.md: Adjust.
9973 * config/rs6000/vsx.md: Adjust.
9974 * doc/md.texi (Machine Constraints): Adjust.
9976 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
9978 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
9980 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
9981 default_elf_asm_output_external.
9983 2019-06-04 Martin Liska <mliska@suse.cz>
9985 * ipa-icf.c (INCLUDE_LIST): Remove.
9986 (sem_item_optimizer::execute): Remove call to init_wpa.
9987 * ipa-icf.h (init_wpa): Remove.
9989 2019-06-04 Jakub Jelinek <jakub@redhat.com>
9991 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
9992 conditional on combined for simd.
9993 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
9995 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
9996 constructs, don't remove lastprivate_conditional_map, but instead set
9997 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
9998 to parent construct temporaries.
9999 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
10000 like !ctx->lastprivate_conditional_map.
10001 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
10002 use up->outer context instead of up.
10003 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
10004 gimple_omp_for_combined_p.
10005 (expand_omp_for_static_nochunk): Likewise.
10006 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10007 probably moved over into expand_omp_for_generic rather than being copied
10010 2019-06-04 Martin Liska <mliska@suse.cz>
10012 * value-prof.c (dump_histogram_value): Fix typo.
10013 (gimple_mod_subtract_transform): Likewise.
10015 2019-06-04 Richard Biener <rguenther@suse.de>
10017 PR middle-end/90726
10018 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10019 (tree_contains_chrecs): Likewise.
10020 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10021 exponential behaivor from ...
10022 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10024 (expression_expensive_p): Avoid exponential behavior and compute
10025 expanded size, rejecting any expansion.
10026 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10027 (idx_contains_abnormal_ssa_name_p): Likewise.
10028 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10029 (contains_abnormal_ssa_name_p): Simplify and use
10030 walk_tree_without_duplicates.
10032 2019-06-04 Richard Biener <rguenther@suse.de>
10034 PR tree-optimization/90738
10036 2019-06-03 Richard Biener <rguenther@suse.de>
10038 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10039 full reference tree and record in ref->ref.
10040 (vn_reference_lookup_3): Pass in original ref to
10041 ao_ref_init_from_vn_reference.
10042 (vn_reference_lookup): Likewise.
10043 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10044 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10045 Handle non-decl bases in the original reference.
10047 2019-06-04 Martin Liska <mliska@suse.cz>
10049 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10050 number of references.
10051 (sem_item_optimizer::do_congruence_step):
10052 (sem_item_optimizer::worklist_push): Dump how references
10054 (sem_item_optimizer::worklist_pop): Use heap.
10055 (sem_item_optimizer::process_cong_reduction): Likewise.
10056 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10058 2019-06-04 Martin Liska <mliska@suse.cz>
10060 * ipa-icf.h (struct sem_usage_pair_hash): New.
10061 (sem_usage_pair_hash::hash): Likewise.
10062 (sem_usage_pair_hash::equal): Likewise.
10063 (struct sem_usage_hash): Likewise.
10064 * ipa-icf.c (sem_item::sem_item): Initialize
10065 referenced_by_count.
10066 (sem_item::add_reference): Register a reference
10067 in ref_map and not in target->usages.
10068 (sem_item::setup): Remove initialization of
10070 (sem_item::~sem_item): Remove usage of dead vectors.
10071 (sem_item::dump): Remove dump of references.
10072 (sem_item_optimizer::sem_item_optimizer): Initialize
10074 (sem_item_optimizer::read_section): Remove useless
10076 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10077 (sem_item_optimizer::build_graph): Pass m_references
10078 to ::add_reference.
10079 (sem_item_optimizer::verify_classes): Remove usage of dead
10081 (sem_item_optimizer::traverse_congruence_split): Return true
10082 when a class is split.
10083 (sem_item_optimizer::do_congruence_step_for_index): Use
10084 hash_map for look up of (sem_item *, index). That brings
10085 significant speed up.
10086 (sem_item_optimizer::do_congruence_step): Return true
10087 when a split is done.
10088 (congruence_class::is_class_used): Use referenced_by_count.
10090 2019-06-04 Alan Modra <amodra@gmail.com>
10093 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10096 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10098 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10099 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10100 (rs6000_secondary_reload_simple_move): Adjust.
10101 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10102 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10103 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10106 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10107 (floatunssi<mode>2_lfiwzx): Adjust.
10108 (fix_trunc<mode>si2_stfiwx): Adjust.
10109 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10110 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10111 (mfpgpr): Mark as deprecated.
10112 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10113 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10114 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10116 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10118 * config/rs6000/constraints.md (define_register_constraint "wg"):
10120 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10121 RS6000_CONSTRAINT_wg.
10122 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10123 (rs6000_init_hard_regno_mode_ok): Adjust.
10124 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10125 Delete "wg" alternatives.
10126 * doc/md.texi (Machine Constraints): Adjust.
10128 2019-06-03 Alan Modra <amodra@gmail.com>
10130 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10131 (get_uncond_jump_length): Assert length less than INT_MAX and
10134 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10136 PR middle-end/64242
10137 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10139 (expand_builtin_nonlocal_goto): Likewise.
10141 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10143 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10144 (aarch64_asm_output_external): Declare.
10145 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10146 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10147 (aarch64_asm_output_alias): New.
10148 (aarch64_asm_output_external): New.
10149 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10150 (ASM_OUTPUT_EXTERNAL): Define.
10152 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10153 * tree-vrp.h (value_range_base::nonzero_p): New.
10154 (value_range_base::set_nonnull): Rename to...
10155 (value_range_base::set_nonzero): ...this.
10156 (value_range_base::set_null): Rename to...
10157 (value_range_base::set_zero): ...this.
10158 (value_range::set_nonnull): Remove.
10159 (value_range::set_null): Remove.
10160 * tree-vrp.c (range_is_null): Remove.
10161 (range_is_nonnull): Remove.
10162 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10163 instead of range_is_*null.
10164 (extract_range_from_unary_expr): Same.
10165 (value_range_base::set_nonnull): Rename to...
10166 (value_range_base::set_nonzero): ...this.
10167 (value_range::set_nonnull): Remove.
10168 (value_range_base::set_null): Rename to...
10169 (value_range_base::set_zero): ...this.
10170 (value_range::set_null): Remove.
10171 (extract_range_from_binary_expr): Rename set_*null uses to
10173 (extract_range_from_unary_expr): Same.
10174 (union_helper): Same.
10175 * vr-values.c (get_value_range): Use set_*zero instead of
10177 (vr_values::extract_range_from_binary_expr): Same.
10178 (vr_values::extract_range_basic): Same.
10180 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10183 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10185 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10187 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10188 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10190 (aarch64_<su>abd<mode>_3): ... This.
10191 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10193 2019-06-03 Richard Biener <rguenther@suse.de>
10195 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10196 full reference tree and record in ref->ref.
10197 (vn_reference_lookup_3): Pass in original ref to
10198 ao_ref_init_from_vn_reference.
10199 (vn_reference_lookup): Likewise.
10200 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10201 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10202 Handle non-decl bases in the original reference.
10204 2019-06-03 Martin Liska <mliska@suse.cz>
10206 * doc/generic.texi: Remove Java Trees.
10208 2019-06-03 Martin Liska <mliska@suse.cz>
10210 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10211 returns 0 when operands are equal.
10213 2019-06-03 Richard Biener <rguenther@suse.de>
10215 PR tree-optimization/90716
10216 * tree-loop-distribution.c (destroy_loop): Process blocks in
10219 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10222 * vector-builder.h (vector_builder::count_dups): New method.
10223 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10225 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10226 (vec_init<mode><Vel>): New pattern.
10227 * config/aarch64/aarch64.c (emit_insr): New function.
10228 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10229 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10230 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10231 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10233 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10235 PR tree-optimization/90681
10236 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10237 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10238 special case for SLP, but fail on non-groupped loads.
10240 2019-06-03 Martin Liska <mliska@suse.cz>
10242 * cfg.c (debug): Use TDF_DETAILS for debug and
10243 print edge info only once.
10245 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10248 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10250 2019-06-01 Martin Sebor <msebor@redhat.com>
10252 PR middle-end/90694
10253 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10255 2019-05-31 Jan Hubicka <jh@suse.cz>
10257 * alias.c: Include ipa-utils.h.
10258 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10259 * ipa-devirt.c (prevailing_odr_type): New.
10260 * ipa-utils.h (previaling_odr_type): Declare.
10262 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10263 Hongtao Liu <hongtao.liu@intel.com>
10266 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10267 NOTE_INSN_DELETED_LABEL check.
10269 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10270 Robert Suchanek <robert.suchanek@mips.com>
10272 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10273 and 3rd operands of the fmadd/fmsub/maddv builtin.
10275 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10277 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10278 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10279 on OMP_SIMD if not nested inside of worksharing loop that also has
10280 lastprivate conditional clause for the same decl.
10281 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10282 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10284 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10286 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10288 (lower_lastprivate_clauses): Likewise.
10289 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10290 calling lower_rec_input_clauses.
10291 (lower_omp_for): Likewise.
10292 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10293 clause on simd construct.
10294 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10295 OMP_CLAUSE__CONDTEMP_ clause is present.
10297 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10300 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10303 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10304 TEX_D32, TEX_D64 or TEX_D128.
10306 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10308 * match.pd (~(vec?cst1:cst2)): New transformation.
10310 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10312 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10313 ((size_t)(A /[ex] B) CMP C): New transformation.
10315 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10317 * doc/md.texi: Document define_insn_and_rewrite.
10318 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10319 * gensupport.c (queue_elem): Update comment.
10320 (replace_operands_with_dups): New function.
10321 (gen_rewrite_sequence): Likewise.
10322 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10323 * read-rtl.c (apply_subst_iterator): Likewise.
10324 (add_condition_to_rtx, named_rtx_p): Likewise.
10325 (rtx_reader::read_rtx_operand): Likewise.
10326 * config/aarch64/aarch64-sve.md
10327 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10328 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10329 define_insn_and_rewrite.
10330 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
10331 Remove separate define_split.
10333 2019-05-31 Jan Hubicka <jh@suse.cz>
10335 * tree-ssa-alias.c (type_has_components_p): New function.
10336 (aliasing_component_refs_p): Use it.
10338 2019-05-31 Martin Liska <mliska@suse.cz>
10340 * gdbhooks.py: Add const_tree to TreePrinter.
10342 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
10345 * common.opt (feliminate-unused-debug-symbols): Enable by default.
10346 * doc/invoke.texi (Debugging Options): Document new default of
10347 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
10349 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10351 PR tree-optimization/90671
10352 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
10353 template_block used to be empty on the first call, don't use
10354 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
10355 seq with bb_seq and set it with set_bb_seq.
10357 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
10359 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
10361 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10362 Michael Meissner <meissner@linux.ibm.com>
10364 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
10365 (prefixed_mem_operand): Likewise.
10366 (non_prefixed_mem_operand): Likewise.
10367 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
10369 * config/rs6000/rs6000.c (print_operand_address): Handle
10370 PC-relative addresses.
10371 (mode_supports_prefixed_address_p): New function.
10372 (rs6000_prefixed_address): New function.
10373 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
10374 (SYMBOL_REF_PCREL_P): Likewise.
10376 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10378 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
10379 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
10380 (gimplify_omp_for): If worksharing loop with lastprivate conditional
10381 is nested inside of parallel region, add _condtemp_ clause to both.
10382 * tree-nested.c (convert_nonlocal_omp_clauses,
10383 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
10385 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
10387 * omp-general.c (omp_extract_for_data): Compute it.
10388 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
10389 (lower_rec_input_clauses): Likewise.
10390 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
10391 clause is already present, just add one further one after it.
10392 (lower_lastprivate_clauses): Handle cond_ptr with array type.
10393 (lower_send_shared_vars): Clear _condtemp_ vars.
10394 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
10395 or section or taskgroup.
10396 * omp-expand.c (determine_parallel_type): Disallow combining only if
10397 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
10398 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
10399 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10400 expand_omp_for_static_chunk, expand_omp_for): Use
10401 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
10402 determine if a special set of API routines are needed and if condtemp
10403 needs to be initialized, while always initialize cond_var if
10404 fd->lastprivate_conditional is non-zero.
10406 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10407 Michael Meissner <meissner@linux.ibm.com>
10409 * config/rs6000/constraints.md (eI): New constraint.
10410 * config/rs6000/predicates.md (cint34_operand): New predicate.
10411 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
10412 (SIGNED_34BIT_OFFSET_P): Likewise.
10413 * doc/md.texi (eI): Document constraint.
10415 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
10417 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
10419 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
10420 Michael Meissner <meissner@linux.ibm.com>
10422 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
10423 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
10424 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
10425 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
10426 (OTHER_FUTURE_MASKS): Likewise.
10427 (POWERPC_MASKS): Likewise.
10428 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
10429 specified without -mprefixed-addr or -mcpu=future. Error if
10430 -mprefixed-addr is specified without -mcpu=future.
10431 (rs6000_opt_masks): Add entry for prefixed-addr.
10432 * rs6000.opt (mprefixed-addr): New option.
10434 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
10436 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
10437 cfun->is_thunk check.
10439 2019-05-30 Jakub Jelinek <jakub@redhat.com>
10441 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
10444 2019-05-30 Martin Liska <mliska@suse.cz>
10446 * gdbinit.in: Fix 'ptc' command. Add trt
10447 that prints TREE_TYPE($).
10449 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
10450 Alan Modra <amodra@gmail.com>
10452 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
10454 (rs6000_indirect_call_template_1): ...and here.
10455 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
10456 plt16_ha, plt16_lo, mtctr indirect calls. Use
10457 rs6000_pltseq_enum.
10458 (rs6000_decl_ok_for_sibcall): New function.
10459 (rs6000_function_ok_for_sibcall): Refactor.
10460 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
10461 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
10462 when pcrel. Reorganize.
10463 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
10464 * rs6000.h (rs6000_pltseq_enum): New enum.
10465 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
10466 (*pltseq_tocsave): Use rs6000_pltseq_enum.
10467 (*pltseq_plt16_ha): Likewise.
10468 (*pltseq_plt16_lo): Likewise.
10469 (*pltseq_mtctr): Likewise.
10470 (*pltseq_plt_pcrel): New insn.
10471 (*call_local_aix): Handle @notoc calls.
10472 (*call_value_local_aix): Likewise.
10473 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
10474 (*call_value_nonlocal_aix): Likewise.
10475 (*call_indirect_pcrel): New insn.
10476 (*call_value_indirect_pcrel): Likewise.
10478 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
10480 * config/i386/sse.md (*save_multiple<mode>): Rename from
10481 save_multiple<mode>.
10482 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
10483 (*restore_multiple_and_return<mode>): Rename from
10484 restore_multiple_and_return<mode>.
10485 (*restore_multiple_leave_return<mode>): Rename from
10486 restore_multiple_leave_return<mode>.
10488 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
10490 * config.gcc (rx-*-linux*): New target.
10491 * config/rx/elf.opt: New file.
10492 * config/rx/linux.h: Likewise.
10493 * config/rx/t-linux: Likewise.
10494 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
10496 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
10497 (ASM_APP_OFF): Likewise.
10498 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
10501 2019-05-29 Jan Hubicka <jh@suse.cz>
10503 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
10504 variants are pointer equivalent.
10506 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10508 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
10509 * config/aarch64/aarch64-sve2.md: New file.
10510 (<u>avg<mode>3_floor): New pattern.
10511 (<u>avg<mode>3_ceil): Likewise.
10512 (*<sur>h<addsub><mode>): Likewise.
10513 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
10514 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
10516 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10519 * optc-save-gen.awk: In cl_optimization_print, use correct condition
10520 for var_opt_string printing. In cl_optimization_print_diff, print
10521 (null) instead of invoking undefined behavior if one of the
10522 var_opt_string pointers is NULL and use && instead of first || in the
10523 guarding condition. For var_target_other options, handle const char *
10524 target variables similarly to const char * optimize node variables.
10526 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
10528 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
10529 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
10530 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
10531 Add autib1716 and pacib1716 initialisation.
10532 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
10533 for autib1716 and pacib1716.
10534 * config/aarch64/aarch64-protos.h (aarch64_key_type,
10535 aarch64_post_cfi_startproc): Define.
10536 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
10537 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
10538 aarch64_handle_pac_ret_protection): Set default sign key to A.
10539 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
10540 aarch64_expand_prologue): Add check for b-key.
10541 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
10542 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
10543 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
10544 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
10545 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
10546 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
10547 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10548 * config/aarch64/aarch64.md (do_return): Add check for b-key.
10549 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
10550 pauth_hint_num_a with pauth_hint_num.
10551 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
10552 pauth_hint_num_a with pauth_hint_num.
10553 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
10554 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
10555 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10556 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
10557 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
10558 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
10559 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
10560 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
10561 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
10562 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
10563 UNSPEC_AUTIA1716 respectively.
10564 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
10565 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
10566 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
10567 * doc/invoke.texi (-mbranch-protection): Add b-key type.
10568 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
10569 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
10571 2019-05-29 Jakub Jelinek <jakub@redhat.com>
10573 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
10574 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
10575 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
10576 explicit clause on combined parallel into implicit shared clause.
10577 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
10578 and firstprivate if the decl has one too from combined parallel to
10579 the worksharing construct.
10581 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
10582 Michael Meissner <meissner@linux.ibm.com>
10584 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
10586 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
10588 * rtl.h (LABEL_REF_P): New #define.
10590 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
10592 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
10594 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10596 * internal-fn.c: Marked mask_load_direct as vectorizable.
10597 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
10598 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
10599 combined even if masks different with allow_slp_p param.
10600 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
10601 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
10602 dissolve SLP-only vectorizable groups when SLP has been discarded.
10603 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
10604 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
10606 (vect_build_slp_tree_1): Fixed comment typo.
10607 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
10608 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
10609 loads for SLP only.
10610 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
10612 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
10614 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10616 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
10617 Remove obsolete use_thunk reference.
10618 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
10619 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
10620 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
10621 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
10622 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
10623 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
10624 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
10625 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
10626 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
10628 2019-05-28 Nathan Sidwell <nathan@acm.org>
10630 * tree.h (IDENTIFIER_ANON_P): New.
10631 (anon_aggrname_format, anon_aggname_p): Don't declare.
10632 (make_anon_name): Declare.
10633 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
10634 (hash_tree): Likewise.
10635 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
10636 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
10637 (anon_cnt, make_anon_name): New.
10639 2019-05-28 Martin Liska <mliska@suse.cz>
10642 * opts-global.c (decode_options): Print help for all
10643 help_option_arguments.
10644 * opts.c (print_help): Add new argument.
10645 (common_handle_option): Remember all values into
10646 help_option_arguments.
10647 * opts.h (print_help): Add new argument.
10649 2019-05-28 Martin Liska <mliska@suse.cz>
10652 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
10653 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
10654 (func_checker::compare_bb): Call compare_loops.
10656 2019-05-27 Jakub Jelinek <jakub@redhat.com>
10658 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10659 on sections construct.
10660 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
10662 (lower_omp_sections): Handle lastprivate conditional.
10663 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
10664 lastprivate_conditional_map.
10665 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
10667 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
10668 critical, taskgroup and section regions when looking for a region
10669 with non-NULL lastprivate_conditional_map.
10671 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10673 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
10674 (*ix86_gen_sub3): Ditto.
10675 (*ix86_gen_sub3_carry): Ditto.
10676 (*ix86_gen_one_cmpl2): Ditto.
10677 (*ix86_gen_andsp): Ditto.
10678 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
10679 (gen_and2_insn): New static function.
10680 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
10681 Use gen_add3_insn instead of ix86_gen_add3.
10682 (ix86_expand_split_stack_prologue): Use gen_add2_insn
10683 instead of ix86_gen_add3.
10684 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
10685 Use gen_sub3_insn instead of ix86_gen_sub3.
10686 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
10687 instead of ix86_gen_add3.
10688 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
10689 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
10690 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
10691 * config/i386/i386-options.c (ix86_option_override_internal):
10692 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
10693 ix86_gen_one_cmpl2 and ix86_gen_andsp.
10695 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
10697 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
10698 and DW_OP_GNU_const_index opcodes.
10700 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
10702 * config/i386/i386.h (STACK_SIZE_MODE): Define.
10704 2019-05-27 Richard Biener <rguenther@suse.de>
10706 PR tree-optimization/90637
10707 * tree-ssa-sink.c (statement_sink_location): Honor the
10708 computed sink location for single-uses.
10710 2019-05-27 Richard Biener <rguenther@suse.de>
10712 PR middle-end/90610
10713 * match.pd (vec_perm): Avoid clobbering op0 when not generating
10716 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10718 * config/i386/i386.md (@sub<mode>3_carry): Rename
10719 from sub<mode>3_carry.
10720 (@leave_<mode>): New expander.
10721 (*leave): Rename from leave.
10722 (*leave_rex64): Rename from leave_rex64.
10723 (@monitorx_<mode>): Rename from monitorx_<mode>.
10724 (@clzero_<mode>): Rename from clzero_<mode>.
10725 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
10726 from sse3_monitor_<mode>.
10727 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
10728 (*ix86_gen_leave): Ditto.
10729 (*ix86_gen_monitor): Ditto.
10730 (*ix86_gen_monitorx): Ditto.
10731 (*ix86_gen_clzero): Ditto.
10732 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
10733 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
10734 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
10735 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
10736 Use gen_sse3_monitor instead of ix86_gen_monitor.
10737 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
10738 instead of ix86_gen_monitorx.
10739 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
10740 instead of ix86_gen_clzero.
10741 * config/i386/i386-options.c (ix86_option_override_internal):
10742 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
10743 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
10745 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10747 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
10748 Rename from tls_global_dynamic_64_<mode>.
10749 (@tls_local_dynamic_base_64_<mode>): Rename from
10750 tls_local_dynamic_base_64_<mode>.
10751 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
10752 Remove indirect function.
10753 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
10754 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
10755 instead of ix86_gen_tls_global_dynamic_64.
10756 Use gen_tls_local_dynamic_base_64 instead of
10757 ix86_gen_tls_local_dynamic_base_64.
10758 * config/i386/i386-options.c (ix86_option_override_internal):
10759 Do not initialize ix86_gen_tls_global_dynamic_64 and
10760 ix86_gen_tls_local_dynamic_base_64.
10762 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
10764 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
10765 Rename from pro_epilogue_adjust_stack_<mode>_add.
10766 (@pro_epilogue_adjust_stack_sub_<mode>)
10767 Rename from pro_epilogue_adjust_stack_<mode>_sub.
10768 (@allocate_stack_worker_probe_<mode>):
10769 Rename from allocate_stack_worker_probe_<mode>.
10770 (allocate_stack): Use gen_allocate_stack_worker_probe.
10771 (probe_stack): Use gen_probe_stack_1.
10772 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
10773 (@adjust_stack_and_probe_<mode>): Rename from
10774 adjust_stack_and_probe<mode>.
10775 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
10776 (stack_protect_set): Use gen_stack_protect_set_1.
10777 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
10778 (stack_protect_test): Use gen_stack_protect_test_1.
10779 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
10780 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
10781 Remove indirect function.
10782 (*ix86_gen_adjust_stack_and_probe): Ditto.
10783 (*ix86_gen_probe_stack_range): Ditto.
10784 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
10785 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
10786 (ix86_adjust_stack_and_probe_stack_clash): Use
10787 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
10788 (ix86_adjust_stack_and_probe): Ditto.
10789 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
10790 of ix86_gen_probe_stack_range.
10791 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
10792 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
10793 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
10794 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
10795 CODE_FOR_stack_protect_test_{si,di}.
10796 * config/i386/i386-options.c (ix86_option_override_internal):
10797 Do not initialize ix86_gen_allocate_stack_worker,
10798 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
10800 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
10802 * doc/invoke.texi (Link Options): Many editorial changes around
10805 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10807 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
10808 pre-Solaris 11 referene and most Studio compiler details.
10810 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
10813 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
10814 DImode to SImode in floating-point registers on 64-bit target.
10815 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
10816 register_operand in xmpyu patterns.
10818 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10820 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
10821 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
10822 OMP_CLAUSE__REDUCTEMP_.
10823 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10824 OMP_CLAUSE__CONDTEMP_.
10825 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
10826 * tree-pretty-print.c (dump_omp_clause): Likewise.
10827 * tree-nested.c (convert_nonlocal_omp_clauses,
10828 convert_local_omp_clauses): Likewise.
10829 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
10830 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
10831 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
10833 (gimplify_omp_for): Warn and disable conditional modifier from
10834 lastprivate on loop iterators.
10835 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
10837 * omp-general.c (omp_extract_for_data): Initialize it.
10838 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
10840 (delete_omp_context): Delete it.
10841 (lower_lastprivate_conditional_clauses): New function.
10842 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
10843 handle lastprivate conditional clauses.
10844 (lower_reduction_clauses): Add CLIST argument, emit it into
10845 the critical section if any.
10846 (lower_omp_sections): Adjust lower_lastprivate_clauses and
10847 lower_reduction_clauses callers.
10848 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
10849 to lower_lastprivate_clauses.
10850 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
10851 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
10852 clist into a critical section if not emitted there already by
10853 lower_reduction_clauses.
10854 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
10856 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
10857 conditional variables.
10858 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
10860 (expand_omp_for_generic, expand_omp_for_static_nochunk,
10861 expand_omp_for_static_chunk): Handle lastprivate conditional.
10862 (expand_omp_for): Handle fd.lastprivate_conditional like
10865 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10867 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
10868 kernel does not exit cleanly.
10869 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
10871 2019-05-24 Jason Merrill <jason@redhat.com>
10874 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
10876 2019-05-24 Richard Biener <rguenther@suse.de>
10879 * tree-loop-distribution.c (struct partition): Add location
10881 (partition_alloc): Initialize all fields.
10882 (generate_memset_builtin): Use the location recorded in the
10883 partition for the generated call.
10884 (generate_memcpy_builtin): Likewise.
10885 (classify_partition): Record the location of a single store
10886 as location for the partition.
10888 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
10890 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
10893 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
10896 * common/config/aarch64/aarch64-common.c
10897 (aarch64_rewrite_selected_cpu): Change local temporary variable
10898 type from unsigned long to uint64_t.
10899 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
10900 aarch64_get_extension_string_for_isa_flags): Change declaration to
10901 match new definition by replacing unsigned long with uint64_t.
10903 2019-05-24 Jakub Jelinek <jakub@redhat.com>
10906 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
10907 gen_attr_type just once instead of 4-7 times. Formatting fixes.
10908 Handle stack_protect_test_<mode> codegen similarly to corresponding
10911 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
10913 * config/i386/darwin.h: Reject -mfentry*.
10914 * doc/sourcebuild.texi: Document mfentry target support.
10916 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10918 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
10919 Rename to rs6000_global_entry_point_prologue_needed_p. Return
10920 false for PC-relative functions.
10921 (rs6000_output_function_prologue): Change called function name to
10922 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
10923 name,1" for PC-relative functions.
10924 (rs6000_elf_declare_function_name): Change called function name to
10925 rs6000_global_entry_point_prologue_needed_p.
10927 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
10930 * config/i386/i386.c (gen_rtx_cost):
10931 Use ix86_tune_cost instead of ix86_cost.
10933 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10934 Michael Meissner <meissner@linux.ibm.com>
10935 Segher Boessenkool <segher@kernel.crashing.org>
10937 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
10939 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
10940 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
10941 (rs6000_fndecl_pcrel_p): Likewise.
10942 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
10943 error if -mpcrel is requested without -mcpu=future.
10944 (rs6000_opt_masks): Add entry for pcrel.
10945 (rs6000_fndecl_pcrel_p): New function.
10946 (rs6000_pcrel_p): Likewise.
10947 * config/rs6000/rs6000.opt (mpcrel): New option.
10948 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
10950 2019-05-23 Jan Hubicka <jh@suse.cz>
10951 Martin Liska <mliska@suse.cz>
10953 PR tree-optimization/90576
10954 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
10956 (aliasing_component_refs_p): Fix three way size compare conditional;
10957 give up earlier in case we can not decide on equivalence.
10959 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
10960 Michael Meissner <meissner@linux.ibm.com>
10961 Segher Boessenkool <segher@kernel.crashing.org>
10963 * config.gcc: Add future cpu.
10964 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
10965 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
10967 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
10968 (RS6000_CPU): New instantiation for future cpu.
10969 * config/rs6000/rs6000-opts.h (enum processor_type): Add
10971 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
10972 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
10973 * config/rs6000/rs6000-tables.opt: Regenerate.
10974 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
10975 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
10976 (rs6000_machine_from_flags): Handle future cpu.
10977 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
10978 PROCESSOR_POWER9 for now.
10979 (rs6000_adjust_cost): Likewise.
10980 (rs6000_issue_rate): Likewise.
10981 (rs6000_register_move_cost): Likewise.
10982 (rs6000_opt_masks): Add entry for future.
10983 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
10984 (MASK_FUTURE): New #define.
10985 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
10986 * config/rs6000/rs6000.opt (mfuture): New target option.
10987 * doc/invoke.texi (mcpu): Add future cpu.
10989 2019-05-23 Martin Liska <mliska@suse.cz>
10992 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
10993 operation points to a temporary (pointed via tree_to_wide_ref)
10994 that is out of scope after the &.
10996 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
10999 * doc/extend.texi (Function Names): Add missing word.
11001 2019-05-23 Richard Biener <rguenther@suse.de>
11003 PR tree-optimization/88440
11004 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11006 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11008 (generate_memcpy_builtin): Likewise.
11009 (distribute_loop): Pass in whether to only distribute patterns.
11010 (prepare_perfect_loop_nest): Also allow size optimization.
11011 (pass_loop_distribution::execute): When optimizing a loop
11012 nest for size allow pattern replacement.
11014 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11017 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11020 2019-05-23 Martin Liska <mliska@suse.cz>
11023 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11024 expression similarly to gimplify_decl_expr.
11026 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11028 * cse.c (cse_dump_path): s/dump_file/f.
11030 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11033 * diagnostic-format-json.cc: Include "selftest.h".
11034 (json_from_expanded_location): Only add "file" key for non-NULL
11036 (json_from_location_range): Don't add "start" and "finish"
11037 children if they are UNKNOWN_LOCATION.
11038 (selftest::test_unknown_location): New selftest.
11039 (selftest::test_bad_endpoints): New selftest.
11040 (selftest::diagnostic_format_json_cc_tests): New function.
11041 * json.cc (json::object::get): New function.
11042 (selftest::test_object_get): New selftest.
11043 (selftest::json_cc_tests): Call it.
11044 * json.h (json::object::get): New decl.
11045 * selftest-run-tests.c (selftest::run_tests): Call
11046 selftest::diagnostic_format_json_cc_tests.
11047 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11050 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11051 Andrew Stubbs <amd@codesourcery.com>
11053 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11054 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11055 (kernel): Rename to...
11056 (main_kernel): ... this.
11057 (load_image): Load _init_array and _fini_array kernels.
11058 (run): Add argument for kernel to run.
11059 (main): Run init_array_kernel before main_kernel, and
11060 fini_array_kernel after.
11061 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11062 amdgpu_hsa_kernel attribute on functions.
11063 (gcn_disable_constructors): Delete.
11064 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11065 * config/gcn/crt0.c (size_t): Define.
11066 (_init_array, _fini_array): New.
11067 (__preinit_array_start, __preinit_array_end,
11068 __init_array_start, __init_array_end,
11069 __fini_array_start, __fini_array_end): Declare weak references.
11071 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11073 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11075 2019-05-22 Jason Merrill <jason@redhat.com>
11077 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11079 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11082 * config/i386/i386-options.c (ix86_init_machine_status): Set
11083 stack_frame_required to true.
11084 * config/i386/i386.c (ix86_get_frame_size): New function.
11085 (ix86_frame_pointer_required): Replace get_frame_size with
11086 ix86_get_frame_size.
11087 (ix86_compute_frame_layout): Likewise.
11088 (ix86_find_max_used_stack_alignment): Changed to void. Set
11089 stack_frame_required.
11090 (ix86_finalize_stack_frame_flags): Always call
11091 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11092 ix86_get_frame_size.
11093 * config/i386/i386.h (machine_function): Add stack_frame_required.
11095 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11097 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11099 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11101 * common/config/aarch64/aarch64-common.c
11102 (struct aarch64_option_extension, struct processor_name_to_arch,
11103 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11104 aarch64_contains_opt,
11105 aarch64_get_extension_string_for_isa_flags): Change type of
11106 variables storing flags to uint64_t.
11107 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11108 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11109 * config/aarch64/aarch64.c (struct processor,
11110 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11111 aarch64_validate_march, aarch64_override_options,
11112 aarch64_option_print, aarch64_handle_attr_isa_flags,
11113 aarch64_declare_function_name, aarch64_start_file): Make flag
11114 variables uint64_t.
11115 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11116 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11117 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11118 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11119 * config/aarch64/driver-aarch64.c
11120 (struct aarch64_arch_extension, struct aarch64_core_data,
11121 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11122 flag variables uint64_t.
11123 * doc/invoke.texi: Add documentation for new arguments.
11125 2019-05-22 Richard Biener <rguenther@suse.de>
11127 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11129 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11131 2019-05-22 Martin Liska <mliska@suse.cz>
11134 * doc/extend.texi: Document the change.
11136 2019-05-22 Richard Biener <rguenther@suse.de>
11138 PR tree-optimization/90450
11139 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11140 (mem_ref_hasher::equal): Check it.
11141 (mem_ref_alloc): Initialize it.
11142 (gather_mem_refs_stmt): Set it.
11144 2019-05-22 Richard Biener <rguenther@suse.de>
11146 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11148 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11151 2019-05-22 Alan Modra <amodra@gmail.com>
11153 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11154 (ASM_CPU_SPEC): Conditionally add -many.
11155 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11156 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11157 (rs6000_file_start): ..extracted from here, and modified to
11159 (rs6000_output_function_prologue): Emit .machine as necessary.
11161 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11163 PR middle-end/90553
11164 * ira-lives.c (process_bb_node_lives): Consider defs
11165 for a call insn to be die before the call, not after.
11167 * function.c (assign_parm_setup_block): Raise alignment of
11168 stacked parameter only for STRICT_ALIGNMENT targets.
11170 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11172 * config/rs6000/constraints.md (define_register_constraint "wz"):
11174 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11175 RS6000_CONSTRAINT_wz.
11176 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11177 (rs6000_init_hard_regno_mode_ok): Adjust.
11178 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11179 * doc/md.texi (Machine Constraints): Adjust.
11181 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11183 * config/rs6000/constraints.md (define_register_constraint "wl"):
11185 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11186 RS6000_CONSTRAINT_wl.
11187 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11188 (rs6000_init_hard_regno_mode_ok): Adjust.
11189 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11190 * doc/md.texi (Machine Constraints): Adjust.
11192 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11194 * config/rs6000/constraints.md (define_register_constraint "wm"):
11196 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11197 RS6000_CONSTRAINT_wm.
11198 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11199 (rs6000_init_hard_regno_mode_ok): Adjust.
11200 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11201 * doc/md.texi (Machine Constraints): Adjust.
11203 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11205 * config/rs6000/constraints.md (define_register_constraint "wk"):
11207 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11208 RS6000_CONSTRAINT_wk.
11209 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11210 (rs6000_init_hard_regno_mode_ok): Adjust.
11211 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11212 * doc/md.texi (Machine Constraints): Adjust.
11214 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11216 * config/rs6000/constraints.md (define_register_constraint "wj"):
11218 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11219 RS6000_CONSTRAINT_wj.
11220 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11221 (rs6000_init_hard_regno_mode_ok): Adjust.
11222 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11224 * config/rs6000/vsx.md: Ditto.
11225 * doc/md.texi (Machine Constraints): Adjust.
11227 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11229 * config/rs6000/constraints.md (define_register_constraint "wh"):
11231 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11232 RS6000_CONSTRAINT_wh.
11233 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11234 (rs6000_init_hard_regno_mode_ok): Adjust.
11235 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11236 * doc/md.texi (Machine Constraints): Adjust.
11238 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11241 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11242 Avoid calling gen_lowpart with CONST operand.
11244 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11246 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11247 field template_last_to_copy.
11248 (ssa_create_duplicates): Set it, and use it. Attempt to
11249 preserve more debug stmts.
11251 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11253 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11254 (signbit<mode>2): New expander
11256 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11259 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11260 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11262 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11264 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11265 %ebx and %ecx bafore calling cpuid with leaf 1 or
11266 non-constant leaf argument.
11268 2019-05-21 Alan Modra <amodra@gmail.com>
11271 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11272 power9 direct move cost.
11274 2019-05-21 Richard Biener <rguenther@suse.de>
11276 PR middle-end/90510
11277 * fold-const.c (fold_read_from_vector): New function.
11278 * fold-const.h (fold_read_from_vector): Declare.
11279 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11280 single-element insert permutations. Canonicalize selector
11281 further and fix issue with last commit.
11283 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11285 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11286 parameter with default value false to declaration.
11287 (split_edges_for_insertion): New inline function. Wrapper for
11288 split_critical_edges with for_edge_insertion_p = true.
11289 * tree-cfg.c (split_critical_edges): Don't split non-critical
11290 edges if for_edge_insertion_p is false. Fix whitespace.
11291 * tree-ssa-pre.c (pass_pre::execute): Call
11292 split_edges_for_insertion instead of split_critical_edges.
11293 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11294 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11295 (pass_data_sink_code): Update function name in the comment.
11297 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11299 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11300 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11301 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11302 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11305 2019-05-21 Martin Liska <mliska@suse.cz>
11307 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11309 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11310 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11312 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11314 (rs6000_function_arg): Likewise.
11315 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11316 (rs6000_expand_ternop_builtin): Use interval syntax.
11317 (get_element_number): Likewise.
11318 (altivec_expand_builtin): Likewise.
11319 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11321 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11325 * function.h (struct function): Add calls_eh_return member.
11326 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11327 gimplifying __builtin_eh_return call.
11328 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11330 (expand_call_inline): Or in src_cfun->calls_eh_return into
11331 dst_cfun->calls_eh_return.
11332 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
11333 cfun->calls_eh_return.
11334 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
11335 * lto-streamer-out.c (output_struct_function_base): Write
11338 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
11340 PR rtl-optimization/43147
11341 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
11342 IX86_BUILTIN_SHUFPD.
11344 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11346 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
11347 (refs_may_alias_p_1): ... here; update stats.
11348 (refs_may_alias_p): Do not update stats here.
11350 2019-05-20 Richard Biener <rguenther@suse.de>
11352 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
11353 doesn't produce pointers.
11354 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
11355 the first operand points to.
11357 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
11359 * tree-ssa-alias.c (compare_sizes): New function.
11360 (sompare_type_sizes): New function
11361 (aliasing_component_refs_p): Use it.
11362 (indirect_ref_may_alias_decl_p): Likewise.
11364 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11366 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
11368 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11370 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
11371 (LIBLSAN_EARLY_SPEC): Likewise.
11372 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
11374 2019-05-20 Martin Liska <mliska@suse.cz>
11376 * config/i386/i386.c (ix86_libc_has_fast_function):
11377 Add ATTRIBUTE_UNUSED for the argument.
11379 2019-05-20 Richard Biener <rguenther@suse.de>
11381 * gimple-match-head.c: Include vec-perm-indices.h.
11382 * generic-match-head.c: Likewise.
11383 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
11385 * fold-const.c (fold_vec_perm): Export.
11386 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
11387 (match.pd): ...here.
11389 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11391 * cfgloop.h (struct loop): Add simdlen member.
11392 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
11393 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
11394 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
11395 as new argument to autovectorize_vector_sizes target hook. If
11396 loop->simdlen, pick up vector size where the vectorization factor
11397 is equal to loop->simd, and if there is none, fall back to the first
11399 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
11401 * omp-low.c (omp_clause_aligned_alignment): Likewise.
11402 * omp-general.c (omp_max_vf): Likewise.
11403 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
11404 * tree-vect-slp.c (vect_slp_bb): Likewise.
11405 * target.def (autovectorize_vector_sizes): Add ALL argument and
11407 * doc/tm.texi: Adjust documentation.
11408 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
11409 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
11410 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
11412 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
11413 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
11414 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
11415 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
11416 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
11417 preferred vector size is not 512-bit or 256-bit, just put those
11418 unpreferred ones last.
11420 2019-05-20 Martin Liska <mliska@suse.cz>
11422 * targhooks.c (default_libc_has_fast_function): New function.
11423 * targhooks.h (default_libc_has_fast_function): Likewise.
11425 2019-05-20 Martin Liska <mliska@suse.cz>
11427 PR middle-end/90263
11428 * builtins.c (expand_builtin_memory_copy_args): When having a
11429 target with fast mempcpy implementation do now use memcpy.
11430 * config/i386/i386.c (ix86_libc_has_fast_function): New.
11431 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
11432 * doc/tm.texi: Likewise.
11433 * doc/tm.texi.in: Likewise.
11435 * expr.c (emit_block_move_hints): Add 2 new arguments.
11436 * expr.h (emit_block_move_hints): Bail out when libcall
11437 to memcpy would be used.
11439 2019-05-20 Martin Liska <mliska@suse.cz>
11441 * profile-count.c: Add vertical spacing in order
11442 to separate functions.
11443 * profile-count.h: Likewise.
11445 2019-05-20 Martin Liska <mliska@suse.cz>
11447 * profile-count.h: Do not use full qualified
11449 * profile-count.c (profile_count::to_frequency): Likewise.
11451 2019-05-20 Martin Liska <mliska@suse.cz>
11453 * profile-count.h (enum profile_quality): Use capital letters
11454 for enum value names. Use the adjusted names.
11455 * profile-count.c: Use the adjusted names.
11457 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11459 * config/rs6000/constraints.md (define_register_constraint "wH"):
11461 (define_register_constraint "wI"): Delete.
11462 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11463 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
11464 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11465 (rs6000_init_hard_regno_mode_ok): Adjust.
11466 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
11467 resp. "d", or with "wa" as appropriate, all with "p8v".
11468 * config/rs6000/vsx.md: Ditto.
11469 * doc/md.texi (Machine Constraints): Adjust.
11471 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11473 * config/rs6000/constraints.md (define_register_constraint "wy"):
11475 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11476 RS6000_CONSTRAINT_wy.
11477 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11478 (rs6000_init_hard_regno_mode_ok): Adjust.
11479 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
11480 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
11481 (define_mode_attr Fisa): New.
11482 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
11483 * doc/md.texi (Machine Constraints): Adjust.
11485 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11487 * config/rs6000/constraints.md (define_register_constraint "wu"):
11489 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11490 RS6000_CONSTRAINT_wu.
11491 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11492 (rs6000_init_hard_regno_mode_ok): Adjust.
11493 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
11495 (define_mode_attr Fa): Delete.
11496 * config/rs6000/vsx.md: Ditto.
11497 * doc/md.texi (Machine Constraints): Adjust.
11499 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11501 * config/rs6000/constraints.md (define_register_constraint "wJ"):
11503 (define_register_constraint "wK"): Delete.
11504 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11505 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
11506 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11507 (rs6000_init_hard_regno_mode_ok): Adjust.
11508 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
11509 Replace "wK" constraint by "wH" with "p9v".
11510 * config/rs6000/vsx.md: Ditto.
11511 * doc/md.texi (Machine Constraints): Adjust.
11513 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11515 * config/rs6000/constraints.md (define_register_constraint "wb"):
11517 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11518 RS6000_CONSTRAINT_wb.
11519 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11520 (rs6000_init_hard_regno_mode_ok): Adjust.
11521 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
11522 * config/rs6000/vsx.md: Ditto.
11523 * doc/md.texi (Machine Constraints): Adjust.
11525 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
11527 * config/rs6000/constraints.md (define_register_constraint "wo"):
11529 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11530 RS6000_CONSTRAINT_wo.
11531 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11532 (rs6000_init_hard_regno_mode_ok): Adjust.
11533 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
11534 * config/rs6000/altivec.md: Ditto.
11535 * doc/md.texi (Machine Constraints): Adjust.
11537 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11539 * config/darwin-c.c (darwin_register_objc_includes): Do not
11540 prepend the sysroot when building gnu-runtime header search
11543 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
11545 * config/darwin.c (darwin_file_end): Use switch_to_section ()
11546 instead of direct output of the asm.
11548 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11550 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
11551 argument to be type bool (was int before).
11552 (rs6000_emit_epilogue): Simplify some code. Declare some variables
11553 at first use. Use type bool for some variables. Fix a theoretical
11554 eh_return bug for svr4.
11556 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
11558 * config/rs6000/rs6000.md (isa): New attribute.
11559 (enabled): New attribute.
11561 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
11563 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
11564 assemble_start_function and assemble_end_function.
11566 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
11568 PR middle-end/89433
11569 * omp-general.c (oacc_verify_routine_clauses): Change formal
11570 parameters. Add checking if already marked with an OpenACC
11571 'routine' directive. Adjust all users.
11573 PR middle-end/89433
11574 * omp-general.c (oacc_build_routine_dims): Move some of its
11576 (oacc_verify_routine_clauses): ... this new function.
11577 * omp-general.h (oacc_verify_routine_clauses): New prototype.
11579 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11581 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
11582 formating of picbase labels to match other ports.
11584 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
11586 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
11587 in the generated code.
11589 2019-05-16 Martin Sebor <msebor@redhat.com>
11591 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
11592 identifiers, keywords, operators, and types in diagnostics. Correct
11593 quoting, spelling, and sentence capitalization issues.
11594 (expand_builtin_atomic_is_lock_free): Same.
11595 (fold_builtin_next_arg): Same.
11596 * cfgexpand.c (expand_one_var): Same.
11597 (tree_conflicts_with_clobbers_p): Same.
11598 (expand_asm_stmt): Same.
11599 (verify_loop_structure): Same.
11600 * cgraphunit.c (process_function_and_variable_attributes): Same.
11601 * collect-utils.c (collect_execute): Same.
11602 * collect2.c (maybe_run_lto_and_relink): Same.
11603 (is_lto_object_file): Same.
11604 (scan_prog_file): Same.
11605 * convert.c (convert_to_real_1): Same.
11606 * dwarf2out.c (dwarf2out_begin_prologue): Same.
11607 * except.c (verify_eh_tree): Same.
11608 * gcc.c (execute): Same.
11609 (eval_spec_function): Same.
11610 (run_attempt): Same.
11611 (driver::set_up_specs): Same.
11612 (compare_debug_auxbase_opt_spec_function): Same.
11613 * gcov-tool.c (unlink_gcda_file): Same.
11615 (do_rewrite): Same.
11616 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
11617 * gimplify.c (gimplify_asm_expr): Same.
11618 (gimplify_adjust_omp_clauses): Same.
11619 * hsa-gen.c (gen_hsa_addr_insns): Same.
11620 (gen_hsa_insns_for_load): Same.
11621 (gen_hsa_cmp_insn_from_gimple): Same.
11622 (gen_hsa_insns_for_operation_assignment): Same.
11623 (gen_get_level): Same.
11624 (gen_hsa_alloca): Same.
11625 (omp_simple_builtin::generate): Same.
11626 (gen_hsa_atomic_for_builtin): Same.
11627 (gen_hsa_insns_for_call): Same.
11628 * input.c (dump_location_info): Same.
11629 * ipa-devirt.c (compare_virtual_tables): Same.
11630 * ira.c (ira_setup_eliminable_regset): Same.
11631 * lra-assigns.c (lra_assign): Same.
11632 * lra-constraints.c (lra_constraints): Same.
11633 * lto-streamer-in.c (lto_input_mode_table): Same.
11634 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
11635 (merge_and_complain): Same.
11636 (compile_offload_image): Same.
11637 (compile_images_for_offload_targets): Same.
11638 (debug_objcopy): Same.
11641 * opts.c (print_specific_help): Same.
11642 (parse_no_sanitize_attribute): Same.
11643 (print_help): Same.
11644 (handle_param): Same.
11645 * plugin.c (add_new_plugin): Same.
11646 (parse_plugin_arg_opt): Same.
11647 (try_init_one_plugin): Same.
11648 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
11649 operators, and types in diagnostics. Correct quoting and spelling
11651 * read-rtl-function.c (parse_edge_flag_token): Same.
11652 (function_reader::parse_enum_value): Same.
11653 * reg-stack.c (check_asm_stack_operands): Same.
11654 * regcprop.c (validate_value_data): Same.
11655 * sched-rgn.c (make_pass_sched_fusion): Same.
11656 * stmt.c (check_unique_operand_names): Same.
11657 * targhooks.c (default_target_option_pragma_parse): Same.
11658 * tlink.c (recompile_files): Same.
11659 * toplev.c (process_options): Same.
11660 (do_compile): Same.
11661 * trans-mem.c (diagnose_tm_1): Same.
11662 (ipa_tm_scan_irr_block): Same.
11663 (ipa_tm_diagnose_transaction): Same.
11664 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
11665 format a tree code name in a diagnostic.
11666 (verify_types_in_gimple_min_lval): Same.
11667 (verify_types_in_gimple_reference): Same.
11668 (verify_gimple_call): Same.
11669 (verify_gimple_assign_unary): Same.
11670 (verify_gimple_assign_binary): Same.
11671 (verify_gimple_assign_ternary): Same.
11672 (verify_gimple_assign_single): Same.
11673 (verify_gimple_switch): Same.
11674 (verify_gimple_label): Same.
11675 (verify_gimple_phi): Same.
11676 (verify_gimple_in_seq): Same.
11677 (verify_eh_throw_stmt_node): Same.
11678 (collect_subblocks): Same.
11679 (gimple_verify_flow_info): Same.
11680 (do_warn_unused_result): Same.
11681 * tree-inline.c (expand_call_inline): Same.
11682 * tree-into-ssa.c (update_ssa): Same.
11683 * tree.c (tree_int_cst_elt_check_failed): Same.
11684 (tree_vec_elt_check_failed): Same.
11685 (omp_clause_operand_check_failed): Same.
11686 (verify_type_variant): Same.
11687 (verify_type): Same.
11688 * value-prof.c (verify_histograms): Same.
11689 * varasm.c (assemble_start_function): Same.
11691 2019-05-16 Martin Sebor <msebor@redhat.com>
11693 * config/i386/i386-expand.c (get_element_number): Quote keywords
11694 and other internal names in diagnostics. Adjust other diagnostic
11695 formatting issues noted by -Wformat-diag.
11696 * config/i386/i386-features.c
11697 (ix86_mangle_function_version_assembler_name): Same.
11698 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
11699 * config/i386/i386.c (ix86_function_type_abi): Same.
11700 (ix86_function_ms_hook_prologue): Same.
11701 (classify_argument): Same.
11702 (ix86_expand_prologue): Same.
11703 (ix86_md_asm_adjust): Same.
11704 (ix86_memmodel_check): Same.
11706 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
11708 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
11709 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
11712 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
11715 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
11716 intrinsics without SSE/SSE2/SSSE3.
11717 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
11719 (*mmx_uavgv8qi3): Likewise.
11721 2019-05-17 Richard Biener <rguenther@suse.de>
11723 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
11724 VEC_PERM_EXPR as __VEC_PERM with -gimple.
11726 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
11728 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
11729 vec_sldw insn pattern.
11731 2019-05-17 Richard Biener <rguenther@suse.de>
11733 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
11735 2019-05-17 Martin Liska <mliska@suse.cz>
11738 * toplev.c (output_stack_usage): With LTO and sanitizer it
11739 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
11740 has no file location.
11742 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11745 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
11746 sz0 is equal to sz1, instead return false in that case.
11748 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
11749 has non-constant expression, force sctx.lane and use two
11750 argument IFN_GOMP_SIMD_LANE instead of single argument.
11751 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
11752 two argument IFN_GOMP_SIMD_LANE without lhs.
11753 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
11755 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
11757 (LOOP_REQUIRES_VERSIONING): Or in
11758 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
11759 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11761 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
11762 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
11763 from simd if clause if needed.
11765 2019-05-16 Richard Biener <rguenther@suse.de>
11767 * tree-affine.c (expr_to_aff_combination): New function split
11769 (tree_to_aff_combination): ... here.
11770 (aff_combination_expand): Avoid building a GENERIC tree.
11772 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
11774 * cgraphunit.c (cgraph_node::expand_thunk): Remove
11775 assemble_start_function and assemble_end_function calls.
11776 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
11777 assemble_start_function and assemble_end_function.
11778 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
11779 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
11780 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
11781 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
11782 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
11783 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
11784 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
11785 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
11786 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11787 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11788 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11789 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
11791 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
11792 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
11793 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
11794 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
11795 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11796 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11797 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
11798 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
11799 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11800 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
11801 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11802 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11803 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
11804 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
11806 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11807 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11808 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
11810 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
11812 * tree-ssa-alias.c (alias_stats): Add
11813 aliasing_component_refs_p_may_alias and
11814 aliasing_component_refs_p_no_alias.
11815 (dump_alias_stats): Print aliasing_component_refs_p stats.
11816 (aliasing_component_refs_p): Update stats.
11818 2019-05-16 Martin Liska <mliska@suse.cz>
11821 * multiple_target.c (expand_target_clones): Do not allow
11822 target_clones being used with a symbol that is an alias.
11824 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
11826 PR tree-optimization/90394
11827 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
11828 positives rather than ICE for cases where (code2 == NE_EXPR
11829 && code1 == BIT_AND_EXPR).
11831 2019-05-16 Jakub Jelinek <jakub@redhat.com>
11834 * tree-core.h (struct tree_decl_common): Document
11835 decl_nonshareable_flag for PARM_DECLs.
11836 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
11837 * calls.c (expand_call): Don't try tail call if caller
11838 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
11839 passed on the stack and callee needs to pass any arguments on the
11841 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
11842 else if instead of series of mutually exclusive ifs. Handle
11843 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
11844 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
11846 * lto-streamer.h (LTO_major_version): Bump to 9.
11848 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
11850 PR tree-optimization/90106
11851 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
11852 new parameter as new internal function call, also move it to new
11854 (use_internal_fn): Pass internal function call to
11855 shrink_wrap_one_built_in_call_with_conds.
11857 2019-05-15 Jakub Jelinek <jakub@redhat.com>
11859 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
11861 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
11862 safelen_int and set loop->dont_vectorize.
11864 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11867 * config/i386/i386-builtin.def: Enable MMX intrinsics with
11869 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
11871 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
11872 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
11873 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
11876 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11879 * config/i386/mmx.md (*vec_dupv2sf): Changed to
11880 define_insn_and_split to support SSE emulation.
11881 (*vec_extractv2sf_0): Likewise.
11882 (*vec_extractv2sf_1): Likewise.
11883 (*vec_extractv2si_0): Likewise.
11884 (*vec_extractv2si_1): Likewise.
11885 (*vec_extractv2si_zext_mem): Likewise.
11886 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
11887 (vec_extractv2sf_1 splitter): Likewise.
11888 (vec_extractv2sfsf): Likewise.
11889 (vec_setv2si): Likewise.
11890 (vec_extractv2si_1 splitter): Likewise.
11891 (vec_extractv2sisi): Likewise.
11892 (vec_setv4hi): Likewise.
11893 (vec_extractv4hihi): Likewise.
11894 (vec_setv8qi): Likewise.
11895 (vec_extractv8qiqi): Likewise.
11896 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11897 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
11898 (vec_extractv2sisi): Likewise.
11899 (vec_extractv4hihi): Likewise.
11900 (vec_extractv8qiqi): Likewise.
11901 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
11902 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
11903 (vec_initv2sisi): Likewise.
11904 (vec_initv4hihi): Likewise.
11905 (vec_initv8qiqi): Likewise.
11906 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
11907 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
11908 (vec_setv4hi): Likewise.
11909 (vec_setv8qi): Likewise.
11911 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11914 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
11915 TARGET_MMX_WITH_SSE.
11916 (MMXMODE:*mov<mode>_internal): Likewise.
11917 (MMXMODE:movmisalign<mode>): Likewise.
11919 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
11922 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
11923 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
11924 (sse2_cvtpd2pi): Ditto.
11925 (sse2_cvttpd2pi): Ditto.
11926 (*vec_concatv2sf_sse4_1): Ditto.
11927 (*vec_concatv2sf_sse): Ditto.
11928 (*vec_concatv2si_sse4_1): Ditto.
11929 (*vec_concatv2si): Ditto.
11930 (*vec_concatv4si_0): Ditto.
11931 (*vec_concatv2di_0): Ditto.
11933 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11936 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
11938 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11941 * config/i386/sse.md (ssse3_palignrdi): Changed to
11942 define_insn_and_split to support SSE emulation.
11944 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11947 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
11949 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11952 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
11953 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
11956 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11959 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
11960 or TARGET_MMX_WITH_SSE.
11961 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
11963 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11966 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
11968 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11971 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
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/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
11978 Changed to define_insn_and_split to support SSE emulation.
11980 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11983 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
11984 (*mmx_<emms>): This.
11985 (mmx_<emms>): New expander.
11987 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11990 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
11992 (*sse2_umulv1siv1di3): Add SSE2 emulation.
11994 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
11997 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
11999 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12002 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
12004 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12007 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12008 TARGET_MMX_WITH_SSE.
12009 (*mmx_uavgv4hi3): Add SSE emulation.
12011 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12014 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12015 and TARGET_MMX_WITH_SSE.
12016 (*mmx_uavgv8qi3): Add SSE emulation.
12018 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12021 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12022 maskmovdqu for __MMX_WITH_SSE__.
12024 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12027 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12028 TARGET_MMX and TARGET_MMX_WITH_SSE.
12029 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12031 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12034 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12035 define_insn_and_split to support SSE emulation.
12037 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12040 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12041 and TARGET_MMX_WITH_SSE.
12042 (mmx_<code>v8qi3): Likewise.
12043 (smaxmin:<code>v4hi3): New.
12044 (umaxmin:<code>v8qi3): Likewise.
12045 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12046 (umaxmin:*mmx_<code>v8qi3): Likewise.
12048 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12051 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12052 TARGET_MMX_WITH_SSE.
12053 (*mmx_pinsrw): Add SSE emulation.
12055 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12058 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12060 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12063 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12064 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12067 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12070 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12071 (sse_cvttps2pi): Likewise.
12073 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12076 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12077 TARGET_MMX_WITH_SSE.
12078 (mmx_pshufw_1): Add SSE emulation.
12079 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12080 TARGET_MMX_WITH_SSE to support SSE emulation.
12082 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12085 * config/i386/constraints.md (Yw): New constraint.
12086 * config/i386/mmx.md (*vec_dupv2si): Changed to
12087 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12088 support SSE emulation.
12090 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12093 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12094 TARGET_MMX_WITH_SSE.
12095 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12097 (mmx_gt<mode>3): Likewise.
12099 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12102 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12103 TARGET_MMX_WITH_SSE. Add SSE support.
12105 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12108 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12109 TARGET_MMX_WITH_SSE.
12110 (any_logic:<code><mode>3): New.
12111 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12117 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12118 TARGET_MMX_WITH_SSE. Add SSE emulation.
12119 (mmx_<shift_insn><mode>3): Likewise.
12120 (ashr<mode>3): New.
12121 (<shift_insn><mode>3): Likewise.
12123 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12126 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12127 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12129 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12132 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12133 TARGET_MMX_WITH_SSE.
12134 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12137 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12140 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12141 TARGET_MMX_WITH_SSE.
12143 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12146 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12149 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12150 (plusminus:mmx_<plusminus_insn><mode>3): Check
12151 TARGET_MMX_WITH_SSE.
12152 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12153 (<plusminus_insn><mode>3): New.
12154 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12155 (*mmx_<plusminus_insn><mode>3): Likewise.
12157 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12160 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12161 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12163 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12164 define_insn_and_split to support SSE emulation.
12165 (mmx_punpcklbw): Likewise.
12166 (mmx_punpckhwd): Likewise.
12167 (mmx_punpcklwd): Likewise.
12168 (mmx_punpckhdq): Likewise.
12169 (mmx_punpckldq): Likewise.
12171 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12172 Uros Bizjak <ubizjak@gmail.com>
12175 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12177 (ix86_split_mmx_pack): Likewise.
12178 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12180 (ix86_split_mmx_pack): Likewise.
12181 * config/i386/i386.md (mmx_isa): New.
12182 (enabled): Also check mmx_isa.
12183 * config/i386/mmx.md (any_s_truncate): New code iterator.
12184 (s_trunsuffix): New code attr.
12185 (mmx_packsswb): Removed.
12186 (mmx_packssdw): Likewise.
12187 (mmx_packuswb): Likewise.
12188 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12189 MMX packsswb/packuswb with SSE2.
12190 (mmx_packssdw): Likewise.
12191 * config/i386/predicates.md (register_mmxmem_operand): New.
12193 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12196 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12197 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12198 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12199 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12200 (ix86_vector_mode_supported_p): Likewise.
12201 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12203 2019-05-15 Martin Liska <mliska@suse.cz>
12205 PR middle-end/90478
12206 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12207 Check for overflow.
12209 2019-05-15 Richard Biener <rguenther@suse.de>
12211 * tree-into-ssa.c (pass_build_ssa::execute): Run
12212 update_address_taken before going into SSA.
12214 2019-05-15 Richard Biener <rguenther@suse.de>
12216 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12217 as __BIT_FIELD_REF with type with -gimple.
12219 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12221 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12222 semantically equivalent branches (left over after prior refactorings).
12224 2019-05-15 Richard Biener <rguenther@suse.de>
12226 PR tree-optimization/88828
12227 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12230 2019-05-14 Richard Biener <rguenther@suse.de>
12232 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12233 as __VIEW_CONVERT with -gimple.
12235 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12238 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12241 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12243 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12244 define_split to become a define_insn_and_split.
12246 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12248 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12250 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12251 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12252 (sibcall_epilogue): Adjust.
12253 (epilogue): Adjust.
12255 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12257 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12258 to unsupported ones.
12259 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12260 * config.host: Likewise.
12261 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12262 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12263 __svr4__]: Remove "brand" fallback.
12264 [!KSTAT_DATA_STRING]: Remove.
12265 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12267 (comdat_group): Likewise.
12268 (set_have_as_tls): Likewise.
12269 (gcc_cv_target_dl_iterate_phdr): Likewise.
12270 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12271 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12272 * configure: Regenerate.
12273 * doc/install.texi: Simplify Solaris target triplets.
12274 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12275 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12276 Remove Solaris 10 references.
12277 Remove obsolete Solaris bug reference.
12278 (Specific, sparc-sun-solaris2.10): Remove.
12280 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12282 * config/i386/i386.md (any_div): New code iterator.
12283 (paired_mod): New code attribute.
12284 (sgnprefix): Handle DIV and UDIV RTXes.
12286 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12287 and udivmod<mode>4 patterns using any_div code iterator.
12288 (divmod splitters): Macroize splitters using any_div code iterator.
12289 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12290 (*udivmodsi4_pow2_zext_2): Ditto.
12291 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12292 and *udivmod<mode>4_noext patterns using any_div code iterator.
12293 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12294 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12295 patterns using any_div code iterator.
12296 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12297 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12298 patterns using any_div code iterator.
12299 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12300 udivmodhiqi3 patterns using any_extend code iterator.
12302 2019-05-14 Richard Biener <rguenther@suse.de>
12303 H.J. Lu <hongjiu.lu@intel.com>
12305 PR tree-optimization/88828
12306 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12307 permuting in a single non-constant element not extracted
12310 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12312 * internal-fn.def (SIGNBIT): New.
12313 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12315 (signbitv4sf2): Likewise.
12317 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12320 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12321 next insn when the SRC reg is dead.
12323 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12325 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12326 (alloc_cand_and_find_basis): Ditto.
12327 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12328 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12329 (create_add_imm_cand, slsr_process_cast): Ditto.
12330 (slsr_process_copy, replace_mult_candidate): Ditto.
12331 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
12332 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
12333 (pass_strength_reduction::execute): Init the first NULL element.
12335 2019-05-13 Nathan Sidwell <nathan@acm.org>
12337 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
12338 (run_attempt): Reformat line break.
12340 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
12343 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
12344 data registers in sibcall epilogues.
12345 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12347 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
12350 * configure.ac (--enable-frame-pointer):
12351 Disable by default for cygwin and mingw.
12352 * configure: Regenerate.
12354 2019-05-13 Nathan Sidwell <nathan@acm.org>
12356 * dwarf2out.c (breakout_comdat_types): Move comment to correct
12358 (const_ok_for_output_1): Balance parens around #if/#else/#endif
12359 (gen_member_die): Move abstract origin check earlier. Only VARs
12360 can be static_inline_p. Simplify splicing control flow.
12362 2019-05-13 Richard Biener <rguenther@suse.de>
12364 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
12366 (vect_build_slp_tree_1): Likewise.
12368 2019-05-13 Richard Biener <rguenther@suse.de>
12370 PR tree-optimization/90402
12371 * tree-if-conv.c (tree_if_conversion): Value number only
12372 the loop body by making the latch an exit of the region
12374 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
12376 (do_rpo_vn): Deal with multiple edges into the entry block
12377 that are not backedges inside the region by skipping PHIs
12378 of the entry block.
12380 2019-05-13 Richard Biener <rguenther@suse.de>
12382 PR tree-optimization/90316
12383 * tree-ssa-pre.c (insert_aux): Fold into ...
12384 (insert): ... this function. Use a RPO walk to reduce the
12385 number of required iterations.
12387 2019-05-13 Martin Liska <mliska@suse.cz>
12389 PR tree-optimization/90416
12390 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
12391 string instead of passing the second part as va_arg argument.
12393 2019-05-13 Martin Liska <mliska@suse.cz>
12395 PR gcov-profile/90380
12396 * gcov.c (handle_cycle): Do not support zero cycle count,
12397 it should not be possible.
12398 (path_contains_zero_cycle_arc): New function.
12399 (circuit): Ignore zero cycle arc counts.
12401 2019-05-13 Martin Liska <mliska@suse.cz>
12403 PR gcov-profile/90380
12404 * gcov.c (enum loop_type): Remove the enum and
12406 (handle_cycle): Assert that we should not reach
12408 (circuit): Use loop_found instead of a tri-state loop_type.
12409 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
12412 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12415 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
12416 (ix86_output_indirect_branch_via_reg): Use output mechanism
12417 accounting for __USER_LABEL_PREFIX__.
12418 (ix86_output_indirect_branch_via_push): Likewise.
12419 (ix86_output_function_return): Likewise.
12420 (ix86_output_indirect_function_return): Likewise.
12422 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
12424 * doc/md.texi: Document use of code attributes in rtx patterns.
12425 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
12426 * read-rtl.c (find_code): Split out search loops into...
12427 (maybe_find_code): ...this new function.
12428 (check_code_iterator): Make the error message more informative.
12429 (check_code_attribute): New function.
12430 (rtx_reader::rtx_alloc_for_name): Likewise.
12431 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
12432 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
12433 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
12434 <max_opp> directly as an rtx code instead of via a match_operator.
12435 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
12436 (<su>abd<mode>_3): Update accordingly.
12438 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12440 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
12441 is given, print the state of the EH "save world" computation for
12444 2019-05-11 Jakub Jelinek <jakub@redhat.com>
12447 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
12448 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
12450 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
12452 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
12453 Use pinsrd for TARGET_SSE4_1.
12454 * config/i386/sse.md (movdi_to_sse): Ditto.
12456 2019-05-10 Richard Biener <rguenther@suse.de>
12458 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
12459 (do_rpo_vn): Initialize next_value_id.
12461 2019-05-10 Martin Liska <mliska@suse.cz>
12463 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12466 2019-05-10 Jakub Jelinek <jakub@redhat.com>
12468 PR tree-optimization/90385
12469 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
12470 arguments of the exit phis.
12473 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
12474 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
12476 (copy_tree_body_r): Likewise.
12477 (copy_fn): Set id.do_not_fold to true.
12479 2019-05-10 Martin Liska <mliska@suse.cz>
12481 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
12482 Reapply changes from r269790.
12484 2019-05-10 Martin Liska <mliska@suse.cz>
12486 PR middle-end/90340
12487 * doc/invoke.texi: New params.
12488 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
12489 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
12490 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12492 * tree-switch-conversion.h (struct jump_table_cluster):
12495 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
12497 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
12499 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
12501 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
12503 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
12505 PR rtl-optimization/88879
12506 * sel-sched.c (sel_target_adjust_priority): Remove assert.
12508 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
12511 * config/arm/arm.c (callee_saved_reg_p): Move before
12512 thumb_find_work_register.
12513 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
12514 thumb_find_work_register. Only call df_get_live_out once.
12515 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
12516 (thumb_find_work_register): Use
12517 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
12518 algorithms to locate a spare call clobbered reg.
12520 2019-05-09 Martin Liska <mliska@suse.cz>
12522 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
12523 and MAX_EXPR in GIMPLE FE format.
12525 2019-05-09 Martin Liska <mliska@suse.cz>
12527 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
12528 * gimple-pretty-print.c (dump_gimple_bb_header):
12530 (pp_cfg_jump): Dump edge probability.
12531 * profile-count.c (profile_quality_as_string): Simplify
12532 with a static array.
12533 (parse_profile_quality): New function.
12534 (profile_count::dump): Simplify with a static array.
12535 (profile_count::from_gcov_type): Add new argument.
12536 * profile-count.h (parse_profile_quality): Likewise.
12537 * predict.h (set_hot_bb_threshold): New.
12538 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
12540 * predict.c (get_hot_bb_threshold): Set from the new param.
12541 (set_hot_bb_threshold): New.
12543 2019-05-09 Richard Biener <rguenther@suse.de>
12545 PR tree-optimization/90395
12546 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
12547 rewrite vector stores that throw internally.
12549 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
12551 * cif-code.def (CHKP): Remove.
12554 * configure.ac (--enable-frame-pointer): Disable by default for
12556 * configure: Regenerate.
12558 2019-05-09 Alan Modra <amodra@gmail.com>
12561 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
12562 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
12563 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
12564 cost for general <-> vsx when direct moves are available.
12565 Cost union classes at minimal cost for any reg in the class.
12566 Correct calculation for moves between vsx, float, and altivec.
12567 Don't return a low cost for moves between special regs. Don't
12568 use hard coded register numbers.
12569 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
12570 (rs6000_ira_change_pseudo_allocno_class): New function.
12571 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
12572 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
12574 (movsi_internal1): Don't disparage vector alternatives.
12575 (mov<mode>_internal): Likewise, excepting alternative that
12577 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
12578 we <- b alternative.
12580 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12583 PR tree-optimization/89060
12584 * tree-ssa-live.h (live_vars_map): New typedef.
12585 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
12586 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
12587 (struct compute_live_vars_data): New type.
12588 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
12589 live_vars_at_stmt, destroy_live_vars): New functions.
12590 * tree-tailcall.c: Include tree-ssa-live.h.
12591 (live_vars, live_vars_vec): New global variables.
12592 (find_tail_calls): Perform variable life analysis before punting.
12593 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
12594 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
12596 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
12597 Perform variable life analysis to select variables that really need
12599 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
12600 instead set id->eh_landing_pad_dest and assert it is the same.
12601 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
12603 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
12604 Richard Earnshaw <rearnsha@arm.com>
12607 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
12609 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
12610 (thumb1_compute_save_core_reg_mask): Don't force a spare work
12611 register if both the epilogue and prologue can use call-clobbered
12613 (thumb1_unexpanded_epilogue): Use
12614 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
12615 picking temporaries for restoring high regs to match that of the
12616 prologue where possible.
12617 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
12618 the list of work registers. Detect if the return address is still live
12619 at the end of the prologue and avoid using it for a work register if so.
12620 If the return address is not live, add LR to the list of pushable regs
12621 after the first pass.
12623 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12625 PR tree-optimization/90078
12626 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
12627 (INFTY): Increase the value for infinite cost.
12628 (struct comp_cost): Promote type of members to int64_t.
12629 (infinite_cost): Don't set complexity in initialization.
12630 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
12631 overflows to infinite_cost.
12632 (adjust_setup_cost): Promote type of parameter and cost computation
12634 (struct ainc_cost_data, struct iv_ca): Promote type of member to
12636 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
12637 cost computation to int64_t.
12638 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
12639 int64_t's format specifier in dump.
12641 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
12643 PR tree-optimization/90240
12644 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
12645 with respect to scaling factor pre-computed for each basic block.
12646 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
12647 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
12648 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
12649 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
12650 live range for array of loop's basic blocks. Cleanup aux field of
12651 loop's basic blocks.
12653 2019-05-08 Jakub Jelinek <jakub@redhat.com>
12655 PR tree-optimization/90356
12656 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
12658 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
12660 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
12661 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
12662 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
12663 (ix86_handle_option): Handle -mavx512bf16.
12664 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
12666 * config/i386/avx512bf16vlintrin.h: New.
12667 * config/i386/avx512bf16intrin.h: New.
12668 * config/i386/cpuid.h (bit_AVX512BF16): New.
12669 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
12670 * config/i386/i386-builtin-types.def: Add new types.
12671 * config/i386/i386-builtin.def: Add new builtins.
12672 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12674 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
12675 (ix86_option_override_internal): Handle BF16.
12676 (ix86_valid_target_attribute_inner_p): Ditto.
12677 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
12678 * config/i386/i386-builtin.c (enum processor_features): Add
12680 (static const _isa_names_table isa_names_table): Ditto.
12681 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
12682 (PTA_AVX512BF16): Ditto.
12683 * config/i386/i386.opt: Add -mavx512bf16.
12684 * config/i386/immintrin.h: Include avx512bf16intrin.h
12685 and avx512bf16vlintrin.h.
12686 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
12687 avx512f_cvtneps2bf16_<mode><mask_name>,
12688 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
12689 * config/i386/subst.md (mask_half): Add new subst.
12690 * doc/invoke.texi: Document -mavx512bf16.
12692 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
12694 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
12695 Delete declaration.
12696 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
12697 (rs6000_debug_legitimize_reload_address): Delete.
12698 (rs6000_legitimize_reload_address_ptr): Delete.
12699 (rs6000_option_override_internal): Adjust.
12700 (mem_operand_gpr): Adjust comment.
12701 (legitimate_lo_sum_address_p): Ditto.
12702 (rs6000_legitimize_reload_address): Delete.
12703 (rs6000_debug_legitimize_reload_address): Delete.
12704 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
12706 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
12709 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12710 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
12711 to compute vector element selector for both constant and variable
12714 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12716 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
12717 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
12718 ashrdi3_cvt using SWI48 mode iterator.
12720 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12722 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
12723 (aarch64_<su>abd<mode>_3): Likewise.
12724 (*aarch64_<su>abd<mode>_3): New define_insn.
12725 (<sur>sad<vsi2qi>): New define_expand.
12726 * config/aarch64/iterators.md: Added MAX_OPP attribute.
12727 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
12728 (build_vect_cond_expr): Likewise.
12730 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
12732 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
12733 clobbers outside of accessible_reg_set.
12734 * config/i386/i386.c (ix86_conditional_register_usage):
12735 Disable register sets by clearing corresponding bits in
12736 accessible_reg_set. Do not set corresponding bits in fixed_regs,
12737 call_used_regs and don't clear corresponding reg_names array members.
12739 2019-05-07 Richard Biener <rguenther@suse.de>
12741 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
12742 not specified still compute a comp_vectype for invariant
12745 2019-05-07 Richard Biener <rguenther@suse.de>
12747 PR tree-optimization/90316
12748 * tree-ssa-pre.c (translate_vuse_through_block): When
12749 same_valid is NULL do not bother to search for a virtual
12751 (phi_translate_1): When operands changed we cannot keep
12752 the same value-number so do not bother to ask whether
12753 that's possible from translate_vuse_through_block.
12755 2019-05-07 Martin Liska <mliska@suse.cz>
12757 * bitmap.c (bitmap_register): Come up with
12758 alloc_descriptor_max_uid and assign it for
12760 (register_overhead): Use get_descriptor as
12762 (release_overhead): New.
12763 (bitmap_elem_to_freelist): Call it.
12764 (bitmap_elt_clear_from): Likewise.
12765 (bitmap_obstack_free): Likewise.
12766 (bitmap_move): Sensitively release memory.
12767 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
12768 (bitmap_initialize): Initialize alloc_descriptor to zero.
12769 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
12771 2019-05-07 Richard Biener <rguenther@suse.de>
12773 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
12774 we build a SLP node. Remove max_size and limiting.
12775 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
12777 2019-05-07 Richard Biener <rguenther@suse.de>
12779 PR tree-optimization/90316
12780 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
12781 limit by reference.
12782 (walk_non_aliased_vuses): Take walking limit argument.
12783 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
12784 walking if it is reached instead of just counting.
12785 (get_continuation_for_phi): Likewise.
12786 (walk_non_aliased_vuses): Likewise, instead of leaving counter
12787 limiting to the callback.
12788 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
12789 (vn_reference_lookup_3): Likewise.
12790 (vn_reference_lookup_pieces): Likewise.
12791 (vn_reference_lookup): Likewise.
12792 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
12793 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
12794 (avail_exprs_stack::lookup_avail_expr): Likewise.
12796 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
12798 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
12799 for comparaible types in the second direction even if first one
12800 hits incomparable type.
12802 2019-05-07 Richard Biener <rguenther@suse.de>
12805 * lto-wrapper.c (debug_objcopy): Use the original filename
12806 including archive offset for the filename used for -save-temps.
12808 2019-05-07 Li Jia He <helijia@linux.ibm.com>
12810 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
12813 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
12814 Hongtao Liu <hongtao.liu@intel.com>
12818 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
12819 Modified, original implementation isn't correct.
12821 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12823 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
12824 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
12825 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
12826 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
12827 (FRAME_POINTER_REGNUM): Change numbering.
12828 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
12829 (alt_reg_names): Adjust.
12830 (rs6000_conditional_register_usage): Don't mark hard register 64 as
12832 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12833 (DWARF_FRAME_REGISTERS): Delete.
12834 (DWARF2_FRAME_REG_OUT): Fix whitespace.
12835 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12837 (REG_ALLOC_ORDER): Adjust.
12838 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
12839 (REG_CLASS_CONTENTS): Adjust.
12840 (RETURN_ADDR_RTX): Change comment.
12841 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
12843 (REGISTER_NAMES): Adjust.
12844 (ADDITIONAL_REGISTER_NAMES): Adjust.
12845 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12847 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12849 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
12851 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
12852 (DWARF_FRAME_REGISTERS): Adjust.
12853 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
12855 (REG_ALLOC_ORDER): Adjust.
12856 (enum reg_class): Delete SPR_REGS.
12857 (REG_CLASS_NAMES): Delete SPR_REGS.
12858 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
12859 (REGISTER_NAMES): Adjust.
12860 (ADDITIONAL_REGISTER_NAMES): Adjust.
12861 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
12862 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
12863 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
12864 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
12865 (htm_spr_regno): Delete.
12866 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
12868 (rs6000_dbx_register_number): Adjust.
12870 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12872 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
12874 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
12876 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
12877 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
12879 2019-05-06 Jakub Jelinek <jakub@redhat.com>
12881 PR tree-optimization/88709
12882 PR tree-optimization/90271
12883 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
12884 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
12885 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
12887 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
12888 of the store merging group is larger than
12889 PARAM_STORE_MERGING_MAX_SIZE parameter.
12890 (split_group): Add bzero_first argument. If set, always emit first
12891 the first store which must be = {} of the whole area and then for the
12892 rest of the stores consider all zero bytes as paddings.
12893 (imm_store_chain_info::output_merged_store): Check if first store
12894 is = {} of the whole area and if yes, determine which setting of
12895 bzero_first for split_group gives smaller number of stores. Adjust
12896 split_group callers.
12897 (lhs_valid_for_store_merging_p): Allow decls.
12898 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
12900 (pass_store_merging::process_store): Likewise.
12902 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
12905 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
12906 handling of V1TImode.
12908 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
12911 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
12912 and enable_frame_pointer ...
12913 * configure.ac: ... here. Update help strings for
12914 --enable-frame-pointer.
12915 * configure: Regenerate.
12916 * config/i386/i386-options.c (ix86_option_override_internal): Remove
12917 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
12918 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
12919 (USE_X86_64_FRAME_POINTER): Ditto.
12921 2019-05-06 Martin Liska <mliska@suse.cz>
12923 * config.gcc: Append to target_gtfiles and fix indentation.
12925 2019-05-06 Richard Biener <rguenther@suse.de>
12927 PR tree-optimization/90358
12928 * tree-vect-stmts.c (get_group_load_store_type): Properly
12929 detect unused upper half of load.
12930 (vectorizable_load): Likewise.
12932 2019-05-06 Richard Biener <rguenther@suse.de>
12934 PR tree-optimization/88828
12935 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
12936 (simplify_vector_constructor): ...here. Handle constants in
12939 2019-05-06 Richard Biener <rguenther@suse.de>
12941 PR tree-optimization/90328
12942 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
12943 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
12944 is valid in the loop nest before using it.
12945 (initialize_data_dependence_relation): Adjust.
12946 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
12947 loop as loop-nest to dr_may_alias_p.
12949 2019-05-06 Richard Biener <rguenther@suse.de>
12951 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
12953 2019-05-06 Richard Biener <rguenther@suse.de>
12955 PR tree-optimization/90316
12956 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
12957 compute target on demand.
12958 (get_continuation_for_phi): Remove code walking stmts to
12959 get to a target virtual operand which could end up being
12962 2019-05-06 Martin Liska <mliska@suse.cz>
12965 * config/i386/i386-options.c (ix86_option_override_internal): Error only
12966 when -mabi is selected to a non-default version.
12968 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
12969 Martin Liska <mliska@suse.cz>
12971 * Makefile.in: Add lto-dump.texi.
12972 * cgraph.h: Add new functions get_visibility_string and
12973 get_symtab_type_string.
12974 * doc/gcc.texi: Include lto-dump section.
12975 * doc/lto-dump.texi: New file.
12976 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
12977 (parse_dump_option): Factor out this function.
12978 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
12979 (parse_dump_option): Export the function.
12980 * symtab.c (symtab_node::get_visibility_string): New function.
12981 (symtab_node::get_symtab_type_string): Likewise.
12983 2019-05-06 Martin Liska <mliska@suse.cz>
12985 * config/i386/i386-builtins.c: New file.
12986 * config/i386/i386-builtins.h: New file.
12987 * config/i386/i386-expand.c: New file.
12988 * config/i386/i386-expand.h: New file.
12989 * config/i386/i386-features.c: New file.
12990 * config/i386/i386-features.h: New file.
12991 * config/i386/i386-options.c: New file.
12992 * config/i386/i386-options.h: New file.
12993 * config.gcc: Add new files into extra_objs and
12995 * config/i386/i386.c: Split content of the file
12996 into newly introduced files.
12997 * config/i386/i386.h: Declare common variables
12999 * config/i386/t-i386: Define dependencies for new files.
13001 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
13004 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
13005 Restrict 'all' variant to 32-bit configurations.
13006 (unaligned_loadhiu): Likewise.
13007 (unaligned_storehi): Likewise.
13008 (unaligned_storesi): Likewise.
13009 (unaligned_loadhis): Disable when compiling for thumb1.
13011 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13013 PR tree-optimization/90269
13014 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13017 2019-05-03 Martin Liska <mliska@suse.cz>
13019 * hash-map.h: Add is_empty function.
13020 * hash-set.h: Likewise.
13021 * hash-table.h: Likewise.
13022 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13023 elements () == 0 (and similar usages).
13024 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13025 * gimplify.c (gimplify_bind_expr): Likewise.
13026 (gimplify_switch_expr): Likewise.
13027 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13028 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13029 * postreload-gcse.c (dump_hash_table): Likewise.
13030 (gcse_after_reload_main): Likewise.
13031 * predict.c (combine_predictions_for_bb): Likewise.
13032 * tree-parloops.c (reduction_phi): Likewise.
13033 (separate_decls_in_region): Likewise.
13034 (transform_to_exit_first_loop): Likewise.
13035 (gen_parallel_loop): Likewise.
13036 (gather_scalar_reductions): Likewise.
13037 (try_create_reduction_list): Likewise.
13038 * var-tracking.c (dump_vars): Likewise.
13039 (emit_notes_for_changes): Likewise.
13040 (vt_emit_notes): Likewise.
13042 2019-05-03 Richard Biener <rguenther@suse.de>
13044 PR tree-optimization/90316
13045 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13048 2019-05-03 Richard Biener <rguenther@suse.de>
13050 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13051 peeling for gaps by loading only lower halves of vectors
13053 (vectorizable_load): Likewise.
13055 2019-05-03 Richard Biener <rguenther@suse.de>
13057 PR middle-end/89518
13058 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13060 2019-05-03 Richard Biener <rguenther@suse.de>
13062 PR middle-end/87314
13063 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13064 Handle STRING_CST vs DECL or STRING_CST.
13066 2019-05-03 Richard Biener <rguenther@suse.de>
13068 PR tree-optimization/88963
13069 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13070 vector loads feeding only BIT_FIELD_REFs to component
13071 loads. Rewrite stores fed by CONSTRUCTORs to component
13074 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13076 * opts.h (finish_options): Remove lang_mask argument.
13077 (print_help, help_option_argument): Declare.
13078 * opts.c (print_help): Remove forward declaration, no longer static.
13079 (finish_options): Remove lang_mask argument, don't call print_help
13081 * opts-global.c (decode_options): Adjust finish_option caller, call
13084 PR tree-optimization/90303
13085 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13086 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13088 2019-05-03 Richard Biener <rguenther@suse.de>
13090 PR tree-optimization/89698
13091 * gimple-fold.c (canonicalize_constructor_val): Early out
13092 for constants, handle unfolded INTEGER_CSTs as they appear in
13093 C++ virtual table ctors.
13095 2019-05-03 Richard Biener <rguenther@suse.de>
13097 * passes.c (execute_function_todo): Remove dead code.
13099 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13101 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13102 the internal register number, for any "real" register.
13104 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13106 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13107 correct numbers for TFHAR, TFIAR, TEXASR.
13109 2019-05-02 Richard Biener <rguenther@suse.de>
13111 PR tree-optimization/89653
13112 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13113 update-address-taken before the pass.
13114 * passes.def (pass_tree_loop_init): Put comment before it.
13116 2019-05-02 Richard Biener <rguenther@suse.de>
13118 PR tree-optimization/89509
13119 * tree-ssa-structalias.c (compute_dependence_clique): Look
13120 at the first subvar when determining whether it is restrict.
13122 2019-05-02 Richard Biener <rguenther@suse.de>
13124 PR tree-optimization/90273
13125 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13126 useless debug stmts.
13128 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13130 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13132 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13134 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13135 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13136 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13137 (vectorizable_reduction): Use the functions above to vectorize in a
13138 fully masked loop codes that don't have a conditional internal
13141 2019-05-02 Martin Liska <mliska@suse.cz>
13143 * cgraphclones.c: Call valid_attribute_p with 1 for
13145 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13146 it's for target attribute.
13147 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13148 Add new boolean argument.
13149 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13151 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13152 to ix86_valid_target_attribute_inner_p.
13153 (ix86_valid_target_attribute_p): Pass flags argument to
13154 ix86_valid_target_attribute_inner_p.
13155 (get_builtin_code_for_version): Use 0 as it's target attribute.
13157 2019-05-02 Martin Liska <mliska@suse.cz>
13159 * gcc.c (process_command): Add dummy file only
13161 * opts-global.c (decode_options): Pass lang_mask.
13162 * opts.c (print_help): New function.
13163 (finish_options): Print --help if help_option_argument
13165 (common_handle_option): Factor out content of OPT__help_
13167 * opts.h (finish_options): Add new argument.
13169 2019-05-02 Martin Liska <mliska@suse.cz>
13172 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13173 With -minline-all-stringops use inline expansion using 4B loop.
13174 * doc/invoke.texi: Document the change of
13175 -minline-all-stringops.
13177 2019-05-01 Jeff Law <law@redhat.com>
13179 PR tree-optimization/88797
13180 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13181 PHI feeds a conditional on the RHS of an assignment.
13183 2019-04-30 Andrew Waterman <andrew@sifive.com>
13184 Jim Wilson <jimw@sifive.com>
13186 * config/riscv/constraints.md (L): New.
13187 * config/riscv/predicates.md (lui_operand): New.
13188 (sfb_alu_operand): New.
13189 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13190 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13191 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13192 * config/riscv/risc.md (type): Add sfb_alu.
13193 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13194 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13195 (branch_zero<mode>): Delete.
13196 (mov<mode>cc): New.
13197 (mov<GPR:mode><X:mode>cc): Likewise.
13198 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13200 2019-04-30 Nathan Sidwell <nathan@acm.org>
13202 * tree.h (MARK_TS_EXP): New.
13204 2019-04-30 Martin Liska <mliska@suse.cz>
13206 * opts.c (enable_warning_as_error): Provide hints
13207 for unknown options.
13209 2019-04-30 Martin Liska <mliska@suse.cz>
13212 * doc/invoke.texi: Add missing dash for gas-locview-support
13213 and gno-as-locview-support.
13215 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13218 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13219 whitespace at the start of target attribute string.
13221 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13224 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13225 Define __ARM_FEATURE_ATOMICS.
13227 2019-04-30 Martin Liska <mliska@suse.cz>
13229 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13230 into built_in_function enum. Remove code for endp == 2 and
13231 use BUILT_IN_* constants.
13232 (gimple_fold_builtin): Call the function with fcode.
13234 2019-04-30 Martin Liska <mliska@suse.cz>
13236 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13237 DECL_FUNCTION_CODE into ix86_builtins enum before
13238 the switch statement.
13240 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13242 PR tree-optimization/89475
13243 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13246 2019-04-30 Martin Liska <mliska@suse.cz>
13248 PR translation/90274
13249 * opts.c (print_filtered_help): Wrap string in _(...).
13251 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13253 PR tree-optimization/90240
13255 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13257 PR tree-optimization/90078
13258 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13259 checks for infinite_cost overflow.
13261 2019-04-29 Jeff Law <law@redhat.com>
13263 * passes.def: Move -Wrestrict pass after copy propagation.
13265 2019-04-29 Maya Rashish <coypu@sdf.org>
13267 * config.gcc (default_gnu_indirect_function): Default to yes
13268 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13269 sparc*-*-netbsd*, x86_64-*-netbsd*.
13271 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13273 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13274 where cond2 is NE_EXPR.
13275 (is_value_included_in): Update comment.
13277 2019-04-29 Richard Biener <rguenther@suse.de>
13279 PR tree-optimization/90278
13280 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13281 EH on comparison simplification.
13283 2019-04-29 Jason Merrill <jason@redhat.com>
13285 PR c++/82081 - tail call optimization breaks noexcept
13286 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13287 nothrow function to a might-throw function into a tail call.
13289 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13291 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13292 (DDR_INNER_LOOP): Likewise.
13293 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13294 (initialize_data_dependence_relation): Likewise.
13295 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13297 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13299 PR rtl-optimization/90257
13300 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13304 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13308 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13311 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13314 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13316 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13318 2019-04-29 Richard Biener <rguenther@suse.de>
13320 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13323 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13325 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13326 varasm.h, and netbsd-protos.h.
13328 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13331 * config/i386/i386-protos.h (ix86_data_alignment): Change
13332 the second argument type to unsigned int.
13333 * config/i386/i386.c (ix86_data_alignment): Change "align"
13334 argument type to unsigned int.
13336 2019-04-27 Martin Liska <mliska@suse.cz>
13338 PR middle-end/90258
13339 * opt-suggestions.c (option_proposer::build_option_suggestions):
13340 When get_valid_option_values returns empty values, add the
13341 misspelling candidate.
13343 2019-04-26 Jim Wilson <jimw@sifive.com>
13345 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
13347 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
13348 Pass orig_mode to riscv_build_integer.
13349 (riscv_split_integer): Pass mode to riscv_move_integer.
13350 (riscv_legitimize_const_move): Likewise.
13351 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
13352 promoted_mode. Replace force_reg call with code to load constant into
13353 promoted reg and then subreg it for the store.
13354 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
13355 riscv_move_integer.
13357 2018-04-26 Eugene Sharygin <eush@ispras.ru>
13359 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
13362 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
13364 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
13365 commentary about the encoding of precision.
13367 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
13369 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
13370 * config/i386/t-freebsd64: New file.
13371 * config.gcc: Add the t-freebsd64 for multilib support.
13373 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
13375 * doc/extend.texi (vector_size): Add missing comma after @xref.
13377 2019-04-25 Jakub Jelinek <jakub@redhat.com>
13379 * BASE-VER: Set to 10.0.0.
13381 2019-04-25 Richard Biener <rguenther@suse.de>
13383 PR middle-end/89765
13384 * gimplify.c (gimplify_expr): Avoid turning a lvalue
13385 VIEW_CONVERT_EXPR into one operating on an rvalue.
13387 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
13390 * config/i386/i386.c (feature_priority): Moved to file scope.
13391 (processor_features): Likewise.
13392 (processor_model): Likewise.
13393 (_arch_names_table): Likewise.
13394 (arch_names_table): Likewise.
13395 (_feature_list): Removed.
13396 (feature_list): Likewise.
13397 (_isa_names_table): Moved to file scope. Add priority.
13398 (isa_names_table): Likewise.
13399 (get_builtin_code_for_version): Replace feature_list with
13400 isa_names_table. Update error message for P_ZERO priority.
13402 2019-04-25 Richard Biener <rguenther@suse.de>
13404 * tree-pass.h (make_pass_phi_only_cprop): Remove.
13405 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
13407 2019-04-24 Jeff Law <law@redhat.com>
13409 PR tree-optimization/90037
13410 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
13411 * passes.def: Replace all instance of phi-only cprop with the
13412 lattice propagator. Move propagation pass from after erroneous
13413 path isolation to before erroneous path isolation.
13414 * tree-ssa-phionlycprop.c: Remove.
13416 2019-04-24 Richard Biener <rguenther@suse.de>
13418 PR middle-end/90213
13419 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
13420 by size and BITS_PER_UNIT on poly-wide-ints.
13422 2019-04-25 Richard Biener <rguenther@suse.de>
13424 PR middle-end/90194
13425 * match.pd: Add pattern to simplify view-conversion of an
13428 2019-04-24 Clement Chigot <clement.chigot@atos.net>
13430 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
13431 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
13432 for Go on 32 bit AIX.
13433 * config/rs6000/aix72.h: Likewise.
13435 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13438 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
13439 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
13441 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
13444 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
13445 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
13446 for restored hard frame pointer.
13447 (s390_sched_dependencies_evaluation): Implement new target hook.
13448 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
13450 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
13452 * config/arc/arc-options.def: Fix typos and spelling mistakes.
13453 * config/arc/arc.c (arc_init): Cleanup warning message.
13454 (arc_override_options): Likewise.
13456 2019-04-24 Jakub Jelinek <jakub@redhat.com>
13459 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
13460 a register if both if_true and if_false are MEMs.
13462 PR tree-optimization/90208
13463 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
13464 after labels of new_bb, not before them.
13466 PR tree-optimization/90211
13467 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
13468 which are not SSA_NAMEs.
13470 2018-04-23 Sudakshina Das <sudi.das@arm.com>
13472 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
13474 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
13476 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13478 PR rtl-optimization/87979
13479 * modulo-sched.c (sms_schedule): Start ii value "mii" should
13482 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
13484 PR rtl-optimization/84032
13485 * modulo-sched.c (ps_insn_find_column): Change condition so that
13486 branch will always be the last insn in a row inside partial
13489 2019-04-23 Richard Biener <rguenther@suse.de>
13492 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
13493 dest_single_pred_p argument.
13494 (remove_forwarder_block): Adjust.
13495 (remove_forwarder_block_with_phi): Likewise.
13497 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13498 Bernd Edlinger <bernd.edlinger@hotmail.de>
13499 Jakub Jelinek <jakub@redhat.com>
13502 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
13503 if used with general-regs-only.
13504 (arm_conditional_register_usage): Don't add non-general regs if
13506 (arm_valid_target_attribute_rec): Handle general-regs-only.
13507 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
13509 (TARGET_HARD_FLOAT_SUB): Define.
13510 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
13511 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
13512 (TARGET_REALLY_IWMMXT2): Likewise.
13513 * config/arm/arm.opt: Add -mgeneral-regs-only.
13514 * doc/extend.texi: Document ARM general-regs-only target.
13515 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
13517 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13519 PR tree-optimization/90078
13520 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13521 checks for infinite_cost overflow.
13523 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13525 PR tree-optimization/90021
13526 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
13527 and check univariate against it.
13528 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
13529 * tree-data-ref.c (add_other_self_distances): Pass new argument.
13531 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13535 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13538 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13541 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13543 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13545 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
13547 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
13548 names using operand format, rather than hard-wired.
13549 (speculation_barrier): Likewise.
13551 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
13553 PR tree-optimization/88055
13554 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
13555 (gen_one_condition): Use it if !HONOR_NANS.
13557 2019-04-19 Jakub Jelinek <jakub@redhat.com>
13559 PR middle-end/90139
13560 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
13561 assign_temp instead of gen_reg_rtx.
13563 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
13565 PR translation/90118
13566 * config/aarch64/aarch64.c (aarch64_override_options_internal):
13567 Add missing space before %<.
13569 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
13571 PR rtl-optimization/87871
13572 * ira-lives.c (make_object_dead): Don't add conflicts to
13573 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
13575 2019-04-18 Martin Sebor <msebor@redhat.com>
13577 PR middle-end/89797
13578 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
13579 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
13580 assuming type size fits in SHWI.
13582 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
13585 * ipa-inline.c (flatten_function): New parameter UPDATE.
13586 (ipa_inline, early_inliner): Use it.
13588 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13590 * fold-const.c (int_const_binop): Return early on failure.
13592 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
13594 PR middle-end/85164
13595 * combine.c (force_int_to_mode): Cast the argument rather than
13596 the result of known_alignment.
13597 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
13599 2019-04-18 Richard Biener <rguenther@suse.de>
13602 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
13604 (remove_forwarder_block): ... here.
13605 (remove_forwarder_block_with_phi): Also move debug stmts here.
13607 2019-04-18 Jakub Jelinek <jakub@redhat.com>
13609 PR translation/79183
13610 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
13611 inform where appropriate.
13613 2019-04-18 Richard Biener <rguenther@suse.de>
13615 * tree.c (get_qualified_type): Put found type variants at the
13616 head of the variant list.
13618 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13620 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
13622 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
13625 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
13626 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
13627 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
13628 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
13629 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
13631 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
13633 * ira-conflicts.c (print_allocno_conflicts): Always print something,
13634 even for allocno's with no conflicts.
13635 (print_conflicts): Print an extra newline.
13637 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13639 * auto-inc-dec.c (attempt_change): Set the alignment of the
13640 temporary memory to that of the original.
13642 2019-04-17 Joao Moreira <jmoreira@suse.de>
13644 * targhooks.c (default_print_patchable_function_entry): Emit
13645 __patchable_function_entries section with writable flags to allow
13646 relocation resolution.
13648 2019-04-17 Jonny Grant <jg@jguk.org>
13650 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
13652 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13654 PR middle-end/90095
13655 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
13656 on lowpart SUBREGs.
13658 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
13660 * config/arc/arc.c (arc_init): Format diagnostic string.
13661 (arc_override_options): Likewise.
13662 (check_if_valid_regno_const): Likewise.
13663 (arc_reorg): Likewise.
13665 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
13668 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
13670 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
13672 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
13673 (*movdi_update1): Use Pmode.
13674 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
13675 (movdi_<mode>_update_stack): Rename to ...
13676 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
13678 (*movsi_update1): Use Pmode.
13679 (*movsi_update2): Use Pmode.
13680 (movsi_update): Rename to ...
13681 (movsi_<mode>_update): ... this. Use Pmode.
13682 (movsi_update_stack): Fix condition.
13683 (*movhi_update1): Use Pmode. Fix argument to
13684 avoiding_indexed_address_p.
13685 (*movhi_update2): Ditto.
13686 (*movhi_update3): Ditto.
13687 (*movhi_update4): Ditto.
13688 (*movqi_update1): Ditto.
13689 (*movqi_update2): Ditto.
13690 (*movqi_update3): Ditto.
13691 (*movsf_update1, *movdf_update1): Merge, rename to...
13692 (*mov<mode>_update1): This. Use Pmode. Fix argument to
13693 avoiding_indexed_address_p. Add "size" attribute.
13694 (*movsf_update2, *movdf_update2): Merge, rename to...
13695 (*mov<mode>_update2): This. Ditto.
13696 (*movsf_update3): Use Pmode. Fix argument to
13697 avoiding_indexed_address_p.
13698 (*movsf_update4): Ditto.
13699 (allocate_stack): Simplify condition. Adjust pattern names.
13701 2019-04-17 Jakub Jelinek <jakub@redhat.com>
13704 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
13705 whitespace at the start of target attribute string.
13707 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
13710 * config/rs6000/power9.md: Add store forwarding bypass.
13712 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
13715 * valtrack.c (dead_debug_insert_temp): Reset debug references
13716 to the return value of a call being removed.
13718 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13720 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
13721 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
13722 implement target hook.
13723 (arc_memory_move_cost): New function.
13724 (TARGET_REGISTER_MOVE_COST): Define.
13725 (TARGET_MEMORY_MOVE_COST): Likewise.
13726 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
13727 (MEMORY_MOVE_COST): Likewise.
13729 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13731 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
13732 (sibcall_value_insn): Likewise.
13733 * config/arc/constraints.md (Rs5): Remove.
13735 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13737 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
13738 for last two fake registers.
13739 (arc_conditional_register_usage): Make sure fake frame and arg
13740 pointer regs are in general regs class.
13741 (FRAME_POINTER_MASK): Remove.
13742 (RETURN_ADDR_MASK): Remove.
13743 (arc_must_save_register): Use hard frame regnum.
13744 (frame_restore_reg): Use hard_frame_pointer_rtx.
13745 (arc_save_callee_saves): Likewise.
13746 (arc_restore_callee_saves): Likewise.
13747 (arc_save_callee_enter): Likewise.
13748 (arc_restore_callee_leave): Likewise.
13749 (arc_save_callee_milli): Likewise.
13750 (arc_eh_return_address_location): Likewise.
13751 (arc_check_multi): Use hard frame regnum.
13752 (arc_can_eliminate): Likewise.
13753 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
13754 for register allocator.
13755 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
13756 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
13757 (FRAME_POINTER_REGNUM): Change it to a fake register.
13758 (HARD_FRAME_POINTER_REGNUM): Defined.
13759 (ARG_POINTER_REGNUM): Change it to a new fake register.
13760 (ELIMINABLE_REGS): Update.
13761 (REGISTER_NAMES): Update names.
13762 * config/arc/arc.md (LP_START): Remove.
13763 (LP_END): Likewise.
13764 (shift_si3_loop): Update pattern.
13766 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
13768 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
13769 to avoid delay slot scheduling.
13770 (arc_must_save_register): Don't save SP.
13771 * config/arc/arc.md (stack_tie): Remove.
13772 (UNSPEC_ARC_STKTIE): Likewise.
13774 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
13775 Shiva Chen <shiva0217@gmail.com>
13777 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
13778 code gen with large shift amount.
13780 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
13782 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
13785 2019-04-16 Jakub Jelinek <jakub@redhat.com>
13788 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
13789 print -m64/-mx32/-m32 if it is true.
13790 (ix86_debug_options, ix86_function_specific_print): Pass true as
13791 ADD_ABI_P to ix86_target_string.
13792 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
13793 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
13794 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
13796 PR rtl-optimization/90082
13797 * dce.c (can_delete_call): New function.
13798 (deletable_insn_p, mark_insn): Use it.
13800 PR tree-optimization/90090
13801 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
13803 (is_division_by_square): Likewise. Formatting fix.
13805 2019-04-16 Richard Biener <rguenther@suse.de>
13807 PR tree-optimization/56049
13808 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
13809 equality check if alias-set zero will prevail.
13811 2019-04-15 Jeff Law <law@redhat.com>
13813 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
13814 size and alignment as unsigned.
13816 2019-04-15 Richard Biener <rguenther@suse.de>
13819 * tree-loop-distribution.c (destroy_loop): Preserve correct
13822 2019-04-15 Richard Biener <rguenther@suse.de>
13824 PR tree-optimization/90071
13825 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
13826 abnormal operands from def stmts.
13828 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
13830 PR rtl-optimization/89794
13831 * combine.c (count_auto_inc): New function.
13832 (try_combine): Count how many auto_inc expressions there were in the
13833 original instructions. Ensure we have the same number in the new
13834 instructions. Remove the code that tried to ensure auto_inc side
13835 effects on i1 and i0 are not lost.
13837 2019-04-15 Richard Biener <rguenther@suse.de>
13840 * tree.h (auto_var_p): Declare.
13841 * tree.c (auto_var_p): New function, split out from ...
13842 (auto_var_in_fn_p): ... here.
13843 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
13845 (new_var_info): Initialize it.
13846 (set_uids_in_ptset): Also set the shadow variable uid if required.
13847 (ipa_pta_execute): Postprocess points-to solutions assigning
13848 shadow variable uids for locals that may reach their containing
13849 function recursively.
13850 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
13851 assert but instead check whether the points-to solution is
13854 2019-04-15 Martin Jambor <mjambor@suse.cz>
13857 * cgraph.c (clone_of_p): Loop over clone chain for each step in
13860 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13862 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
13864 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
13865 Kito Cheng <kito.cheng@gmail.com>
13866 Shiva Chen <shiva0217@gmail.com>
13868 * config/nds32/nds32-md-auxiliary.c
13869 (nds32_legitimize_pic_address): Use new PIC pattern.
13870 (nds32_legitimize_tls_address): Use new TLS pattern.
13871 (nds32_output_symrel): New.
13872 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
13873 (nds32_alloc_relax_group_id): Ditto.
13874 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
13875 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
13877 (nds32_group_tls_insn): Ditto.
13878 (nds32_group_float_insns): Ditto.
13879 * config/nds32/nds32.md (tls_le): New.
13882 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
13884 * configure: Add nds32 target for dwarf2 debug_line checking.
13885 * configure.ac: Regenerated.
13887 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
13890 * ipa-devirt.c (skip_in_fields_list_p): New.
13891 (odr_types_equivalent_p): Use it.
13893 2019-04-13 Jakub Jelinek <jakub@redhat.com>
13896 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
13897 instead of strncmp when checking for thumb and arm. Formatting fixes.
13899 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
13901 * doc/install.texi: Document --with-target-system-zlib.
13903 2019-04-12 Martin Sebor <msebor@redhat.com>
13909 * targhooks.c (default_vector_alignment): Avoid assuming
13910 argument fits in SHWI.
13911 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
13912 a shift expression.
13913 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
13915 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13917 PR rtl-optimization/89965
13918 * dce.c: Include rtl-iter.h.
13919 (struct check_argument_load_data): New type.
13920 (check_argument_load): New function.
13921 (find_call_stack_args): Check for loads from stack slots still tracked
13922 in sp_bytes and punt if any is found.
13924 * config/mips/loongson-mmiintrin.h: Fix up #error message.
13926 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
13928 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
13929 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
13931 2019-04-12 Martin Liska <mliska@suse.cz>
13933 PR middle-end/89970
13934 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
13936 (separate_attrs): Handle multiple 'default's.
13937 (expand_target_clones): Rework error handling code.
13939 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
13942 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
13943 mode of vector rather than mode of destination for move instruction.
13944 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
13945 Use QI inner mode with V16QI vector mode.
13947 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13950 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
13951 "invalid %%t operand" in output_operand_lossage message.
13953 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
13955 * config/s390/predicates.md (permute_pattern_operand): New
13957 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
13958 operand for the permute pattern.
13959 ("*vec_perm<mode>"): New insn definition.
13960 ("bswap<mode>"): Generate the permute pattern operand in the
13961 expander and perform the operand reloads for pre arch13 level
13963 ("*bswap<mode>_emu"): Rename to ...
13964 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
13965 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
13966 Add the USE operand for the permute pattern.
13967 ("*vec_set_bswap_vec<mode>"): Likewise.
13969 2019-04-12 Jakub Jelinek <jakub@redhat.com>
13972 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
13973 and gcc_unreachable if it fails, just call tree_to_uhwi which
13974 verifies that too. Test TREE_CHAIN instead of list_length > 1.
13975 Start warning message with a lower-case letter. Formatting fixes.
13977 PR rtl-optimization/90026
13978 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
13979 successors, look for BARRIERs inside of the whole BB_FOOTER chain
13980 rather than just at the start of it. If e->src BB_FOOTER is not NULL
13981 in cfglayout mode, use emit_barrier_after_bb.
13983 2018-04-11 Steve Ellcey <sellcey@marvell.com>
13985 PR rtl-optimization/87763
13986 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
13989 2019-04-11 Tom de Vries <tdevries@suse.de>
13991 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
13992 max macro using statement expression.
13994 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
13996 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
13997 * xcoffout.c (xcoff_private_rodata_section_name): Define.
13998 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
13999 read_only_private_data_section using xcoff_private_rodata_section_name.
14000 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
14002 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
14005 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14007 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14009 PR rtl-optimization/89965
14010 * dce.c (sp_based_mem_offset): New function.
14011 (find_call_stack_args): Use sp_based_mem_offset.
14013 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14015 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14017 2019-04-11 Richard Biener <rguenther@suse.de>
14019 PR tree-optimization/90020
14020 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14021 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14022 * tree-ssa-pre.c (compute_avail): Use it to not put
14023 possibly trapping references after a call that might not
14024 return into EXP_GEN.
14025 * gcse.c (compute_hash_table_work): Do not elide
14026 marking a block containing a call if the call might not
14029 2019-04-11 Richard Biener <rguenther@suse.de>
14031 PR tree-optimization/90018
14032 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14033 Test both SLP and interleaving variants.
14035 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14037 * config/s390/8561.md: New file.
14038 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14039 Add arch13 cpu model.
14040 * config/s390/s390-opts.h (enum processor_type): Likewise.
14041 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14042 (s390_get_unit_mask): Likewise.
14043 (s390_is_fpd): Likewise.
14044 (s390_is_fxd): Likewise.
14045 * config/s390/s390.h (s390_tune_attr): Likewise.
14046 * config/s390/s390.md: Include arch13 pipeline description.
14047 * config/s390/s390.opt: Add arch13.
14049 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14051 PR rtl-optimization/87763
14052 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14054 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14056 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14058 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14059 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14060 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14061 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14063 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14065 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14066 "Although" in -fipa-icf documentation.
14068 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14069 of using multiple -g options.
14071 2019-04-10 Martin Liska <mliska@suse.cz>
14073 PR gcov-profile/89959
14074 * doc/gcov.texi: Make documentation of -x option
14077 2019-04-10 Richard Biener <rguenther@suse.de>
14079 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14081 (DR_GROUP_SAME_DR_STMT): Remove.
14082 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14083 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14084 replace with assert.
14085 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14086 (vect_record_grouped_load_vectors): Remove unreachable code.
14088 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14091 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14092 obsolete reference to N.
14094 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14096 PR middle-end/90025
14097 * expr.c (store_expr): Set properly size on the MEM passed to
14101 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14102 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14103 translation is needed, and when translation is needed, only append
14104 ... if the string length is hostsz or more bytes long. Avoid using
14107 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14110 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14111 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14113 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14114 differences directly.
14115 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14117 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14119 PR translation/90011
14120 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14122 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14124 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14125 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14126 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14127 trailing space from -gsplit-dwarf diagnostics.
14129 PR tree-optimization/89998
14130 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14131 instead of integer_type_node if possible, don't add ranges if return
14132 type is not compatible with int.
14133 * gimple-fold.c (gimple_fold_builtin_sprintf,
14134 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14137 2019-04-09 Martin Liska <mliska@suse.cz>
14139 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14140 * doc/install.texi: Document the new config.
14142 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14144 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14145 use gimple_expr_type for load and store calls. Skip over the
14146 condition argument in a conditional internal function.
14147 Protect use of TREE_INT_CST_LOW.
14149 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14152 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14153 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14154 trailing period from it too.
14156 2019-04-08 wu yuan <wuyuan5@huawei.com>
14158 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14159 * config/aarch64/aarch64.md : Add "tsv110.md"
14160 * config/aarch64/tsv110.md: New file.
14162 2019-04-08 Richard Biener <rguenther@suse.de>
14164 PR tree-optimization/90006
14165 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14168 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14171 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14173 (fma_root_node): Likewise.
14174 (func_fma_steering): Likewise.
14176 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14178 PR rtl-optimization/89865
14179 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14181 PR rtl-optimization/89865
14182 * config/i386/i386.md
14183 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14184 numbers not to clash with the additional operands[4].
14185 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14186 with extra register copy in the middle.
14188 2019-04-08 Martin Liska <mliska@suse.cz>
14190 PR gcov-profile/89961
14191 * doc/gcov.texi: Document data_file.
14192 * gcov.c (generate_results): Add data_info into JSON output.
14194 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14196 PR tree-optimization/89725
14197 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14198 loop's chrec as invariant symbol.
14199 * tree-chrec.h (chrec_contains_symbols): New parameter.
14200 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14201 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14202 function of loops not in DDR's loop_nest.
14203 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14205 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14208 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14211 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14214 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14215 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14217 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14219 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14220 targetm.fixed_condition_code_regs.
14222 2019-04-05 Richard Biener <rguenther@suse.de>
14226 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14227 debug bind stmts but reset them if they are not valid at the
14230 2019-04-05 Martin Liska <mliska@suse.cz>
14232 PR translation/89936
14233 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14234 order to wrap keywords or arguments.
14235 * collect2.c (main): Likewise.
14236 (scan_prog_file): Likewise.
14237 (scan_libraries): Likewise.
14238 * common/config/riscv/riscv-common.c
14239 (riscv_subset_list::parsing_subset_version): Likewise.
14240 (riscv_subset_list::parse_std_ext): Likewise.
14241 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14243 * config/arm/arm.c (arm_option_override): Likewise.
14244 * config/cris/cris.c (cris_print_operand): Likewise.
14245 * config/darwin-c.c (darwin_pragma_options): Likewise.
14246 (darwin_pragma_unused): Likewise.
14247 (darwin_pragma_ms_struct): Likewise.
14248 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14249 * config/i386/i386.c (print_reg): Likewise.
14250 (ix86_print_operand): Likewise.
14251 * config/i386/xm-djgpp.h: Likewise.
14252 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14253 * config/m32c/m32c.c (m32c_option_override): Likewise.
14254 * config/msp430/msp430.c (msp430_option_override): Likewise.
14255 * config/nds32/nds32.c (nds32_option_override): Likewise.
14256 * config/nvptx/mkoffload.c (main): Likewise.
14257 * config/rx/rx.c (rx_print_operand): Likewise.
14258 (valid_psw_flag): Likewise.
14259 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14260 (vms_pragma_nomember_alignment): Likewise.
14261 (vms_pragma_extern_model): Likewise.
14262 * lto-wrapper.c (compile_offload_image): Likewise.
14263 * omp-offload.c (oacc_parse_default_dims): Likewise.
14264 * symtab.c (symtab_node::verify_base): Likewise.
14265 * tlink.c (recompile_files): Likewise.
14266 (start_tweaking): Likewise.
14267 * tree-profile.c (parse_profile_filter): Likewise.
14269 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14271 PR tree-optimization/89956
14272 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14273 multiple negates of the same value.
14275 2019-04-04 Martin Sebor <msebor@redhat.com>
14277 PR middle-end/89957
14278 PR middle-end/89911
14279 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14280 have the same precision since the function crashes otherwise.
14281 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14282 has non-zero arguments.
14284 2019-04-04 Martin Sebor <msebor@redhat.com>
14286 PR middle-end/89934
14287 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14288 out if the number of arguments is less than expected.
14290 2019-04-04 Jeff Law <law@redhat.com>
14292 PR rtl-optimization/89399
14293 * ree.c (combine_set_extension): Use single_set rather than
14294 digging into PATTERN for items on the candidate list.
14295 (combine_reaching_defs): Likewise.
14297 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14299 PR rtl-optimization/46590
14300 * loop-invariant.c (find_defs): Move df_remove_problem and
14301 df_process_deferred_rescans to move_invariants.
14302 Move df_live_add_problem and df_live_set_all_dirty calls
14303 to move_invariants.
14304 (move_invariants): Likewise.
14305 (move_loop_invariants): Likewise, making the df_live calls
14306 conditional on -O. Remove the problem again if we added it
14309 2019-04-03 qing zhao <qing.zhao@oracle.com>
14311 PR tree-optimization/89730
14312 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14313 -flive-patching=inline-only-static.
14314 (can_inline_edge_by_limits_p): Add the checking for
14315 -flive-patching=inline-only-static and grant always_inline
14316 even when -flive-patching=inline-only-static is specified.
14318 2019-04-03 Jeff Law <law@redhat.com>
14320 PR rtl-optimization/81025
14321 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14323 2019-04-03 Richard Biener <rguenther@suse.de>
14325 PR tree-optimization/84101
14326 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14327 regs.h for hard_regno_nregs.
14328 (cfun_returns): New helper.
14329 (vect_model_store_cost): When vectorizing a store to a decl
14330 we return and the function ABI returns in a multi-reg location
14331 account for the possible spilling that will happen.
14333 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
14335 * config/s390/s390.c (s390_legitimate_address_p): Reject long
14336 displacement addresses for vector mode operands.
14338 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
14340 * config/arc/arc.c (GMASK_LEN): Define.
14341 (arc_restore_callee_saves): Restore first blink when
14344 2019-04-03 Sudakshina Das <sudi.das@arm.com>
14346 * doc/extend.texi: Add deprecated comment on sign-return-address
14347 function attribute and add mbranch-protection.
14348 * doc/invoke.texi: Add bti to the options for mbranch-protection.
14350 2019-04-03 Richard Biener <rguenther@suse.de>
14353 * lto-wrapper.c (run_gcc): Avoid implicit rules making
14354 the all target phony.
14356 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
14360 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
14361 Return false for variable DImode shifts.
14362 (dimode_scalar_chain::compute_convert_gain): Do not handle
14363 register count operand in variable DImode shifts.
14364 (dimode_scalar_chain::make_vector_copies): Remove support to copy
14365 count argument of a variable shift instruction to a vector register.
14366 (dimode_scalar_chain::convert_reg): Remove support to convert
14367 count argument of a variable shift instruction.
14369 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14371 PR rtl-optimization/84206
14372 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
14373 iterating over loop headers.
14375 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
14377 PR rtl-optimization/85876
14378 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
14379 beyond the original fence.
14381 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
14383 * config.gcc: Mark spu* targets as deprecated/obsolete.
14385 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14387 * config/s390/s390-builtin-types.def: New builtin function type
14388 definitions. Remove unused types.
14389 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
14390 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
14391 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
14392 overloaded builtins.
14393 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
14394 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
14395 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
14396 (vec_double, vec_signed, vec_unsigned): Define to use the new
14397 overloaded builtins.
14398 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
14401 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14403 * config/s390/s390-builtin-types.def: New builtin function type
14405 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
14406 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
14407 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
14408 (s390_vstrszh, s390_vstrszf): New low-level builtins.
14409 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
14410 constant definitions.
14411 * config/s390/vecintrin.h (vec_search_string_cc)
14412 (vec_search_string_until_zero_cc): New builtin name definitions.
14413 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
14415 ("vec_vstrs<mode>"): New insn definition.
14417 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14419 * config/s390/s390-builtin-types.def: Add new builtin function
14421 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
14422 New overloaded builtins.
14423 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
14425 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
14426 (UNSPEC_VEC_SLDBYTE): ... this.
14427 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
14428 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
14430 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
14431 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
14432 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
14434 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14436 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
14437 New insn definition.
14438 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
14439 * config/s390/vector.md (V_HW_HSD): ... here.
14441 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14443 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
14444 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
14445 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
14446 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
14447 New insn definitions.
14449 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14451 * config/s390/s390-builtin-types.def: Add new builtin function type.
14452 * config/s390/s390-builtins.def: Add overloaded builtin
14453 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
14454 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
14455 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
14456 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
14457 ("eltswap<mode>"): New expander.
14458 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
14461 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14463 * config/s390/s390-builtin-types.def: Add new builtin function types.
14464 * config/s390/s390-builtins.def: Add overloaded builtin
14465 s390_vec_revb. Add low-level builtins for vlbr and vstbr
14467 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
14468 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
14469 ("bswap<mode>"): New expander.
14470 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
14472 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14474 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
14475 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
14476 vector builtin version number in __VEC__.
14478 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14480 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
14482 (SFSI): New mode attribute.
14483 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
14484 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
14486 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
14487 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
14488 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
14489 ("floatsi<mode>2"): Add wcefb instruction.
14491 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14493 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
14494 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
14496 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
14497 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
14498 support 32 bit fp-int conversions. Rename to ...
14499 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14500 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
14501 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
14502 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
14505 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14507 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
14508 if-then-else constructs if we can use the select instruction.
14509 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
14511 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14513 * config/s390/s390.md ("*popcountdi_arch13_cc")
14514 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
14516 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
14517 Append _z196 to make it ...
14518 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
14519 ("popcounthi2_z196"): ... this.
14520 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
14521 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
14523 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14525 * config/s390/s390.c (s390_canonicalize_comparison): Convert
14526 certain compares for arch13 in order to make use of the condition
14527 code result produced by the new instructions.
14528 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
14529 nxrk, and nxgrk instruction patterns.
14530 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
14531 (inv_no): Add new code iterator together with some attributes.
14532 ("*andc_split_<mode>"): Disable splitter for arch13.
14533 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
14534 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
14535 ("*<ANDOR:bitops_name>c<GPR:mode>")
14536 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
14537 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
14538 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
14539 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
14541 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
14543 * common/config/s390/s390-common.c (processor_flags_table): New
14545 * config.gcc: Support arch13 with the --with-arch= configure flag.
14546 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14547 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
14548 * config/s390/s390.c (s390_get_sched_attrmask)
14549 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
14550 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
14551 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
14552 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
14553 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
14555 * config/s390/s390.opt: Support arch13 as processor type in
14556 command line options.
14558 2019-04-02 Martin Liska <mliska@suse.cz>
14560 PR translation/89912
14561 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
14562 Fix param description of graphite-max-arrays-per-scop.
14564 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
14566 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
14567 (ASAN_CC1_SPEC): Use it in 64-bit mode.
14568 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
14570 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14572 PR rtl-optimization/85412
14573 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
14574 sel_sched_region_1, not after.
14576 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14578 PR rtl-optimization/86928
14579 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
14580 compute_live if necessary.
14581 (sel_redirect_edge_and_branch): Likewise.
14583 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
14585 PR rtl-optimization/89865
14586 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
14587 register if it is a part of small class.
14589 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
14591 PR rtl-optimization/87273
14592 * sel-sched-ir.c (merge_fences): Remove assert.
14594 2019-04-01 Richard Biener <rguenther@suse.de>
14596 PR tree-optimization/46590
14597 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
14598 (dom_walker::m_reachability): Add in place of...
14599 (dom_walker::m_skip_unreachable_blocks): ...this.
14600 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
14601 Move complex initialization ...
14602 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
14603 lazily and initialize edge flags on each invocation.
14604 (dom_walker::bb_reachable): Use m_reachability.
14606 2019-04-01 Martin Liska <mliska@suse.cz>
14609 * opt-suggestions.c (option_proposer::build_option_suggestions):
14610 Add variant without any argument in order to provide better
14613 2019-04-01 Richard Biener <rguenther@suse.de>
14616 * gimple.c: Include langhooks.h.
14617 (gimple_get_alias_set): Treat enumeral types as the underlying
14620 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
14621 Eric Botcazou <ebotcazou@adacore.com>
14623 PR rtl-optimization/89862
14624 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
14625 that operates on the full registers for WORD_REGISTER_OPERATIONS
14628 2019-03-29 Jim Wilson <jimw@sifive.com>
14630 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
14631 Clear MASK_RVC and then set if C subset supported.
14633 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14636 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
14637 non-addressable complit into its initializer if it is volatile.
14639 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
14641 * opts-common.c (integral_argument): Set errno properly in one case.
14643 2019-03-29 Martin Liska <mliska@suse.cz>
14645 * doc/invoke.texi: Remove -Wchkp from documentation.
14647 2019-03-29 Martin Liska <mliska@suse.cz>
14649 * dbgcnt.c (print_limit_reach): New function.
14652 2019-03-29 Martin Liska <mliska@suse.cz>
14654 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
14655 (dbg_cnt_process_opt): Parse first tokens aas
14656 dbg_cnt_process_single_pair is also using strtok.
14658 2019-03-29 Jakub Jelinek <jakub@redhat.com>
14660 PR rtl-optimization/87485
14661 * function.c (expand_function_end): Move stack_protect_epilogue
14662 before loading of return value into hard register(s).
14664 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14666 PR middle-end/89621
14667 * tree-inline.h (struct copy_body_data): Add
14668 dont_remap_vla_if_no_change flag.
14669 * tree-inline.c (remap_type_3, remap_type_2): New functions.
14670 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
14671 and remap_type_2 returns false.
14672 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
14673 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
14674 only from where it is copied to nested contexts.
14676 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14679 * config/i386/i386.md (RMW operation with LEA peephole):
14680 Use LEAMODE mode attribute instead of SWI mode iterator for
14683 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
14686 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
14687 Also process XEXP (src, 0) of a shift insn.
14689 2019-03-28 David Malcolm <dmalcolm@redhat.com>
14691 PR middle-end/89725
14692 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
14693 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
14695 2019-03-28 Jakub Jelinek <jakub@redhat.com>
14697 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
14699 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
14700 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
14701 immediately after first one with df_analyze in between, but rather
14702 process all bbs, queueing ones that need second pass in a worklist,
14703 df_analyze, process queued debug insn changes and if second pass is
14704 needed, process bbs from worklist, df_analyze, process queued debug
14707 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
14708 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
14709 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
14711 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
14714 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
14717 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
14720 * config/i386/i386.c (ix86_function_value_1): Call the newly added
14721 function for 32-bit MS_ABI.
14722 (function_value_ms_32): New function.
14724 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
14726 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
14727 (movdi): Call gen_movdi_symbol_save_scc.
14728 (gen_movdi_symbol_save_scc): New insn and split.
14730 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
14732 PR rtl-optimization/89313
14733 * function.c (matching_constraint_num): New static function.
14734 (match_asm_constraints_1): Use it. Fixup white space and comment.
14735 Don't replace inputs with non-matching constraints which conflict
14736 with early clobber outputs.
14738 2019-03-27 Jeff Law <law@redhat.com>
14740 PR rtl-optimization/87761
14741 PR rtl-optimization/89826
14742 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
14744 (pass_cprop_hardreg::execute): Call df_analyze after adding the
14745 note problem to get REG_DEAD/REG_UNUSED notes updated.
14747 2019-03-27 Richard Biener <rguenther@suse.de>
14749 PR tree-optimization/89463
14750 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
14751 queue edges to remove.
14752 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
14753 dead stmts. Delay edge removal until PHIs are removed to
14754 make debug-stmt creation not confused by seemingly degenerate
14757 2019-03-27 Alan Modra <amodra@gmail.com>
14759 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
14761 * config/rs6000/darwin.h: Likewise.
14762 * config/rs6000/rs6000.c: Likewise.
14764 2019-03-27 Alan Modra <amodra@gmail.com>
14766 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
14767 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
14769 2019-03-26 Andrew Waterman <andrew@sifive.com>
14770 Jim Wilson <jimw@sifive.com>
14772 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
14773 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
14774 (generic_idivdi, generic_fmul_single, generic_fmul_double)
14775 (generic_fdiv, generic_fsqrt): Add check for generic tune.
14776 (generic_alu): Add auipc to type list.
14777 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
14778 (riscv_microarchitecture): Declare.
14779 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
14780 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
14782 (riscv_microarchitecture): New.
14783 (sifive_7_tune_info): New.
14784 (riscv_cpu_info_table): Add microarchitecture value for rocket and
14785 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
14787 (riscv_store_data_bypass_p): New.
14788 (riscv_option_override): Set riscv_microarchitecture from
14789 cpu->microarchitecture.
14790 * config/riscv/riscv.md: Include sifive-7.md.
14793 (auipc<mode>): Change type to auipc.
14794 (restore_stack_nonlocal): New.
14795 * config/riscv/sifive-7.md: New.
14796 * doc/invoke.texi (RISC-V Options): Update mtune docs.
14798 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
14801 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
14802 Also process XEXP (src, 0) of a shift insn.
14804 2019-03-26 Richard Biener <rguenther@suse.de>
14806 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
14807 (copy_debug_stmt): Likewise.
14808 (expand_call_inline): Likewise.
14809 (copy_bb): Avoid redundant lookup & set of gimple_block.
14810 * gimple-low.c (lower_gimple_return): Likewise.
14811 (lower_builtin_setjmp): Likewise.
14813 2019-03-26 Jakub Jelinek <jakub@redhat.com>
14815 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
14816 is constant 0, turn into static const data member initialized to false.
14817 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
14818 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
14820 2019-03-26 Jason Merrill <jason@redhat.com>
14821 Jakub Jelinek <jakub@redhat.com>
14823 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
14825 (mem_alloc_description::release_object_overhead): Fix comment typos.
14826 * hash-table.h (hash_table::~hash_table): Call
14827 release_instance_overhead only if m_entries is non-NULL, otherwise
14828 call unregister_descriptor.
14830 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
14832 PR tree-optimization/81740
14833 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
14834 In case of outer loop vectorization, check for backward dependence
14835 at the inner loop if outer loop dependence is reversed.
14837 2019-03-26 Alan Modra <amodra@gmail.com>
14839 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
14840 rs6000_vector_mem init. Correct wI and wJ comment.
14842 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
14844 PR rtl-optimization/88347
14845 PR rtl-optimization/88423
14846 * sched-deps.c (sched_analyze_insn): Take into account that for
14847 tablejumps the barrier appears after a label and a jump_table_data.
14849 2019-03-25 Martin Sebor <msebor@redhat.com>
14852 * c-common.c (check_user_alignment): Rename local. Correct maximum
14853 alignment in diagnostic. Avoid assuming argument fits in SHWI,
14854 convert it to UHWI when it fits.
14856 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
14859 * dwarf2out.c (premark_used_variables): New function.
14860 (prune_unused_types_walk): Do not mark not premarked external
14862 (prune_unused_types): Call premark_used_variables.
14864 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
14866 PR rtl-optimization/89676
14867 * lra-constraints.c (curr_insn_transform): Do match reload for
14868 early clobbers when the match was successful only for different
14871 2019-03-25 Martin Sebor <msebor@redhat.com>
14873 * doc/extend.texi (Common Type Attributes): Document vector_size.
14874 (Common Variable Attributes): Mention size constraint. Correct
14876 (Vector Extensions): Use @dfn when defining bas type. Clarify
14877 base type and size constraints.
14879 2019-03-25 Richard Biener <rguenther@suse.de>
14881 PR tree-optimization/89789
14882 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
14883 changes from non-undefined back to undefined.
14885 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
14887 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
14888 heap string and a gc string, but since this variable is unknown to
14889 ggc the gc string might get reused and corrupted. Fixed by always
14890 using a heap string.
14892 2019-03-25 Richard Biener <rguenther@suse.de>
14894 PR tree-optimization/89779
14895 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
14896 to remove IV defs, delay actual removal.
14897 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
14898 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
14899 very end, properly also reset loop control IV information.
14901 2019-03-25 Richard Biener <rguenther@suse.de>
14903 PR tree-optimization/89802
14904 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
14905 move EH data to folded stmt.
14907 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14909 * config/s390/s390-builtin-types.def: Remove few unused types and
14910 fix sort order for others.
14912 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
14914 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
14915 expected and found types with -mdebug during builtin matching.
14917 2019-03-25 Richard Biener <rguenther@suse.de>
14919 PR middle-end/89790
14920 * fold-const.c (operand_equal_p): Revert last change with
14923 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
14925 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
14926 notes for the result of the __tls_get_addr calls.
14927 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
14929 2019-03-24 Jeff Law <law@redhat.com>
14931 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
14933 PR rtl-optimization/87761
14934 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
14935 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
14937 (pass_cprop_hardreg::execute): Add df note problem and defer insn
14938 rescans. Reprocess blocks as needed, calling df_analyze before
14939 reprocessing. Always call df_analyze before fixing up debug bind
14942 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
14944 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
14947 2019-03-22 Andrew Pinski <apinski@marvell.com>
14949 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
14950 attrribute for uxtw.
14952 2019-03-26 Jeff Law <law@redhat.com>
14954 PR rtl-optimization/87761
14955 * config/mips/mips-protos.h (mips_split_move): Add new argument.
14956 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
14957 (mips_split_move): Accept new INSN argument. Try to forward SRC
14958 into the next instruction.
14959 (mips_split_move_insn): Pass INSN through to mips_split_move.
14961 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
14963 PR rtl-optimization/89676
14964 * lra-constraints.c (curr_insn_transform): Do match reload for
14965 early clobbers even if the match was successful.
14967 2019-03-22 Jakub Jelinek <jakub@redhat.com>
14970 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
14972 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
14974 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
14976 2019-03-22 Jakub Jelinek <jakub@redhat.com>
14978 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
14979 <avx512>_fmsub_<mode>_mask3<round_name>,
14980 <avx512>_fnmadd_<mode>_mask3<round_name>,
14981 <avx512>_fnmsub_<mode>_mask3<round_name>,
14982 avx512f_vmfmadd_<mode>_mask3<round_name>,
14983 avx512f_vmfmsub_<mode>_mask3<round_name>,
14984 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
14985 instead of register_operand and %v instead of v for match_operand 1.
14986 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
14987 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
14988 <round_nimm_predicate> instead of register_operand and %v instead of v
14989 for match_operand 1.
14991 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
14992 <avx512>_fmadd_<mode>_mask3<round_name>,
14993 <avx512>_fmsub_<mode>_mask<round_name>,
14994 <avx512>_fmsub_<mode>_mask3<round_name>,
14995 <avx512>_fnmadd_<mode>_mask<round_name>,
14996 <avx512>_fnmadd_<mode>_mask3<round_name>,
14997 <avx512>_fnmsub_<mode>_mask<round_name>,
14998 <avx512>_fnmsub_<mode>_mask3<round_name>,
14999 <avx512>_fmaddsub_<mode>_mask<round_name>,
15000 <avx512>_fmaddsub_<mode>_mask3<round_name>,
15001 <avx512>_fmsubadd_<mode>_mask<round_name>,
15002 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
15003 <round_nimm_predicate> instead of nonimmediate_operand.
15004 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
15005 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15006 Use register_operand instead of <round_nimm_predicate> for the
15007 operand that needs to match output.
15008 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15009 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15010 Likewise. Formatting fixes.
15013 * config/i386/i386.c (enum ix86_builtins): Remove
15014 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15015 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15016 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15017 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15018 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15019 __builtin_ia32_vfmsubss3_mask3): New builtins.
15020 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15021 avx512f_vmfmadd_<mode>_mask3<round_name>,
15022 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15023 *avx512f_vmfmsub_<mode>_mask<round_name>,
15024 avx512f_vmfmsub_<mode>_mask3<round_name>,
15025 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15026 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15027 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15028 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15029 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15030 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15031 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15032 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15033 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15034 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15035 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15036 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15037 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15038 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15039 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15040 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15041 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15042 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15043 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15044 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15045 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15046 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15047 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15048 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15049 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15050 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15051 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15052 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15054 2019-03-21 Martin Sebor <msebor@redhat.com>
15056 PR tree-optimization/89350
15057 * builtins.c (compute_objsize): Also ignore offsets whose upper
15059 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15060 (builtin_memref::builtin_memref): Initialize new member.
15061 Allow EXPR to be null.
15062 (builtin_memref::extend_offset_range): Replace local with a member.
15063 Avoid assuming pointer offsets are unsigned.
15064 (builtin_memref::set_base_and_offset): Determine base object
15065 before computing offset range.
15066 (builtin_access::builtin_access): Handle memset.
15067 (builtin_access::generic_overlap): Replace local with a member.
15068 (builtin_access::strcat_overlap): Same.
15069 (builtin_access::overlap): Same.
15070 (maybe_diag_overlap): Same.
15071 (maybe_diag_access_bounds): Same.
15072 (wrestrict_dom_walker::check_call): Handle memset.
15073 (check_bounds_or_overlap): Same.
15075 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15076 Jakub Jelinek <jakub@redhat.com>
15079 * tree.c (fld_type_variant, fld_incomplete_type_of,
15080 fld_process_array_type): Call fld->pset.add and don't call
15081 add_tree_to_fld_list if it returns true.
15082 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15083 non-marked types from TYPE_NEXT_VARIANT list.
15084 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15086 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15088 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15089 to false, if true, don't alloc_entries during construction, but defer
15090 it to the first method that needs m_entries allocated.
15091 (hash_table::hash_table, hash_table::~hash_table,
15092 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15093 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15094 hash_table::clear_slot, hash_table::traverse_noresize,
15095 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15096 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15098 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15099 NO_INSERT instead of find_with_hash.
15100 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15101 hash_set::m_table): Add Lazy to template params of hash_table.
15102 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15103 * attribs.c (test_attribute_exclusions): Likewise.
15104 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15105 hash_set. Add tests for hash_set with Lazy = true.
15107 2019-03-21 Richard Biener <rguenther@suse.de>
15109 PR tree-optimization/89779
15110 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15111 checks with respect to released SSA names now having error_mark_node
15113 * fold-const.c (operand_equal_p): Likewise.
15115 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15118 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15120 (s390_optimize_register_info): Use global_not_special_regno_p to
15121 check for global regs.
15123 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15126 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15127 update this_alternative nor this_alternative_set.
15129 2019-03-19 Jim Wilson <jimw@sifive.com>
15132 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15133 align, size, offset. Use them to handle a BLKmode reference. Update
15135 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15137 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15139 PR rtl-optimization/89768
15140 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15141 instead of GEN_INT.
15142 (unroll_loop_runtime_iterations): Likewise.
15144 2019-03-19 Martin Sebor <msebor@redhat.com>
15146 PR tree-optimization/89644
15147 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15148 rather than endptr as an indicator of nul-termination.
15150 PR tree-optimization/89644
15151 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15152 arrays in determining sequence sizes in strncpy and stpncpy.
15154 2019-03-19 Martin Liska <mliska@suse.cz>
15156 PR middle-end/89737
15157 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15158 unlikely_edges if there's an edge that belongs to both these sets.
15160 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15163 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15164 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15165 go via a stack temporary.
15167 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15170 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15171 instead of gen_rtx_SUBREG.
15172 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15174 2019-03-19 Richard Biener <rguenther@suse.de>
15177 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15179 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15183 * tree.c (free_lang_data_in_decl): Do not free context of C++
15186 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15189 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15190 subs for the first alternative except when operands[3] is 1.
15193 * gimplify.c (gimplify_asm_expr): For output argument with
15194 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15197 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15199 PR rtl-optimization/89753
15200 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15201 explicit unrolling factor even more robust.
15203 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15206 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15207 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15208 signed zeros, do another copysign after the compensation.
15210 2019-03-18 Martin Sebor <msebor@redhat.com>
15212 PR tree-optimization/89720
15213 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15214 more conservatively, the same as anti-range.
15216 2019-03-18 Richard Biener <rguenther@suse.de>
15218 PR middle-end/88945
15219 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15220 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15221 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15222 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15224 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15226 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15227 Extend queue to 1024 entries.
15228 Add "consumed" field.
15229 (gomp_print_output): Remove print_index parameter.
15230 Add final parameter.
15231 Change limit to unsigned.
15232 Use consumed field to implement circular buffer.
15233 Detect interrupted print in final pass.
15234 Flush output at the end.
15235 (run): Update gomp_print_output usage.
15236 (main): Initialize kernargs->output_data.consumed.
15238 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15240 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15241 calculation of the minimum number of scalar iterations for
15242 fully-predicated loops.
15244 2019-03-18 Martin Jambor <mjambor@suse.cz>
15246 PR tree-optimization/89546
15247 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15248 any propagation to its children took place.
15250 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15253 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15254 parameter, and make use of it.
15255 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15257 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15259 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15260 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15261 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15262 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15263 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15264 match what the ops is doing.
15265 (push_multi_fp_blink): Likewise.
15266 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15267 compiling for size and elf target.
15268 (arc_save_callee_enter): Adjust note to match what enter/leave
15271 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15273 * config/arc/arc.md (tst_movb): Fix constraint.
15275 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15277 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15279 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15281 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15282 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15283 reg_alloc_order references.
15284 (size_alloc_order): Define.
15285 (arc_adjust_reg_alloc_order): New function.
15286 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15288 (ADJUST_REG_ALLOC_ORDER): Define.
15289 (HONOR_REG_ALLOC_ORDER): Likewise.
15291 2019-03-18 Richard Biener <rguenther@suse.de>
15294 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15295 loads and stores a bit more.
15297 2019-03-18 Richard Biener <rguenther@suse.de>
15300 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15301 load pessimization to stores as well.
15303 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15305 PR middle-end/86979
15306 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15307 successor, use NULL as its av set.
15309 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15311 PR rtl-optimization/89721
15312 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15314 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15317 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15318 When handling vec_extract, use modular arithmetic to allow
15319 constant selectors greater than vector length.
15320 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15321 V1TImode vectors to have constant selector values greater than 0.
15322 Use modular arithmetic to compute vector index.
15323 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15324 index for in-memory vectors. Correct code generation for
15325 in-register vectors.
15326 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15329 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
15333 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
15336 2019-03-15 Jakub Jelinek <jakub@redhat.com>
15339 * tree.c (inchash::add_expr): Strip any location wrappers.
15340 * fold-const.c (operand_equal_p): Move stripping of location wrapper
15341 after hash verification.
15344 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
15345 SIGN_EXTEND and ZERO_EXTEND.
15347 2019-03-14 Jason Merrill <jason@redhat.com>
15348 Jakub Jelinek <jakub@redhat.com>
15350 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
15351 than if is_empty (*slot).
15352 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
15353 existing elt and for elt removal.
15354 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
15355 of already removed elt.
15357 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
15360 * config/i386/i386.c (remove_partial_avx_dependency): Handle
15361 REG_EH_REGION note.
15363 2019-03-14 Martin Liska <mliska@suse.cz>
15366 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
15368 2019-03-14 Richard Biener <rguenther@suse.de>
15371 * config/i386/i386.c (make_resolver_func): Properly set
15372 DECL_CONTEXT on the RESULT_DECL.
15373 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
15375 2019-03-14 Richard Biener <rguenther@suse.de>
15377 * gimple-pretty-print.c: Include cfgloop.h.
15378 (dump_gimple_phi): Adjust.
15379 (dump_gimple_bb_header): Dump loop header for GIMPLE.
15380 (pp_cfg_jump): Adjust.
15381 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
15382 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
15383 (lower_phi_internal_fn): Remove.
15384 (verify_gimple_call): Remove IFN_PHI special-casing.
15385 (dump_function_to_file): Dump IL state.
15386 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
15387 done to deal with PHI nodes being present in non-SSA state.
15389 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15392 * multiple_target.c (create_dispatcher_calls): Change
15393 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
15394 In the node->iterate_referring loop, push *ref rather than ref, call
15395 ref->remove_reference () and always pass 0 to iterate_referring.
15397 PR rtl-optimization/89679
15398 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
15399 would contain a paradoxical SUBREG.
15401 2019-03-14 Richard Biener <rguenther@suse.de>
15403 PR tree-optimization/89710
15404 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
15407 2019-03-14 Martin Liska <mliska@suse.cz>
15409 * coverage.c (coverage_begin_function): Stream also
15411 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
15412 documentation about function declaration location.
15413 * gcov-dump.c (tag_function): Print whole range
15414 of function declaration.
15415 * gcov.c (struct function_info): Add end_column field.
15416 (function_info::function_info): Initialize it.
15417 (output_json_intermediate_file): Output {start,end}_column
15419 (read_graph_file): Read end_column.
15421 2019-03-14 Richard Biener <rguenther@suse.de>
15423 PR middle-end/89698
15424 * fold-const.c (operand_equal_p): For INDIRECT_REF check
15425 that the access types are similar.
15427 2019-03-14 Jakub Jelinek <jakub@redhat.com>
15429 PR tree-optimization/89703
15430 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
15431 aren't compatible also with builtin_decl_explicit. Check pure
15432 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
15433 and BUILT_IN_STPNCPY{,_CHK}.
15435 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
15438 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
15439 addr32 prefix to VSIB address for X32.
15440 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
15442 (*avx512pf_gatherpf<mode>df_mask): Likewise.
15443 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
15444 (*avx512pf_scatterpf<mode>df_mask): Likewise.
15445 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
15446 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
15447 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
15448 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
15449 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
15450 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
15451 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
15452 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
15453 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
15454 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
15455 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
15456 (*avx512f_scatterdi<mode>): Likewise.
15458 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
15461 * lra-constraints.c (inherit_in_ebb): Update
15462 potential_reload_hard_regs along with live_hard_regs.
15464 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15467 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
15469 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
15471 2019-03-13 Martin Sebor <msebor@redhat.com>
15473 PR tree-optimization/89662
15474 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
15477 2019-03-13 Richard Biener <rguenther@suse.de>
15479 PR middle-end/89677
15480 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
15481 throw FP expressions at tree-affine.
15483 2019-03-14 Richard Biener <rguenther@suse.de>
15485 * tree-pretty-print.c (dump_generic_node): For -gimple properly
15486 dump negative integer constants using _Literal (type) -num.
15488 2019-03-13 Jakub Jelinek <jakub@redhat.com>
15490 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
15491 nonlocal_value member.
15493 PR middle-end/88588
15494 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
15495 (ipa_simd_modify_function_body): Handle PHIs.
15497 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15499 * config/s390/s390.c (s390_option_override_internal): Use more
15500 aggressive inlining parameters.
15502 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15504 * config/s390/3906.md: New file.
15505 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15506 (LONGRUNNING_THRESHOLD): Remove.
15507 (MAX_SCHED_MIX_SCORE): Decrease.
15508 (MAX_SCHED_MIX_DISTANCE): Decrease.
15509 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
15510 (struct s390_sched_state): New struct to hold scheduling state.
15511 (S390_SCHED_STATE_NORMAL): Remove.
15512 (S390_SCHED_STATE_CRACKED): Remove.
15513 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
15514 (s390_get_sched_attrmask): Use new attribute.
15515 (s390_get_unit_mask): Use new units.
15516 (s390_is_fpd): New function.
15517 (s390_is_fxd): New function.
15518 (s390_is_longrunning): New function.
15519 (s390_sched_score): Use new functions.
15520 (s390_sched_reorder): Likewise.
15521 (s390_sched_variable_issue): Rework and use new functions.
15522 (s390_sched_init): Use new functions.
15523 * config/s390/s390.h (s390_tune_attr): Add z14.
15524 * config/s390/s390.md: Add z14.
15526 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
15528 * config/s390/2964.md: Update pipeline description.
15529 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
15530 (LONGRUNNING_THRESHOLD): Remove.
15531 (LATENCY_FACTOR): Remove.
15532 (s390_get_unit_mask): Add unit.
15533 (s390_sched_score): Use fxd/fpd.
15534 (s390_sched_variable_issue): Use fxd/fpd.
15536 2019-03-12 Martin Liska <mliska@suse.cz>
15538 * config/i386/i386.c: Reword an error message.
15540 2019-03-12 Martin Jambor <mjambor@suse.cz>
15542 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
15543 terminate with newline.
15545 2019-03-12 Jakub Jelinek <jakub@redhat.com>
15548 * config/s390/s390.md (tabort): Use %wd instead of
15549 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
15550 letters and periods.
15551 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
15552 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
15555 PR middle-end/89663
15556 * builtins.c (expand_builtin_int_roundingfn,
15557 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
15558 gcc_unreachable if validate_arglist fails.
15560 2019-03-12 Richard Biener <rguenther@suse.de>
15562 PR tree-optimization/89664
15563 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
15564 free the occurance tree after the early out.
15566 2019-03-11 Jakub Jelinek <jakub@redhat.com>
15568 PR middle-end/89655
15570 * vr-values.c (vr_values::update_value_range): If
15571 old_vr->varying_p (), don't update it, make new_vr also VARYING
15574 2019-03-11 Martin Liska <mliska@suse.cz>
15576 * config/aarch64/aarch64.c (aarch64_override_options_internal):
15577 Fix double string quoting.
15579 2019-03-11 Martin Liska <mliska@suse.cz>
15581 * collect-utils.c (collect_wait): Wrap apostrophes
15582 in gcc internal format with %'.
15583 * collect2.c (main): Likewise.
15584 (scan_prog_file): Likewise.
15585 (scan_libraries): Likewise.
15586 * config/i386/i386.c (ix86_expand_call): Likewise.
15587 (ix86_handle_interrupt_attribute): Likewise.
15588 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15589 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
15590 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
15591 * lto-wrapper.c (find_crtoffloadtable): Likewise.
15592 * symtab.c (symtab_node::verify_base): Likewise.
15593 * tree-cfg.c (verify_gimple_label): Likewise.
15594 * tree.c (verify_type_variant): Likewise.
15596 2019-03-11 Martin Liska <mliska@suse.cz>
15598 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
15599 in a string format message and fix GNU coding style.
15600 (expand_builtin_set_thread_pointer): Likewise.
15601 * common/config/aarch64/aarch64-common.c
15602 (aarch64_rewrite_selected_cpu): Likewise.
15603 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
15604 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
15605 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
15606 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
15607 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
15608 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
15609 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
15610 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
15611 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
15612 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
15614 * common/config/riscv/riscv-common.c
15615 (riscv_subset_list::parsing_subset_version): Likewise.
15616 (riscv_subset_list::parse_std_ext): Likewise.
15617 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
15618 (riscv_subset_list::parse): Likewise.
15619 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
15620 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
15621 (aarch64_override_options_internal): Likewise.
15622 (aarch64_validate_mcpu): Likewise.
15623 (aarch64_validate_march): Likewise.
15624 (aarch64_validate_mtune): Likewise.
15625 (aarch64_override_options): Likewise.
15626 * config/alpha/alpha.c (alpha_option_override): Likewise.
15627 * config/arc/arc.c (arc_init): Likewise.
15628 (parse_mrgf_banked_regs_option): Likewise.
15629 (arc_override_options): Likewise.
15630 (arc_expand_builtin_aligned): Likewise.
15631 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
15632 (arm_expand_builtin): Likewise.
15633 * config/arm/arm.c (arm_option_check_internal): Likewise.
15634 (arm_configure_build_target): Likewise.
15635 (arm_option_override): Likewise.
15636 (arm_options_perform_arch_sanity_checks): Likewise.
15637 (arm_handle_cmse_nonsecure_entry): Likewise.
15638 (arm_handle_cmse_nonsecure_call): Likewise.
15639 (arm_tls_referenced_p): Likewise.
15640 (thumb1_expand_prologue): Likewise.
15641 * config/avr/avr.c (avr_option_override): Likewise.
15642 * config/bfin/bfin.c (bfin_option_override): Likewise.
15643 * config/c6x/c6x.c (c6x_option_override): Likewise.
15644 * config/cr16/cr16.c (cr16_override_options): Likewise.
15645 * config/cris/cris.c (cris_option_override): Likewise.
15646 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
15647 * config/darwin-c.c (macosx_version_as_macro): Likewise.
15648 * config/darwin.c (darwin_override_options): Likewise.
15649 * config/frv/frv.c (frv_expand_builtin): Likewise.
15650 * config/h8300/h8300.c (h8300_option_override): Likewise.
15651 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
15652 (ix86_option_override_internal): Likewise.
15653 (warn_once_call_ms2sysv_xlogues): Likewise.
15654 (ix86_expand_prologue): Likewise.
15655 (split_stack_prologue_scratch_regno): Likewise.
15656 (ix86_warn_parameter_passing_abi): Likewise.
15657 * config/ia64/ia64.c (fix_range): Likewise.
15658 * config/m68k/m68k.c (m68k_option_override): Likewise.
15659 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
15660 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
15661 (mips_set_compression_mode): Likewise.
15662 * config/mmix/mmix.c (mmix_option_override): Likewise.
15663 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
15664 * config/msp430/msp430.c (msp430_option_override): Likewise.
15665 * config/nds32/nds32.c (nds32_option_override): Likewise.
15666 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
15667 (nios2_option_override): Likewise.
15668 (nios2_expand_custom_builtin): Likewise.
15669 * config/nvptx/mkoffload.c (main): Likewise.
15670 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
15671 * config/pa/pa.c (fix_range): Likewise.
15672 (pa_option_override): Likewise.
15673 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
15674 (riscv_option_override): Likewise.
15675 * config/rl78/rl78.c (rl78_option_override): Likewise.
15676 * config/rs6000/aix61.h: Likewise.
15677 * config/rs6000/aix71.h: Likewise.
15678 * config/rs6000/aix72.h: Likewise.
15679 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
15680 * config/rs6000/freebsd64.h: Likewise.
15681 * config/rs6000/linux64.h: Likewise.
15682 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
15683 (rs6000_expand_zeroop_builtin): Likewise.
15684 (rs6000_expand_mtfsb_builtin): Likewise.
15685 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
15686 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
15687 (rs6000_invalid_builtin): Likewise.
15688 (rs6000_expand_split_stack_prologue): Likewise.
15689 * config/rs6000/rtems.h: Likewise.
15690 * config/rx/rx.c (valid_psw_flag): Likewise.
15691 (rx_expand_builtin): Likewise.
15692 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15693 * config/s390/s390.c (s390_expand_builtin): Likewise.
15694 (s390_function_profiler): Likewise.
15695 (s390_option_override_internal): Likewise.
15696 (s390_option_override): Likewise.
15697 * config/sh/sh.c (sh_option_override): Likewise.
15698 (sh_builtin_saveregs): Likewise.
15699 (sh_fix_range): Likewise.
15700 * config/sh/vxworks.h: Likewise.
15701 * config/sparc/sparc.c (sparc_option_override): Likewise.
15702 * config/spu/spu.c (spu_option_override): Likewise.
15703 (fix_range): Likewise.
15704 * config/visium/visium.c (visium_option_override): Likewise.
15705 (visium_handle_interrupt_attr): Likewise.
15706 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
15707 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
15708 (dbg_cnt_process_opt): Likewise.
15709 * dwarf2out.c (output_dwarf_version): Likewise.
15710 * except.c (expand_eh_return): Likewise.
15711 * gcc.c (defined): Likewise.
15712 (driver_handle_option): Likewise.
15713 (process_command): Likewise.
15714 (compare_files): Likewise.
15715 (driver::prepare_infiles): Likewise.
15716 (driver::do_spec_on_infiles): Likewise.
15717 (driver::maybe_run_linker): Likewise.
15718 * omp-offload.c (oacc_parse_default_dims): Likewise.
15719 * opts-global.c (handle_common_deferred_options): Likewise.
15720 * opts.c (parse_sanitizer_options): Likewise.
15721 (common_handle_option): Likewise.
15722 (enable_warning_as_error): Likewise.
15723 * passes.c (enable_disable_pass): Likewise.
15724 * plugin.c (parse_plugin_arg_opt): Likewise.
15725 (default_plugin_dir_name): Likewise.
15726 * targhooks.c (default_expand_builtin_saveregs): Likewise.
15727 (default_pch_valid_p): Likewise.
15728 * toplev.c (init_asm_output): Likewise.
15729 (process_options): Likewise.
15730 (toplev::run_self_tests): Likewise.
15731 * tree-cfg.c (verify_gimple_call): Likewise.
15732 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
15733 (tree_inlinable_function_p): Likewise.
15734 * var-tracking.c (vt_find_locations): Likewise.
15736 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
15738 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
15739 only on the else branch.
15741 2019-03-11 Martin Liska <mliska@suse.cz>
15743 * gcov.c (output_intermediate_json_line): Print function
15745 (output_json_intermediate_file): Add new argument.
15746 * doc/gcov.texi: Document the change.
15748 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
15750 PR rtl-optimization/89588
15751 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15752 explicit unrolling factor more robust.
15754 2019-03-11 Richard Biener <rguenther@suse.de>
15756 PR tree-optimization/89649
15757 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
15758 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
15759 on the prolog and epilog loops.
15760 (vect_loop_versioning): Return copy of loop.
15761 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
15762 on the non-vectorized version of the loop.
15764 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
15767 * config/i386/sse.md (*vec_extractv2di_0_sse):
15768 Add (=r,x) alternative and corresponding splitter.
15770 2019-03-10 Martin Jambor <mjambor@suse.cz>
15772 PR tree-optimization/85762
15773 PR tree-optimization/87008
15774 PR tree-optimization/85459
15775 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
15776 it points to if there is a type changing MEM_REF. Adjust all callers.
15777 (build_accesses_from_assign): Disable total scalarization if
15778 contains_vce_or_bfcref_p returns true through the new parameter, for
15781 2019-03-09 Jakub Jelinek <jakub@redhat.com>
15784 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
15785 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
15788 * common.opt (fdiagnostics-show-labels,
15789 fdiagnostics-show-line-numbers, fdiagnostics-format=,
15790 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
15791 gas-locview-support, ginline-points, ginternal-reset-location-views):
15792 Terminate description text with a dot.
15793 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
15794 * config/mcore/mcore.opt (m210, m340): Likewise.
15795 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
15796 mnops=): Start description text with a capital letter.
15797 * config/arc/arc.opt (msize-level=): Likewise.
15798 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
15799 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
15800 mnewlib): Likewise.
15801 * config/ft32/ft32.opt (msim): Likewise.
15802 (mft32b, mcompress): Likewise. Terminate description text with a dot.
15803 (mnodiv, mnopm): Terminate description text with a dot.
15804 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
15806 * config/i386/i386.opt (prefer_vector_width, instrument_return):
15808 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
15811 PR rtl-optimization/89634
15812 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
15813 are modified in BB_END (e->src) instruction.
15815 2019-03-08 David Malcolm <dmalcolm@redhat.com>
15818 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
15819 messages more amenable to translation, and improve wording.
15821 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
15823 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
15824 ud- and du-chains between phases.
15826 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
15829 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
15830 instead of POLY_INT_CST.
15832 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
15834 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
15837 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
15842 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
15843 (_mm_storeu_si64): Ditto.
15845 2019-03-08 Martin Liska <mliska@suse.cz>
15848 * config/i386/i386.c (ix86_option_override_internal): Disable
15849 jump tables when retpolines are used.
15851 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
15854 * ipa-split.c (execute_split_functions): Do not split
15855 'noinline' or 'section' function.
15857 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15860 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
15861 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
15862 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
15865 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
15866 from diagnostics. Formatting fixes.
15869 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
15870 warn_odr diagnostics.
15873 * lra-constraints.c (process_alt_operands): Avoid one space before
15874 " at the end of line and another after " on another line in a string
15876 * attribs.c (handle_dll_attribute): Likewise.
15877 * config/avr/avr-devices.c (avr_texinfo): Likewise.
15879 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
15880 warning_at or inform messages in G_() if there is no ?:.
15882 PR tree-optimization/89550
15883 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
15884 returned true. Formatting fixes.
15885 (expand_builtin_strnlen): Formatting fixes.
15886 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
15887 if warning_at returned true.
15888 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
15890 2019-03-08 Richard Biener <rguenther@suse.de>
15892 PR middle-end/89578
15893 * cfgloop.h (struct loop): Add owned_clique field.
15894 * cfgloopmanip.c (copy_loop_info): Copy it.
15895 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
15897 * tree-inline.c (copy_loops): Remap owned_clique.
15898 * lto-streamer-in.c (input_cfg): Stream owned_clique.
15899 * lto-streamer-out.c (output_cfg): Likewise.
15901 2019-03-08 Jakub Jelinek <jakub@redhat.com>
15904 * config/darwin.c: Include intl.h.
15905 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
15906 composing the message out of two separate parts.
15908 2019-03-07 Jakub Jelinek <jakub@redhat.com>
15911 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
15912 doesn't start with a capital letter and doesn't end with a dot.
15913 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
15914 with a capital letter.
15915 (ix86_mangle_function_version_assembler_name): Likewise.
15916 (ix86_generate_version_dispatcher_body): Likewise.
15917 (fold_builtin_cpu): Likewise.
15918 (get_builtin_code_for_version): Likewise. Remove extraneous space.
15919 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
15920 translators, wrap full type name in %qs.
15922 PR translation/79999
15923 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
15924 depend clause with source (or sink) modifier.
15925 * omp-expand.c (expand_omp_ordered_sink): Likewise.
15928 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
15929 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
15930 (avx512f_load<mode>_mask): New define_expand.
15931 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
15932 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
15933 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
15934 __builtin_ia32_movess_mask): New builtins.
15935 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
15936 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
15937 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
15938 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
15940 2019-03-07 Martin Jambor <mjambor@suse.cz>
15943 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
15944 for extern inline functions.
15946 2019-03-07 Martin Jambor <mjambor@suse.cz>
15949 * cgraph.h (cgraph_node): New inline method former_thunk_p.
15950 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
15951 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
15952 have multiple callees. At the end check if declarations match as
15953 opposed to cgraph_nodes.
15955 2019-03-07 Martin Liska <mliska@suse.cz>
15957 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
15958 which is equivalent to searching for this in clones chain.
15959 * symtab.c (symtab_node::verify_base): Similarly compare ASM
15960 names with a neighbour and special case first node in a chain.
15962 2019-01-25 Jason Merrill <jason@redhat.com>
15964 PR c++/80916 - spurious "static but not defined" warning.
15965 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
15966 for an internal symbol with DECL_EXTERNAL.
15968 2019-04-07 Richard Biener <rguenther@suse.de>
15970 PR middle-end/89618
15971 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
15972 * tree-inline.c (copy_loops): Simplify.
15974 2019-03-07 Martin Liska <mliska@suse.cz>
15976 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
15978 2019-03-07 Richard Biener <rguenther@suse.de>
15980 PR tree-optimization/89595
15981 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
15982 stmt iterator as reference, take boolean output parameter to
15983 indicate whether the stmt was removed and thus the iterator
15985 (dom_opt_dom_walker::before_dom_children): Re-iterate over
15986 stmts created by folding.
15988 2019-03-07 Jakub Jelinek <jakub@redhat.com>
15991 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
15994 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
15996 PR rtl-optimization/88845
15997 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
15999 * lra.c (remove_scratches_1): New function.
16000 (remove_scratches): Use it.
16001 (lra_emit_move): Likewise.
16003 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
16005 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16006 unaligned_access variable.
16007 * config/arc/arc.c (arc_override_options): Set unaligned access
16008 default on for HS CPUs.
16009 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16011 2019-03-06 Martin Liska <mliska@suse.cz>
16013 PR gcov-profile/89577
16014 * doc/gcov.texi: Prefer to use --coverage.
16015 * doc/sourcebuild.texi: Likewise.
16017 2019-03-02 Jason Merrill <jason@redhat.com>
16019 PR c++/86485 - -Wmaybe-unused with empty class ?:
16020 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16022 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16025 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16028 PR middle-end/89590
16029 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16030 exactly one argument.
16032 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16033 Richard Sandiford <richard.sandiford@arm.com>
16035 PR tree-optimization/89570
16036 * match.pd (vec_cond into cond_op simplification): Don't use
16037 get_conditional_internal_fn, use as_internal_fn (cond_op).
16039 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16042 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16043 to decide when to split off a non-zero offset from a symbol.
16044 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16045 in function symbols.
16047 2019-03-05 Richard Biener <rguenther@suse.de>
16049 PR tree-optimization/89594
16050 * tree-if-conv.c (pass_if_conversion::execute): Handle
16051 case where .LOOP_VECTORIZED_FUNCTION was removed.
16053 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16056 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16057 instead alloca it only when needed with the needed size.
16059 PR tree-optimization/89570
16060 * match.pd (vec_cond into cond_op simplification): Guard with
16061 vectorized_internal_fn_supported_p test and #if GIMPLE.
16063 PR tree-optimization/89566
16064 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16065 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16066 Punt if get_user_idx_format succeeds, but idx_format argument is
16067 not provided or doesn't have pointer type, or if idx_args is above
16068 number of provided arguments.
16070 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16072 PR tree-optimization/89437
16073 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16075 2019-03-04 Richard Biener <rguenther@suse.de>
16077 PR middle-end/89572
16078 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16081 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16083 PR tree-optimization/89487
16084 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16085 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16086 (distribute_loop): Don't do runtime alias check if there is non-
16087 addressable data reference.
16088 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16089 is a register variable.
16091 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16094 * config/arm/arm.md (cmpsi2_addneg): Use
16095 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16096 If operands[2] is 0 or INT_MIN, force use of subs.
16097 (*compare_scc splitter): Use gen_int_mode.
16098 (*negscc): Likewise.
16099 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16101 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16102 Monk Chiang <sh.chiang04@gmail.com>
16104 * common/config/riscv/riscv-common.c: Include sstream.
16105 (riscv_subset_list::to_string): New.
16106 (riscv_arch_str): Likewise.
16107 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16108 * config.in: Regen.
16109 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16110 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16111 (riscv_emit_attribute): New.
16112 (riscv_file_start): Emit attribute if needed.
16113 (riscv_option_override): Init riscv_emit_attribute_p.
16114 * config/riscv/riscv.opt (mriscv-attribute): New option.
16115 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16116 * configure: Regen.
16117 * doc/install.texi: Document --with-riscv-attribute.
16118 * doc/invoke.texi: Document -mriscv-attribute.
16120 * common/config/riscv/riscv-common.c:
16121 Include config/riscv/riscv-protos.h.
16122 (INCLUDE_STRING): Defined.
16123 (RISCV_DONT_CARE_VERSION): Defined.
16124 (riscv_subset_t): Declare.
16125 (riscv_subset_t::riscv_subset_t): New.
16126 (riscv_subset_list): Declare.
16127 (riscv_subset_list::riscv_subset_list): New.
16128 (riscv_subset_list::~riscv_subset_list): Likewise.
16129 (riscv_subset_list::parsing_subset_version): Likewise.
16130 (riscv_subset_list::parse_std_ext): Likewise.
16131 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16132 (riscv_subset_list::add): Likewise.
16133 (riscv_subset_list::lookup): Likewise.
16134 (riscv_subset_list::xlen): Likewise.
16135 (riscv_subset_list::parse): Likewise.
16136 (riscv_supported_std_ext): Likewise.
16137 (current_subset_list): Likewise.
16138 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16141 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16143 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16144 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16145 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16147 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16149 PR rtl-optimization/85899
16150 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16151 fallthru edges leading to the exit block.
16153 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16156 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16157 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16159 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16161 PR tree-optimization/89535
16162 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16163 for each operand. Calculate the fallback choice for mask operands
16164 and pass it to vect_get_vec_def_for_operand.
16166 2019-03-01 Richard Biener <rguenther@suse.de>
16168 PR middle-end/89541
16169 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16170 get virtual operands.
16171 (get_expr_operands): Handle CONST_DECL like other decls.
16173 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16175 PR middle-end/89503
16176 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16177 on DECL_P and EXPR_P.
16179 2019-03-01 Richard Biener <rguenther@suse.de>
16181 PR middle-end/89497
16182 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16183 argument, defaulted to zero.
16184 * passes.c (execute_function_todo): Pass down SSA update flags
16185 to cleanup_tree_cfg.
16186 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16187 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16189 (cleanup_tree_cfg): Get and pass down SSA update flags.
16191 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16194 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16195 early_lto_debug argument.
16197 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16199 PR tree-optimization/89536
16200 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16201 only whether bit #0 of the value is 0 instead of the entire value.
16203 2019-02-28 Marek Polacek <polacek@redhat.com>
16205 PR c++/87068 - missing diagnostic with fallthrough statement.
16206 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16207 at the end of a seq, save its location to walk_stmt_info.
16208 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16211 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16214 * tree.c (find_atomic_core_type): Move ahead in file.
16215 (check_base_type): Correctly compare alignments of atomic types.
16217 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16220 * config/i386/i386.c (get_builtin_code_for_version): Identify
16221 Westmere from PCLMUL, instead of AES.
16223 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16226 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16227 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16230 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16233 * config/aarch64/aarch64-option-extensions.def: Document it.
16234 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16237 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16240 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16241 builtins if they don't have a single scalar floating point argument.
16244 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16246 PR rtl-optimization/89490
16247 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16248 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16249 block section is not mergeable.
16251 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16254 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16255 old define_insn to ...
16256 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16257 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16258 Rename old define_insn to ...
16259 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16260 (thumb2_casesi_internal_pic): New define_expand. Rename old
16262 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16263 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16264 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16266 2019-02-27 Richard Biener <rguenther@suse.de>
16269 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16271 2019-02-27 Richard Biener <rguenther@suse.de>
16273 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16276 2019-02-27 Richard Biener <rguenther@suse.de>
16279 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16280 parameter, prefix section name with .gnu.debuglto_ if true.
16281 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16282 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16284 2019-02-27 Richard Biener <rguenther@suse.de>
16287 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16288 rather than on use_debug_types, doing what output_die does.
16289 (value_format): Likewise.
16291 2019-02-27 Martin Jambor <mjambor@suse.cz>
16292 Martin Sebor <msebor@redhat.com>
16294 * doc/invoke.texi (Warning Options): Reword description of
16295 -Wno-absolute-value.
16297 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16299 PR tree-optimization/89280
16300 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16301 builtin_setjmp_setup_bb): New functions.
16302 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16303 When visiting __builtin_setjmp_setup block, queue in special
16304 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16305 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16306 from visited after the loop if they don't have any visited successor
16309 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16311 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16313 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16315 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16318 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16319 with types other than sizetype/ssizetype.
16321 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16323 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16324 (enum sparc_processor_type): ...this.
16325 (enum sparc_code_model_type): New enumeration type.
16326 (enum sparc_memory_model_type): Tweak comments.
16327 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16329 (mcmodel): Use sparc_code_model enumeration and variable.
16330 (sparc_code_model): New enumeration.
16331 (mdebug): Add Undocumented marker.
16332 * config/sparc/sparc.h (enum cmodel): Delete.
16333 (sparc_cmodel): Likewise.
16334 (TARGET_CM_MEDLOW): Adjust to above renaming.
16335 (TARGET_CM_MEDMID): Likewise.
16336 (TARGET_CM_MEDANY): Likewise.
16337 (TARGET_CM_EMBMEDANY): Likewise.
16338 * config/sparc/sparc.c (sparc_cmodel): Delete.
16339 (sparc_option_override): Remove string/value mapping support for the
16340 code model. Move code and memory model support to after the handling
16341 of target flags. Do private machine setup last.
16342 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
16343 (sparc_legitimize_reload_address): Likewise.
16344 (sparc_output_mi_thunk): Likewise.
16345 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
16347 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16349 PR tree-optimization/89500
16350 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
16351 (handle_builtin_strlen): Remove noncst_bound variable. Always
16352 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
16353 cst if the first cst bytes starting at x are known to be non-zero,
16354 even if the string is not zero terminated. Don't try to modify
16355 *si for strnlen. Update strlen_to_stridx only for strlen or if
16356 we can prove strnlen returns the same value as strlen would.
16358 2019-02-26 Martin Liska <mliska@suse.cz>
16360 * alloc-pool.h (struct pool_usage): Remove extra
16362 * bitmap.h (struct bitmap_usage): Likewise.
16363 * ggc-common.c (struct ggc_usage): Likewise.
16364 * mem-stats.h (struct mem_usage): Likewise.
16365 (mem_alloc_description::dump): Print dash lines
16366 here and repeat header at the end of a table report.
16367 It's then more readable.
16368 * tree-phinodes.c (phinodes_print_statistics): Make
16369 horizontal alignment.
16370 * tree-ssanames.c (ssanames_print_statistics): Likewise.
16371 * vec.c (struct vec_usage): Remove extra print_dash_line.
16372 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
16374 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
16376 * doc/extend.texi (__builtin_object_size):
16377 Use @pxref instead of @xref inside parenthesis.
16378 (__builtin_has_attribute): Add missing comma after @xref.
16379 (__builtin_object_size): Ditto.
16380 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
16382 2019-02-26 Jeff Law <law@redhat.com>
16384 PR rtl-optimization/87761
16385 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
16386 detect obviously dead insns and delete them.
16388 2019-02-26 Richard Biener <rguenther@suse.de>
16390 PR tree-optimization/89505
16391 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
16392 to handle restrict pointed-to vars with multiple subvars
16395 2019-02-26 Richard Biener <rguenther@suse.de>
16397 PR tree-optimization/89489
16398 * tree-parloops.c (create_loop_fn): Copy over last_clique.
16400 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16402 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
16403 and move around comment.
16404 <BIT_AND_EXPR>: Likewise.
16405 <BIT_NOT_EXPR>: Add specific handling for boolean types.
16407 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16410 * config/i386/i386.c (remove_partial_avx_dependency): Call
16411 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
16412 after changing possibly many instructions to use that pseudo. Fix up
16413 insertion of v4sf_const0 setter at the start of bb.
16415 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16418 * doc/extend.texi (Variadic Pointer Args): New section.
16420 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
16421 Martin Sebor <msebor@gmail.com>
16423 * common.opt (Wattribute-alias): Likewise.
16424 * doc/invoke.texi (Option Summary): List general form of
16425 -Wattribute-alias=. List positive form of -Wmissing-attributes.
16426 (-Wmissing-attributes): Invert entry, rewrite and correct default.
16427 Add cross-references.
16428 (-Wattribute-alias): Rewrite and correct default. Mention
16429 considered attributes (same as for -Wmissing-attributes).
16431 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
16433 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
16434 (_mm_cvtpd_ps): Likewise.
16435 (_mm_cvttpd_epi32): Likewise.
16438 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
16439 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
16442 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
16444 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16447 * common/config/aarch64/aarch64-common.c
16448 (struct aarch64_option_extension): Add is_synthetic.
16449 (all_extensions): Use it.
16450 (TARGET_OPTION_INIT_STRUCT): Define hook.
16451 (struct gcc_targetm_common): Moved to end.
16452 (all_extensions_by_on): New.
16453 (opt_ext_cmp, typedef opt_ext): New.
16454 (aarch64_option_init_struct): New.
16455 (aarch64_contains_opt): New.
16456 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
16457 * config/aarch64/aarch64-option-extensions.def
16458 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
16459 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
16460 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
16461 Set is_synthetic to false.
16462 (crypto): Set is_synthetic to true.
16463 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
16466 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16468 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16469 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
16470 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16471 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
16472 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
16473 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
16474 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
16475 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
16477 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
16478 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16479 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
16480 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
16481 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
16482 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
16483 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
16484 vfmlsl_laneq_high_f16): ... To this.
16485 * config/arm/neon.md: Update comments.
16487 2019-02-25 Tamar Christina <tamar.christina@arm.com>
16489 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
16490 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
16491 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
16492 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
16493 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
16494 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
16495 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
16496 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
16498 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
16499 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
16500 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
16501 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
16502 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
16503 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
16504 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
16505 vfmlslq_laneq_high_f16): ... To this.
16507 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
16509 PR rtl-optimization/86096
16510 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
16511 comparing mw_order values.
16513 2019-02-25 Jakub Jelinek <jakub@redhat.com>
16516 * config/arm/arm.md (*subsi3_carryin_const): Use
16517 arm_neg_immediate_operand predicate instead of
16518 arm_not_immediate_operand, "L" constraint instead of "K" and
16519 print it using %n2 instead of %B2.
16520 (*subsi3_carryin_const0): New define_insn.
16521 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
16522 instead of arm_not_operand and "I" constraint instead of "K" and
16523 print it using %n3 instead of %B2. Instead of using match_dup 2 add
16524 another match_operand and in the condition check that it is negation
16526 (*subsi3_carryin_compare_const0): New define_ins.
16527 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
16528 *subsi3_carryin_const.
16529 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
16530 split into *subsi3_carryin_compare_const0 if the highpart is zero.
16533 * config/arm.vfp.md (*negdf2_vfp): Use
16534 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
16535 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
16537 2019-02-24 Jakub Jelinek <jakub@redhat.com>
16539 PR rtl-optimization/89445
16540 * simplify-rtx.c (simplify_ternary_operation): Don't use
16541 simplify_merge_mask on operands that may trap.
16542 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
16543 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
16544 second operand is CONST_VECTOR, check if any element could be zero.
16545 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
16546 their operands can trap.
16548 2019-02-23 Martin Sebor <msebor@redhat.com>
16550 * gimple-ssa-sprintf.c (target_strtol): Rename...
16551 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
16552 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
16553 check for range error.
16555 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
16558 * opts-common.c (prune_options): Also prune joined switches
16559 with Negative and RejectNegative.
16560 * config/i386/i386.opt (march=): Add Negative(march=).
16561 (mtune=): Add Negative(mtune=).
16562 * doc/options.texi: Document Negative used together with Joined
16563 and RejectNegative.
16565 2019-02-22 Martin Sebor <msebor@redhat.com>
16567 * doc/extend.texi (Other Builtins): Add
16568 __builtin_is_constant_evaluated.
16570 2019-02-22 Richard Biener <rguenther@suse.de>
16572 PR tree-optimization/87609
16573 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
16575 2019-02-22 Jeff Law <law@redhat.com>
16577 PR rtl-optimization/87761
16578 * config/mips/mips.md: Add new combiner pattern to recognize
16579 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
16581 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
16584 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
16585 destination register in peepholes generating patterns for ADDS/SUBS.
16586 (add<mode>3_compare0,
16587 *addsi3_compare0_uxtw, add<mode>3_compareC,
16588 add<mode>3_compareV_imm, add<mode>3_compareV,
16589 *adds_<optab><ALLX:mode>_<GPI:mode>,
16590 *subs_<optab><ALLX:mode>_<GPI:mode>,
16591 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
16592 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
16593 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
16594 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
16595 sub<mode>3_compare1): Allow stack pointer for source register.
16596 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
16598 2019-02-22 Martin Sebor <msebor@redhat.com>
16600 PR tree-optimization/88993
16601 PR tree-optimization/88853
16602 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
16604 (sprintf_dom_walker::call_info::is_string_func): New helper.
16605 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
16606 for formatted string functions.
16607 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
16609 2019-02-22 Martin Sebor <msebor@redhat.com>
16612 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
16613 unreachable subexpressions.
16615 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
16616 Hongtao Liu <hongtao.liu@intel.com>
16617 Sunil K Pandey <sunil.k.pandey@intel.com>
16620 * config/i386/i386-passes.def: Add
16621 pass_remove_partial_avx_dependency.
16622 * config/i386/i386-protos.h
16623 (make_pass_remove_partial_avx_dependency): New.
16624 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
16626 (pass_data_remove_partial_avx_dependency): New.
16627 (pass_remove_partial_avx_dependency): Likewise.
16628 (make_pass_remove_partial_avx_dependency): Likewise.
16629 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
16630 (*extendsfdf2): Add avx_partial_xmm_update.
16631 (truncdfsf2): Likewise.
16632 (*float<SWI48:mode><MODEF:mode>2): Likewise.
16633 (SF/DF conversion splitters): Disabled for TARGET_AVX.
16635 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
16637 PR middle-end/85598
16638 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
16641 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
16644 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
16645 (PTA_SKYLAKE): Add PTA_AES.
16646 (PTA_GOLDMONT): Likewise.
16648 2019-02-22 Sudakshina Das <sudi.das@arm.com>
16650 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
16651 instruction if enabled.
16652 (aarch64_override_options): Remove reference to return address key.
16654 2019-02-22 Richard Biener <rguenther@suse.de>
16656 PR tree-optimization/89440
16657 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16658 not necessary assert.
16660 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
16663 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
16664 (oacc_replace_fn_attrib_attr): ... this new function.
16665 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
16666 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
16668 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16670 * config/arm/arm-cpus.in (ares): Rename to...
16671 (neoverse-n1): ... This. Add ares as alias.
16672 * config/arm/arm-tables.opt: Regenerate.
16673 * config/arm/arm-tune.md: Likewise.
16674 * doc/invoke.txt (ARM Options): Document neoverse-n1.
16676 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16678 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
16679 * config/aarch64/aarch64-tune.md: Regenerate.
16680 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
16682 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16684 * config/aarch64/aarch64.c (ares_tunings): Rename to...
16685 (neoversen1_tunings): ... This.
16686 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
16687 (neoverse-n1): New CPU.
16688 * config/aarch64/aarch64-tune.md: Regenerate.
16689 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
16691 2019-02-22 Richard Biener <rguenther@suse.de>
16693 PR middle-end/87609
16694 * cfghooks.h (dependence_hash): New typedef.
16695 (struct copy_bb_data): New type.
16696 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
16697 (duplicate_block): Likewise.
16698 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
16699 (copy_bbs): Create and pass down copy_bb_data.
16700 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
16701 (rtl_duplicate_bb): Likewise.
16702 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
16703 remap dependence info.
16705 2019-02-22 Richard Biener <rguenther@suse.de>
16707 PR tree-optimization/87609
16708 * tree-core.h (tree_base): Document special clique values.
16709 * tree-inline.c (remap_dependence_clique): Do not use the
16710 special clique value of one.
16711 (maybe_set_dependence_info): Use clique one.
16712 (clear_dependence_clique): New callback.
16713 (compute_dependence_clique): Clear clique one from all refs
16714 before assigning it (again).
16716 2019-02-21 Martin Sebor <msebor@redhat.com>
16718 * doc/extend.texi (__clear_cache): Correct signature.
16720 2019-02-21 Ian Lance Taylor <iant@golang.org>
16723 * varasm.c (decode_addr_const): Call lookup_constant_def rather
16724 than output_constant_def.
16725 (add_constant_to_table): New static function.
16726 (output_constant_def): Call add_constant_to_table.
16727 (tree_output_constant_def): Likewise.
16729 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16732 * builtins.c (fold_builtin_arith_overflow): If first two args are
16733 INTEGER_CSTs, set intres and ovfres to constants rather than calls
16736 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
16739 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
16740 error for -mindirect-branch/-mfunction-return with incompatible
16743 2019-02-21 Jakub Jelinek <jakub@redhat.com>
16746 * constraints.md (q): Remove.
16747 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
16750 2019-02-21 Martin Jambor <mjambor@suse.cz>
16753 * omp-general.c (omp_extract_for_data): Removed a duplicate call
16754 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
16755 (omp_adjust_for_condition): ...here. Added necessary parameters.
16756 * omp-general.h (omp_adjust_for_condition): Updated declaration.
16757 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
16758 proper values to new parameters of omp_adjust_for_condition.
16760 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16762 PR middle-end/89412
16763 * expr.c (expand_assignment): If result is a MEM, use change_address
16764 instead of simplify_gen_subreg.
16766 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16767 David Malcolm <dmalcolm@redhat.com>
16769 PR middle-end/89091
16770 * fold-const.c (decode_field_reference): Return NULL_TREE if
16771 lang_hooks.types.type_for_size returns NULL. Check it before
16772 overwriting *exp_. Use return NULL_TREE instead of return 0.
16774 2019-02-20 Jakub Jelinek <jakub@redhat.com>
16776 PR middle-end/88074
16777 PR middle-end/89415
16778 * toplev.c (do_compile): Double the emin/emax exponents to workaround
16781 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
16784 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
16785 TARGET_SSE in addition to TARGET_SSE_MATH.
16787 (ix86_excess_precision): Ditto.
16788 (ix86_float_exceptions_rounding_supported_p): Ditto.
16789 (use_rsqrt_p): Ditto.
16790 * config/i386/sse.md (rsqrt<mode>2): Ditto.
16792 2019-02-20 David Malcolm <dmalcolm@redhat.com>
16795 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
16796 linenum_arith_t when determining if two adjacent line spans are
16797 close enough to merge.
16798 (diagnostic_show_locus): Use linenum_arith_t when iterating over
16799 lines within each line_span.
16801 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
16804 * lra-constraints.c(uses_hard_regs_p): Fix handling of
16805 paradoxical SUBREGS.
16807 2019-02-20 Li Jia He <helijia@linux.ibm.com>
16810 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
16811 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
16812 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
16815 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
16817 * config/gcn/gcn.c (print_operand): Fix typo.
16819 2019-02-19 Richard Biener <rguenther@suse.de>
16821 PR middle-end/88074
16822 * toplev.c (do_compile): Initialize mpfr's exponent range
16823 based on available float modes.
16825 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
16827 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
16828 as long as the epilogue isn't completed.
16830 2019-02-18 Martin Sebor <msebor@redhat.com>
16832 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
16833 __has_cpp_attribute, and __has_include.
16835 2019-02-18 Martin Sebor <msebor@redhat.com>
16837 * doc/invoke.texi (-Wreturn-type): Correct and expand.
16839 2019-02-18 Martin Sebor <msebor@redhat.com>
16841 PR middle-end/89294
16842 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
16844 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
16846 2019-02-18 Richard Biener <rguenther@suse.de>
16848 PR tree-optimization/89296
16849 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
16850 of no-warning flag to cases that might emit the bogus warning.
16852 2019-02-18 Jakub Jelinek <jakub@redhat.com>
16855 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
16857 * config/arm/vfp.md (*movdi_vfp): Likewise.
16858 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
16859 "q" constraint for operands[0].
16862 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
16863 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
16864 pattern in a temporary buffer.
16865 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
16866 than 64-operands[2].
16869 * config/s390/s390.c (s390_indirect_branch_attrvalue,
16870 s390_indirect_branch_settings): Define unconditionally.
16871 (s390_set_current_function): Likewise, but guard the whole body except
16872 the s390_indirect_branch_settings call with
16873 #if S390_USE_TARGET_ATTRIBUTE.
16874 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
16876 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
16877 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
16878 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
16879 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
16880 HOST_WIDE_INT_1U instead of 1ULL.
16881 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
16882 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
16883 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
16884 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
16886 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
16889 2019-02-18 Martin Jambor <mjambor@suse.cz>
16891 PR tree-optimization/89209
16892 * tree-sra.c (create_access_replacement): New optional parameter
16893 reg_tree. Use it as a type if non-NULL and access type is not of
16895 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
16896 to create_access_replacement.
16897 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
16898 Check lacc is non-NULL before attempting to re-create it on the RHS.
16900 2019-02-18 Martin Liska <mliska@suse.cz>
16903 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
16905 (symbol_table::free_edge): Recycle m_summary_id.
16906 * cgraph.h (get_summary_id): New.
16907 (symbol_table::release_symbol): Set m_summary_id to -1
16909 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
16910 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
16911 function_summary to fast_function_summary.
16912 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
16913 * ipa-pure-const.c (class funct_state_summary_t):
16914 Switch from function_summary to fast_function_summary.
16915 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
16916 (class ipa_ref_opt_summary_t): Switch from function_summary
16917 to fast_function_summary.
16918 * symbol-summary.h (class function_summary_base): New class
16919 that is created from base of former function_summary.
16920 (function_summary_base::unregister_hooks): New.
16921 (class function_summary): Inherit from function_summary_base.
16922 (class call_summary_base): New class
16923 that is created from base of former call_summary.
16924 (class call_summary): Inherit from call_summary_base.
16925 (struct is_same): New.
16926 (class fast_function_summary): New summary class.
16927 (class fast_call_summary): New summary class.
16928 * vec.h (vec_safe_grow_cleared): New function.
16930 2019-02-18 Martin Liska <mliska@suse.cz>
16932 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
16933 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
16934 * doc/tm.texi: Document new target hook.
16935 * doc/tm.texi.in: Likewise.
16936 * target.def: Add new target macro.
16937 * gcc.c (find_fortran_preinclude_file): Do not search multilib
16940 2019-02-17 Alan Modra <amodra@gmail.com>
16943 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
16944 output reg on add insn.
16945 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
16947 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16950 * config/i386/sse.md (ssedoublemode): Remove V4HI.
16951 (PMULHRSW): Likewise.
16952 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
16954 (ssse3_pmulhrswv4hi3): New expander.
16956 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
16958 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
16959 MMX. Add isa attribute.
16961 2019-02-16 Jakub Jelinek <jakub@redhat.com>
16963 PR rtl-optimization/66152
16964 * builtins.h (c_readstr): Declare.
16965 * builtins.c (c_readstr): Remove forward declaration. Add
16966 null_terminated_p argument, if false, read all bytes from the
16967 string instead of stopping after '\0'.
16968 * expr.c (string_cst_read_str): New function.
16969 (store_expr): Use string_cst_read_str instead of
16970 builtin_strncpy_read_str. Try to store by pieces the whole
16971 exp_len first, and only if that fails, split it up into
16972 store by pieces followed by clear_storage. Formatting fix.
16974 * config/i386/i386.md (*movqi_internal): Remove static from
16975 buf variable. Use output_asm_insn (buf, operands); return "";
16976 instead of return buf;.
16977 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
16978 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
16979 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
16981 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16983 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
16984 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
16985 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
16986 (CC1_SPEC): Likewise.
16987 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
16989 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
16991 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
16992 the base address on 64-bit strict-alignment platforms.
16994 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
16996 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
16998 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17000 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
17002 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
17004 PR rtl-optimization/88308
17005 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17006 on copied instruction.
17008 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17010 * final.c (insn_current_reference_address): Replace test on JUMP_P
17011 with test on jump_to_label_p.
17012 * config/visium/visium-passes.def: New file.
17013 * config/visium/t-visium (PASSES_EXTRA): Define.
17014 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17015 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17016 (TRAMPOLINE_ALIGNMENT): Define.
17017 * config/visium/visium.c (visium_option_override): Do not register
17018 the machine-specific reorg pass here.
17019 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17021 (output_branch): Adjust threshold for long branch instruction.
17022 * config/visium/visium.md (cpu): Move around.
17023 (length): Adjust for the GR6.
17025 2019-02-15 Richard Biener <rguenther@suse.de>
17026 Jakub Jelinek <jakub@redhat.com>
17028 PR tree-optimization/89278
17029 * tree-loop-distribution.c: Include tree-eh.h.
17030 (generate_memset_builtin, generate_memcpy_builtin): Call
17031 rewrite_to_non_trapping_overflow on builtin->size before passing it
17032 to force_gimple_operand_gsi.
17034 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17037 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17039 * opth-gen.awk: Likewise.
17041 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17043 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17044 Enable MMX, SSE and SSE2 by default.
17045 * config/i386/i386.c (ix86_option_override_internal): Do not
17046 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17048 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17050 PR rtl-optimization/89354
17051 * combine.c (make_extraction): Punt if extraction_mode is narrower
17054 2019-02-14 Maya Rashish <coypu@sdf.org>
17056 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17057 * config/netbsd-d.c: New file.
17058 * config/t-netbsd: Add netbsd-d.o
17060 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17062 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17063 affects_type_identity to true for aarch64_vector_pcs.
17064 (aarch64_comp_type_attributes): New function.
17065 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17067 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17070 * config/arm/iterators.md (ANY64): Add V4HF.
17072 2019-02-14 Martin Liska <mliska@suse.cz>
17074 PR rtl-optimization/89242
17075 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17076 process a transformation.
17078 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17080 PR tree-optimization/89314
17081 * fold-const.c (fold_binary_loc): Cast strlen argument to
17082 const char * before dereferencing it. Formatting fixes.
17084 PR middle-end/89284
17085 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17087 2019-02-13 Ian Lance Taylor <iant@golang.org>
17089 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17090 and set current index for other optimizations.
17092 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17094 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17095 nonimmediate_operand as operand 2 predicate.
17096 (vec_set<VF2_512_256:mode>_0): Ditto.
17097 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17098 (*vec_concatv2si): Remove alternative 2.
17099 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17100 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17101 (vec_concatv2di): Split alternatives 4,5,6 to ...
17102 (*vec_concatv2di_0) ... new pattern.
17104 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17107 * config/arm/arm.c (ldm_stm_operation_p) Set
17108 addr_reg_in_reglist correctly for first register.
17109 (load_multiple_sequence): Remove dead base check.
17110 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17112 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17115 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17116 Expose as @aarch64_pred_mov.
17117 * config/aarch64/aarch64.c (aarch64_classify_address):
17118 Use expand_insn which legitimizes operands.
17120 2019-02-13 Martin Liska <mliska@suse.cz>
17122 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17123 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17124 and pointer_offset fields.
17125 (initialize_argument_information): Remove usage of dead
17127 * cgraph.h (struct cgraph_thunk_info): Remove
17128 add_pointer_bounds_args.
17129 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17131 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17133 * config/i386/i386.c (ix86_function_arg_advance): Remove
17135 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17136 (def_builtin): Remove usage of dead fields.
17137 (ix86_add_new_builtins): Likewise.
17138 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17139 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17140 (sem_function::init): Likewise.
17141 (sem_variable::merge): Likewise.
17142 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17143 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17144 * lto-cgraph.c (lto_output_node): Likewise.
17145 (lto_output_varpool_node): Likewise.
17146 (input_node): Likewise.
17147 (input_varpool_node): Likewise.
17148 * lto-streamer-out.c (lto_output): Likewise.
17149 * tree-inline.c (expand_call_inline): Remove usage of
17151 * tree-inline.h (struct copy_body_data): Likewise.
17152 * varpool.c (varpool_node::dump): Likewise.
17154 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17156 PR middle-end/89303
17157 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17158 into pt->vars_contains_escaped_heap instead of setting
17159 pt->vars_contains_escaped_heap to it.
17161 PR middle-end/89281
17162 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17163 INTVAL (size), compare it to GET_MODE_MASK instead of
17164 1 << GET_MODE_BITSIZE.
17167 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17168 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17171 2019-02-13 Martin Liska <mliska@suse.cz>
17174 * cfgrtl.c (remove_barriers_from_footer): New function.
17175 (try_redirect_by_replacing_jump): Use it.
17176 (cfg_layout_redirect_edge_and_branch): Likewise.
17178 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17180 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17181 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17182 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17183 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17184 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17185 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17187 * config/rs6000/rs6000.c (builtin_function_type)
17188 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17189 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17190 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17191 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17192 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17194 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17196 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17197 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17199 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17202 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17203 268678 and revision 268657.
17204 (*movti_internal): Likewise.
17206 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17209 * config/s390/s390.c (s390_decompose_address): Update comment.
17210 (s390_check_qrst_address): Reject invalid address forms after
17213 2019-02-12 Martin Liska <mliska@suse.cz>
17216 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17217 we need default values of funct_state for a function that
17220 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17222 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17223 the object to pick the size of stores on strict-alignment platforms.
17225 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17226 (*movdi_insn_sp32): Likewise.
17227 (*movdi_insn_sp64): Likewise.
17229 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17232 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17233 types that needs constructiong.
17234 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17236 2019-02-12 Richard Biener <rguenther@suse.de>
17238 PR tree-optimization/89253
17239 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17240 duplicate the loop.
17242 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17245 * input.c (selftest::test_line_offset_overflow): New selftest.
17246 (selftest::input_c_tests): Call it.
17248 2019-02-11 Martin Sebor <msebor@redhat.com>
17250 PR tree-optimization/88771
17251 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17252 when -Wstringop-overflow is set.
17253 (builtin_memref::builtin_memref): Adjust excessive upper bound
17254 only when lower bound is not excessive.
17255 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17256 -Wstringop-ovefflow.
17257 (maybe_diag_offset_bounds): Rename...
17258 (maybe_diag_access_bounds): ...to this.
17259 (check_bounds_or_overlap): Adjust for name change above.
17261 2019-02-11 Martin Sebor <msebor@redhat.com>
17264 * builtins.c (max_object_size): Move from here...
17265 * builtins.h (max_object_size): ...and here...
17266 * tree.c (max_object_size): ...to here...
17267 * tree.h (max_object_size): ...and here.
17269 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17271 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17272 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17273 for correct semantics.
17275 2019-02-11 Alan Modra <amodra@gmail.com>
17277 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17278 -mlongcall and -mpltseq.
17279 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17280 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17281 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17282 * config/rs6000/sysv4.opt (mpltseq): New option.
17283 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17284 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17285 support is lacking. Don't allow -mpltseq with -mbss-plt.
17286 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17287 -mpltseq given for ELFv1.
17288 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17289 Only use UNSPEC_PLTSEQ for inline PLT calls.
17290 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17291 use UNSPEC_PLTSEQ for inline PLT calls.
17292 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17293 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17294 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17295 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17296 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17297 (pltseq_mtctr_<mode>): Likewise.
17299 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17301 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17303 * configure: Regenerate.
17305 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17308 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17311 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17313 * function.c (assign_parm_setup_block): Use the stored
17314 size, not the passed size, when allocating stack-space,
17315 also for a parameter with alignment larger than
17316 MAX_SUPPORTED_STACK_ALIGNMENT.
17318 2019-02-11 Martin Liska <mliska@suse.cz>
17321 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17322 * ipa-inline.c (inline_small_functions): Likewise.
17323 * ipa-pure-const.c (propagate_pure_const): Likewise.
17324 (propagate_nothrow): Likewise.
17325 * ipa-reference.c (propagate): Likewise.
17326 * ipa-utils.c (struct searchc_env): Remove unused field.
17327 (searchc): Always search across AVAIL_INTERPOSABLE.
17328 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17329 the only called IPA pure const can properly not propagate
17330 across interposable boundary.
17331 * ipa-utils.h (ipa_reduced_postorder): Remove param.
17333 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
17335 * config/nds32/nds32.md (call_internal, call_value_internal,
17336 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
17338 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17340 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
17343 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
17345 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
17348 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17350 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
17352 2019-02-10 Jakub Jelinek <jakub@redhat.com>
17354 PR tree-optimization/89268
17355 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
17356 if preds is non-NULL.
17358 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17361 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
17364 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17366 * config/nds32/nds32.md (trap): New pattern.
17368 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
17370 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
17373 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
17375 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
17378 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17380 * ipa-visibility.c (localize_node): Also do not localize
17381 LDPR_PREVAILING_DEF_IRONLY_EXP.
17383 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17386 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
17387 instead of type_with_linkage.
17389 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
17392 * params.def (uninlined-function-insns, uninlined-function-time,
17393 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
17394 bound so we don't get overflows.
17396 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
17398 * config/rs6000/rs6000-string.c (expand_compare_loop,
17399 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
17402 2019-02-09 Jakub Jelinek <jakub@redhat.com>
17404 PR middle-end/89246
17405 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17406 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
17407 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
17409 2019-02-09 Alan Modra <amodra@gmail.com>
17412 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
17413 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
17416 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
17418 PR middle-end/88560
17419 * lra-constraints.c (process_alt_operands): Don't increase reject
17420 for memory when offset memory is required.
17422 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
17424 * config/s390/vector.md: Implement vector copysign.
17426 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17428 * expr.c (expand_constructor): Correct indentations.
17430 2019-02-08 Richard Biener <rguenther@suse.de>
17432 PR tree-optimization/89247
17433 * tree-if-conv.c: Include tree-cfgcleanup.h.
17434 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
17435 (tree_if_conversion): Pass through predicate vector.
17436 (pass_if_conversion::execute): Do CFG cleanup and SSA update
17437 inline, see if any if-converted loops we refrece in
17438 LOOP_VECTORIZED calls vanished and fixup.
17439 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
17441 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
17443 * config/s390/constraints.md (jdd): New constraint.
17445 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
17448 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
17449 upper 16 vector registers without TARGET_AVX512VL.
17450 (*movti_internal): Likewise.
17452 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17454 PR rtl-optimization/89234
17455 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
17456 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
17457 (copy_reg_eh_region_note_backward): Likewise.
17459 2019-02-08 Richard Biener <rguenther@suse.de>
17461 PR middle-end/89223
17462 * tree-data-ref.c (initialize_matrix_A): Fail if constant
17463 doesn't fit in HWI.
17464 (analyze_subscript_affine_affine): Handle failure from
17465 initialize_matrix_A.
17467 2019-02-08 Jakub Jelinek <jakub@redhat.com>
17469 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
17472 2019-02-07 David Malcolm <dmalcolm@redhat.com>
17474 PR tree-optimization/86637
17475 PR tree-optimization/89235
17476 * tree-vect-loop.c (optimize_mask_stores): Add an
17477 auto_purge_vect_location sentinel to ensure that vect_location is
17479 * tree-vectorizer.c
17480 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
17481 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
17482 to ensure that vect_location is purged on exit.
17483 (pass_slp_vectorize::execute): Likewise, replacing the manual
17485 * tree-vectorizer.h (class auto_purge_vect_location): New class.
17487 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17489 * config/aarch64/iterators.md (max_opp): New code_attr.
17490 (USMAX): New code iterator.
17491 * config/aarch64/predicates.md (aarch64_smin): New predicate.
17492 (aarch64_smax): Likewise.
17493 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
17494 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
17497 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
17500 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
17501 for TARGET_AVX512VL.
17502 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
17504 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
17506 * config/s390/s390-builtin-types.def: Add new types.
17507 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
17508 (s390_vec_xlw4): Make the memory operand into a const pointer.
17509 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
17511 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
17512 a new vector type with the alignment of the scalar memory operand.
17514 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
17515 Jakub Jelinek <jakub@redhat.com>
17518 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
17519 arm_count_ldrdstrd_insns): New declarations.
17520 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
17522 (valid_operands_ldrd_strd): New function.
17523 (arm_count_ldrdstrd_insns): New function.
17524 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
17525 sets instead of single DImode set and define new insns to match this.
17527 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17529 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
17530 Make it a C initializer.
17532 2019-02-07 Tamar Christina <tamar.christina@arm.com>
17535 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
17537 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17539 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
17540 Use neon_dot<q> for type.
17541 (neon_<sup>dot_lane<vsi2qi>): Likewise.
17543 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17545 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
17546 Use neon_dot<q> for type.
17547 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
17548 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
17550 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
17552 PR rtl-optimization/89225
17553 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
17556 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
17558 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
17559 after restoring registers saved to allocate the frame on Windows.
17561 2019-02-06 Richard Biener <rguenther@suse.de>
17563 PR tree-optimization/89182
17564 * graphite.h (cached_scalar_evolution_in_region): Declare.
17565 * graphite.c (struct seir_cache_key): New.
17566 (struct sese_scev_hash): Likewise.
17567 (seir_cache): New global.
17568 (cached_scalar_evolution_in_region): New function.
17569 (graphite_transform_loops): Allocate and release seir_cache.
17570 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
17571 cached_scalar_evolution_in_region.
17572 * graphite-scop-detection.c (scop_detection::can_represent_loop):
17574 (scop_detection::graphite_can_represent_expr: Use
17575 cached_scalar_evolution_in_region.
17576 (scop_detection::stmt_simple_for_scop_p): Likewise.
17577 (find_params_in_bb): Likewise.
17578 (gather_bbs::before_dom_children): Likewise.
17579 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
17580 (add_loop_constraints): Likewise.
17582 2019-02-06 Jakub Jelinek <jakub@redhat.com>
17584 PR middle-end/89210
17585 * fold-const-call.c (fold_const_vec_convert): Pass true as last
17586 operand to new_unary_operation only if both element types are integral
17587 and it isn't a widening conversion. Return NULL_TREE if
17588 new_unary_operation failed.
17590 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
17593 * config/s390/s390.md: Remove load and test FP splitter.
17595 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17598 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
17599 expand_compare_loop, expand_block_compare_gpr,
17600 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
17601 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
17602 #include "profile-count.h" and "predict.h" for types and functions
17603 needed to work with REG_BR_PROB notes.
17605 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
17608 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
17609 for the long branch case.
17611 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17614 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
17615 can throw, non-call exceptions are enabled and we can't delete
17616 dead exceptions or alter cfg. Set must_clean if
17617 delete_insn_and_edges returns true, don't set it blindly for calls.
17618 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
17620 PR rtl-optimization/89195
17621 * combine.c (make_extraction): For MEMs, don't extract bytes outside
17622 of the original MEM.
17624 2019-02-05 Martin Liska <mliska@suse.cz>
17626 PR gcov-profile/89000
17627 * gcov.c (function_summary): Remove argument.
17628 (file_summary): New function.
17629 (print_usage): Replace tabs with spaces.
17630 (generate_results): Use new function file_summary.
17632 2019-02-05 Jakub Jelinek <jakub@redhat.com>
17635 * optabs.c (prepare_cmp_insn): Pass x and y to
17636 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
17638 2019-02-05 Richard Biener <rguenther@suse.de>
17640 PR middle-end/89150
17641 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
17642 (struct bitmap_element): Drop chain_prev so we properly recurse on
17643 the prev member, supporting tree views.
17644 (struct bitmap_head): GTY skip the obstack member.
17646 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
17649 * doc/extend.texi (Vector Extensions): Add an example of using vector
17650 types together with x86 intrinsics.
17652 2019-02-04 Alan Modra <amodra@gmail.com>
17654 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
17655 str[] size to 160, and comment.
17657 2019-02-04 Alan Modra <amodra@gmail.com>
17659 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
17660 (rs6000_pltseq_template): Guard output of TLS markers with
17661 TARGET_TLS_MARKERS.
17662 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
17663 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
17664 to use inline PLT sequences.
17665 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17666 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17667 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
17669 2019-02-04 Martin Liska <mliska@suse.cz>
17672 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
17673 out when ipa_fn_summaries does not contain entry for callee.
17675 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
17677 * config/sparc/sparc.h: Remove superfluous blank lines.
17678 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
17679 (got_register_rtx): ...this.
17680 (sparc_got): Adjust to above renaming.
17681 (sparc_tls_got): Likewise.
17682 (sparc_delegitimize_address): Likewise.
17683 (sparc_output_mi_thunk): Likewise.
17684 (sparc_init_pic_reg): Likewise.
17685 (save_local_or_in_reg_p): Fix test on the GOT register.
17686 (USE_HIDDEN_LINKONCE): Move around.
17687 (get_pc_thunk_name): Likewise.
17688 (gen_load_pcrel_sym): Likewise.
17689 (load_got_register): Likewise.
17691 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
17693 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
17694 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
17696 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17698 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
17699 into consideration.
17701 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
17703 * config.gcc (with_nds32_lib, glibc):
17704 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
17705 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
17706 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
17708 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
17711 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
17712 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
17713 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
17714 (*rcpsf2_sse): Ditto.
17715 (*rsqrtsf2_sse): Ditto.
17716 (sse4_1_round<mode<2): Ditto.
17718 2019-02-03 Richard Biener <rguenther@suse.de>
17721 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
17724 2019-02-02 Jakub Jelinek <jakub@redhat.com>
17726 PR middle-end/87887
17727 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
17728 Punt with warning on aggregate return or argument types. Ignore
17729 type/mode checking for uniform arguments.
17731 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
17733 * combine.c (try_combine): Do not print "Can't combine" messages unless
17734 printing failed combination attempts.
17736 2019-02-01 Martin Jambor <mjambor@suse.cz>
17739 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
17740 segment and global segment variables before making them static.
17742 2019-02-01 Martin Jambor <mjambor@suse.cz>
17744 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
17745 missed optimization dump with dump_enabled_p.
17747 2019-02-01 Richard Biener <rguenther@suse.de>
17749 PR middle-end/88597
17750 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
17751 the instantiate cache.
17752 (instantiate_scev_binary): Elide second operand procesing
17753 if equal to the first.
17754 * tree-chrec.c (chrec_contains_symbols): Add visited set.
17755 (chrec_contains_undetermined): Likewise.
17756 (tree_contains_chrecs): Likewise.
17758 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
17760 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
17762 2019-02-01 Jakub Jelinek <jakub@redhat.com>
17764 PR tree-optimization/89143
17765 * wide-int-range.h (wide_int_range_absu): Declare.
17766 * wide-int-range.cc (wide_int_range_absu): New function.
17767 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
17769 PR tree-optimization/88107
17770 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
17771 instead of assertion that eh_region_outermost is non-NULL, if it
17772 is NULL, set *ALL to true and return NULL.
17773 (move_sese_region_to_fn): Adjust caller, if all is set, call
17774 duplicate_eh_regions with NULL region.
17776 2019-02-01 Richard Biener <rguenth@suse.de>
17778 PR rtl-optimization/88593
17779 * mode-switching.c (optimize_mode_switching): Free dominators before
17780 calling cleanup_cfg.
17782 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
17784 PR tree-optimization/88932
17785 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
17787 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17789 PR middle-end/89137
17790 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
17791 bogus clang warning.
17793 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
17796 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
17797 alternative to avoid partial SSE register stall for TARGET_AVX.
17798 (truncdfsf2): Ditto.
17799 (sse4_1_round<mode>2): Ditto.
17801 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
17803 PR tree-optimization/89008
17804 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
17805 process anything of the form X * 0.
17807 2019-01-31 Richard Biener <rguenther@suse.de>
17809 PR tree-optimization/89135
17810 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
17811 with abnormal preds.
17813 2019-01-31 Jakub Jelinek <jakub@redhat.com>
17816 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
17817 always_inline callees into no_sanitize_address callers.
17819 2019-01-31 Richard Biener <rguenther@suse.de>
17821 PR rtl-optimization/89115
17822 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
17824 2019-01-30 Martin Sebor <msebor@redhat.com>
17827 * doc/extend.texi (cast to a union): Correct and expand.
17829 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
17831 PR rtl-optimization/87246
17832 * lra-constraints.c (simplify_operand_subreg): Reload memory
17833 in subreg if the address became invalid.
17835 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
17838 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
17839 Disable for little-endian.
17841 2019-01-30 Richard Biener <rguenther@suse.de>
17843 PR rtl-optimization/89115
17844 * opts.c (default_options_optimization): Reduce
17845 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
17846 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
17849 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
17851 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
17852 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
17853 type of vector element when vec_extract is implemented by direct
17856 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
17858 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
17860 2019-01-30 Richard Biener <rguenther@suse.de>
17862 PR tree-optimization/89111
17863 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
17864 canonicalization to appropriately sized access types.
17866 2019-01-30 Jakub Jelinek <jakub@redhat.com>
17869 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
17870 for arguments to functions that are TU-local and shouldn't be
17871 referenced by assembly.
17873 2019-01-30 Ulrich Drepper <drepper@redhat.com>
17875 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
17878 2019-01-29 Martin Sebor <msebor@redhat.com>
17881 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
17883 2019-01-29 Jakub Jelinek <jakub@redhat.com>
17887 * omp-simd-clone.c (simd_clone_clauses_extract)
17888 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
17889 OMP_CLAUSE_ALIGNED_ALIGNMENT.
17891 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
17893 * config.gcc: Force .init_array for ARC.
17895 2019-01-29 Richard Biener <rguenther@suse.de>
17898 * dwarf2out.c (collect_skeleton_dies): New helper.
17899 (copy_decls_for_unworthy_types): Call it.
17900 (build_abbrev_table): Assert we do not try to replace
17901 DW_AT_signature refs with local refs.
17903 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17905 PR middle-end/89002
17906 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
17907 for lastprivate/linear IV, push gimplify context around gimplify_assign
17908 and, if it needed any temporaries, pop it into a gimple bind around the
17911 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
17913 * common.opt (-Wattribute-alias): Remove "no-" from name.
17914 Make -Wattribute-alias command line option and
17915 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
17917 2019-01-28 Jakub Jelinek <jakub@redhat.com>
17920 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
17921 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
17923 (bmi2): Add missing @opindex.
17924 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
17925 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
17926 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
17927 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
17928 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
17929 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
17930 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
17931 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
17932 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
17933 xsavec, xsaveopt and xsaves options.
17935 2019-01-28 Richard Biener <rguenther@suse.de>
17938 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
17941 2019-01-28 Richard Biener <rguenther@suse.de>
17943 PR tree-optimization/88739
17944 * tree-cfg.c (verify_types_in_gimple_reference): Verify
17945 BIT_FIELD_REFs only are applied to mode-precision operands
17946 when they are integral.
17947 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
17948 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
17949 BIT_FIELD_REFs of non-mode-precision integral operands.
17951 2019-01-27 Jakub Jelinek <jakub@redhat.com>
17954 * config/i386/sse.md
17955 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
17956 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
17957 first constants in pairs are multiples of 2. Formatting fixes.
17958 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
17959 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
17960 first constants in each quadruple are multiples of 4. Formatting fixes.
17962 2019-01-26 Martin Jambor <mjambor@suse.cz>
17965 * tree-inline.c: Include tree-cfgcleanup.h.
17966 (delete_unreachable_blocks_update_callgraph): Move...
17967 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
17968 ...here, make externally visible, make second argument bool, adjust
17970 * tree-cfgcleanup.c: Include cgraph.h.
17971 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
17973 * ipa-prop.c: Include tree-cfgcleanup.h.
17974 (ipcp_transform_function): Call
17975 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
17977 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
17979 PR rtl-optimization/88846
17980 * ira.c (process_set_for_memref_referenced_p): New.
17981 (memref_referenced_p): Add new param. Use
17982 process_set_for_memref_referenced_p. Add new switch cases.
17983 (memref_used_between_p): Pass new arg to memref_referenced_p.
17985 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
17988 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
17989 argument ABI_BREAK. Set to true if the calculated alignment has
17990 changed in gcc-9. Check bit-fields for their base type alignment.
17991 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
17992 (aarch64_function_arg_boundary): Likewise.
17993 (aarch64_gimplify_va_arg_expr): Likewise.
17995 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
17997 PR middle-end/89037
17998 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
17999 instead of accessing TREE_INT_CST_ELT directly.
18001 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
18003 * doc/sourcebuild.texi (Environment attributes): Add fenv and
18004 fenv_exceptions description.
18006 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18008 PR rtl-optimization/87763
18009 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18010 Allow SUBREG when matching CC_NZmode compare.
18012 2019-01-25 Richard Biener <rguenther@suse.de>
18014 PR tree-optimization/89049
18015 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18016 Look at the pattern stmt to determine if the stmt is vectorized.
18018 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18020 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18021 (pred_mov<mode>): Handle all-register forms using both a new
18022 alternative and a split.
18024 2019-01-25 Richard Biener <rguenther@suse.de>
18026 PR tree-optimization/86865
18027 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18028 Reject non-do-while loops.
18030 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18032 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18033 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18034 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18035 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18036 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18037 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18038 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18039 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18040 vlogical_operand, gpc_reg_operand, int_reg_operand,
18041 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18042 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18043 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18044 (save_world_operation, restore_world_operation, lmw_operation,
18045 stmw_operation): Use MEM_P and REG_P.
18046 (tie_operand): Use MEM_P.
18047 (vrsave_operation, crsave_operation): Use REG_P.
18048 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18049 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18050 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18051 (call_operand): Use HARD_REGISTER_P.
18052 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18054 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18055 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18056 quad_aligned_load_p, replace_swapped_aligned_store,
18057 recombine_lvx_pattern, replace_swapped_aligned_load,
18058 recombine_stvx_pattern): Use MEM_P.
18059 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18060 Use MEM_P and SYMBOL_REF_P.
18061 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18062 (insn_is_swappable_p): Use REG_P and MEM_P.
18063 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18064 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18066 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18067 Use CONST_DOUBLE_P.
18068 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18070 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18071 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18072 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18073 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18075 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18076 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18077 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18078 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18079 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18080 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18081 rs6000_split_logical_di): Use CONST_INT_P.
18082 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18083 REG_P and SYMBOL_REF_P.
18084 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18085 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18086 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18087 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18088 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18089 (small_data_operand, print_operand_address): Use CONST_INT_P and
18091 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18092 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18093 Use HARD_REGISTER_NUM_P.
18094 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18095 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18096 SUBREG_P and SYMBOL_REF_P.
18097 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18098 and HARD_REGISTER_NUM_P.
18099 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18101 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18102 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18104 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18105 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18106 find_addr_reg): Use REG_P.
18107 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18108 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18109 (offsettable_ok_by_alignment, constant_pool_expr_p,
18110 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18111 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18112 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18113 rs6000_assemble_integer, create_TOC_reference,
18114 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18115 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18116 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18117 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18118 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18119 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18120 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18121 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18122 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18123 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18124 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18125 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18126 and cbranch<mode>4): Use CONST_INT_P.
18127 (multiple define_splits): Use REG_P and SUBREG_P.
18128 (define_expands call, call_value): Use MEM_P.
18129 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18130 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18131 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18132 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18133 and HARD_REGISTER_NUM_P.
18134 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18136 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18138 PR rtl-optimization/88948
18139 * rtl.h (prepare_copy_insn): New prototype.
18140 * gcse.c (prepare_copy_insn): New function, split out from
18141 process_insert_insn.
18142 (process_insert_insn): Use prepare_copy_insn.
18143 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18144 instead of gen_move_insn.
18146 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18149 * config/i386/i386.c (ix86_pic_register_p): Return true for
18150 UNSPEC_SET_GOT too.
18152 PR tree-optimization/88964
18153 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18154 punt if HONOR_SNANS (chrec).
18156 PR middle-end/89015
18157 * tree-nested.c (convert_nonlocal_reference_stmt,
18158 convert_local_reference_stmt, convert_tramp_reference_stmt,
18159 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18160 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18161 or GIMPLE_OMP_TASK.
18163 PR tree-optimization/89027
18164 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18165 for "omp simd array" variables.
18167 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18170 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18171 force the alignment of m_val.
18173 2019-01-24 Richard Biener <rguenther@suse.de>
18176 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18177 When in "legacy" debug mode make sure to reset self-origins.
18179 2019-01-24 Martin Liska <mliska@suse.cz>
18181 PR gcov-profile/88994
18182 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18183 result will be always smaller or equal to the original.
18184 * gcov.c (mangle_name): Fix else branch where we should
18185 also copy to PTR and shift the pointer.
18187 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18189 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18190 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18192 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18194 * common/config/i386/i386-common.c
18195 (OPTION_MASK_ISA_ENQCMD_SET,
18196 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18197 (ix86_handle_option): Handle -menqcmd.
18198 * config.gcc (enqcmdintrin.h): New header file.
18199 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18200 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18202 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18204 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18205 __builtin_ia32_enqcmds): New builtins.
18206 * config/i386/i386-c.c (__ENQCMD__): New macro.
18207 * config/i386/i386-option.c (ix86_target_string): Add
18209 (ix86_valid_target_attribute_inner_p): Likewise.
18210 * config/i386/i386-expand.c
18211 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18212 IX86_BUILTIN_ENQCMDS.
18213 * config/i386/i386.h (TARGET_ENQCMD): New.
18214 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18215 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18216 (movdir64b_<mode>): Parameterize to enable share expansion code
18217 with ENQCMD in function ix86_expand_builtin.
18218 * config/i386/i386.opt: Add -menqcmd.
18219 * config/i386/immintrin.h: Include enqcmdintrin.h.
18220 * config/i386/enqcmdintrin.h: New intrinsic file.
18221 * doc/invoke.texi: Add -menqcmd.
18223 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18224 Steve Ellcey <sellcey@marvell.com>
18227 * recog.c (address_operand): Return false on wrong mode for address.
18228 (constrain_operands): Check for mode with 'p' constraint.
18230 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18233 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18234 Disparage MMX alternative.
18235 (sse2_cvtpd2pi): Ditto.
18236 (sse2_cvttpd2pi): Ditto.
18238 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18241 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18242 use-after-free of the result of
18243 aarch64_get_extension_string_for_isa_flags.
18245 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18248 * doc/extend.texi: Document break and continue behavior in
18249 statement expressions.
18251 2019-01-23 Richard Biener <rguenther@suse.de>
18253 PR tree-optimization/89008
18254 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18255 not leave another stray operand.
18257 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18259 * BASE-VER: Bump to 9.0.1.
18261 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18263 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18264 thunk that returns by reference, use the type of the return object
18265 of the thunk instead of that of the alias to build the dereference.
18267 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18269 * config/arc/atomic.md: Add operand to DMB instruction.
18271 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18273 PR tree-optimization/88964
18274 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18275 build_zero_cst instead of build_int_cst. Return false for loop
18276 invariants which honor signed zeros.
18278 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18280 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18282 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18285 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18286 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18287 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18289 PR middle-end/88968
18290 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18291 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18294 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18295 Disable for little endian.
18297 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18300 * config/arm/arm.c (arm_needs_double_word_align): Check
18301 DECL_BIT_FIELD_TYPE.
18303 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18304 H.J. Lu <hongjiu.lu@intel.com>
18307 * config/i386/i386-builtin.def: Add mask2 to all builtin
18308 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18310 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18311 (BDESC_FIRST): Likewise.
18312 (define_builtin): Add an argument for mask2. Updated to handle
18313 both ix86_isa_flags and ix86_isa_flags2.
18314 (define_builtin_const): Likewise.
18315 (define_builtin_pure): Likewise.
18316 (define_builtin2): Deleted.
18317 (define_builtin_const2): Likewise.
18318 (builtin_description): Add a member, mask2.
18319 (bdesc_*): Add mask2 to builtin initializations.
18320 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18321 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18323 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18325 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18328 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18331 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18334 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
18335 alignment is dominated by a bitfield with 64-bit aligned base type.
18336 (arm_function_arg): Emit a warning if the alignment has changed since
18337 earlier GCC releases.
18338 (arm_function_arg_boundary): Likewise.
18339 (arm_setup_incoming_varargs): Likewise.
18341 2019-01-22 Richard Biener <rguenther@suse.de>
18343 PR tree-optimization/88862
18344 * graphite-scop-detection.c
18345 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
18347 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
18349 * doc/extend.tex (AMD GCN Function Attributes): New section.
18350 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
18351 * doc/invoke.texi (AMD GCN Options): New section.
18352 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
18354 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
18356 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
18357 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
18359 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18361 PR tree-optimization/88044
18362 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
18363 is false in the first iteration, but !every_iteration, return false
18364 instead of true with niter->niter zero.
18366 PR rtl-optimization/88904
18367 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
18368 any nonequal registers before processing BB_END (b).
18371 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
18373 (expand_binop_directly, expand_doubleword_clz,
18374 expand_doubleword_popcount, expand_ctz, expand_ffs,
18375 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
18377 PR rtl-optimization/49429
18379 PR rtl-optimization/86334
18381 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
18382 addressable from here...
18383 (emit_block_op_via_libcall): ... to here.
18385 2019-01-22 Richard Biener <rguenther@suse.de>
18387 * tree-vect-loop.c (vect_analyze_loop_operations): Use
18388 auto_vec for cost vector to fix memleak.
18389 (vectorize_fold_left_reduction): Properly gather SLP defs.
18390 (vectorizable_comparison): Do not swap operands to properly
18393 2019-01-22 Alan Modra <amodra@gmail.com>
18396 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
18397 stays a reg. Allow a const_int.
18398 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
18399 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
18400 (IS_NOMARK_TLSGETADDR): Define.
18401 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
18402 (rs6000_output_tlsargs): New function.
18403 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
18404 __tls_get_addr call takes an arg.
18405 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
18406 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
18408 (call_value_nonlocal_sysv): ..or here, delete split.
18409 (tls_gdld_nomark): Delete.
18410 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
18411 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
18412 (call_value_nonlocal_sysv): Likewise.
18413 (call_value_nonlocal_sysv_secure): Likewise.
18414 (call_value_nonlocal_aix): Likewise.
18415 (call_value_indirect_aix): Likewise.
18416 (call_value_indirect_elfv2): Likewise.
18417 (call_value_local32, call_value_local64): Disable for no-mark tls.
18418 (call_value_local_aix): Likewise.
18420 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
18423 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
18424 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
18426 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
18428 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
18429 string contents as hash_map keys.
18431 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
18434 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
18435 for rvalue context. Handle rvalues correctly. Use min_align_of_type
18436 instead of TYPE_ALIGN.
18437 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
18438 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
18439 pointer from TYPE_STUB_DECL.
18441 2019-01-21 Richard Biener <rguenther@suse.de>
18443 PR tree-optimization/88934
18444 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
18445 at the possibly non-constant operand.
18446 (vect_get_constant_vectors): Adjust.
18448 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
18451 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
18452 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
18453 instead of _X86INTRIN_H_INCLUDED.
18454 * onfig/i386/clwbintrin.h: Likewise.
18455 * config/i386/pkuintrin.h: Likewise.
18456 * config/i386/prfchwintrin.h: Likewise.
18457 * config/i386/rdseedintrin.h: Likewise.
18458 * config/i386/wbnoinvdintrin.h: Likewise.
18459 * config/i386/xsavecintrin.h: Likewise.
18460 * config/i386/xsavesintrin.h: Likewise.
18461 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
18462 * config/i386/xsaveintrin.h: Likewise.
18463 * config/i386/xsaveoptintrin.h: Likewise.
18464 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
18465 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
18466 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
18467 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
18468 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
18469 * config/i386/immintrin.h: Here.
18471 2019-01-20 Martin Jambor <mjambor@suse.cz>
18474 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
18475 with aa_walk_budget.
18476 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
18477 aa_walk_budget_p parameter.
18478 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
18479 walk. Updated all callers.
18480 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
18481 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
18483 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
18484 parameter info. Extract info from fbi. Pass fbi to recursive calls
18485 and to unmodified_parm.
18486 (phi_result_unknown_predicate): New parameter fbi, removed parameter
18487 info, updated call to will_be_nonconstant_expr_predicate.
18488 (param_change_prob): New parameter fbi, limit AA walking.
18489 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
18490 calls to various above functions.
18491 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
18492 parameter. Use it to limit AA walking.
18493 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
18494 fbi, limit AA walk.
18495 (detect_type_change): New parameter fbi, pass it on to
18496 detect_type_change_from_memory_writes.
18497 (detect_type_change_ssa): Likewise.
18498 (aa_overwalked): Removed.
18499 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
18500 accordingly, adjust to the neew AA limiting scheme.
18501 (parm_ref_data_preserved_p): Likewise.
18502 (ipa_compute_jump_functions_for_edge): Adjust call to
18504 (ipa_analyze_call_uses): Likewise.
18505 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
18506 (ipa_analyze_node): Initialize aa_walk_budget.
18507 (ipcp_transform_function): Likewise.
18508 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
18509 to get_dynamic_type.
18511 2019-01-19 Jakub Jelinek <jakub@redhat.com>
18513 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
18514 outside of #if CHECKING_P code.
18516 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
18518 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
18519 New function, split out from...
18520 (loop_versioning::analyze_stride): ...here.
18521 (loop_versioning::find_per_loop_multiplication): Use gassign.
18522 (loop_versioning::analyze_term_using_scevs): Return a success code.
18523 (loop_versioning::analyze_arbitrary_term): New function.
18524 (loop_versioning::analyze_address_fragment): Use
18525 analyze_arbitrary_term if all else fails.
18527 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
18530 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
18533 2019-01-18 Richard Biener <rguenther@suse.de>
18535 PR tree-optimization/88903
18536 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
18537 scalar stmts a SLP shift amount is composed of when detecting
18540 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
18543 * config/arm/arm-cpus.in (mp): New feature.
18544 (sec): New feature.
18545 (fgroup ARMv7ve): Add mp and sec features.
18546 (arch armv7-a): Add options to allow mp and sec extensions.
18547 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
18548 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
18549 extenstions to the base architecture.
18550 (cpu cortex-a8): Add sec extension to the base architecture.
18551 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
18552 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
18553 variants down to the base v7-a varaint.
18554 * config/arm/t-multilib (v7_a_arch_variants): New variable.
18555 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
18556 of permitted extensions for -march=armv7-a and for
18557 -mcpu=generic-armv7-a.
18559 2019-01-18 Martin Liska <mliska@suse.cz>
18561 * params.def: Fix comment.
18562 * tree-profile.c (gimple_init_gcov_profiler): Bump function
18564 (gimple_gen_ic_func_profiler): Likewise.
18566 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18568 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
18569 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
18570 and put in error checks for stack protector guard options.
18571 (aarch64_stack_protect_guard): New.
18572 (TARGET_STACK_PROTECT_GUARD): Define.
18573 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
18574 (reg_stack_protect_address<mode>): New.
18575 (stack_protect_set): Adjust for SSP_GLOBAL.
18576 (stack_protect_test): Likewise.
18577 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
18578 (-mstack-protector-guard): Likewise.
18579 (-mstack-protector-guard-offset): Likewise.
18581 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18583 PR tree-optimization/86214
18584 * tree-inline.h (struct copy_body_data): Add
18585 add_clobbers_to_eh_landing_pads member.
18586 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
18587 (copy_edges_for_bb): Call it if EH edge destination is <
18588 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
18589 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
18590 if flag_stack_reuse != SR_NONE and clear it afterwards.
18592 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
18595 * doc/install.texi (with-multilib-list): Document for aarch64.
18597 2019-01-18 Jakub Jelinek <jakub@redhat.com>
18600 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
18601 (("..."))) with ("...").
18603 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
18605 * doc/extend.texi (Built-in Functions for Memory Model Aware
18606 Atomic Operations): Document atomic fetch and nand.
18608 2019-01-18 Martin Liska <mliska@suse.cz>
18609 Richard Biener <rguenther@suse.de>
18611 PR middle-end/88587
18612 * cgraph.h (create_version_clone_with_body): Add new argument
18614 * cgraphclones.c (cgraph_node::create_version_clone): Add
18615 DECL_ATTRIBUTES to a newly created decl. And call
18616 valid_attribute_p so that proper cl_target_optimization_node
18617 is set for the newly created declaration.
18618 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
18620 (expand_target_clones): Do not call valid_attribute_p, it must
18622 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
18625 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18628 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
18629 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
18630 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
18632 2019-01-17 Martin Sebor <msebor@redhat.com>
18634 PR middle-end/88273
18635 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
18636 Handle anti-ranges the same as no range at all.
18638 2018-01-17 Steve Ellcey <sellcey@cavium.com>
18640 * config/aarch64/aarch64.c (cgraph.h): New include.
18641 (intl.h): New include.
18642 (supported_simd_type): New function.
18643 (currently_supported_simd_type): Ditto.
18644 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
18645 (aarch64_simd_clone_adjust): Ditto.
18646 (aarch64_simd_clone_usable): Ditto.
18647 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
18648 (TARGET_SIMD_CLONE_ADJUST): Ditto.
18649 (TARGET_SIMD_CLONE_USABLE): Ditto.
18650 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
18651 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
18654 2019-01-17 Martin Sebor <msebor@redhat.com>
18656 PR tree-optimization/88800
18657 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
18658 NO_WARNING bit here. Avoid folding out-of-bounds calls.
18659 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
18660 redundant argument. Add new argument and issue diagnostics under
18661 its control. Detect out-of-bounds access even with warnings
18663 (check_bounds_or_overlap): Change return type. Add argument.
18664 (wrestrict_dom_walker::check_call): Adjust.
18665 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
18666 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
18667 check_bounds_or_overlap's return value.
18668 (handle_builtin_stxncpy): Same.
18669 (handle_builtin_strcat): Same.
18671 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18672 Kwok Cheung Yeung <kcy@codesourcery.com>
18673 Julian Brown <julian@codesourcery.com>
18674 Tom de Vries <tom@codesourcery.com>
18676 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
18678 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18680 * doc/sourcebuild.texi: Document dg-require-effective-target
18681 llvm_binutils and offload_gcn.
18683 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18684 Kwok Cheung Yeung <kcy@codesourcery.com>
18685 Julian Brown <julian@codesourcery.com>
18686 Tom de Vries <tom@codesourcery.com>
18688 * doc/sourcebuild.texi: Document dg-required-effective-target
18691 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18692 Kwok Cheung Yeung <kcy@codesourcery.com>
18693 Julian Brown <julian@codesourcery.com>
18694 Tom de Vries <tom@codesourcery.com>
18695 Jan Hubicka <hubicka@ucw.cz>
18696 Martin Jambor <mjambor@suse.cz>
18698 * config.gcc: Add amdgcn*-*-amdhsa configuration.
18699 * configure.ac: Check for dlopen.
18700 * configure: Regenerate.
18702 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18703 Kwok Cheung Yeung <kcy@codesourcery.com>
18704 Julian Brown <julian@codesourcery.com>
18705 Tom de Vries <tom@codesourcery.com>
18706 Jan Hubicka <hubicka@ucw.cz>
18707 Martin Jambor <mjambor@suse.cz>
18709 * common/config/gcn/gcn-common.c: New file.
18710 * config/gcn/driver-gcn.c: New file.
18711 * config/gcn/gcn-builtins.def: New file.
18712 * config/gcn/gcn-hsa.h: New file.
18713 * config/gcn/gcn-modes.def: New file.
18714 * config/gcn/gcn-opts.h: New file.
18715 * config/gcn/gcn-passes.def: New file.
18716 * config/gcn/gcn-protos.h: New file.
18717 * config/gcn/gcn-run.c: New file.
18718 * config/gcn/gcn-tree.c: New file.
18719 * config/gcn/gcn.c: New file.
18720 * config/gcn/gcn.h: New file.
18721 * config/gcn/gcn.opt: New file.
18722 * config/gcn/t-gcn-hsa: New file.
18724 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
18725 Kwok Cheung Yeung <kcy@codesourcery.com>
18726 Julian Brown <julian@codesourcery.com>
18727 Tom de Vries <tom@codesourcery.com>
18728 Jan Hubicka <hubicka@ucw.cz>
18729 Martin Jambor <mjambor@suse.cz>
18731 * config/gcn/constraints.md: New file.
18732 * config/gcn/gcn-valu.md: New file.
18733 * config/gcn/gcn.md: New file.
18734 * config/gcn/predicates.md: New file.
18736 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
18738 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
18739 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
18740 (stmt_uses_0_or_null_in_undefined_way): Likewise.
18741 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
18743 2019-01-17 Tamar Christina <tamar.christina@arm.com>
18746 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
18747 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
18748 it and document registers.
18750 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18752 * config/aarch64/aarch64.c (ares_tunings): Define.
18753 * config/aarch64/aarch64-cores.def (ares): Use the above.
18755 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18759 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
18761 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
18762 (_mm512_fixupimm_round_pd): Update parameters and builtin.
18763 (_mm512_maskz_fixupimm_round_pd): Ditto.
18764 (_mm512_fixupimm_round_ps): Ditto.
18765 (_mm512_maskz_fixupimm_round_ps): Ditto.
18766 (_mm_fixupimm_round_sd): Ditto.
18767 (_mm_maskz_fixupimm_round_sd): Ditto.
18768 (_mm_fixupimm_round_ss): Ditto.
18769 (_mm_maskz_fixupimm_round_ss): Ditto.
18770 (_mm512_fixupimm_pd): Ditto.
18771 (_mm512_maskz_fixupimm_pd): Ditto.
18772 (_mm512_fixupimm_ps): Ditto.
18773 (_mm512_maskz_fixupimm_ps): Ditto.
18774 (_mm_fixupimm_sd): Ditto.
18775 (_mm_maskz_fixupimm_sd): Ditto.
18776 (_mm_fixupimm_ss): Ditto.
18777 (_mm_maskz_fixupimm_ss): Ditto.
18778 (_mm512_mask_fixupimm_round_pd): Update builtin.
18779 (_mm512_mask_fixupimm_round_ps): Ditto.
18780 (_mm_mask_fixupimm_round_sd): Ditto.
18781 (_mm_mask_fixupimm_round_ss): Ditto.
18782 (_mm512_mask_fixupimm_pd): Ditto.
18783 (_mm512_mask_fixupimm_ps): Ditto.
18784 (_mm_mask_fixupimm_sd): Ditto.
18785 (_mm_mask_fixupimm_ss): Ditto.
18786 * config/i386/avx512vlintrin.h:
18787 (_mm256_fixupimm_pd): Update parameters and builtin.
18788 (_mm256_maskz_fixupimm_pd): Ditto.
18789 (_mm256_fixupimm_ps): Ditto.
18790 (_mm256_maskz_fixupimm_ps): Ditto.
18791 (_mm_fixupimm_pd): Ditto.
18792 (_mm_maskz_fixupimm_pd): Ditto.
18793 (_mm_fixupimm_ps): Ditto.
18794 (_mm_maskz_fixupimm_ps): Ditto.
18795 (_mm256_mask_fixupimm_pd): Update builtin.
18796 (_mm256_mask_fixupimm_ps): Ditto.
18797 (_mm_mask_fixupimm_pd): Ditto.
18798 (_mm_mask_fixupimm_ps): Ditto.
18799 * config/i386/i386-builtin-types.def: Add new types and remove
18801 * config/i386/i386-builtin.def: Update builtin definitions.
18802 * config/i386/i386.c: Handle new builtin types and remove useless ones.
18803 * config/i386/sse.md: Update VFIXUPIMM* patterns.
18804 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18805 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18806 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
18807 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18808 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18809 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
18810 * config/i386/subst.md:
18811 (round_saeonly_sd_mask_operand4): Add new subst_attr.
18812 (round_saeonly_sd_mask_op4): Ditto.
18813 (round_saeonly_expand_operand5): Ditto.
18814 (round_saeonly_expand): Update.
18816 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18820 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
18822 * config/i386/sse.md: Combine VFIXUPIMM* patterns
18823 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18824 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18825 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
18826 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
18827 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
18828 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
18830 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
18834 2018-12-15 Jakub Jelinek <jakub@redhat.com>
18837 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
18838 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
18839 instead of UNSPEC_FIXUPIMM.
18841 2019-01-17 Richard Biener <rguenther@suse.de>
18844 * dwarf2out.c (want_pubnames): Never generate pubnames sections
18845 and friends for the LTO part of debug info.
18847 2019-01-17 Jakub Jelinek <jakub@redhat.com>
18849 PR tree-optimization/86214
18850 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
18853 PR rtl-optimization/88870
18854 * dce.c (deletable_insn_p): Never delete const/pure calls that can
18855 throw if we can't alter the cfg or delete dead exceptions.
18856 (mark_insn): Don't call find_call_stack_args for such calls.
18858 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
18860 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
18861 prototypes for vec_st.
18862 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
18863 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
18864 mainly on signed/unsigned long long and double.
18866 2019-01-16 David Malcolm <dmalcolm@redhat.com>
18869 * combine.c (delete_noop_moves): Convert to "bool" return,
18870 returning true if any edges are eliminated.
18871 (combine_instructions): Also return true if delete_noop_moves
18874 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18876 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
18877 correct max nunits for endian swap.
18878 (aarch64_expand_fcmla_builtin): Correct subreg code.
18879 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
18880 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
18883 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
18885 * config/alpha/alpha.c (alpha_gimplify_va_arg):
18886 Handle split indirect COMPLEX_TYPE arguments.
18888 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
18891 * config/aarch64/aarch64-modes.def: Add comment about how the carry
18892 bit is set by add and compare.
18893 (CC_ADC): New CC_MODE.
18894 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
18895 to cache the code and mode of X. Adjust the shape of a CC_Cmode
18896 comparison. Add detection for CC_ADCmode.
18897 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
18899 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
18900 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
18901 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
18902 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
18903 to eliminate the need for zero-extending the operands.
18904 (add<mode>3_compareC_imm): Delete. Merge into ...
18905 (add<mode>3_compareC): ... this. Restructure the comparison to
18906 eliminate the need for zero-extending the operands.
18907 (add<mode>3_carryin): Use LTU for the overflow detection.
18908 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
18909 Reexpress comparison for overflow.
18910 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
18911 (add<mode>3_carryinC): Likewise.
18912 (add<mode>3_carryinV): Use LTU for carry between partials.
18913 * config/aarch64/predicates.md (aarch64_carry_operation): Update
18914 handling of CC_Cmode and add CC_ADCmode.
18915 (aarch64_borrow_operation): Likewise.
18917 2019-01-16 Tamar Christina <tamar.christina@arm.com>
18919 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
18920 Remove patternmode.
18921 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
18922 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
18923 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
18924 Remove endianness conversion.
18926 2019-01-16 Martin Liska <mliska@suse.cz>
18928 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
18930 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
18932 * gcc.c (add_sysrooted_hdrs_prefix): New function.
18933 (path_prefix_reset): Move up in the source file.
18934 (find_fortran_preinclude_file): Make complex search for the
18935 fortran header files.
18937 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
18939 * godump.c (go_output_typedef): When outputting a typedef, refer
18940 to the underlying type by its name and not its structure.
18942 2019-01-15 David Malcolm <dmalcolm@redhat.com>
18945 * tree.c (build_function_type): Assert that arg_types is not
18948 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
18950 PR inline-asm/52813
18951 * doc/extend.texi: Document that listing the stack pointer in the
18952 clobber list of an asm is a deprecated feature.
18953 * common.opt (Wdeprecated): Moved from c-family/c.opt.
18954 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
18955 warning instead of an error for clobbers of the stack pointer.
18956 Add a note explaining why.
18958 2019-01-15 Richard Biener <rguenther@suse.de>
18961 * dwarf2out.c (gen_member_die): Do not generate inheritance
18964 2019-01-15 Richard Biener <rguenther@suse.de>
18966 PR tree-optimization/88855
18967 * tree-if-conv.c (combine_blocks): Collect
18968 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
18970 2019-01-15 Tom de Vries <tdevries@suse.de>
18973 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
18974 lhs == NULL_TREE for gang-level reduction.
18976 2019-01-15 Richard Biener <rguenther@suse.de>
18977 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18980 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
18981 return true if SSA_NAME is already marked in visited bitmap.
18982 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
18984 2019-01-15 Jakub Jelinek <jakub@redhat.com>
18986 PR tree-optimization/88775
18987 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
18988 equal == 0 equality pointer comparisons some more if compared in
18989 integral types and either one points to an automatic var and the
18990 other to a global, or we can prove at least one points to the middle
18991 or both point to start or both point to end.
18993 2019-01-14 Andi Kleen <ak@linux.intel.com>
18995 * Makefile.in: Lower autofdo sampling rate by 10x.
18996 * Makefile.tpl: Dito.
18998 2019-01-14 Tom Honermann <tom@honermann.net>
19000 * defaults.h: Define CHAR8_TYPE.
19002 2019-01-14 Martin Sebor <msebor@redhat.com>
19005 * doc/extend.texi (Darwin Format Checks): Clarify.
19007 2019-01-14 Richard Biener <rguenther@suse.de>
19009 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19010 whether we are in (simplify ...) or (match ...) context.
19012 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19014 PR rtl-optimization/88796
19015 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19016 * cfgexpand.c (stack_protect_prologue): Initialize
19017 crtl->stack_protect_guard_decl.
19018 * function.c (stack_protect_epilogue): Use it instead of calling
19019 targetm.stack_protect_guard again.
19020 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19021 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19022 crtl->stack_protect_guard_decl.
19023 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19024 on the returned MEM_EXPR.
19026 2019-01-12 Tom de Vries <tdevries@suse.de>
19028 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19029 vector length using -fopenacc-dim.
19031 2019-01-12 Tom de Vries <tdevries@suse.de>
19033 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19034 lengths into account.
19036 2019-01-12 Svante Signell <svante.signell@gmail.com>
19038 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19039 (TARGET_CAN_SPLIT_STACK): Define.
19040 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19042 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19044 * params.def (inline-unit-growth): Set to 40.
19046 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19048 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19050 2019-01-12 Tom de Vries <tdevries@suse.de>
19052 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19053 region calling vector-partitionable routine, set default_vector_length
19056 2019-01-12 Tom de Vries <tdevries@suse.de>
19058 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19059 variable default_vector_length.
19061 2019-01-12 Tom de Vries <tdevries@suse.de>
19063 PR middle-end/88703
19064 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19065 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19068 2019-01-12 Tom de Vries <tdevries@suse.de>
19070 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19071 (nvptx_goacc_validate_dims): Add used parameter.
19072 * doc/tm.texi: Regenerate.
19073 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19074 argument to call to targetm.goacc.validate_dims.
19075 (default_goacc_validate_dims): Add used
19077 * target.def (validate_dims): Add used parameter in DEFHOOK.
19078 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19080 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19082 PR middle-end/85956
19084 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19086 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19087 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19088 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19089 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19091 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19093 PR rtl-optimization/87305
19095 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19096 for little endian pseudos used as paradoxical subreg.
19098 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19100 PR tree-optimization/88693
19101 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19102 for STRING_CSTs that don't contain any NUL characters in the first
19103 TREE_STRING_LENGTH bytes.
19105 2019-01-11 Alan Modra <amodra@gmail.com>
19109 * genattrtab.c (min_fn): Don't translate values.
19110 (min_attr_value): Return INT_MAX when the value can't be calculated.
19111 Return minimum among any values that can be calculated.
19112 (max_attr_value): Adjust.
19114 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19116 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19118 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19120 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19121 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19122 (aarch64_return_call_with_max_clobbers): New function.
19123 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19124 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19126 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19127 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19128 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19129 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19130 * cselib.c (cselib_process_insn): Add argument to
19131 targetm.hard_regno_call_part_clobbered call.
19132 * ira-conflicts.c (ira_build_conflicts): Ditto.
19133 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19134 * lra-constraints.c (inherit_reload_reg): Ditto.
19135 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19136 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19137 argument. Call targetm.return_call_with_max_clobbers.
19138 Add argument to targetm.hard_regno_call_part_clobbered call.
19139 (calls_have_same_clobbers_p): New function.
19140 (process_bb_lives): Add call_insn and last_call_insn variables.
19141 Pass call_insn to check_pseudos_live_through_calls.
19142 Modify if stmt to check targetm.return_call_with_max_clobbers.
19143 Update setting of flush variable.
19144 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19146 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19147 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19148 targetm.hard_regno_call_part_clobbered call.
19149 * reginfo.c (choose_hard_reg_mode): Ditto.
19150 * regrename.c (check_new_reg_p): Ditto.
19151 * reload.c (find_equiv_reg): Ditto.
19152 * reload1.c (emit_reload_insns): Ditto.
19153 * sched-deps.c (deps_analyze_insn): Ditto.
19154 * sel-sched.c (init_regs_for_mode): Ditto.
19155 (mark_unavailable_hard_regs): Ditto.
19156 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19157 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19158 (return_call_with_max_clobbers): New target function.
19159 * doc/tm.texi: Regenerate.
19160 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19161 * hooks.c (hook_bool_uint_mode_false): Change to
19162 hook_bool_insn_uint_mode_false.
19163 * hooks.h (hook_bool_uint_mode_false): Ditto.
19165 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19167 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19168 (aarch64_remove_extra_call_preserved_regs): New function.
19169 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19170 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19171 * doc/tm.texi: Regenerate.
19172 * final.c (get_call_reg_set_usage): Call new hook.
19173 * target.def (remove_extra_call_preserved_regs): New hook.
19174 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19175 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19177 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19180 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19181 inside of pass_combine_1 dump rather than pass_profile_1.
19183 2019-01-11 Tom de Vries <tdevries@suse.de>
19185 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19186 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19187 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19188 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19191 2019-01-11 Tom de Vries <tdevries@suse.de>
19193 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19195 2019-01-11 Jan Beulich <jbeulich@suse.com>
19197 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19198 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19199 sse2_cvtsi2sd): Add {l}.
19200 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19203 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19206 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19208 (*float<floatunssuffix>v2div2sf2): New define_insn.
19209 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19210 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19211 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19212 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19213 match_operands with "const0_operand" "C".
19215 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19217 * config/aarch64/aarch64-builtins.c
19218 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19219 (aarch64_init_simd_builtins): ...Here
19221 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19223 PR rtl-optimization/87305
19225 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19226 allocation for big endian pseudos used as paradoxical subregs and
19227 spill them if it is wrong.
19228 * lra-constraints.c (lra_constraints): Add a comment.
19230 2019-01-10 Richard Biener <rguenther@suse.de>
19232 PR tree-optimization/88792
19233 * tree-ssa-pre.c (get_representative_for): Do not return a
19236 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19238 PR middle-end/84877
19240 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19241 (assign_parm_setup_block): Do the argument slot realignment here
19244 2019-01-10 Stefan Agner <stefan@agner.ch>
19247 * config/arm/arm.c (arm_option_override_internal): Force
19248 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19250 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19253 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19256 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19258 * config/arm/arm-builtins.c
19259 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19260 (MAC_LANE_PAIR_QUALIFIERS): New.
19261 (arm_expand_builtin_args): Use it.
19262 (arm_expand_builtin_1): Likewise.
19263 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19264 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19265 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19266 * config/arm/arm_neon.h:
19267 (vcadd_rot90_f16): New.
19268 (vcaddq_rot90_f16): New.
19269 (vcadd_rot270_f16): New.
19270 (vcaddq_rot270_f16): New.
19273 (vcmla_lane_f16): New.
19274 (vcmla_laneq_f16): New.
19275 (vcmlaq_lane_f16): New.
19276 (vcmlaq_laneq_f16): New.
19277 (vcmla_rot90_f16): New.
19278 (vcmlaq_rot90_f16): New.
19279 (vcmla_rot90_lane_f16): New.
19280 (vcmla_rot90_laneq_f16): New.
19281 (vcmlaq_rot90_lane_f16): New.
19282 (vcmlaq_rot90_laneq_f16): New.
19283 (vcmla_rot180_f16): New.
19284 (vcmlaq_rot180_f16): New.
19285 (vcmla_rot180_lane_f16): New.
19286 (vcmla_rot180_laneq_f16): New.
19287 (vcmlaq_rot180_lane_f16): New.
19288 (vcmlaq_rot180_laneq_f16): New.
19289 (vcmla_rot270_f16): New.
19290 (vcmlaq_rot270_f16): New.
19291 (vcmla_rot270_lane_f16): New.
19292 (vcmla_rot270_laneq_f16): New.
19293 (vcmlaq_rot270_lane_f16): New.
19294 (vcmlaq_rot270_laneq_f16): New.
19295 (vcadd_rot90_f32): New.
19296 (vcaddq_rot90_f32): New.
19297 (vcadd_rot270_f32): New.
19298 (vcaddq_rot270_f32): New.
19301 (vcmla_lane_f32): New.
19302 (vcmla_laneq_f32): New.
19303 (vcmlaq_lane_f32): New.
19304 (vcmlaq_laneq_f32): New.
19305 (vcmla_rot90_f32): New.
19306 (vcmlaq_rot90_f32): New.
19307 (vcmla_rot90_lane_f32): New.
19308 (vcmla_rot90_laneq_f32): New.
19309 (vcmlaq_rot90_lane_f32): New.
19310 (vcmlaq_rot90_laneq_f32): New.
19311 (vcmla_rot180_f32): New.
19312 (vcmlaq_rot180_f32): New.
19313 (vcmla_rot180_lane_f32): New.
19314 (vcmla_rot180_laneq_f32): New.
19315 (vcmlaq_rot180_lane_f32): New.
19316 (vcmlaq_rot180_laneq_f32): New.
19317 (vcmla_rot270_f32): New.
19318 (vcmlaq_rot270_f32): New.
19319 (vcmla_rot270_lane_f32): New.
19320 (vcmla_rot270_laneq_f32): New.
19321 (vcmlaq_rot270_lane_f32): New.
19322 (vcmlaq_rot270_laneq_f32): New.
19323 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19324 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19325 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19326 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19327 vcmlaq_lane270): New.
19328 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19329 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
19330 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
19331 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
19332 (arm_option_reconfigure_globals): Use them.
19333 * config/arm/iterators.md (VDF, VQ_HSF): New.
19334 (VCADD, VCMLA): New.
19335 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
19336 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
19338 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
19339 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
19341 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19343 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19344 Add qualifier_lane_pair_index.
19345 (emit-rtl.h): Include.
19346 (TYPES_QUADOP_LANE_PAIR): New.
19347 (aarch64_simd_expand_args): Use it.
19348 (aarch64_simd_expand_builtin): Likewise.
19349 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
19351 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
19352 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
19353 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
19354 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
19355 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
19356 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
19357 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
19358 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
19359 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
19360 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
19361 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
19362 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
19363 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
19364 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19365 Add __ARM_FEATURE_COMPLEX.
19366 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
19367 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
19368 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
19369 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
19370 fcmlaq_lane270): New.
19371 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19372 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
19373 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
19374 * config/aarch64/arm_neon.h:
19375 (vcadd_rot90_f16): New.
19376 (vcaddq_rot90_f16): New.
19377 (vcadd_rot270_f16): New.
19378 (vcaddq_rot270_f16): New.
19381 (vcmla_lane_f16): New.
19382 (vcmla_laneq_f16): New.
19383 (vcmlaq_lane_f16): New.
19384 (vcmlaq_rot90_lane_f16): New.
19385 (vcmla_rot90_laneq_f16): New.
19386 (vcmla_rot90_lane_f16): New.
19387 (vcmlaq_rot90_f16): New.
19388 (vcmla_rot90_f16): New.
19389 (vcmlaq_laneq_f16): New.
19390 (vcmla_rot180_laneq_f16): New.
19391 (vcmla_rot180_lane_f16): New.
19392 (vcmlaq_rot180_f16): New.
19393 (vcmla_rot180_f16): New.
19394 (vcmlaq_rot90_laneq_f16): New.
19395 (vcmlaq_rot270_laneq_f16): New.
19396 (vcmlaq_rot270_lane_f16): New.
19397 (vcmla_rot270_laneq_f16): New.
19398 (vcmlaq_rot270_f16): New.
19399 (vcmla_rot270_f16): New.
19400 (vcmlaq_rot180_laneq_f16): New.
19401 (vcmlaq_rot180_lane_f16): New.
19402 (vcmla_rot270_lane_f16): New.
19403 (vcadd_rot90_f32): New.
19404 (vcaddq_rot90_f32): New.
19405 (vcaddq_rot90_f64): New.
19406 (vcadd_rot270_f32): New.
19407 (vcaddq_rot270_f32): New.
19408 (vcaddq_rot270_f64): New.
19412 (vcmla_lane_f32): New.
19413 (vcmla_laneq_f32): New.
19414 (vcmlaq_lane_f32): New.
19415 (vcmlaq_laneq_f32): New.
19416 (vcmla_rot90_f32): New.
19417 (vcmlaq_rot90_f32): New.
19418 (vcmlaq_rot90_f64): New.
19419 (vcmla_rot90_lane_f32): New.
19420 (vcmla_rot90_laneq_f32): New.
19421 (vcmlaq_rot90_lane_f32): New.
19422 (vcmlaq_rot90_laneq_f32): New.
19423 (vcmla_rot180_f32): New.
19424 (vcmlaq_rot180_f32): New.
19425 (vcmlaq_rot180_f64): New.
19426 (vcmla_rot180_lane_f32): New.
19427 (vcmla_rot180_laneq_f32): New.
19428 (vcmlaq_rot180_lane_f32): New.
19429 (vcmlaq_rot180_laneq_f32): New.
19430 (vcmla_rot270_f32): New.
19431 (vcmlaq_rot270_f32): New.
19432 (vcmlaq_rot270_f64): New.
19433 (vcmla_rot270_lane_f32): New.
19434 (vcmla_rot270_laneq_f32): New.
19435 (vcmlaq_rot270_lane_f32): New.
19436 (vcmlaq_rot270_laneq_f32): New.
19437 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
19438 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
19439 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
19440 (FCADD, FCMLA): New.
19442 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
19444 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19448 * config/pa/pa.c: Change "can not" to "cannot".
19449 * gimple-ssa-evrp-analyze.c: Likewise.
19450 * ipa-icf.c: Likewise.
19451 * ipa-polymorphic-call.c: Likewise.
19452 * ipa-pure-const.c: Likewise.
19453 * lra-constraints.c: Likewise.
19454 * lra-remat.c: Likewise.
19455 * reload1.c: Likewise.
19456 * reorg.c: Likewise.
19457 * tree-ssa-uninit.c: Likewise.
19459 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
19463 * Makefile.in: Mechanically replace "can not" with "cannot".
19464 * alias.c: Likewise.
19465 * builtins.c: Likewise.
19466 * calls.c: Likewise.
19467 * cgraph.c: Likewise.
19468 * cgraph.h: Likewise.
19469 * cgraphclones.c: Likewise.
19470 * cgraphunit.c: Likewise.
19471 * combine-stack-adj.c: Likewise.
19472 * combine.c: Likewise.
19473 * common/config/i386/i386-common.c: Likewise.
19474 * config/aarch64/aarch64.c: Likewise.
19475 * config/alpha/sync.md: Likewise.
19476 * config/arc/arc.c: Likewise.
19477 * config/arc/predicates.md: Likewise.
19478 * config/arm/arm-c.c: Likewise.
19479 * config/arm/arm.c: Likewise.
19480 * config/arm/arm.h: Likewise.
19481 * config/arm/arm.md: Likewise.
19482 * config/arm/cortex-r4f.md: Likewise.
19483 * config/csky/csky.c: Likewise.
19484 * config/csky/csky.h: Likewise.
19485 * config/darwin-f.c: Likewise.
19486 * config/epiphany/epiphany.md: Likewise.
19487 * config/i386/i386.c: Likewise.
19488 * config/i386/sol2.h: Likewise.
19489 * config/m68k/m68k.c: Likewise.
19490 * config/mcore/mcore.h: Likewise.
19491 * config/microblaze/microblaze.md: Likewise.
19492 * config/mips/20kc.md: Likewise.
19493 * config/mips/sb1.md: Likewise.
19494 * config/nds32/nds32.c: Likewise.
19495 * config/nds32/predicates.md: Likewise.
19496 * config/pa/pa.c: Likewise.
19497 * config/rs6000/e300c2c3.md: Likewise.
19498 * config/rs6000/rs6000.c: Likewise.
19499 * config/s390/s390.h: Likewise.
19500 * config/sh/sh.c: Likewise.
19501 * config/sh/sh.md: Likewise.
19502 * config/spu/vmx2spu.h: Likewise.
19503 * cprop.c: Likewise.
19504 * dbxout.c: Likewise.
19505 * df-scan.c: Likewise.
19506 * doc/cfg.texi: Likewise.
19507 * doc/extend.texi: Likewise.
19508 * doc/fragments.texi: Likewise.
19509 * doc/gty.texi: Likewise.
19510 * doc/invoke.texi: Likewise.
19511 * doc/lto.texi: Likewise.
19512 * doc/md.texi: Likewise.
19513 * doc/objc.texi: Likewise.
19514 * doc/rtl.texi: Likewise.
19515 * doc/tm.texi: Likewise.
19517 * emit-rtl.c: Likewise.
19518 * emit-rtl.h: Likewise.
19519 * except.c: Likewise.
19520 * expmed.c: Likewise.
19521 * expr.c: Likewise.
19522 * fold-const.c: Likewise.
19523 * genautomata.c: Likewise.
19524 * gimple-fold.c: Likewise.
19525 * hard-reg-set.h: Likewise.
19526 * ifcvt.c: Likewise.
19527 * ipa-comdats.c: Likewise.
19528 * ipa-cp.c: Likewise.
19529 * ipa-devirt.c: Likewise.
19530 * ipa-fnsummary.c: Likewise.
19531 * ipa-icf.c: Likewise.
19532 * ipa-inline-transform.c: Likewise.
19533 * ipa-inline.c: Likewise.
19534 * ipa-polymorphic-call.c: Likewise.
19535 * ipa-profile.c: Likewise.
19536 * ipa-prop.c: Likewise.
19537 * ipa-pure-const.c: Likewise.
19538 * ipa-reference.c: Likewise.
19539 * ipa-split.c: Likewise.
19540 * ipa-visibility.c: Likewise.
19542 * ira-build.c: Likewise.
19543 * ira-color.c: Likewise.
19544 * ira-conflicts.c: Likewise.
19545 * ira-costs.c: Likewise.
19546 * ira-int.h: Likewise.
19547 * ira-lives.c: Likewise.
19550 * loop-invariant.c: Likewise.
19551 * loop-unroll.c: Likewise.
19552 * lower-subreg.c: Likewise.
19553 * lra-assigns.c: Likewise.
19554 * lra-constraints.c: Likewise.
19555 * lra-eliminations.c: Likewise.
19556 * lra-lives.c: Likewise.
19557 * lra-remat.c: Likewise.
19558 * lra-spills.c: Likewise.
19560 * lto-cgraph.c: Likewise.
19561 * lto-streamer-out.c: Likewise.
19562 * postreload-gcse.c: Likewise.
19563 * predict.c: Likewise.
19564 * profile-count.h: Likewise.
19565 * profile.c: Likewise.
19566 * recog.c: Likewise.
19568 * reload.c: Likewise.
19569 * reload1.c: Likewise.
19570 * reorg.c: Likewise.
19571 * resource.c: Likewise.
19572 * rtl.def: Likewise.
19574 * rtlanal.c: Likewise.
19575 * sched-deps.c: Likewise.
19576 * sched-ebb.c: Likewise.
19577 * sched-rgn.c: Likewise.
19578 * sel-sched-ir.c: Likewise.
19579 * sel-sched.c: Likewise.
19580 * shrink-wrap.c: Likewise.
19581 * simplify-rtx.c: Likewise.
19582 * symtab.c: Likewise.
19583 * target.def: Likewise.
19584 * toplev.c: Likewise.
19585 * tree-call-cdce.c: Likewise.
19586 * tree-cfg.c: Likewise.
19587 * tree-complex.c: Likewise.
19588 * tree-core.h: Likewise.
19589 * tree-eh.c: Likewise.
19590 * tree-inline.c: Likewise.
19591 * tree-loop-distribution.c: Likewise.
19592 * tree-nrv.c: Likewise.
19593 * tree-profile.c: Likewise.
19594 * tree-sra.c: Likewise.
19595 * tree-ssa-alias.c: Likewise.
19596 * tree-ssa-dce.c: Likewise.
19597 * tree-ssa-dom.c: Likewise.
19598 * tree-ssa-forwprop.c: Likewise.
19599 * tree-ssa-loop-im.c: Likewise.
19600 * tree-ssa-loop-ivcanon.c: Likewise.
19601 * tree-ssa-loop-ivopts.c: Likewise.
19602 * tree-ssa-loop-niter.c: Likewise.
19603 * tree-ssa-phionlycprop.c: Likewise.
19604 * tree-ssa-phiopt.c: Likewise.
19605 * tree-ssa-propagate.c: Likewise.
19606 * tree-ssa-threadedge.c: Likewise.
19607 * tree-ssa-threadupdate.c: Likewise.
19608 * tree-ssa-uninit.c: Likewise.
19609 * tree-ssanames.c: Likewise.
19610 * tree-streamer-out.c: Likewise.
19611 * tree.c: Likewise.
19612 * tree.h: Likewise.
19613 * vr-values.c: Likewise.
19615 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
19617 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
19618 (ix86_split_xorsign): Ditto.
19619 * config/i386/i386.c (ix86_expand_xorsign): New function.
19620 (ix86_split_xorsign): Ditto.
19621 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
19622 (xorsign<mode>3): New expander.
19623 (xorsign<mode>3_1): New insn_and_split pattern.
19624 * config/i386/sse.md (xorsign<mode>3): New expander.
19626 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19628 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
19629 (*tablejump_sp64): Likewise.
19630 (*tablejump<P:mode>): ...this.
19631 (*call_address_sp32): Merge into...
19632 (*call_address_sp64): Likewise.
19633 (*call_address<P:mode>): ...this.
19634 (*call_symbolic_sp32): Merge into...
19635 (*call_symbolic_sp64): Likewise.
19636 (*call_symbolic<P:mode>): ...this.
19637 (call_value): Remove constraint and add predicate.
19638 (*call_value_address_sp32): Merge into...
19639 (*call_value_address_sp64): Likewise.
19640 (*call_value_address<P:mode>): ...this.
19641 (*call_value_symbolic_sp32): Merge into...
19642 (*call_value_symbolic_sp64): Likewise.
19643 (*call_value_symbolic<P:mode>): ...this.
19644 (*sibcall_symbolic_sp32): Merge into...
19645 (*sibcall_symbolic_sp64): Likewise.
19646 (*sibcall_symbolic<P:mode>): ...this.
19647 (sibcall_value): Remove constraint and add predicate.
19648 (*sibcall_value_symbolic_sp32): Merge into...
19649 (*sibcall_value_symbolic_sp64): Likewise.
19650 (*sibcall_value_symbolic<P:mode>): ...this.
19651 (window_save): Minor tweak.
19652 (*branch_sp32): Merge into...
19653 (*branch_sp64): Likewise.
19654 (*branch<P:mode>): ...this.
19656 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19657 James Clarke <jrtc27@jrtc27.com>
19660 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
19661 consistently in TLS address generation and adjust code to the renaming
19662 of patterns. Mark calls to __tls_get_addr as const.
19663 * config/sparc/sparc.md (tgd_hi22): Turn into...
19664 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
19665 (tgd_lo10): Turn into...
19666 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
19667 (tgd_add32): Merge into...
19668 (tgd_add64): Likewise.
19669 (tgd_add<P:mode>): ...this and use Pmode throughout.
19670 (tldm_hi22): Turn into...
19671 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
19672 (tldm_lo10): Turn into...
19673 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
19674 (tldm_add32): Merge into...
19675 (tldm_add64): Likewise.
19676 (tldm_add<P:mode>): ...this and use Pmode throughout.
19677 (tldm_call32): Merge into...
19678 (tldm_call64): Likewise.
19679 (tldm_call<P:mode>): ...this and use Pmode throughout.
19680 (tldo_hix22): Turn into...
19681 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
19682 (tldo_lox10): Turn into...
19683 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
19684 (tldo_add32): Merge into...
19685 (tldo_add64): Likewise.
19686 (tldo_add<P:mode>): ...this and use Pmode throughout.
19687 (tie_hi22): Turn into...
19688 (tie_hi22<P:mode>): ...this and use Pmode throughout.
19689 (tie_lo10): Turn into...
19690 (tie_lo10<P:mode>): ...this and use Pmode throughout.
19691 (tie_ld64): Use DImode throughout.
19692 (tie_add32): Merge into...
19693 (tie_add64): Likewise.
19694 (tie_add<P:mode>): ...this and use Pmode throughout.
19695 (tle_hix22_sp32): Merge into...
19696 (tle_hix22_sp64): Likewise.
19697 (tle_hix22<P:mode>): ...this and use Pmode throughout.
19698 (tle_lox22_sp32): Merge into...
19699 (tle_lox22_sp64): Likewise.
19700 (tle_lox22<P:mode>): ...this and use Pmode throughout.
19701 (*tldo_ldub_sp32): Merge into...
19702 (*tldo_ldub_sp64): Likewise.
19703 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
19704 (*tldo_ldub1_sp32): Merge into...
19705 (*tldo_ldub1_sp64): Likewise.
19706 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
19707 (*tldo_ldub2_sp32): Merge into...
19708 (*tldo_ldub2_sp64): Likewise.
19709 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
19710 (*tldo_ldsb1_sp32): Merge into...
19711 (*tldo_ldsb1_sp64): Likewise.
19712 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
19713 (*tldo_ldsb2_sp32): Merge into...
19714 (*tldo_ldsb2_sp64): Likewise.
19715 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
19716 (*tldo_ldub3_sp64): Use DImode throughout.
19717 (*tldo_ldsb3_sp64): Likewise.
19718 (*tldo_lduh_sp32): Merge into...
19719 (*tldo_lduh_sp64): Likewise.
19720 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
19721 (*tldo_lduh1_sp32): Merge into...
19722 (*tldo_lduh1_sp64): Likewise.
19723 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
19724 (*tldo_ldsh1_sp32): Merge into...
19725 (*tldo_ldsh1_sp64): Likewise.
19726 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
19727 (*tldo_lduh2_sp64): Use DImode throughout.
19728 (*tldo_ldsh2_sp64): Likewise.
19729 (*tldo_lduw_sp32): Merge into...
19730 (*tldo_lduw_sp64): Likewise.
19731 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
19732 (*tldo_lduw1_sp64): Use DImode throughout.
19733 (*tldo_ldsw1_sp64): Likewise.
19734 (*tldo_ldx_sp64): Likewise.
19735 (*tldo_stb_sp32): Merge into...
19736 (*tldo_stb_sp64): Likewise.
19737 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
19738 (*tldo_sth_sp32): Merge into...
19739 (*tldo_sth_sp64): Likewise.
19740 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
19741 (*tldo_stw_sp32): Merge into...
19742 (*tldo_stw_sp64): Likewise.
19743 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
19744 (*tldo_stx_sp64): Use DImode throughout.
19746 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19748 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
19749 check configure option to set BTI and Return Address Signing.
19750 * configure.ac: Add --enable-standard-branch-protection and
19751 --disable-standard-branch-protection.
19752 * configure: Regenerated.
19753 * doc/install.texi: Document the same.
19755 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19756 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19758 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
19759 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
19760 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
19762 * config/aarch64/aarch64-bti-insert.c: New file.
19763 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
19765 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
19767 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
19768 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
19769 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
19770 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
19772 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19774 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
19775 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
19776 Disable bti for -mbranch-protection=none.
19777 (aarch64_handle_standard_branch_protection): Enable bti for
19778 -mbranch-protection=standard.
19779 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
19780 -mbranch-protection.
19781 (aarch64_bti_enabled): Check if bti is enabled.
19782 * config/aarch64/aarch64.opt: Declare target variable.
19783 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
19785 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19787 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
19788 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
19789 (aarch64_expand_epilogue): Likewise.
19790 (aarch64_output_mi_thunk): Likewise.
19791 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
19792 TAILCALL_ADDR_REGS to x16 and x17.
19793 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
19795 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19797 * config/aarch64/aarch64-option-extensions.def: Define
19798 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
19799 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
19800 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
19801 (AARCH64_FL_PREDRES): New.
19802 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
19803 AARCH64_FL_PREDRES by default.
19804 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
19806 2018-01-09 Sudakshina Das <sudi.das@arm.com>
19808 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
19810 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
19811 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
19812 * doc/invoke.texi: Document ARMv8.5-A.
19814 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
19816 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
19817 (xorsign<mode>3): Likewise.
19819 2019-01-09 Jelinek <jakub@redhat.com>
19821 PR middle-end/88758
19822 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
19823 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
19825 PR rtl-optimization/88331
19826 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
19827 not currently_expanding_to_rtl.
19829 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
19831 * doc/invoke.texi (-Os): Remove trailing spaces.
19832 (-finline-functions): Remove reference to -O2.
19834 2019-01-08 Jakub Jelinek <jakub@redhat.com>
19836 PR rtl-optimization/79593
19837 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
19839 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
19840 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
19842 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
19845 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
19849 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
19850 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
19852 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
19855 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
19856 ix86_avx_u128_mode_entry.
19858 2019-01-08 Martin Liska <mliska@suse.cz>
19860 PR tree-optimization/88753
19861 * tree-switch-conversion.c (switch_conversion::build_one_array):
19862 Come up with local variable constructor. Convert first to
19863 type of constructor values.
19865 2019-01-08 Richard Biener <rguenther@suse.de>
19867 PR tree-optimization/86554
19868 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
19869 rpo_avail): Move earlier.
19870 (visit_nary_op): When value-numbering to expressions
19871 with different overflow behavior make sure there's an
19872 available expression on the path.
19874 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
19876 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
19877 aarch64_parse_branch_protection,
19878 struct aarch64_branch_protect_type,
19879 aarch64_handle_no_branch_protection,
19880 aarch64_handle_standard_branch_protection,
19881 aarch64_validate_mbranch_protection,
19882 aarch64_handle_pac_ret_protection,
19883 aarch64_handle_attr_branch_protection,
19884 accepted_branch_protection_string,
19885 aarch64_pac_ret_subtypes,
19886 aarch64_branch_protect_types,
19887 aarch64_handle_pac_ret_leaf): Define.
19888 (aarch64_override_options_after_change_1, aarch64_override_options):
19889 Add check for accepted_branch_protection_string.
19890 (aarch64_option_save): Save accepted_branch_protection_string.
19891 (aarch64_option_restore): Save accepted_branch_protection_string.
19892 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
19893 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
19894 msign-return-address.
19895 * doc/invoke.texi: Add mbranch-protection.
19897 2019-01-08 Alan Modra <amodra@gmail.com>
19900 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
19901 Delete "unknownp" parameter. Adjust callers. Handle
19902 CONST_INT, PLUS, MINUS, and MULT.
19903 (attr_value_aligned): Renamed from or_attr_value.
19904 (min_attr_value): Return INT_MIN for unhandled rtl case..
19905 (min_fn): ..and translate to INT_MAX here.
19906 (write_length_unit_log): Modify to cope without "unknown".
19907 (write_attr_value): Handle IF_THEN_ELSE.
19909 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19911 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
19912 optimization for masked stores.
19914 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19916 PR middle-end/88567
19917 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
19918 output vector directly to duplicate_and_interleave instead of
19919 going through a temporary. Postpone insertion of ctor_seq to
19920 the end of the loop.
19922 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
19925 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
19926 unsigned_p. Handle signed and unsigned overflow correction as
19928 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
19930 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
19932 (add<mode>3_compareV_imm): Make this callable for expanding.
19933 (subv<GPI:mode>4): Use register_operand for operand 1. Use
19934 aarch64_plus_operand for operand 2.
19935 (subv<GPI:mode>_insn): New insn pattern.
19936 (subv<GPI:mode>_imm): Likewise.
19937 (negv<GPI:mode>3): New expand pattern.
19938 (negv<GPI:mode>_insn): New insn pattern.
19939 (negv<GPI:mode>_cmp_only): Likewise.
19940 (cmpv<GPI:mode>_insn): Likewise.
19941 (subvti4): Use register_operand for operand 1. Update call to
19942 aarch64_expand_subvti.
19943 (usubvti4): Likewise.
19944 (negvti3): New expand pattern.
19945 (negdi_carryout): New insn pattern.
19946 (negvdi_carryinV): New insn pattern.
19947 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
19948 version the named version.
19949 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
19951 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
19953 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
19955 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
19956 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
19957 (sub<mode>3_carryinCV): Delete.
19958 (sub<GPI:mode>3_carryinV): New expand pattern.
19959 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
19961 2019-01-07 Richard Biener <rguenther@suse.de>
19963 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
19964 of tree_operand_hash.
19966 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19968 PR tree-optimization/88598
19969 * tree.h (single_nonzero_element): Declare.
19970 * tree.c (single_nonzero_element): New function.
19971 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
19972 if I is the only nonzero element of CST.
19974 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
19976 PR tree-optimization/88598
19977 * tree.h (initializer_each_zero_or_onep): Declare.
19978 * tree.c (initializer_each_zero_or_onep): New function.
19979 (signed_or_unsigned_type_for): Handle float types too.
19980 (unsigned_type_for, signed_type_for): Update comments accordingly.
19981 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
19982 x & { 0 or -1, 0 or -1, ... }.
19984 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
19986 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
19987 with x86_64-pc-linux-gnu.
19989 2019-01-07 Tom de Vries <tdevries@suse.de>
19992 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
19994 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
19997 2019-01-07 Jakub Jelinek <jakub@redhat.com>
19999 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
20000 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
20001 TARGET_AVX512F as condition.
20004 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
20005 const_not_ok_for_debug_p target hook.
20006 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20007 on UNSPEC and subexpressions thereof if all subexpressions of the
20008 UNSPEC are CONSTANT_P.
20010 PR tree-optimization/88676
20011 * tree-ssa-phiopt.c (two_value_replacement): New function.
20012 (tree_ssa_phiopt_worker): Call it.
20015 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20016 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20019 * tree-vect-generic.c: Include insn-config.h and recog.h.
20020 (expand_vector_piecewise): Add defaulted ret_type argument,
20021 if non-NULL, use that in preference to type for the result type.
20022 (expand_vector_parallel): Formatting fix.
20023 (do_vec_conversion, do_vec_narrowing_conversion,
20024 expand_vector_conversion): New functions.
20025 (expand_vector_operations_1): Call expand_vector_conversion
20026 for VEC_CONVERT ifn calls.
20027 * internal-fn.def (VEC_CONVERT): New internal function.
20028 * internal-fn.c (expand_VEC_CONVERT): New function.
20029 * fold-const-call.c (fold_const_vec_convert): New function.
20030 (fold_const_call): Use it for CFN_VEC_CONVERT.
20031 * doc/extend.texi (__builtin_convertvector): Document.
20033 2019-01-07 Tom de Vries <tdevries@suse.de>
20035 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20036 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20037 vector_red_partition, vector_red_sym): New global variables.
20038 (nvptx_option_override): Initialize vector_red_sym.
20039 (nvptx_declare_function_name): Restore red_partition register.
20040 (nvptx_file_end): Emit code to declare the vector reduction variables.
20041 (nvptx_output_red_partition): New function.
20042 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20043 large vector reductions.
20044 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20045 (nvptx_init_builtins): Add VECTOR_ADDR.
20046 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20047 Handle nvptx_expand_shared_addr.
20048 (nvptx_get_shared_red_addr): Add vector argument and handle large
20050 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20052 (nvptx_goacc_reduction_init): Likewise.
20053 (nvptx_goacc_reduction_fini): Likewise.
20054 (nvptx_goacc_reduction_teardown): Likewise.
20055 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20056 init,fini,teardown}.
20057 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20058 (nvptx_set_current_function): Init vector_red_partition.
20059 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20060 (nvptx_red_partition): New insn.
20061 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20063 2019-01-07 Tom de Vries <tdevries@suse.de>
20066 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20069 2019-01-07 Tom de Vries <tdevries@suse.de>
20071 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20072 (nvptx_option_override): Init oacc_bcast_partition.
20073 (nvptx_init_oacc_workers): New function.
20074 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20075 (nvptx_needs_shared_bcast): New function.
20076 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20077 to propagate state.
20078 (nvptx_shared_propagate): Initialize vector bcast partition and
20079 synchronization state.
20080 (nvptx_single): Generalize to enable vectors to use shared-memory
20081 to propagate state.
20082 (nvptx_process_pars): Likewise.
20083 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20084 * config/nvptx/nvptx.h (struct machine_function): Add
20085 bcast_partition and sync_bar members.
20087 2019-01-07 Tom de Vries <tdevries@suse.de>
20089 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20090 (nvptx_apply_dim_limits): New function.
20091 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20094 2019-01-07 Tom de Vries <tdevries@suse.de>
20096 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20097 as late as possible.
20099 2019-01-07 Tom de Vries <tdevries@suse.de>
20101 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20102 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20103 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20104 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20105 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20107 2019-01-07 Tom de Vries <tdevries@suse.de>
20109 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20111 2019-01-07 Tom de Vries <tdevries@suse.de>
20113 * omp-offload.c (oacc_get_min_dim): New function.
20114 * omp-offload.h (oacc_get_min_dim): Declare.
20116 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20119 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20120 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20122 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20126 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20128 * ipa-inline.c (edge_badness): Use inlined_time instead of
20129 inline_summaries->get.
20131 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20133 * opts.c (enable_fdo_optimizations): Enable
20134 version-loops-for-strides, loop-interchange, unrol-and-jam
20135 and tree-loop-distribution.
20136 * invoke.texi: Document newly enabled options.
20138 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20140 * doc/invoke.texi (max-inline-insns-small): New parameters.
20141 * ipa-inline.c (want_early_inline_function_p): simplify.
20142 (want_inline_small_function_p): Fix pasto from previous patch;
20143 use max-inline-insns-small bound.
20144 * params.def (max-inline-insns-small): New param.
20145 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20146 variables correctly.
20148 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20150 * doc/invoke.texi: Document max-inline-insns-size,
20151 uninlined-function-insns, uninlined-function-time,
20152 uninlined-thunk-insns and uninlined-thunk-time.
20153 * params.def: Add max-inline-insns-size,
20154 uninlined-function-insns, uninlined-function-time,
20155 uninlined-thunk-insns and uninlined-thunk-time.
20156 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20158 * ipa-inline.c (can_inline_edge_by_limits_p,
20159 want_inline_small_function_p): Use new parameters.
20161 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20163 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20165 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20167 PR middle-end/82564
20169 * expr.c (expand_assignment): For calls returning VLA structures
20170 if to_rtx is not a MEM, force it into a stack temporary.
20173 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20174 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20175 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20176 subexpressions of both operands.
20177 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20178 subrtxes are CONSTANT_P.
20179 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20180 2018-11-09 changes.
20182 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20184 * params.def (hot-bb-count-ws-permille): Set to 990.
20186 2019-01-04 Martin Sebor <msebor@redhat.com>
20189 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20192 2019-01-04 Martin Sebor <msebor@redhat.com>
20195 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20197 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20199 * gdbinit.in: Turn off pagination for the skip commands, restore
20200 it to previous state afterwards.
20202 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20205 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20206 of GET_MODE (opN) as modes of the libcall arguments.
20208 2019-01-04 Jan Beulich <jbeulich@suse.com>
20210 * config/i386/sse.md
20211 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20212 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20213 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20214 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20215 avx512f_vmcmp<mode>3<round_saeonly_name>,
20216 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20217 avx512f_maskcmp<mode>3,
20218 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20219 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20220 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20221 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20222 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20223 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20224 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20225 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20226 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20227 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20228 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20229 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20230 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20231 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20232 avx512cd_maskb_vec_dup<mode>,
20233 avx512cd_maskw_vec_dup<mode>,
20234 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20235 avx512dq_vmfpclass<mode>,
20236 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20239 2019-01-03 Martin Sebor <msebor@redhat.com>
20241 PR tree-optimization/88659
20242 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20244 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20246 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20247 unaligned vsx and avoid lxvd2x/stxvd2x.
20248 (gen_lvx_v4si_move): New function.
20250 2019-01-03 Tom de Vries <tdevries@suse.de>
20252 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20253 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20255 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20257 2019-01-03 Tom de Vries <tdevries@suse.de>
20259 * config/nvptx/nvptx.c (struct offload_attrs): New.
20260 (populate_offload_attrs): New function. Factor mask extraction out of
20261 nvptx_reorg. Add extraction of dimensions.
20262 (nvptx_reorg): Use populate_offload_attrs.
20264 2019-01-03 Tom de Vries <tdevries@suse.de>
20266 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20267 cases for oacc_min_dims_p and routine_p. Add asserts for
20268 oacc_default_dims_p and offload_region_p.
20270 2019-01-03 Tom de Vries <tdevries@suse.de>
20272 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20273 factored out of ...
20274 (nvptx_goacc_validate_dims): ... here.
20276 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20278 PR tree-optimization/85574
20279 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20281 (struct ssa_equip_hash_traits): Declare.
20282 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20284 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20287 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20288 change it to qualified_type.
20290 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20292 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20293 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20295 2019-01-02 Martin Sebor <msebor@redhat.com>
20296 Jeff Law <law@redhat.com>
20298 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20299 (get_range_strlen_tree): Update appropriately.
20301 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20303 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20304 rather than set_range_info.
20305 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20306 maybe_set_strlen_range. Handle potentially boundary crossing
20307 cases more conservatively.
20308 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20309 Call set_strlen_range.
20310 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20312 PR middle-end/88663
20313 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20314 need the flexp argument.
20315 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20316 from calls to get_range_strlen. Update comments. Just update
20317 VAL for an unterminated const char array and let the reset of the
20318 code handle it normally. No longer try to set *flexp. Adjust
20320 (get_range_strlen): Update for the new get_range_strlen API.
20321 (get_maxval_strlen): Similarly.
20322 (gimple_fold_builtin_strlen): Handle update meaning of return value
20323 from get_range_strlen.
20324 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20325 get_range_strlen API.
20327 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20330 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
20331 false at WPA time when body was removed.
20333 2019-01-02 Martin Liska <mliska@suse.cz>
20335 PR tree-optimization/88650
20336 * predict.c (set_even_probabilities): Calculate probability
20337 remainer only when really used.
20339 2019-01-02 Richard Biener <rguenther@suse.de>
20341 PR middle-end/88651
20342 * tree-data-ref.c (analyze_subscript_affine_affine): Use
20343 widest_ints when mangling max_stmt_execution results.
20345 2019-01-02 Richard Biener <rguenther@suse.de>
20347 PR tree-optimization/88621
20348 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
20349 bitfields when canoncalizing.
20351 2019-01-02 Richard Biener <rguenther@suse.de>
20354 * config/i386/x86-tune-costs.h (intel_cost): Adjust
20355 cost of cheap SSE instruction.
20357 2019-01-02 Richard Biener <rguenther@suse.de>
20360 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
20361 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
20363 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
20364 set after UIDs before splitting them.
20366 2019-01-01 Martin Sebor <msebor@redhat.com>
20367 Jeff Law <law@redhat.com>
20369 * gimple-fold.c (get_range_strlen_tree): Record if the computed
20370 length is optimistic. If it is, then arrange to compute the
20371 conservative length as well.
20373 * gimple-fold.h (get_range_strlen): Update prototype.
20374 * builtins.c (check_access): Update call to get_range_strlen to use
20375 c_strlen_data pointer. Change various variable accesses to instead
20376 pull data from the c_strlen_data structure.
20377 (check_strncat_sizes, expand_builtin_strncat): Likewise.
20378 * calls.c (maybe_warn_nonstring_arg): Likewise.
20379 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
20380 minimum length if maximum lengh is unknown.
20381 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
20382 that used c_strlen, it's no longer needed. Restructure slightly.
20383 (format_string): Set unlikely range appropriately.
20384 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
20386 (get_range_strlen): Accept c_strlen_data pointer for external
20387 call sites as well. Pass through to call to internal get_range_strlen.
20388 Adjust minlen, maxlen and maxbound as needed.
20389 (get_maxval_strlen): Update comments.
20390 (gimple_fold_builtin_strlen): Update call to get_range_strlen
20391 to use c_strlen_data pointer. Change variable accesses to instead
20392 use c_strlen_data data members.
20394 * gimple-fold.c (get_range_strlen): Update prototype.
20395 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
20396 local variables. Use pdata to return information to caller.
20397 Update calls to get_range_strlen. Update pdata->maxbound.
20398 (get_range_strlen -- static version): Similarly.
20399 (get_range_strlen -- extern version): Update for internal
20400 get_range_strlen API change. Convert to external data format.
20401 (get_maxval_strlen): Similarly.
20403 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
20405 * coverage.c (get_coverage_counts): Use current_function_decl.
20406 * profile.c (read_thunk_profile): New function.
20407 (branch_prob): Add THUNK parameter.
20408 * tree-profile.c (tree_profiling): Handle thunks.
20409 * value-prof.c (init_node_map): Handle thunks.
20410 * value-prof.h (branch_prob): Upate prototype.
20411 (read_thunk_profile): Declare.
20413 2019-01-01 Jakub Jelinek <jakub@redhat.com>
20415 Update copyright years.
20417 * gcc.c (process_command): Update copyright notice dates.
20418 * gcov-dump.c (print_version): Ditto.
20419 * gcov.c (print_version): Ditto.
20420 * gcov-tool.c (print_version): Ditto.
20421 * gengtype.c (create_file): Ditto.
20422 * doc/cpp.texi: Bump @copying's copyright year.
20423 * doc/cppinternals.texi: Ditto.
20424 * doc/gcc.texi: Ditto.
20425 * doc/gccint.texi: Ditto.
20426 * doc/gcov.texi: Ditto.
20427 * doc/install.texi: Ditto.
20428 * doc/invoke.texi: Ditto.
20430 Copyright (C) 2019 Free Software Foundation, Inc.
20432 Copying and distribution of this file, with or without modification,
20433 are permitted in any medium without royalty provided the copyright
20434 notice and this notice are preserved.